
mp_limb_t __gmpn_pi1_bdiv_q_1(mp_ptr rp,mp_srcptr up,mp_size_t n,mp_limb_t d,mp_limb_t di,int shift)

{
  mp_limb_t mVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  mp_srcptr pmVar5;
  uint uVar6;
  mp_ptr pmVar7;
  uint uVar8;
  
  uVar4 = *up;
  if (shift != 0) {
    if (n < 2) {
      uVar4 = uVar4 >> (shift & 0x1fU);
      mVar1 = 0;
    }
    else {
      pmVar5 = up + 1;
      mVar1 = 0;
      pmVar7 = rp;
      do {
        uVar3 = *pmVar5;
        pmVar5 = pmVar5 + 1;
        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);
        uVar4 = uVar6 - mVar1;
        uVar8 = di * uVar4;
        *pmVar7 = uVar8;
        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);
        uVar4 = uVar3;
        pmVar7 = pmVar7 + 1;
      } while (up + n != pmVar5);
      rp = rp + n + -1;
      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;
    }
    *rp = di * uVar4;
    return mVar1;
  }
  uVar4 = di * uVar4;
  *rp = uVar4;
  if (1 < n) {
    pmVar5 = up + 1;
    uVar3 = 0;
    puVar2 = rp + 1;
    do {
      uVar6 = *pmVar5;
      pmVar5 = pmVar5 + 1;
      uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));
      uVar4 = di * uVar3;
      uVar3 = (uint)(uVar6 < uVar3);
      *puVar2 = uVar4;
      puVar2 = puVar2 + 1;
    } while (up + n != pmVar5);
    return uVar3;
  }
  return 0;
}



uint __gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,
                        uint param_6)

{
  uint uVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  uint *puVar5;
  uint uVar6;
  
  uVar4 = *param_2;
  if (param_6 != 0) {
    if (param_3 < 2) {
      uVar4 = uVar4 >> (param_6 & 0x1f);
      uVar1 = 0;
    }
    else {
      puVar5 = param_2 + 1;
      uVar1 = 0;
      puVar2 = param_1;
      do {
        uVar3 = *puVar5;
        puVar5 = puVar5 + 1;
        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);
        uVar1 = uVar4 - uVar1;
        uVar6 = param_5 * uVar1;
        *puVar2 = uVar6;
        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);
        uVar4 = uVar3;
        puVar2 = puVar2 + 1;
      } while (param_2 + param_3 != puVar5);
      param_1 = param_1 + param_3 + -1;
      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;
    }
    *param_1 = param_5 * uVar4;
    return uVar1;
  }
  uVar4 = param_5 * uVar4;
  *param_1 = uVar4;
  if (1 < param_3) {
    puVar5 = param_2 + 1;
    uVar1 = 0;
    puVar2 = param_1 + 1;
    do {
      uVar3 = *puVar5;
      puVar5 = puVar5 + 1;
      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));
      uVar4 = param_5 * uVar1;
      uVar1 = (uint)(uVar3 < uVar1);
      *puVar2 = uVar4;
      puVar2 = puVar2 + 1;
    } while (param_2 + param_3 != puVar5);
    return uVar1;
  }
  return 0;
}


lw t7,0x14(sp)
or t6,a3,zero
lw t5,0x10(sp)
beq t7,zero,0x00075a90
_lw t0,0x0(a1)
slti v0,a2,0x2
bne v0,zero,0x00075ae8
_sll a2,a2,0x2
li t8,0x20
addiu t2,a1,0x4
subu t8,t8,t7
addu a1,a1,a2
or v0,zero,zero
or t3,a0,zero
lw a3,0x0(t2)
srlv v1,t0,t7
addiu t3,t3,0x4
addiu t2,t2,0x4
sllv t1,a3,t8
or t0,a3,zero
or t1,t1,v1
subu v0,t1,v0
mul t4,t5,v0
sltu t1,t1,v0
multu t4,t6
sw t4,-0x4(t3)
mfhi v0
bne a1,t2,0x00075a38
_addu v0,t1,v0
addiu a2,a2,-0x4
srlv t0,a3,t7
addu a0,a0,a2
subu t0,t0,v0
mul t5,t5,t0
jr ra
_sw t5,0x0(a0)
mul v1,t5,t0
slti v0,a2,0x2
bne v0,zero,0x00075af4
_sw v1,0x0(a0)
sll a2,a2,0x2
addiu t0,a1,0x4
addiu a0,a0,0x4
addu a1,a1,a2
or v0,zero,zero
multu v1,t6
lw t1,0x0(t0)
addiu a0,a0,0x4
addiu t0,t0,0x4
mfhi a2
addu v0,v0,a2
subu v0,t1,v0
mul v1,t5,v0
sltu v0,t1,v0
bne a1,t0,0x00075ab4
_sw v1,-0x4(a0)
jr ra
_nop
srlv t0,t0,t7
b 0x00075a84
_or v0,zero,zero
jr ra
_or v0,zero,zero
(translation_unit "uint __gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  \n  uVar4 = *param_2;\n  if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }\n  uVar4 = param_5 * uVar4;\n  *param_1 = uVar4;\n  if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "uint __gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  \n  uVar4 = *param_2;\n  if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }\n  uVar4 = param_5 * uVar4;\n  *param_1 = uVar4;\n  if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "__gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)" identifier (parameter_list "(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  \n  uVar4 = *param_2;\n  if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }\n  uVar4 = param_5 * uVar4;\n  *param_1 = uVar4;\n  if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }" { (if_statement "if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }" { (expression_statement "uVar4 = uVar4 >> (param_6 & 0x1f);" (assignment_expression "uVar4 = uVar4 >> (param_6 & 0x1f)" identifier = (binary_expression "uVar4 >> (param_6 & 0x1f)" identifier >> (parenthesized_expression "(param_6 & 0x1f)" ( (binary_expression "param_6 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" else (compound_statement "{\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" { (expression_statement "puVar5 = param_2 + 1;" (assignment_expression "puVar5 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);" do (compound_statement "{\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      }" { (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);" (assignment_expression "uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f)" identifier = (binary_expression "uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f)" (binary_expression "uVar3 << (0x20 - param_6 & 0x1f)" identifier << (parenthesized_expression "(0x20 - param_6 & 0x1f)" ( (binary_expression "0x20 - param_6 & 0x1f" (binary_expression "0x20 - param_6" number_literal - identifier) & number_literal) ))) | (binary_expression "uVar4 >> (param_6 & 0x1f)" identifier >> (parenthesized_expression "(param_6 & 0x1f)" ( (binary_expression "param_6 & 0x1f" identifier & number_literal) ))))) ;) (expression_statement "uVar1 = uVar4 - uVar1;" (assignment_expression "uVar1 = uVar4 - uVar1" identifier = (binary_expression "uVar4 - uVar1" identifier - identifier)) ;) (expression_statement "uVar6 = param_5 * uVar1;" (assignment_expression "uVar6 = param_5 * uVar1" identifier = (binary_expression "param_5 * uVar1" identifier * identifier)) ;) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);" (assignment_expression "uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" identifier = (binary_expression "(uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" (call_expression "(uint)(uVar4 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) ))) + (cast_expression "(int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)uVar6 * (ulonglong)param_4" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_4" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))))) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 + param_3 != puVar5)" ( (binary_expression "param_2 + param_3 != puVar5" (binary_expression "param_2 + param_3" identifier + identifier) != identifier) )) ;) (expression_statement "param_1 = param_1 + param_3 + -1;" (assignment_expression "param_1 = param_1 + param_3 + -1" identifier = (binary_expression "param_1 + param_3 + -1" (binary_expression "param_1 + param_3" identifier + identifier) + number_literal)) ;) (expression_statement "uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;" (assignment_expression "uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1" identifier = (binary_expression "(uVar3 >> (param_6 & 0x1f)) - uVar1" (parenthesized_expression "(uVar3 >> (param_6 & 0x1f))" ( (binary_expression "uVar3 >> (param_6 & 0x1f)" identifier >> (parenthesized_expression "(param_6 & 0x1f)" ( (binary_expression "param_6 & 0x1f" identifier & number_literal) ))) )) - identifier)) ;) }))) (expression_statement "*param_1 = param_5 * uVar4;" (assignment_expression "*param_1 = param_5 * uVar4" (pointer_expression "*param_1" * identifier) = (binary_expression "param_5 * uVar4" identifier * identifier)) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar4 = param_5 * uVar4;" (assignment_expression "uVar4 = param_5 * uVar4" identifier = (binary_expression "param_5 * uVar4" identifier * identifier)) ;) (expression_statement "*param_1 = uVar4;" (assignment_expression "*param_1 = uVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }" if (parenthesized_expression "(1 < param_3)" ( (binary_expression "1 < param_3" number_literal < identifier) )) (compound_statement "{\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }" { (expression_statement "puVar5 = param_2 + 1;" (assignment_expression "puVar5 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = param_1 + 1;" (assignment_expression "puVar2 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (do_statement "do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);" do (compound_statement "{\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));" (assignment_expression "uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" identifier = (binary_expression "uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" identifier - (parenthesized_expression "(uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" ( (binary_expression "uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" identifier + (cast_expression "(int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" ( (binary_expression "(ulonglong)uVar4 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)uVar4 * (ulonglong)param_4" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_4" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) )))) )))) ;) (expression_statement "uVar4 = param_5 * uVar1;" (assignment_expression "uVar4 = param_5 * uVar1" identifier = (binary_expression "param_5 * uVar1" identifier * identifier)) ;) (expression_statement "uVar1 = (uint)(uVar3 < uVar1);" (assignment_expression "uVar1 = (uint)(uVar3 < uVar1)" identifier = (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) )))) ;) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 + param_3 != puVar5)" ( (binary_expression "param_2 + param_3 != puVar5" (binary_expression "param_2 + param_3" identifier + identifier) != identifier) )) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "mp_limb_t __gmpn_pi1_bdiv_q_1(mp_ptr rp,mp_srcptr up,mp_size_t n,mp_limb_t d,mp_limb_t di,int shift)\n\n{\n  mp_limb_t mVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  mp_srcptr pmVar5;\n  uint uVar6;\n  mp_ptr pmVar7;\n  uint uVar8;\n  \n  uVar4 = *up;\n  if (shift != 0) {\n    if (n < 2) {\n      uVar4 = uVar4 >> (shift & 0x1fU);\n      mVar1 = 0;\n    }\n    else {\n      pmVar5 = up + 1;\n      mVar1 = 0;\n      pmVar7 = rp;\n      do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);\n      rp = rp + n + -1;\n      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;\n    }\n    *rp = di * uVar4;\n    return mVar1;\n  }\n  uVar4 = di * uVar4;\n  *rp = uVar4;\n  if (1 < n) {\n    pmVar5 = up + 1;\n    uVar3 = 0;\n    puVar2 = rp + 1;\n    do {\n      uVar6 = *pmVar5;\n      pmVar5 = pmVar5 + 1;\n      uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));\n      uVar4 = di * uVar3;\n      uVar3 = (uint)(uVar6 < uVar3);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (up + n != pmVar5);\n    return uVar3;\n  }\n  return 0;\n}\n\n" (function_definition "mp_limb_t __gmpn_pi1_bdiv_q_1(mp_ptr rp,mp_srcptr up,mp_size_t n,mp_limb_t d,mp_limb_t di,int shift)\n\n{\n  mp_limb_t mVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  mp_srcptr pmVar5;\n  uint uVar6;\n  mp_ptr pmVar7;\n  uint uVar8;\n  \n  uVar4 = *up;\n  if (shift != 0) {\n    if (n < 2) {\n      uVar4 = uVar4 >> (shift & 0x1fU);\n      mVar1 = 0;\n    }\n    else {\n      pmVar5 = up + 1;\n      mVar1 = 0;\n      pmVar7 = rp;\n      do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);\n      rp = rp + n + -1;\n      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;\n    }\n    *rp = di * uVar4;\n    return mVar1;\n  }\n  uVar4 = di * uVar4;\n  *rp = uVar4;\n  if (1 < n) {\n    pmVar5 = up + 1;\n    uVar3 = 0;\n    puVar2 = rp + 1;\n    do {\n      uVar6 = *pmVar5;\n      pmVar5 = pmVar5 + 1;\n      uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));\n      uVar4 = di * uVar3;\n      uVar3 = (uint)(uVar6 < uVar3);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (up + n != pmVar5);\n    return uVar3;\n  }\n  return 0;\n}" type_identifier (function_declarator "__gmpn_pi1_bdiv_q_1(mp_ptr rp,mp_srcptr up,mp_size_t n,mp_limb_t d,mp_limb_t di,int shift)" identifier (parameter_list "(mp_ptr rp,mp_srcptr up,mp_size_t n,mp_limb_t d,mp_limb_t di,int shift)" ( (parameter_declaration "mp_ptr rp" type_identifier identifier) , (parameter_declaration "mp_srcptr up" type_identifier identifier) , (parameter_declaration "mp_size_t n" type_identifier identifier) , (parameter_declaration "mp_limb_t d" type_identifier identifier) , (parameter_declaration "mp_limb_t di" type_identifier identifier) , (parameter_declaration "int shift" primitive_type identifier) ))) (compound_statement "{\n  mp_limb_t mVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  mp_srcptr pmVar5;\n  uint uVar6;\n  mp_ptr pmVar7;\n  uint uVar8;\n  \n  uVar4 = *up;\n  if (shift != 0) {\n    if (n < 2) {\n      uVar4 = uVar4 >> (shift & 0x1fU);\n      mVar1 = 0;\n    }\n    else {\n      pmVar5 = up + 1;\n      mVar1 = 0;\n      pmVar7 = rp;\n      do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);\n      rp = rp + n + -1;\n      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;\n    }\n    *rp = di * uVar4;\n    return mVar1;\n  }\n  uVar4 = di * uVar4;\n  *rp = uVar4;\n  if (1 < n) {\n    pmVar5 = up + 1;\n    uVar3 = 0;\n    puVar2 = rp + 1;\n    do {\n      uVar6 = *pmVar5;\n      pmVar5 = pmVar5 + 1;\n      uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));\n      uVar4 = di * uVar3;\n      uVar3 = (uint)(uVar6 < uVar3);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (up + n != pmVar5);\n    return uVar3;\n  }\n  return 0;\n}" { (declaration "mp_limb_t mVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "mp_srcptr pmVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "mp_ptr pmVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "uVar4 = *up;" (assignment_expression "uVar4 = *up" identifier = (pointer_expression "*up" * identifier)) ;) (if_statement "if (shift != 0) {\n    if (n < 2) {\n      uVar4 = uVar4 >> (shift & 0x1fU);\n      mVar1 = 0;\n    }\n    else {\n      pmVar5 = up + 1;\n      mVar1 = 0;\n      pmVar7 = rp;\n      do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);\n      rp = rp + n + -1;\n      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;\n    }\n    *rp = di * uVar4;\n    return mVar1;\n  }" if (parenthesized_expression "(shift != 0)" ( (binary_expression "shift != 0" identifier != number_literal) )) (compound_statement "{\n    if (n < 2) {\n      uVar4 = uVar4 >> (shift & 0x1fU);\n      mVar1 = 0;\n    }\n    else {\n      pmVar5 = up + 1;\n      mVar1 = 0;\n      pmVar7 = rp;\n      do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);\n      rp = rp + n + -1;\n      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;\n    }\n    *rp = di * uVar4;\n    return mVar1;\n  }" { (if_statement "if (n < 2) {\n      uVar4 = uVar4 >> (shift & 0x1fU);\n      mVar1 = 0;\n    }\n    else {\n      pmVar5 = up + 1;\n      mVar1 = 0;\n      pmVar7 = rp;\n      do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);\n      rp = rp + n + -1;\n      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;\n    }" if (parenthesized_expression "(n < 2)" ( (binary_expression "n < 2" identifier < number_literal) )) (compound_statement "{\n      uVar4 = uVar4 >> (shift & 0x1fU);\n      mVar1 = 0;\n    }" { (expression_statement "uVar4 = uVar4 >> (shift & 0x1fU);" (assignment_expression "uVar4 = uVar4 >> (shift & 0x1fU)" identifier = (binary_expression "uVar4 >> (shift & 0x1fU)" identifier >> (parenthesized_expression "(shift & 0x1fU)" ( (binary_expression "shift & 0x1fU" identifier & number_literal) )))) ;) (expression_statement "mVar1 = 0;" (assignment_expression "mVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      pmVar5 = up + 1;\n      mVar1 = 0;\n      pmVar7 = rp;\n      do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);\n      rp = rp + n + -1;\n      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;\n    }" else (compound_statement "{\n      pmVar5 = up + 1;\n      mVar1 = 0;\n      pmVar7 = rp;\n      do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);\n      rp = rp + n + -1;\n      uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;\n    }" { (expression_statement "pmVar5 = up + 1;" (assignment_expression "pmVar5 = up + 1" identifier = (binary_expression "up + 1" identifier + number_literal)) ;) (expression_statement "mVar1 = 0;" (assignment_expression "mVar1 = 0" identifier = number_literal) ;) (expression_statement "pmVar7 = rp;" (assignment_expression "pmVar7 = rp" identifier = identifier) ;) (do_statement "do {\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      } while (up + n != pmVar5);" do (compound_statement "{\n        uVar3 = *pmVar5;\n        pmVar5 = pmVar5 + 1;\n        uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);\n        uVar4 = uVar6 - mVar1;\n        uVar8 = di * uVar4;\n        *pmVar7 = uVar8;\n        mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);\n        uVar4 = uVar3;\n        pmVar7 = pmVar7 + 1;\n      }" { (expression_statement "uVar3 = *pmVar5;" (assignment_expression "uVar3 = *pmVar5" identifier = (pointer_expression "*pmVar5" * identifier)) ;) (expression_statement "pmVar5 = pmVar5 + 1;" (assignment_expression "pmVar5 = pmVar5 + 1" identifier = (binary_expression "pmVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU);" (assignment_expression "uVar6 = uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU)" identifier = (binary_expression "uVar3 << (0x20U - shift & 0x1f) | uVar4 >> (shift & 0x1fU)" (binary_expression "uVar3 << (0x20U - shift & 0x1f)" identifier << (parenthesized_expression "(0x20U - shift & 0x1f)" ( (binary_expression "0x20U - shift & 0x1f" (binary_expression "0x20U - shift" number_literal - identifier) & number_literal) ))) | (binary_expression "uVar4 >> (shift & 0x1fU)" identifier >> (parenthesized_expression "(shift & 0x1fU)" ( (binary_expression "shift & 0x1fU" identifier & number_literal) ))))) ;) (expression_statement "uVar4 = uVar6 - mVar1;" (assignment_expression "uVar4 = uVar6 - mVar1" identifier = (binary_expression "uVar6 - mVar1" identifier - identifier)) ;) (expression_statement "uVar8 = di * uVar4;" (assignment_expression "uVar8 = di * uVar4" identifier = (binary_expression "di * uVar4" identifier * identifier)) ;) (expression_statement "*pmVar7 = uVar8;" (assignment_expression "*pmVar7 = uVar8" (pointer_expression "*pmVar7" * identifier) = identifier) ;) (expression_statement "mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20);" (assignment_expression "mVar1 = (uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20)" identifier = (binary_expression "(uint)(uVar6 < uVar4) + (int)((ulonglong)uVar8 * (ulonglong)d >> 0x20)" (call_expression "(uint)(uVar6 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar4)" ( (binary_expression "uVar6 < uVar4" identifier < identifier) ))) + (cast_expression "(int)((ulonglong)uVar8 * (ulonglong)d >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 * (ulonglong)d >> 0x20)" ( (binary_expression "(ulonglong)uVar8 * (ulonglong)d >> 0x20" (binary_expression "(ulonglong)uVar8 * (ulonglong)d" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)d" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))))) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (expression_statement "pmVar7 = pmVar7 + 1;" (assignment_expression "pmVar7 = pmVar7 + 1" identifier = (binary_expression "pmVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(up + n != pmVar5)" ( (binary_expression "up + n != pmVar5" (binary_expression "up + n" identifier + identifier) != identifier) )) ;) (expression_statement "rp = rp + n + -1;" (assignment_expression "rp = rp + n + -1" identifier = (binary_expression "rp + n + -1" (binary_expression "rp + n" identifier + identifier) + number_literal)) ;) (expression_statement "uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1;" (assignment_expression "uVar4 = (uVar3 >> (shift & 0x1fU)) - mVar1" identifier = (binary_expression "(uVar3 >> (shift & 0x1fU)) - mVar1" (parenthesized_expression "(uVar3 >> (shift & 0x1fU))" ( (binary_expression "uVar3 >> (shift & 0x1fU)" identifier >> (parenthesized_expression "(shift & 0x1fU)" ( (binary_expression "shift & 0x1fU" identifier & number_literal) ))) )) - identifier)) ;) }))) (expression_statement "*rp = di * uVar4;" (assignment_expression "*rp = di * uVar4" (pointer_expression "*rp" * identifier) = (binary_expression "di * uVar4" identifier * identifier)) ;) (return_statement "return mVar1;" return identifier ;) })) (expression_statement "uVar4 = di * uVar4;" (assignment_expression "uVar4 = di * uVar4" identifier = (binary_expression "di * uVar4" identifier * identifier)) ;) (expression_statement "*rp = uVar4;" (assignment_expression "*rp = uVar4" (pointer_expression "*rp" * identifier) = identifier) ;) (if_statement "if (1 < n) {\n    pmVar5 = up + 1;\n    uVar3 = 0;\n    puVar2 = rp + 1;\n    do {\n      uVar6 = *pmVar5;\n      pmVar5 = pmVar5 + 1;\n      uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));\n      uVar4 = di * uVar3;\n      uVar3 = (uint)(uVar6 < uVar3);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (up + n != pmVar5);\n    return uVar3;\n  }" if (parenthesized_expression "(1 < n)" ( (binary_expression "1 < n" number_literal < identifier) )) (compound_statement "{\n    pmVar5 = up + 1;\n    uVar3 = 0;\n    puVar2 = rp + 1;\n    do {\n      uVar6 = *pmVar5;\n      pmVar5 = pmVar5 + 1;\n      uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));\n      uVar4 = di * uVar3;\n      uVar3 = (uint)(uVar6 < uVar3);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (up + n != pmVar5);\n    return uVar3;\n  }" { (expression_statement "pmVar5 = up + 1;" (assignment_expression "pmVar5 = up + 1" identifier = (binary_expression "up + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = rp + 1;" (assignment_expression "puVar2 = rp + 1" identifier = (binary_expression "rp + 1" identifier + number_literal)) ;) (do_statement "do {\n      uVar6 = *pmVar5;\n      pmVar5 = pmVar5 + 1;\n      uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));\n      uVar4 = di * uVar3;\n      uVar3 = (uint)(uVar6 < uVar3);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (up + n != pmVar5);" do (compound_statement "{\n      uVar6 = *pmVar5;\n      pmVar5 = pmVar5 + 1;\n      uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));\n      uVar4 = di * uVar3;\n      uVar3 = (uint)(uVar6 < uVar3);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "uVar6 = *pmVar5;" (assignment_expression "uVar6 = *pmVar5" identifier = (pointer_expression "*pmVar5" * identifier)) ;) (expression_statement "pmVar5 = pmVar5 + 1;" (assignment_expression "pmVar5 = pmVar5 + 1" identifier = (binary_expression "pmVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20));" (assignment_expression "uVar3 = uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20))" identifier = (binary_expression "uVar6 - (uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20))" identifier - (parenthesized_expression "(uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20))" ( (binary_expression "uVar3 + (int)((ulonglong)uVar4 * (ulonglong)d >> 0x20)" identifier + (cast_expression "(int)((ulonglong)uVar4 * (ulonglong)d >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 * (ulonglong)d >> 0x20)" ( (binary_expression "(ulonglong)uVar4 * (ulonglong)d >> 0x20" (binary_expression "(ulonglong)uVar4 * (ulonglong)d" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)d" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) )))) )))) ;) (expression_statement "uVar4 = di * uVar3;" (assignment_expression "uVar4 = di * uVar3" identifier = (binary_expression "di * uVar3" identifier * identifier)) ;) (expression_statement "uVar3 = (uint)(uVar6 < uVar3);" (assignment_expression "uVar3 = (uint)(uVar6 < uVar3)" identifier = (call_expression "(uint)(uVar6 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar3)" ( (binary_expression "uVar6 < uVar3" identifier < identifier) )))) ;) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(up + n != pmVar5)" ( (binary_expression "up + n != pmVar5" (binary_expression "up + n" identifier + identifier) != identifier) )) ;) (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint __gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  \n  uVar4 = *param_2;\n  if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }\n  uVar4 = param_5 * uVar4;\n  *param_1 = uVar4;\n  if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "uint __gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  \n  uVar4 = *param_2;\n  if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }\n  uVar4 = param_5 * uVar4;\n  *param_1 = uVar4;\n  if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "__gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)" identifier (parameter_list "(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  \n  uVar4 = *param_2;\n  if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }\n  uVar4 = param_5 * uVar4;\n  *param_1 = uVar4;\n  if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }" { (if_statement "if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }" { (expression_statement "uVar4 = uVar4 >> (param_6 & 0x1f);" (assignment_expression "uVar4 = uVar4 >> (param_6 & 0x1f)" identifier = (binary_expression "uVar4 >> (param_6 & 0x1f)" identifier >> (parenthesized_expression "(param_6 & 0x1f)" ( (binary_expression "param_6 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" else (compound_statement "{\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" { (expression_statement "puVar5 = param_2 + 1;" (assignment_expression "puVar5 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);" do (compound_statement "{\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      }" { (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);" (assignment_expression "uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f)" identifier = (binary_expression "uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f)" (binary_expression "uVar3 << (0x20 - param_6 & 0x1f)" identifier << (parenthesized_expression "(0x20 - param_6 & 0x1f)" ( (binary_expression "0x20 - param_6 & 0x1f" (binary_expression "0x20 - param_6" number_literal - identifier) & number_literal) ))) | (binary_expression "uVar4 >> (param_6 & 0x1f)" identifier >> (parenthesized_expression "(param_6 & 0x1f)" ( (binary_expression "param_6 & 0x1f" identifier & number_literal) ))))) ;) (expression_statement "uVar1 = uVar4 - uVar1;" (assignment_expression "uVar1 = uVar4 - uVar1" identifier = (binary_expression "uVar4 - uVar1" identifier - identifier)) ;) (expression_statement "uVar6 = param_5 * uVar1;" (assignment_expression "uVar6 = param_5 * uVar1" identifier = (binary_expression "param_5 * uVar1" identifier * identifier)) ;) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);" (assignment_expression "uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" identifier = (binary_expression "(uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" (call_expression "(uint)(uVar4 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) ))) + (cast_expression "(int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)uVar6 * (ulonglong)param_4" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_4" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))))) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 + param_3 != puVar5)" ( (binary_expression "param_2 + param_3 != puVar5" (binary_expression "param_2 + param_3" identifier + identifier) != identifier) )) ;) (expression_statement "param_1 = param_1 + param_3 + -1;" (assignment_expression "param_1 = param_1 + param_3 + -1" identifier = (binary_expression "param_1 + param_3 + -1" (binary_expression "param_1 + param_3" identifier + identifier) + number_literal)) ;) (expression_statement "uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;" (assignment_expression "uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1" identifier = (binary_expression "(uVar3 >> (param_6 & 0x1f)) - uVar1" (parenthesized_expression "(uVar3 >> (param_6 & 0x1f))" ( (binary_expression "uVar3 >> (param_6 & 0x1f)" identifier >> (parenthesized_expression "(param_6 & 0x1f)" ( (binary_expression "param_6 & 0x1f" identifier & number_literal) ))) )) - identifier)) ;) }))) (expression_statement "*param_1 = param_5 * uVar4;" (assignment_expression "*param_1 = param_5 * uVar4" (pointer_expression "*param_1" * identifier) = (binary_expression "param_5 * uVar4" identifier * identifier)) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar4 = param_5 * uVar4;" (assignment_expression "uVar4 = param_5 * uVar4" identifier = (binary_expression "param_5 * uVar4" identifier * identifier)) ;) (expression_statement "*param_1 = uVar4;" (assignment_expression "*param_1 = uVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }" if (parenthesized_expression "(1 < param_3)" ( (binary_expression "1 < param_3" number_literal < identifier) )) (compound_statement "{\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }" { (expression_statement "puVar5 = param_2 + 1;" (assignment_expression "puVar5 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = param_1 + 1;" (assignment_expression "puVar2 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (do_statement "do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);" do (compound_statement "{\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));" (assignment_expression "uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" identifier = (binary_expression "uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" identifier - (parenthesized_expression "(uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" ( (binary_expression "uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" identifier + (cast_expression "(int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" ( (binary_expression "(ulonglong)uVar4 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)uVar4 * (ulonglong)param_4" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_4" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) )))) )))) ;) (expression_statement "uVar4 = param_5 * uVar1;" (assignment_expression "uVar4 = param_5 * uVar1" identifier = (binary_expression "param_5 * uVar1" identifier * identifier)) ;) (expression_statement "uVar1 = (uint)(uVar3 < uVar1);" (assignment_expression "uVar1 = (uint)(uVar3 < uVar1)" identifier = (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) )))) ;) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 + param_3 != puVar5)" ( (binary_expression "param_2 + param_3 != puVar5" (binary_expression "param_2 + param_3" identifier + identifier) != identifier) )) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) & LIT) ))) | (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) )) - IDENT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT * IDENT)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "uint __gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  \n  uVar4 = *param_2;\n  if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }\n  uVar4 = param_5 * uVar4;\n  *param_1 = uVar4;\n  if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "__gmpn_pi1_bdiv_q_1(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)" (identifier "__gmpn_pi1_bdiv_q_1") (parameter_list "(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,\n                        uint param_6)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  \n  uVar4 = *param_2;\n  if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }\n  uVar4 = param_5 * uVar4;\n  *param_1 = uVar4;\n  if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" (identifier "uVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (param_6 != 0) {\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_6 != 0)" (( "(") (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }\n    *param_1 = param_5 * uVar4;\n    return uVar1;\n  }" ({ "{") (if_statement "if (param_3 < 2) {\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }\n    else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" (if "if") (parenthesized_expression "(param_3 < 2)" (( "(") (binary_expression "param_3 < 2" (identifier "param_3") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      uVar4 = uVar4 >> (param_6 & 0x1f);\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "uVar4 = uVar4 >> (param_6 & 0x1f);" (assignment_expression "uVar4 = uVar4 >> (param_6 & 0x1f)" (identifier "uVar4") (= "=") (binary_expression "uVar4 >> (param_6 & 0x1f)" (identifier "uVar4") (>> ">>") (parenthesized_expression "(param_6 & 0x1f)" (( "(") (binary_expression "param_6 & 0x1f" (identifier "param_6") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" (else "else") (compound_statement "{\n      puVar5 = param_2 + 1;\n      uVar1 = 0;\n      puVar2 = param_1;\n      do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);\n      param_1 = param_1 + param_3 + -1;\n      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;\n    }" ({ "{") (expression_statement "puVar5 = param_2 + 1;" (assignment_expression "puVar5 = param_2 + 1" (identifier "puVar5") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" (identifier "puVar2") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      } while (param_2 + param_3 != puVar5);" (do "do") (compound_statement "{\n        uVar3 = *puVar5;\n        puVar5 = puVar5 + 1;\n        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);\n        uVar1 = uVar4 - uVar1;\n        uVar6 = param_5 * uVar1;\n        *puVar2 = uVar6;\n        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);\n        uVar4 = uVar3;\n        puVar2 = puVar2 + 1;\n      }" ({ "{") (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" (identifier "uVar3") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);" (assignment_expression "uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f)" (identifier "uVar4") (= "=") (binary_expression "uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f)" (binary_expression "uVar3 << (0x20 - param_6 & 0x1f)" (identifier "uVar3") (<< "<<") (parenthesized_expression "(0x20 - param_6 & 0x1f)" (( "(") (binary_expression "0x20 - param_6 & 0x1f" (binary_expression "0x20 - param_6" (number_literal "0x20") (- "-") (identifier "param_6")) (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "uVar4 >> (param_6 & 0x1f)" (identifier "uVar4") (>> ">>") (parenthesized_expression "(param_6 & 0x1f)" (( "(") (binary_expression "param_6 & 0x1f" (identifier "param_6") (& "&") (number_literal "0x1f")) () ")"))))) (; ";")) (expression_statement "uVar1 = uVar4 - uVar1;" (assignment_expression "uVar1 = uVar4 - uVar1" (identifier "uVar1") (= "=") (binary_expression "uVar4 - uVar1" (identifier "uVar4") (- "-") (identifier "uVar1"))) (; ";")) (expression_statement "uVar6 = param_5 * uVar1;" (assignment_expression "uVar6 = param_5 * uVar1" (identifier "uVar6") (= "=") (binary_expression "param_5 * uVar1" (identifier "param_5") (* "*") (identifier "uVar1"))) (; ";")) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);" (assignment_expression "uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" (identifier "uVar1") (= "=") (binary_expression "(uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" (call_expression "(uint)(uVar4 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar4 < uVar1)" (( "(") (binary_expression "uVar4 < uVar1" (identifier "uVar4") (< "<") (identifier "uVar1")) () ")"))) (+ "+") (cast_expression "(int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar6 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)uVar6 * (ulonglong)param_4" (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6")) (* "*") (cast_expression "(ulonglong)param_4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_4"))) (>> ">>") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" (identifier "uVar4") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 + param_3 != puVar5)" (( "(") (binary_expression "param_2 + param_3 != puVar5" (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (!= "!=") (identifier "puVar5")) () ")")) (; ";")) (expression_statement "param_1 = param_1 + param_3 + -1;" (assignment_expression "param_1 = param_1 + param_3 + -1" (identifier "param_1") (= "=") (binary_expression "param_1 + param_3 + -1" (binary_expression "param_1 + param_3" (identifier "param_1") (+ "+") (identifier "param_3")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;" (assignment_expression "uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1" (identifier "uVar4") (= "=") (binary_expression "(uVar3 >> (param_6 & 0x1f)) - uVar1" (parenthesized_expression "(uVar3 >> (param_6 & 0x1f))" (( "(") (binary_expression "uVar3 >> (param_6 & 0x1f)" (identifier "uVar3") (>> ">>") (parenthesized_expression "(param_6 & 0x1f)" (( "(") (binary_expression "param_6 & 0x1f" (identifier "param_6") (& "&") (number_literal "0x1f")) () ")"))) () ")")) (- "-") (identifier "uVar1"))) (; ";")) (} "}")))) (expression_statement "*param_1 = param_5 * uVar4;" (assignment_expression "*param_1 = param_5 * uVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "param_5 * uVar4" (identifier "param_5") (* "*") (identifier "uVar4"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "uVar4 = param_5 * uVar4;" (assignment_expression "uVar4 = param_5 * uVar4" (identifier "uVar4") (= "=") (binary_expression "param_5 * uVar4" (identifier "param_5") (* "*") (identifier "uVar4"))) (; ";")) (expression_statement "*param_1 = uVar4;" (assignment_expression "*param_1 = uVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (1 < param_3) {\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(1 < param_3)" (( "(") (binary_expression "1 < param_3" (number_literal "1") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    puVar5 = param_2 + 1;\n    uVar1 = 0;\n    puVar2 = param_1 + 1;\n    do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);\n    return uVar1;\n  }" ({ "{") (expression_statement "puVar5 = param_2 + 1;" (assignment_expression "puVar5 = param_2 + 1" (identifier "puVar5") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = param_1 + 1;" (assignment_expression "puVar2 = param_1 + 1" (identifier "puVar2") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    } while (param_2 + param_3 != puVar5);" (do "do") (compound_statement "{\n      uVar3 = *puVar5;\n      puVar5 = puVar5 + 1;\n      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));\n      uVar4 = param_5 * uVar1;\n      uVar1 = (uint)(uVar3 < uVar1);\n      *puVar2 = uVar4;\n      puVar2 = puVar2 + 1;\n    }" ({ "{") (expression_statement "uVar3 = *puVar5;" (assignment_expression "uVar3 = *puVar5" (identifier "uVar3") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));" (assignment_expression "uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" (identifier "uVar1") (= "=") (binary_expression "uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" (identifier "uVar3") (- "-") (parenthesized_expression "(uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20))" (( "(") (binary_expression "uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" (identifier "uVar1") (+ "+") (cast_expression "(int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar4 * (ulonglong)param_4 >> 0x20" (binary_expression "(ulonglong)uVar4 * (ulonglong)param_4" (cast_expression "(ulonglong)uVar4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar4")) (* "*") (cast_expression "(ulonglong)param_4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_4"))) (>> ">>") (number_literal "0x20")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar4 = param_5 * uVar1;" (assignment_expression "uVar4 = param_5 * uVar1" (identifier "uVar4") (= "=") (binary_expression "param_5 * uVar1" (identifier "param_5") (* "*") (identifier "uVar1"))) (; ";")) (expression_statement "uVar1 = (uint)(uVar3 < uVar1);" (assignment_expression "uVar1 = (uint)(uVar3 < uVar1)" (identifier "uVar1") (= "=") (call_expression "(uint)(uVar3 < uVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 < uVar1)" (( "(") (binary_expression "uVar3 < uVar1" (identifier "uVar3") (< "<") (identifier "uVar1")) () ")")))) (; ";")) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 + param_3 != puVar5)" (( "(") (binary_expression "param_2 + param_3 != puVar5" (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (!= "!=") (identifier "puVar5")) () ")")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_2 var_11,type_3 var_4,type_4 var_2,type_1 d,type_1 var_9,int var_1)

{
  type_1 var_8;
  type_5 *var_12;
  type_5 var_6;
  type_5 var_3;
  type_3 var_5;
  type_5 var_7;
  type_2 var_10;
  type_5 uVar8;
  
  var_3 = *var_4;
  if (var_1 != 0) {
    if (var_2 < 2) {
      var_3 = var_3 >> (var_1 & 0x1fU);
      var_8 = 0;
    }
    else {
      var_5 = var_4 + 1;
      var_8 = 0;
      var_10 = var_11;
      do {
        var_6 = *var_5;
        var_5 = var_5 + 1;
        var_7 = var_6 << (0x20U - var_1 & 0x1f) | var_3 >> (var_1 & 0x1fU);
        var_3 = var_7 - var_8;
        uVar8 = var_9 * var_3;
        *var_10 = uVar8;
        var_8 = (type_5)(var_7 < var_3) + (int)((type_6)uVar8 * (type_6)d >> 0x20);
        var_3 = var_6;
        var_10 = var_10 + 1;
      } while (var_4 + var_2 != var_5);
      var_11 = var_11 + var_2 + -1;
      var_3 = (var_6 >> (var_1 & 0x1fU)) - var_8;
    }
    *var_11 = var_9 * var_3;
    return var_8;
  }
  var_3 = var_9 * var_3;
  *var_11 = var_3;
  if (1 < var_2) {
    var_5 = var_4 + 1;
    var_6 = 0;
    var_12 = var_11 + 1;
    do {
      var_7 = *var_5;
      var_5 = var_5 + 1;
      var_6 = var_7 - (var_6 + (int)((type_6)var_3 * (type_6)d >> 0x20));
      var_3 = var_9 * var_6;
      var_6 = (type_5)(var_7 < var_6);
      *var_12 = var_3;
      var_12 = var_12 + 1;
    } while (var_4 + var_2 != var_5);
    return var_6;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (number_literal)))) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) 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))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (return_statement (identifier)))) (return_statement (number_literal)))))

uint MASKED(uint *param_1,uint *param_2,int param_3,uint param_4,int param_5,
                        uint param_6)

{
  uint uVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  uint *puVar5;
  uint uVar6;
  
  uVar4 = *param_2;
  if (param_6 != 0) {
    if (param_3 < 2) {
      uVar4 = uVar4 >> (param_6 & 0x1f);
      uVar1 = 0;
    }
    else {
      puVar5 = param_2 + 1;
      uVar1 = 0;
      puVar2 = param_1;
      do {
        uVar3 = *puVar5;
        puVar5 = puVar5 + 1;
        uVar4 = uVar3 << (0x20 - param_6 & 0x1f) | uVar4 >> (param_6 & 0x1f);
        uVar1 = uVar4 - uVar1;
        uVar6 = param_5 * uVar1;
        *puVar2 = uVar6;
        uVar1 = (uint)(uVar4 < uVar1) + (int)((ulonglong)uVar6 * (ulonglong)param_4 >> 0x20);
        uVar4 = uVar3;
        puVar2 = puVar2 + 1;
      } while (param_2 + param_3 != puVar5);
      param_1 = param_1 + param_3 + -1;
      uVar4 = (uVar3 >> (param_6 & 0x1f)) - uVar1;
    }
    *param_1 = param_5 * uVar4;
    return uVar1;
  }
  uVar4 = param_5 * uVar4;
  *param_1 = uVar4;
  if (1 < param_3) {
    puVar5 = param_2 + 1;
    uVar1 = 0;
    puVar2 = param_1 + 1;
    do {
      uVar3 = *puVar5;
      puVar5 = puVar5 + 1;
      uVar1 = uVar3 - (uVar1 + (int)((ulonglong)uVar4 * (ulonglong)param_4 >> 0x20));
      uVar4 = param_5 * uVar1;
      uVar1 = (uint)(uVar3 < uVar1);
      *puVar2 = uVar4;
      puVar2 = puVar2 + 1;
    } while (param_2 + param_3 != puVar5);
    return uVar1;
  }
  return 0;
}

