
mp_size_t __gmpn_set_str(mp_ptr rp,uchar *str,size_t str_len,int base)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  mp_size_t mVar5;
  int iVar6;
  uint uVar7;
  byte *pbVar8;
  byte *pbVar9;
  uint *puVar10;
  mp_ptr pmVar11;
  int iVar12;
  undefined *puVar13;
  uint uVar14;
  tmp_reentrant_t *__tmp_marker;
  powers_t powtab [32];
  
  puVar13 = PTR___stack_chk_guard_0009d540;
  iVar3 = *(int *)PTR___stack_chk_guard_0009d540;
  if ((base - 1U & base) == 0) {
    pbVar8 = str + (str_len - 1);
    pbVar9 = (byte *)(uint)(pbVar8 < str);
    iVar12 = *(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc);
    if (pbVar9 == (byte *)0x0) {
      pbVar9 = str + -1;
      iVar6 = 0;
      uVar7 = 0;
      uVar14 = 0;
      do {
        bVar1 = *pbVar8;
        uVar2 = uVar14 & 0x1f;
        uVar14 = uVar14 + iVar12;
        uVar7 = uVar7 | (uint)bVar1 << uVar2;
        if (0x1f < (int)uVar14) {
          uVar14 = uVar14 - 0x20;
          pmVar11 = rp + iVar6;
          iVar6 = iVar6 + 1;
          *pmVar11 = uVar7;
          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);
        }
        pbVar8 = pbVar8 + -1;
      } while (pbVar9 != pbVar8);
      mVar5 = iVar6;
      if (uVar7 != 0) {
        mVar5 = iVar6 + 1;
        rp[iVar6] = uVar7;
      }
    }
    else {
      mVar5 = 0;
    }
  }
  else if (str_len < 2000) {
    mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();
    pbVar9 = str;
  }
  else {
    __tmp_marker = (tmp_reentrant_t *)0x0;
    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {
      trap(7);
    }
    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);
    iVar12 = (uVar14 + 0x21) * 4;
    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);
    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);
    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);
    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);
    pbVar9 = str;
    if (__tmp_marker != (tmp_reentrant_t *)0x0) {
      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();
      pbVar9 = str;
    }
  }
  if (iVar3 == *(int *)puVar13) {
    return mVar5;
  }
  puVar13 = PTR___stack_chk_fail_0009d4d0;
  (*(code *)PTR___stack_chk_fail_0009d4d0)();
  puVar10 = (uint *)(iVar3 + ((uint)pbVar9 >> 5) * 4);
  uVar14 = -1 << ((uint)pbVar9 & 0x1f) & ~*puVar10;
  while (puVar10 = puVar10 + 1, uVar14 == 0) {
    uVar14 = ~*puVar10;
  }
  if ((uVar14 & 0xff) != 0) {
    return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +
           (*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2);
  }
  uVar7 = uVar14 >> 8;
  iVar12 = 6;
  if ((uVar7 & 0xff) == 0) {
    uVar7 = uVar14 >> 0x10;
    iVar12 = 0xe;
    if ((uVar7 & 0xff) == 0) {
      uVar7 = uVar14 >> 0x18;
      iVar12 = 0x16;
      if (uVar7 == 0) {
        iVar12 = 0x1e;
      }
    }
  }
  return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +
         (uint)*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7)) + iVar12;
}



int __gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)

{
  byte bVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  uint uVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint *puVar8;
  int iVar9;
  int iVar10;
  undefined *puVar11;
  uint uVar12;
  int local_2b0;
  undefined1 auStack_2ac [640];
  int local_2c;
  
  puVar11 = PTR___stack_chk_guard_0009d540;
  local_2c = *(int *)PTR___stack_chk_guard_0009d540;
  if ((param_4 - 1 & param_4) == 0) {
    pbVar6 = param_2 + (param_3 - 1);
    pbVar7 = (byte *)(uint)(pbVar6 < param_2);
    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);
    if (pbVar7 == (byte *)0x0) {
      pbVar7 = param_2 + -1;
      iVar4 = 0;
      uVar5 = 0;
      uVar12 = 0;
      do {
        bVar1 = *pbVar6;
        uVar2 = uVar12 & 0x1f;
        uVar12 = uVar12 + iVar10;
        uVar5 = uVar5 | (uint)bVar1 << uVar2;
        iVar9 = iVar4 * 4;
        if (0x1f < (int)uVar12) {
          uVar12 = uVar12 - 0x20;
          iVar4 = iVar4 + 1;
          *(uint *)(param_1 + iVar9) = uVar5;
          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);
        }
        pbVar6 = pbVar6 + -1;
      } while (pbVar7 != pbVar6);
      iVar10 = iVar4 * 4;
      if (uVar5 != 0) {
        iVar4 = iVar4 + 1;
        *(uint *)(param_1 + iVar10) = uVar5;
      }
    }
    else {
      iVar4 = 0;
    }
  }
  else if (param_3 < 2000) {
    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();
    pbVar7 = param_2;
  }
  else {
    local_2b0 = 0;
    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {
      trap(7);
    }
    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);
    iVar10 = (uVar12 + 0x21) * 4;
    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);
    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);
    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);
    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);
    pbVar7 = param_2;
    if (local_2b0 != 0) {
      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();
      pbVar7 = param_2;
    }
  }
  if (local_2c == *(int *)puVar11) {
    return iVar4;
  }
  puVar11 = PTR___stack_chk_fail_0009d4d0;
  (*(code *)PTR___stack_chk_fail_0009d4d0)();
  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);
  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;
  while (puVar8 = puVar8 + 1, uVar12 == 0) {
    uVar12 = ~*puVar8;
  }
  if ((uVar12 & 0xff) != 0) {
    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +
           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);
  }
  uVar5 = uVar12 >> 8;
  iVar10 = 6;
  if ((uVar5 & 0xff) == 0) {
    uVar5 = uVar12 >> 0x10;
    iVar10 = 0xe;
    if ((uVar5 & 0xff) == 0) {
      uVar5 = uVar12 >> 0x18;
      iVar10 = 0x16;
      if (uVar5 == 0) {
        iVar10 = 0x1e;
      }
    }
  }
  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +
         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;
}


lui gp,0x6
addiu gp,gp,-0x7494
addu gp,gp,t9
addiu sp,sp,-0x2d8
addiu v1,a3,-0x1
sw s3,0x2c0(sp)
and v1,v1,a3
lw s3,-0x7b00(gp)
sw gp,0x18(sp)
sw s4,0x2c4(sp)
or s4,a0,zero
sw s2,0x2bc(sp)
or s2,a1,zero
sw s1,0x2b8(sp)
or s1,a3,zero
sw s0,0x2b4(sp)
or s0,a2,zero
sw ra,0x2d4(sp)
sw s7,0x2d0(sp)
sw s6,0x2cc(sp)
sw s5,0x2c8(sp)
lw v0,0x0(s3)
sw v0,0x2ac(sp)
beq v1,zero,0x0004c62c
_sltiu v0,a2,0x7d0
bne v0,zero,0x0004c61c
_lw t9,-0x7ab8(gp)
sll v0,a3,0x2
lw v1,-0x7d08(gp)
lw t9,-0x7d50(gp)
addiu s6,sp,0x28
addu v0,v0,a3
sw zero,0x28(sp)
or a0,s6,zero
sll v0,v0,0x2
addu v0,v1,v0
lw s5,0x0(v0)
teq s5,zero
divu a2,s5
mflo s5
addiu s7,s5,0x21
sll s7,s7,0x2
jalr t9
_or a1,s7,zero
or a3,s1,zero
lw gp,0x18(sp)
addiu s1,sp,0x2c
addiu a2,s5,0x1
or a1,v0,zero
lw t9,-0x7e4c(gp)
jalr t9
_or a0,s1,zero
or a1,s7,zero
lw gp,0x18(sp)
lw t9,-0x7d50(gp)
jalr t9
_or a0,s6,zero
or a0,s4,zero
lw gp,0x18(sp)
or a3,s1,zero
or a2,s0,zero
sw v0,0x10(sp)
lw t9,-0x7b58(gp)
jalr t9
_or a1,s2,zero
lw a0,0x28(sp)
bne a0,zero,0x0004c6c0
_lw gp,0x18(sp)
lw a0,0x2ac(sp)
lw v1,0x0(s3)
bne a0,v1,0x0004c6d8
_lw ra,0x2d4(sp)
lw s7,0x2d0(sp)
lw s6,0x2cc(sp)
lw s5,0x2c8(sp)
lw s4,0x2c4(sp)
lw s3,0x2c0(sp)
lw s2,0x2bc(sp)
lw s1,0x2b8(sp)
lw s0,0x2b4(sp)
jr ra
_addiu sp,sp,0x2d8
jalr t9
_nop
b 0x0004c5e4
_lw gp,0x18(sp)
sll v0,a3,0x2
addiu a0,a2,-0x1
addu s1,v0,a3
lw v0,-0x7d08(gp)
addu a0,a1,a0
sll s1,s1,0x2
sltu a1,a0,a1
addu s1,v0,s1
bne a1,zero,0x0004c6b8
_lw t1,0xc(s1)
addiu a1,s2,-0x1
or v0,zero,zero
or a2,zero,zero
lbu a3,0x0(a0)
sllv t0,a3,v1
addu v1,v1,t1
or a2,a2,t0
slti t0,v1,0x20
bne t0,zero,0x0004c694
_sll t0,v0,0x2
addiu v1,v1,-0x20
addu t0,s4,t0
subu t2,t1,v1
addiu v0,v0,0x1
sw a2,0x0(t0)
srav a2,a3,t2
addiu a0,a0,-0x1
bne a1,a0,0x0004c660
_nop
beq a2,zero,0x0004c5e4
_sll v1,v0,0x2
addiu v0,v0,0x1
addu s4,s4,v1
b 0x0004c5e4
_sw a2,0x0(s4)
b 0x0004c5e4
_or v0,zero,zero
lw t9,-0x7a28(gp)
jalr t9
_sw v0,0x24(sp)
lw gp,0x18(sp)
b 0x0004c5e4
_lw v0,0x24(sp)
lw t9,-0x7b70(gp)
jalr t9
_nop
nop
nop
nop
(translation_unit "int __gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int local_2b0;\n  undefined1 auStack_2ac [640];\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0009d540;\n  local_2c = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }\n  if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }\n  puVar11 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);\n  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;\n  while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }\n  if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }\n  uVar5 = uVar12 >> 8;\n  iVar10 = 6;\n  if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;\n}\n\n" (function_definition "int __gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int local_2b0;\n  undefined1 auStack_2ac [640];\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0009d540;\n  local_2c = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }\n  if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }\n  puVar11 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);\n  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;\n  while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }\n  if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }\n  uVar5 = uVar12 >> 8;\n  iVar10 = 6;\n  if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;\n}" primitive_type (function_declarator "__gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)" identifier (parameter_list "(int param_1,byte *param_2,uint param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int local_2b0;\n  undefined1 auStack_2ac [640];\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0009d540;\n  local_2c = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }\n  if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }\n  puVar11 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);\n  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;\n  while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }\n  if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }\n  uVar5 = uVar12 >> 8;\n  iVar10 = 6;\n  if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int local_2b0;" primitive_type identifier ;) (declaration "undefined1 auStack_2ac [640];" type_identifier (array_declarator "auStack_2ac [640]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_0009d540;" (assignment_expression "puVar11 = PTR___stack_chk_guard_0009d540" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0009d540;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0009d540" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0009d540" * (cast_expression "(int *)PTR___stack_chk_guard_0009d540" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" if (parenthesized_expression "((param_4 - 1 & param_4) == 0)" ( (binary_expression "(param_4 - 1 & param_4) == 0" (parenthesized_expression "(param_4 - 1 & param_4)" ( (binary_expression "param_4 - 1 & param_4" (binary_expression "param_4 - 1" identifier - number_literal) & identifier) )) == number_literal) )) (compound_statement "{\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }" { (expression_statement "pbVar6 = param_2 + (param_3 - 1);" (assignment_expression "pbVar6 = param_2 + (param_3 - 1)" identifier = (binary_expression "param_2 + (param_3 - 1)" identifier + (parenthesized_expression "(param_3 - 1)" ( (binary_expression "param_3 - 1" identifier - number_literal) )))) ;) (expression_statement "pbVar7 = (byte *)(uint)(pbVar6 < param_2);" (assignment_expression "pbVar7 = (byte *)(uint)(pbVar6 < param_2)" identifier = (cast_expression "(byte *)(uint)(pbVar6 < param_2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(pbVar6 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar6 < param_2)" ( (binary_expression "pbVar6 < param_2" identifier < identifier) ))))) ;) (expression_statement "iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);" (assignment_expression "iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" identifier = (pointer_expression "*(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" * (cast_expression "(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" ( (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc" (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" identifier + (binary_expression "param_4 * 0x14" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }" if (parenthesized_expression "(pbVar7 == (byte *)0x0)" ( (binary_expression "pbVar7 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }" { (expression_statement "pbVar7 = param_2 + -1;" (assignment_expression "pbVar7 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);" do (compound_statement "{\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      }" { (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "uVar2 = uVar12 & 0x1f;" (assignment_expression "uVar2 = uVar12 & 0x1f" identifier = (binary_expression "uVar12 & 0x1f" identifier & number_literal)) ;) (expression_statement "uVar12 = uVar12 + iVar10;" (assignment_expression "uVar12 = uVar12 + iVar10" identifier = (binary_expression "uVar12 + iVar10" identifier + identifier)) ;) (expression_statement "uVar5 = uVar5 | (uint)bVar1 << uVar2;" (assignment_expression "uVar5 = uVar5 | (uint)bVar1 << uVar2" identifier = (binary_expression "uVar5 | (uint)bVar1 << uVar2" identifier | (binary_expression "(uint)bVar1 << uVar2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << identifier))) ;) (expression_statement "iVar9 = iVar4 * 4;" (assignment_expression "iVar9 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (if_statement "if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }" if (parenthesized_expression "(0x1f < (int)uVar12)" ( (binary_expression "0x1f < (int)uVar12" number_literal < (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }" { (expression_statement "uVar12 = uVar12 - 0x20;" (assignment_expression "uVar12 = uVar12 - 0x20" identifier = (binary_expression "uVar12 - 0x20" identifier - number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + iVar9) = uVar5;" (assignment_expression "*(uint *)(param_1 + iVar9) = uVar5" (pointer_expression "*(uint *)(param_1 + iVar9)" * (cast_expression "(uint *)(param_1 + iVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar9)" ( (binary_expression "param_1 + iVar9" identifier + identifier) )))) = identifier) ;) (expression_statement "uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);" (assignment_expression "uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f)" identifier = (binary_expression "(int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f)" (cast_expression "(int)(uint)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) >> (parenthesized_expression "(iVar10 - uVar12 & 0x1f)" ( (binary_expression "iVar10 - uVar12 & 0x1f" (binary_expression "iVar10 - uVar12" identifier - identifier) & number_literal) )))) ;) })) (expression_statement "pbVar6 = pbVar6 + -1;" (assignment_expression "pbVar6 = pbVar6 + -1" identifier = (binary_expression "pbVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar7 != pbVar6)" ( (binary_expression "pbVar7 != pbVar6" identifier != identifier) )) ;) (expression_statement "iVar10 = iVar4 * 4;" (assignment_expression "iVar10 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (if_statement "if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + iVar10) = uVar5;" (assignment_expression "*(uint *)(param_1 + iVar10) = uVar5" (pointer_expression "*(uint *)(param_1 + iVar10)" * (cast_expression "(uint *)(param_1 + iVar10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar10)" ( (binary_expression "param_1 + iVar10" identifier + identifier) )))) = identifier) ;) })) }) (else_clause "else {\n      iVar4 = 0;\n    }" else (compound_statement "{\n      iVar4 = 0;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) }) (else_clause "else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" else (if_statement "if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" if (parenthesized_expression "(param_3 < 2000)" ( (binary_expression "param_3 < 2000" identifier < number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }" { (expression_statement "iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();" (assignment_expression "iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)()" identifier = (call_expression "(*(code *)PTR___gmpn_bc_set_str_0009d588)()" (parenthesized_expression "(*(code *)PTR___gmpn_bc_set_str_0009d588)" ( (pointer_expression "*(code *)PTR___gmpn_bc_set_str_0009d588" * (cast_expression "(code *)PTR___gmpn_bc_set_str_0009d588" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" identifier = identifier) ;) }) (else_clause "else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" else (compound_statement "{\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" { (expression_statement "local_2b0 = 0;" (assignment_expression "local_2b0 = 0" identifier = number_literal) ;) (if_statement "if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0)" ( (binary_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0" (pointer_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" * (cast_expression "(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" ( (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" identifier + (binary_expression "param_4 * 0x14" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);" (assignment_expression "uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" identifier = (binary_expression "param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" identifier / (pointer_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" * (cast_expression "(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" ( (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" identifier + (binary_expression "param_4 * 0x14" identifier * number_literal)) )))))) ;) (expression_statement "iVar10 = (uVar12 + 0x21) * 4;" (assignment_expression "iVar10 = (uVar12 + 0x21) * 4" identifier = (binary_expression "(uVar12 + 0x21) * 4" (parenthesized_expression "(uVar12 + 0x21)" ( (binary_expression "uVar12 + 0x21" identifier + number_literal) )) * number_literal)) ;) (expression_statement "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);" (assignment_expression "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" identifier = (call_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_2b0,iVar10)" ( (pointer_expression "&local_2b0" & identifier) , identifier )))) ;) (expression_statement "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);" (call_expression "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4)" (parenthesized_expression "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)" ( (pointer_expression "*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4" * (cast_expression "(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_2ac,uVar3,uVar12 + 1,param_4)" ( identifier , identifier , (binary_expression "uVar12 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);" (assignment_expression "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" identifier = (call_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_2b0,iVar10)" ( (pointer_expression "&local_2b0" & identifier) , identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);" (assignment_expression "iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3)" identifier = (call_expression "(*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3)" (parenthesized_expression "(*(code *)PTR___gmpn_dc_set_str_0009d4e8)" ( (pointer_expression "*(code *)PTR___gmpn_dc_set_str_0009d4e8" * (cast_expression "(code *)PTR___gmpn_dc_set_str_0009d4e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,auStack_2ac,uVar3)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" identifier = identifier) ;) (if_statement "if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }" if (parenthesized_expression "(local_2b0 != 0)" ( (binary_expression "local_2b0 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }" { (expression_statement "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();" (call_expression "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)()" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_free_0009d618" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_free_0009d618" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" identifier = identifier) ;) })) }))))) (if_statement "if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar11)" ( (binary_expression "local_2c == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "puVar11 = PTR___stack_chk_fail_0009d4d0;" (assignment_expression "puVar11 = PTR___stack_chk_fail_0009d4d0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0009d4d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_0009d4d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0009d4d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0009d4d0" * (cast_expression "(code *)PTR___stack_chk_fail_0009d4d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);" (assignment_expression "puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4)" identifier = (cast_expression "(uint *)(local_2c + ((uint)pbVar7 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_2c + ((uint)pbVar7 >> 5) * 4)" ( (binary_expression "local_2c + ((uint)pbVar7 >> 5) * 4" identifier + (binary_expression "((uint)pbVar7 >> 5) * 4" (parenthesized_expression "((uint)pbVar7 >> 5)" ( (binary_expression "(uint)pbVar7 >> 5" (cast_expression "(uint)pbVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )) * number_literal)) )))) ;) (expression_statement "uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;" (assignment_expression "uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8" identifier = (binary_expression "-1 << ((uint)pbVar7 & 0x1f) & ~*puVar8" (binary_expression "-1 << ((uint)pbVar7 & 0x1f)" number_literal << (parenthesized_expression "((uint)pbVar7 & 0x1f)" ( (binary_expression "(uint)pbVar7 & 0x1f" (cast_expression "(uint)pbVar7" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) & (unary_expression "~*puVar8" ~ (pointer_expression "*puVar8" * identifier)))) ;) (while_statement "while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }" while (parenthesized_expression "(puVar8 = puVar8 + 1, uVar12 == 0)" ( (comma_expression "puVar8 = puVar8 + 1, uVar12 == 0" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) , (binary_expression "uVar12 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar12 = ~*puVar8;\n  }" { (expression_statement "uVar12 = ~*puVar8;" (assignment_expression "uVar12 = ~*puVar8" identifier = (unary_expression "~*puVar8" ~ (pointer_expression "*puVar8" * identifier))) ;) })) (if_statement "if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }" if (parenthesized_expression "((uVar12 & 0xff) != 0)" ( (binary_expression "(uVar12 & 0xff) != 0" (parenthesized_expression "(uVar12 & 0xff)" ( (binary_expression "uVar12 & 0xff" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }" { (return_statement "return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);" return (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2)" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar8 - local_2c >> 2) + -1)" ( (binary_expression "((int)puVar8 - local_2c >> 2) + -1" (parenthesized_expression "((int)puVar8 - local_2c >> 2)" ( (binary_expression "(int)puVar8 - local_2c >> 2" (binary_expression "(int)puVar8 - local_2c" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "(*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2)" ( (binary_expression "*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2" (pointer_expression "*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" * (cast_expression "(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" ( (binary_expression "*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)" (pointer_expression "*(int *)(puVar11 + 0x50a9c)" * (cast_expression "(int *)(puVar11 + 0x50a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x50a9c)" ( (binary_expression "puVar11 + 0x50a9c" identifier + number_literal) )))) + (parenthesized_expression "(-uVar12 & uVar12)" ( (binary_expression "-uVar12 & uVar12" (unary_expression "-uVar12" - identifier) & identifier) ))) )))) - number_literal) ))) ;) })) (expression_statement "uVar5 = uVar12 >> 8;" (assignment_expression "uVar5 = uVar12 >> 8" identifier = (binary_expression "uVar12 >> 8" identifier >> number_literal)) ;) (expression_statement "iVar10 = 6;" (assignment_expression "iVar10 = 6" identifier = number_literal) ;) (if_statement "if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }" if (parenthesized_expression "((uVar5 & 0xff) == 0)" ( (binary_expression "(uVar5 & 0xff) == 0" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }" { (expression_statement "uVar5 = uVar12 >> 0x10;" (assignment_expression "uVar5 = uVar12 >> 0x10" identifier = (binary_expression "uVar12 >> 0x10" identifier >> number_literal)) ;) (expression_statement "iVar10 = 0xe;" (assignment_expression "iVar10 = 0xe" identifier = number_literal) ;) (if_statement "if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }" if (parenthesized_expression "((uVar5 & 0xff) == 0)" ( (binary_expression "(uVar5 & 0xff) == 0" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }" { (expression_statement "uVar5 = uVar12 >> 0x18;" (assignment_expression "uVar5 = uVar12 >> 0x18" identifier = (binary_expression "uVar12 >> 0x18" identifier >> number_literal)) ;) (expression_statement "iVar10 = 0x16;" (assignment_expression "iVar10 = 0x16" identifier = number_literal) ;) (if_statement "if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar10 = 0x1e;\n      }" { (expression_statement "iVar10 = 0x1e;" (assignment_expression "iVar10 = 0x1e" identifier = number_literal) ;) })) })) })) (return_statement "return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;" return (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar8 - local_2c >> 2) + -1)" ( (binary_expression "((int)puVar8 - local_2c >> 2) + -1" (parenthesized_expression "((int)puVar8 - local_2c >> 2)" ( (binary_expression "(int)puVar8 - local_2c >> 2" (binary_expression "(int)puVar8 - local_2c" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (binary_expression "(uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" ( (binary_expression "*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)" (pointer_expression "*(int *)(puVar11 + 0x50a9c)" * (cast_expression "(int *)(puVar11 + 0x50a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x50a9c)" ( (binary_expression "puVar11 + 0x50a9c" identifier + number_literal) )))) + (parenthesized_expression "(-uVar5 & uVar5)" ( (binary_expression "-uVar5 & uVar5" (unary_expression "-uVar5" - identifier) & identifier) ))) ))))) + identifier) ;) })))
(translation_unit "mp_size_t __gmpn_set_str(mp_ptr rp,uchar *str,size_t str_len,int base)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  mp_size_t mVar5;\n  int iVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint *puVar10;\n  mp_ptr pmVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  tmp_reentrant_t *__tmp_marker;\n  powers_t powtab [32];\n  \n  puVar13 = PTR___stack_chk_guard_0009d540;\n  iVar3 = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((base - 1U & base) == 0) {\n    pbVar8 = str + (str_len - 1);\n    pbVar9 = (byte *)(uint)(pbVar8 < str);\n    iVar12 = *(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc);\n    if (pbVar9 == (byte *)0x0) {\n      pbVar9 = str + -1;\n      iVar6 = 0;\n      uVar7 = 0;\n      uVar14 = 0;\n      do {\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      } while (pbVar9 != pbVar8);\n      mVar5 = iVar6;\n      if (uVar7 != 0) {\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }\n    }\n    else {\n      mVar5 = 0;\n    }\n  }\n  else if (str_len < 2000) {\n    mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar9 = str;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }\n    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);\n    iVar12 = (uVar14 + 0x21) * 4;\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);\n    pbVar9 = str;\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }\n  }\n  if (iVar3 == *(int *)puVar13) {\n    return mVar5;\n  }\n  puVar13 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar10 = (uint *)(iVar3 + ((uint)pbVar9 >> 5) * 4);\n  uVar14 = -1 << ((uint)pbVar9 & 0x1f) & ~*puVar10;\n  while (puVar10 = puVar10 + 1, uVar14 == 0) {\n    uVar14 = ~*puVar10;\n  }\n  if ((uVar14 & 0xff) != 0) {\n    return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2);\n  }\n  uVar7 = uVar14 >> 8;\n  iVar12 = 6;\n  if ((uVar7 & 0xff) == 0) {\n    uVar7 = uVar14 >> 0x10;\n    iVar12 = 0xe;\n    if ((uVar7 & 0xff) == 0) {\n      uVar7 = uVar14 >> 0x18;\n      iVar12 = 0x16;\n      if (uVar7 == 0) {\n        iVar12 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7)) + iVar12;\n}\n\n" (function_definition "mp_size_t __gmpn_set_str(mp_ptr rp,uchar *str,size_t str_len,int base)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  mp_size_t mVar5;\n  int iVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint *puVar10;\n  mp_ptr pmVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  tmp_reentrant_t *__tmp_marker;\n  powers_t powtab [32];\n  \n  puVar13 = PTR___stack_chk_guard_0009d540;\n  iVar3 = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((base - 1U & base) == 0) {\n    pbVar8 = str + (str_len - 1);\n    pbVar9 = (byte *)(uint)(pbVar8 < str);\n    iVar12 = *(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc);\n    if (pbVar9 == (byte *)0x0) {\n      pbVar9 = str + -1;\n      iVar6 = 0;\n      uVar7 = 0;\n      uVar14 = 0;\n      do {\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      } while (pbVar9 != pbVar8);\n      mVar5 = iVar6;\n      if (uVar7 != 0) {\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }\n    }\n    else {\n      mVar5 = 0;\n    }\n  }\n  else if (str_len < 2000) {\n    mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar9 = str;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }\n    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);\n    iVar12 = (uVar14 + 0x21) * 4;\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);\n    pbVar9 = str;\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }\n  }\n  if (iVar3 == *(int *)puVar13) {\n    return mVar5;\n  }\n  puVar13 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar10 = (uint *)(iVar3 + ((uint)pbVar9 >> 5) * 4);\n  uVar14 = -1 << ((uint)pbVar9 & 0x1f) & ~*puVar10;\n  while (puVar10 = puVar10 + 1, uVar14 == 0) {\n    uVar14 = ~*puVar10;\n  }\n  if ((uVar14 & 0xff) != 0) {\n    return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2);\n  }\n  uVar7 = uVar14 >> 8;\n  iVar12 = 6;\n  if ((uVar7 & 0xff) == 0) {\n    uVar7 = uVar14 >> 0x10;\n    iVar12 = 0xe;\n    if ((uVar7 & 0xff) == 0) {\n      uVar7 = uVar14 >> 0x18;\n      iVar12 = 0x16;\n      if (uVar7 == 0) {\n        iVar12 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7)) + iVar12;\n}" type_identifier (function_declarator "__gmpn_set_str(mp_ptr rp,uchar *str,size_t str_len,int base)" identifier (parameter_list "(mp_ptr rp,uchar *str,size_t str_len,int base)" ( (parameter_declaration "mp_ptr rp" type_identifier identifier) , (parameter_declaration "uchar *str" type_identifier (pointer_declarator "*str" * identifier)) , (parameter_declaration "size_t str_len" primitive_type identifier) , (parameter_declaration "int base" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  mp_size_t mVar5;\n  int iVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint *puVar10;\n  mp_ptr pmVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  tmp_reentrant_t *__tmp_marker;\n  powers_t powtab [32];\n  \n  puVar13 = PTR___stack_chk_guard_0009d540;\n  iVar3 = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((base - 1U & base) == 0) {\n    pbVar8 = str + (str_len - 1);\n    pbVar9 = (byte *)(uint)(pbVar8 < str);\n    iVar12 = *(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc);\n    if (pbVar9 == (byte *)0x0) {\n      pbVar9 = str + -1;\n      iVar6 = 0;\n      uVar7 = 0;\n      uVar14 = 0;\n      do {\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      } while (pbVar9 != pbVar8);\n      mVar5 = iVar6;\n      if (uVar7 != 0) {\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }\n    }\n    else {\n      mVar5 = 0;\n    }\n  }\n  else if (str_len < 2000) {\n    mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar9 = str;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }\n    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);\n    iVar12 = (uVar14 + 0x21) * 4;\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);\n    pbVar9 = str;\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }\n  }\n  if (iVar3 == *(int *)puVar13) {\n    return mVar5;\n  }\n  puVar13 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar10 = (uint *)(iVar3 + ((uint)pbVar9 >> 5) * 4);\n  uVar14 = -1 << ((uint)pbVar9 & 0x1f) & ~*puVar10;\n  while (puVar10 = puVar10 + 1, uVar14 == 0) {\n    uVar14 = ~*puVar10;\n  }\n  if ((uVar14 & 0xff) != 0) {\n    return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2);\n  }\n  uVar7 = uVar14 >> 8;\n  iVar12 = 6;\n  if ((uVar7 & 0xff) == 0) {\n    uVar7 = uVar14 >> 0x10;\n    iVar12 = 0xe;\n    if ((uVar7 & 0xff) == 0) {\n      uVar7 = uVar14 >> 0x18;\n      iVar12 = 0x16;\n      if (uVar7 == 0) {\n        iVar12 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7)) + iVar12;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "mp_size_t mVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "mp_ptr pmVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "tmp_reentrant_t *__tmp_marker;" type_identifier (pointer_declarator "*__tmp_marker" * identifier) ;) (declaration "powers_t powtab [32];" type_identifier (array_declarator "powtab [32]" identifier [ number_literal ]) ;) (expression_statement "puVar13 = PTR___stack_chk_guard_0009d540;" (assignment_expression "puVar13 = PTR___stack_chk_guard_0009d540" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_0009d540;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_0009d540" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0009d540" * (cast_expression "(int *)PTR___stack_chk_guard_0009d540" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((base - 1U & base) == 0) {\n    pbVar8 = str + (str_len - 1);\n    pbVar9 = (byte *)(uint)(pbVar8 < str);\n    iVar12 = *(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc);\n    if (pbVar9 == (byte *)0x0) {\n      pbVar9 = str + -1;\n      iVar6 = 0;\n      uVar7 = 0;\n      uVar14 = 0;\n      do {\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      } while (pbVar9 != pbVar8);\n      mVar5 = iVar6;\n      if (uVar7 != 0) {\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }\n    }\n    else {\n      mVar5 = 0;\n    }\n  }\n  else if (str_len < 2000) {\n    mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar9 = str;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }\n    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);\n    iVar12 = (uVar14 + 0x21) * 4;\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);\n    pbVar9 = str;\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }\n  }" if (parenthesized_expression "((base - 1U & base) == 0)" ( (binary_expression "(base - 1U & base) == 0" (parenthesized_expression "(base - 1U & base)" ( (binary_expression "base - 1U & base" (binary_expression "base - 1U" identifier - number_literal) & identifier) )) == number_literal) )) (compound_statement "{\n    pbVar8 = str + (str_len - 1);\n    pbVar9 = (byte *)(uint)(pbVar8 < str);\n    iVar12 = *(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc);\n    if (pbVar9 == (byte *)0x0) {\n      pbVar9 = str + -1;\n      iVar6 = 0;\n      uVar7 = 0;\n      uVar14 = 0;\n      do {\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      } while (pbVar9 != pbVar8);\n      mVar5 = iVar6;\n      if (uVar7 != 0) {\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }\n    }\n    else {\n      mVar5 = 0;\n    }\n  }" { (expression_statement "pbVar8 = str + (str_len - 1);" (assignment_expression "pbVar8 = str + (str_len - 1)" identifier = (binary_expression "str + (str_len - 1)" identifier + (parenthesized_expression "(str_len - 1)" ( (binary_expression "str_len - 1" identifier - number_literal) )))) ;) (expression_statement "pbVar9 = (byte *)(uint)(pbVar8 < str);" (assignment_expression "pbVar9 = (byte *)(uint)(pbVar8 < str)" identifier = (cast_expression "(byte *)(uint)(pbVar8 < str)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(pbVar8 < str)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar8 < str)" ( (binary_expression "pbVar8 < str" identifier < identifier) ))))) ;) (expression_statement "iVar12 = *(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc);" (assignment_expression "iVar12 = *(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc)" identifier = (pointer_expression "*(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc)" * (cast_expression "(int *)(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc)" ( (binary_expression "PTR___gmpn_bases_0009d338 + base * 0x14 + 0xc" (binary_expression "PTR___gmpn_bases_0009d338 + base * 0x14" identifier + (binary_expression "base * 0x14" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (pbVar9 == (byte *)0x0) {\n      pbVar9 = str + -1;\n      iVar6 = 0;\n      uVar7 = 0;\n      uVar14 = 0;\n      do {\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      } while (pbVar9 != pbVar8);\n      mVar5 = iVar6;\n      if (uVar7 != 0) {\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }\n    }\n    else {\n      mVar5 = 0;\n    }" if (parenthesized_expression "(pbVar9 == (byte *)0x0)" ( (binary_expression "pbVar9 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pbVar9 = str + -1;\n      iVar6 = 0;\n      uVar7 = 0;\n      uVar14 = 0;\n      do {\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      } while (pbVar9 != pbVar8);\n      mVar5 = iVar6;\n      if (uVar7 != 0) {\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }\n    }" { (expression_statement "pbVar9 = str + -1;" (assignment_expression "pbVar9 = str + -1" identifier = (binary_expression "str + -1" identifier + number_literal)) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (do_statement "do {\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      } while (pbVar9 != pbVar8);" do (compound_statement "{\n        bVar1 = *pbVar8;\n        uVar2 = uVar14 & 0x1f;\n        uVar14 = uVar14 + iVar12;\n        uVar7 = uVar7 | (uint)bVar1 << uVar2;\n        if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }\n        pbVar8 = pbVar8 + -1;\n      }" { (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "uVar2 = uVar14 & 0x1f;" (assignment_expression "uVar2 = uVar14 & 0x1f" identifier = (binary_expression "uVar14 & 0x1f" identifier & number_literal)) ;) (expression_statement "uVar14 = uVar14 + iVar12;" (assignment_expression "uVar14 = uVar14 + iVar12" identifier = (binary_expression "uVar14 + iVar12" identifier + identifier)) ;) (expression_statement "uVar7 = uVar7 | (uint)bVar1 << uVar2;" (assignment_expression "uVar7 = uVar7 | (uint)bVar1 << uVar2" identifier = (binary_expression "uVar7 | (uint)bVar1 << uVar2" identifier | (binary_expression "(uint)bVar1 << uVar2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << identifier))) ;) (if_statement "if (0x1f < (int)uVar14) {\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }" if (parenthesized_expression "(0x1f < (int)uVar14)" ( (binary_expression "0x1f < (int)uVar14" number_literal < (cast_expression "(int)uVar14" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          uVar14 = uVar14 - 0x20;\n          pmVar11 = rp + iVar6;\n          iVar6 = iVar6 + 1;\n          *pmVar11 = uVar7;\n          uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);\n        }" { (expression_statement "uVar14 = uVar14 - 0x20;" (assignment_expression "uVar14 = uVar14 - 0x20" identifier = (binary_expression "uVar14 - 0x20" identifier - number_literal)) ;) (expression_statement "pmVar11 = rp + iVar6;" (assignment_expression "pmVar11 = rp + iVar6" identifier = (binary_expression "rp + iVar6" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pmVar11 = uVar7;" (assignment_expression "*pmVar11 = uVar7" (pointer_expression "*pmVar11" * identifier) = identifier) ;) (expression_statement "uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f);" (assignment_expression "uVar7 = (int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f)" identifier = (binary_expression "(int)(uint)bVar1 >> (iVar12 - uVar14 & 0x1f)" (cast_expression "(int)(uint)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) >> (parenthesized_expression "(iVar12 - uVar14 & 0x1f)" ( (binary_expression "iVar12 - uVar14 & 0x1f" (binary_expression "iVar12 - uVar14" identifier - identifier) & number_literal) )))) ;) })) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" identifier = (binary_expression "pbVar8 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar9 != pbVar8)" ( (binary_expression "pbVar9 != pbVar8" identifier != identifier) )) ;) (expression_statement "mVar5 = iVar6;" (assignment_expression "mVar5 = iVar6" identifier = identifier) ;) (if_statement "if (uVar7 != 0) {\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        mVar5 = iVar6 + 1;\n        rp[iVar6] = uVar7;\n      }" { (expression_statement "mVar5 = iVar6 + 1;" (assignment_expression "mVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "rp[iVar6] = uVar7;" (assignment_expression "rp[iVar6] = uVar7" (subscript_expression "rp[iVar6]" identifier [ identifier ]) = identifier) ;) })) }) (else_clause "else {\n      mVar5 = 0;\n    }" else (compound_statement "{\n      mVar5 = 0;\n    }" { (expression_statement "mVar5 = 0;" (assignment_expression "mVar5 = 0" identifier = number_literal) ;) }))) }) (else_clause "else if (str_len < 2000) {\n    mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar9 = str;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }\n    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);\n    iVar12 = (uVar14 + 0x21) * 4;\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);\n    pbVar9 = str;\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }\n  }" else (if_statement "if (str_len < 2000) {\n    mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar9 = str;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }\n    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);\n    iVar12 = (uVar14 + 0x21) * 4;\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);\n    pbVar9 = str;\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }\n  }" if (parenthesized_expression "(str_len < 2000)" ( (binary_expression "str_len < 2000" identifier < number_literal) )) (compound_statement "{\n    mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar9 = str;\n  }" { (expression_statement "mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();" (assignment_expression "mVar5 = (*(code *)PTR___gmpn_bc_set_str_0009d588)()" identifier = (call_expression "(*(code *)PTR___gmpn_bc_set_str_0009d588)()" (parenthesized_expression "(*(code *)PTR___gmpn_bc_set_str_0009d588)" ( (pointer_expression "*(code *)PTR___gmpn_bc_set_str_0009d588" * (cast_expression "(code *)PTR___gmpn_bc_set_str_0009d588" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pbVar9 = str;" (assignment_expression "pbVar9 = str" identifier = identifier) ;) }) (else_clause "else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }\n    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);\n    iVar12 = (uVar14 + 0x21) * 4;\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);\n    pbVar9 = str;\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }\n  }" else (compound_statement "{\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }\n    uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);\n    iVar12 = (uVar14 + 0x21) * 4;\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);\n    uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);\n    mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);\n    pbVar9 = str;\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }\n  }" { (expression_statement "__tmp_marker = (tmp_reentrant_t *)0x0;" (assignment_expression "__tmp_marker = (tmp_reentrant_t *)0x0" identifier = (cast_expression "(tmp_reentrant_t *)0x0" ( (type_descriptor "tmp_reentrant_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0)" ( (binary_expression "*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14) == 0" (pointer_expression "*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14)" * (cast_expression "(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + base * 0x14)" ( (binary_expression "PTR___gmpn_bases_0009d338 + base * 0x14" identifier + (binary_expression "base * 0x14" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14);" (assignment_expression "uVar14 = str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14)" identifier = (binary_expression "str_len / *(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14)" identifier / (pointer_expression "*(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14)" * (cast_expression "(uint *)(PTR___gmpn_bases_0009d338 + base * 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + base * 0x14)" ( (binary_expression "PTR___gmpn_bases_0009d338 + base * 0x14" identifier + (binary_expression "base * 0x14" identifier * number_literal)) )))))) ;) (expression_statement "iVar12 = (uVar14 + 0x21) * 4;" (assignment_expression "iVar12 = (uVar14 + 0x21) * 4" identifier = (binary_expression "(uVar14 + 0x21) * 4" (parenthesized_expression "(uVar14 + 0x21)" ( (binary_expression "uVar14 + 0x21" identifier + number_literal) )) * number_literal)) ;) (expression_statement "uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);" (assignment_expression "uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12)" identifier = (call_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12)" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&__tmp_marker,iVar12)" ( (pointer_expression "&__tmp_marker" & identifier) , identifier )))) ;) (expression_statement "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base);" (call_expression "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(powtab,uVar4,uVar14 + 1,base)" (parenthesized_expression "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)" ( (pointer_expression "*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4" * (cast_expression "(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(powtab,uVar4,uVar14 + 1,base)" ( identifier , identifier , (binary_expression "uVar14 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12);" (assignment_expression "uVar4 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12)" identifier = (call_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&__tmp_marker,iVar12)" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&__tmp_marker,iVar12)" ( (pointer_expression "&__tmp_marker" & identifier) , identifier )))) ;) (expression_statement "mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4);" (assignment_expression "mVar5 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4)" identifier = (call_expression "(*(code *)PTR___gmpn_dc_set_str_0009d4e8)(rp,str,str_len,powtab,uVar4)" (parenthesized_expression "(*(code *)PTR___gmpn_dc_set_str_0009d4e8)" ( (pointer_expression "*(code *)PTR___gmpn_dc_set_str_0009d4e8" * (cast_expression "(code *)PTR___gmpn_dc_set_str_0009d4e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(rp,str,str_len,powtab,uVar4)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "pbVar9 = str;" (assignment_expression "pbVar9 = str" identifier = identifier) ;) (if_statement "if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }" if (parenthesized_expression "(__tmp_marker != (tmp_reentrant_t *)0x0)" ( (binary_expression "__tmp_marker != (tmp_reentrant_t *)0x0" identifier != (cast_expression "(tmp_reentrant_t *)0x0" ( (type_descriptor "tmp_reentrant_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar9 = str;\n    }" { (expression_statement "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();" (call_expression "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)()" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_free_0009d618" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_free_0009d618" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pbVar9 = str;" (assignment_expression "pbVar9 = str" identifier = identifier) ;) })) }))))) (if_statement "if (iVar3 == *(int *)puVar13) {\n    return mVar5;\n  }" if (parenthesized_expression "(iVar3 == *(int *)puVar13)" ( (binary_expression "iVar3 == *(int *)puVar13" identifier == (pointer_expression "*(int *)puVar13" * (cast_expression "(int *)puVar13" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return mVar5;\n  }" { (return_statement "return mVar5;" return identifier ;) })) (expression_statement "puVar13 = PTR___stack_chk_fail_0009d4d0;" (assignment_expression "puVar13 = PTR___stack_chk_fail_0009d4d0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0009d4d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_0009d4d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0009d4d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0009d4d0" * (cast_expression "(code *)PTR___stack_chk_fail_0009d4d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar10 = (uint *)(iVar3 + ((uint)pbVar9 >> 5) * 4);" (assignment_expression "puVar10 = (uint *)(iVar3 + ((uint)pbVar9 >> 5) * 4)" identifier = (cast_expression "(uint *)(iVar3 + ((uint)pbVar9 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + ((uint)pbVar9 >> 5) * 4)" ( (binary_expression "iVar3 + ((uint)pbVar9 >> 5) * 4" identifier + (binary_expression "((uint)pbVar9 >> 5) * 4" (parenthesized_expression "((uint)pbVar9 >> 5)" ( (binary_expression "(uint)pbVar9 >> 5" (cast_expression "(uint)pbVar9" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )) * number_literal)) )))) ;) (expression_statement "uVar14 = -1 << ((uint)pbVar9 & 0x1f) & ~*puVar10;" (assignment_expression "uVar14 = -1 << ((uint)pbVar9 & 0x1f) & ~*puVar10" identifier = (binary_expression "-1 << ((uint)pbVar9 & 0x1f) & ~*puVar10" (binary_expression "-1 << ((uint)pbVar9 & 0x1f)" number_literal << (parenthesized_expression "((uint)pbVar9 & 0x1f)" ( (binary_expression "(uint)pbVar9 & 0x1f" (cast_expression "(uint)pbVar9" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) & (unary_expression "~*puVar10" ~ (pointer_expression "*puVar10" * identifier)))) ;) (while_statement "while (puVar10 = puVar10 + 1, uVar14 == 0) {\n    uVar14 = ~*puVar10;\n  }" while (parenthesized_expression "(puVar10 = puVar10 + 1, uVar14 == 0)" ( (comma_expression "puVar10 = puVar10 + 1, uVar14 == 0" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) , (binary_expression "uVar14 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar14 = ~*puVar10;\n  }" { (expression_statement "uVar14 = ~*puVar10;" (assignment_expression "uVar14 = ~*puVar10" identifier = (unary_expression "~*puVar10" ~ (pointer_expression "*puVar10" * identifier))) ;) })) (if_statement "if ((uVar14 & 0xff) != 0) {\n    return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2);\n  }" if (parenthesized_expression "((uVar14 & 0xff) != 0)" ( (binary_expression "(uVar14 & 0xff) != 0" (parenthesized_expression "(uVar14 & 0xff)" ( (binary_expression "uVar14 & 0xff" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2);\n  }" { (return_statement "return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2);" return (binary_expression "(((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2)" (binary_expression "(((int)puVar10 - iVar3 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar10 - iVar3 >> 2) + -1)" ( (binary_expression "((int)puVar10 - iVar3 >> 2) + -1" (parenthesized_expression "((int)puVar10 - iVar3 >> 2)" ( (binary_expression "(int)puVar10 - iVar3 >> 2" (binary_expression "(int)puVar10 - iVar3" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "(*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2)" ( (binary_expression "*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)) - 2" (pointer_expression "*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14))" * (cast_expression "(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14))" ( (binary_expression "*(int *)(puVar13 + 0x50a9c) + (-uVar14 & uVar14)" (pointer_expression "*(int *)(puVar13 + 0x50a9c)" * (cast_expression "(int *)(puVar13 + 0x50a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x50a9c)" ( (binary_expression "puVar13 + 0x50a9c" identifier + number_literal) )))) + (parenthesized_expression "(-uVar14 & uVar14)" ( (binary_expression "-uVar14 & uVar14" (unary_expression "-uVar14" - identifier) & identifier) ))) )))) - number_literal) ))) ;) })) (expression_statement "uVar7 = uVar14 >> 8;" (assignment_expression "uVar7 = uVar14 >> 8" identifier = (binary_expression "uVar14 >> 8" identifier >> number_literal)) ;) (expression_statement "iVar12 = 6;" (assignment_expression "iVar12 = 6" identifier = number_literal) ;) (if_statement "if ((uVar7 & 0xff) == 0) {\n    uVar7 = uVar14 >> 0x10;\n    iVar12 = 0xe;\n    if ((uVar7 & 0xff) == 0) {\n      uVar7 = uVar14 >> 0x18;\n      iVar12 = 0x16;\n      if (uVar7 == 0) {\n        iVar12 = 0x1e;\n      }\n    }\n  }" if (parenthesized_expression "((uVar7 & 0xff) == 0)" ( (binary_expression "(uVar7 & 0xff) == 0" (parenthesized_expression "(uVar7 & 0xff)" ( (binary_expression "uVar7 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar7 = uVar14 >> 0x10;\n    iVar12 = 0xe;\n    if ((uVar7 & 0xff) == 0) {\n      uVar7 = uVar14 >> 0x18;\n      iVar12 = 0x16;\n      if (uVar7 == 0) {\n        iVar12 = 0x1e;\n      }\n    }\n  }" { (expression_statement "uVar7 = uVar14 >> 0x10;" (assignment_expression "uVar7 = uVar14 >> 0x10" identifier = (binary_expression "uVar14 >> 0x10" identifier >> number_literal)) ;) (expression_statement "iVar12 = 0xe;" (assignment_expression "iVar12 = 0xe" identifier = number_literal) ;) (if_statement "if ((uVar7 & 0xff) == 0) {\n      uVar7 = uVar14 >> 0x18;\n      iVar12 = 0x16;\n      if (uVar7 == 0) {\n        iVar12 = 0x1e;\n      }\n    }" if (parenthesized_expression "((uVar7 & 0xff) == 0)" ( (binary_expression "(uVar7 & 0xff) == 0" (parenthesized_expression "(uVar7 & 0xff)" ( (binary_expression "uVar7 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar7 = uVar14 >> 0x18;\n      iVar12 = 0x16;\n      if (uVar7 == 0) {\n        iVar12 = 0x1e;\n      }\n    }" { (expression_statement "uVar7 = uVar14 >> 0x18;" (assignment_expression "uVar7 = uVar14 >> 0x18" identifier = (binary_expression "uVar14 >> 0x18" identifier >> number_literal)) ;) (expression_statement "iVar12 = 0x16;" (assignment_expression "iVar12 = 0x16" identifier = number_literal) ;) (if_statement "if (uVar7 == 0) {\n        iVar12 = 0x1e;\n      }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar12 = 0x1e;\n      }" { (expression_statement "iVar12 = 0x1e;" (assignment_expression "iVar12 = 0x1e" identifier = number_literal) ;) })) })) })) (return_statement "return (((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7)) + iVar12;" return (binary_expression "(((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7)) + iVar12" (binary_expression "(((int)puVar10 - iVar3 >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7))" (binary_expression "(((int)puVar10 - iVar3 >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar10 - iVar3 >> 2) + -1)" ( (binary_expression "((int)puVar10 - iVar3 >> 2) + -1" (parenthesized_expression "((int)puVar10 - iVar3 >> 2)" ( (binary_expression "(int)puVar10 - iVar3 >> 2" (binary_expression "(int)puVar10 - iVar3" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (binary_expression "(uint)*(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7))" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7))" ( (binary_expression "*(int *)(puVar13 + 0x50a9c) + (-uVar7 & uVar7)" (pointer_expression "*(int *)(puVar13 + 0x50a9c)" * (cast_expression "(int *)(puVar13 + 0x50a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x50a9c)" ( (binary_expression "puVar13 + 0x50a9c" identifier + number_literal) )))) + (parenthesized_expression "(-uVar7 & uVar7)" ( (binary_expression "-uVar7 & uVar7" (unary_expression "-uVar7" - identifier) & identifier) ))) ))))) + identifier) ;) })))
(translation_unit "int __gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int local_2b0;\n  undefined1 auStack_2ac [640];\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0009d540;\n  local_2c = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }\n  if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }\n  puVar11 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);\n  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;\n  while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }\n  if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }\n  uVar5 = uVar12 >> 8;\n  iVar10 = 6;\n  if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;\n}\n\n" (function_definition "int __gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int local_2b0;\n  undefined1 auStack_2ac [640];\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0009d540;\n  local_2c = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }\n  if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }\n  puVar11 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);\n  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;\n  while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }\n  if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }\n  uVar5 = uVar12 >> 8;\n  iVar10 = 6;\n  if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;\n}" primitive_type (function_declarator "__gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)" identifier (parameter_list "(int param_1,byte *param_2,uint param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int local_2b0;\n  undefined1 auStack_2ac [640];\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0009d540;\n  local_2c = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }\n  if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }\n  puVar11 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);\n  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;\n  while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }\n  if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }\n  uVar5 = uVar12 >> 8;\n  iVar10 = 6;\n  if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int local_2b0;" primitive_type identifier ;) (declaration "undefined1 auStack_2ac [640];" type_identifier (array_declarator "auStack_2ac [640]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_0009d540;" (assignment_expression "puVar11 = PTR___stack_chk_guard_0009d540" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0009d540;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0009d540" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0009d540" * (cast_expression "(int *)PTR___stack_chk_guard_0009d540" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" if (parenthesized_expression "((param_4 - 1 & param_4) == 0)" ( (binary_expression "(param_4 - 1 & param_4) == 0" (parenthesized_expression "(param_4 - 1 & param_4)" ( (binary_expression "param_4 - 1 & param_4" (binary_expression "param_4 - 1" identifier - number_literal) & identifier) )) == number_literal) )) (compound_statement "{\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }" { (expression_statement "pbVar6 = param_2 + (param_3 - 1);" (assignment_expression "pbVar6 = param_2 + (param_3 - 1)" identifier = (binary_expression "param_2 + (param_3 - 1)" identifier + (parenthesized_expression "(param_3 - 1)" ( (binary_expression "param_3 - 1" identifier - number_literal) )))) ;) (expression_statement "pbVar7 = (byte *)(uint)(pbVar6 < param_2);" (assignment_expression "pbVar7 = (byte *)(uint)(pbVar6 < param_2)" identifier = (cast_expression "(byte *)(uint)(pbVar6 < param_2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(pbVar6 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar6 < param_2)" ( (binary_expression "pbVar6 < param_2" identifier < identifier) ))))) ;) (expression_statement "iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);" (assignment_expression "iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" identifier = (pointer_expression "*(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" * (cast_expression "(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" ( (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc" (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" identifier + (binary_expression "param_4 * 0x14" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }" if (parenthesized_expression "(pbVar7 == (byte *)0x0)" ( (binary_expression "pbVar7 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }" { (expression_statement "pbVar7 = param_2 + -1;" (assignment_expression "pbVar7 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);" do (compound_statement "{\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      }" { (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" identifier = (pointer_expression "*pbVar6" * identifier)) ;) (expression_statement "uVar2 = uVar12 & 0x1f;" (assignment_expression "uVar2 = uVar12 & 0x1f" identifier = (binary_expression "uVar12 & 0x1f" identifier & number_literal)) ;) (expression_statement "uVar12 = uVar12 + iVar10;" (assignment_expression "uVar12 = uVar12 + iVar10" identifier = (binary_expression "uVar12 + iVar10" identifier + identifier)) ;) (expression_statement "uVar5 = uVar5 | (uint)bVar1 << uVar2;" (assignment_expression "uVar5 = uVar5 | (uint)bVar1 << uVar2" identifier = (binary_expression "uVar5 | (uint)bVar1 << uVar2" identifier | (binary_expression "(uint)bVar1 << uVar2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << identifier))) ;) (expression_statement "iVar9 = iVar4 * 4;" (assignment_expression "iVar9 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (if_statement "if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }" if (parenthesized_expression "(0x1f < (int)uVar12)" ( (binary_expression "0x1f < (int)uVar12" number_literal < (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }" { (expression_statement "uVar12 = uVar12 - 0x20;" (assignment_expression "uVar12 = uVar12 - 0x20" identifier = (binary_expression "uVar12 - 0x20" identifier - number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + iVar9) = uVar5;" (assignment_expression "*(uint *)(param_1 + iVar9) = uVar5" (pointer_expression "*(uint *)(param_1 + iVar9)" * (cast_expression "(uint *)(param_1 + iVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar9)" ( (binary_expression "param_1 + iVar9" identifier + identifier) )))) = identifier) ;) (expression_statement "uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);" (assignment_expression "uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f)" identifier = (binary_expression "(int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f)" (cast_expression "(int)(uint)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) >> (parenthesized_expression "(iVar10 - uVar12 & 0x1f)" ( (binary_expression "iVar10 - uVar12 & 0x1f" (binary_expression "iVar10 - uVar12" identifier - identifier) & number_literal) )))) ;) })) (expression_statement "pbVar6 = pbVar6 + -1;" (assignment_expression "pbVar6 = pbVar6 + -1" identifier = (binary_expression "pbVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar7 != pbVar6)" ( (binary_expression "pbVar7 != pbVar6" identifier != identifier) )) ;) (expression_statement "iVar10 = iVar4 * 4;" (assignment_expression "iVar10 = iVar4 * 4" identifier = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (if_statement "if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(param_1 + iVar10) = uVar5;" (assignment_expression "*(uint *)(param_1 + iVar10) = uVar5" (pointer_expression "*(uint *)(param_1 + iVar10)" * (cast_expression "(uint *)(param_1 + iVar10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar10)" ( (binary_expression "param_1 + iVar10" identifier + identifier) )))) = identifier) ;) })) }) (else_clause "else {\n      iVar4 = 0;\n    }" else (compound_statement "{\n      iVar4 = 0;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) }) (else_clause "else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" else (if_statement "if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" if (parenthesized_expression "(param_3 < 2000)" ( (binary_expression "param_3 < 2000" identifier < number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }" { (expression_statement "iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();" (assignment_expression "iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)()" identifier = (call_expression "(*(code *)PTR___gmpn_bc_set_str_0009d588)()" (parenthesized_expression "(*(code *)PTR___gmpn_bc_set_str_0009d588)" ( (pointer_expression "*(code *)PTR___gmpn_bc_set_str_0009d588" * (cast_expression "(code *)PTR___gmpn_bc_set_str_0009d588" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" identifier = identifier) ;) }) (else_clause "else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" else (compound_statement "{\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" { (expression_statement "local_2b0 = 0;" (assignment_expression "local_2b0 = 0" identifier = number_literal) ;) (if_statement "if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0)" ( (binary_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0" (pointer_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" * (cast_expression "(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" ( (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" identifier + (binary_expression "param_4 * 0x14" identifier * number_literal)) )))) == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);" (assignment_expression "uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" identifier = (binary_expression "param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" identifier / (pointer_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" * (cast_expression "(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" ( (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" identifier + (binary_expression "param_4 * 0x14" identifier * number_literal)) )))))) ;) (expression_statement "iVar10 = (uVar12 + 0x21) * 4;" (assignment_expression "iVar10 = (uVar12 + 0x21) * 4" identifier = (binary_expression "(uVar12 + 0x21) * 4" (parenthesized_expression "(uVar12 + 0x21)" ( (binary_expression "uVar12 + 0x21" identifier + number_literal) )) * number_literal)) ;) (expression_statement "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);" (assignment_expression "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" identifier = (call_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_2b0,iVar10)" ( (pointer_expression "&local_2b0" & identifier) , identifier )))) ;) (expression_statement "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);" (call_expression "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4)" (parenthesized_expression "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)" ( (pointer_expression "*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4" * (cast_expression "(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_2ac,uVar3,uVar12 + 1,param_4)" ( identifier , identifier , (binary_expression "uVar12 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);" (assignment_expression "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" identifier = (call_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_2b0,iVar10)" ( (pointer_expression "&local_2b0" & identifier) , identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);" (assignment_expression "iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3)" identifier = (call_expression "(*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3)" (parenthesized_expression "(*(code *)PTR___gmpn_dc_set_str_0009d4e8)" ( (pointer_expression "*(code *)PTR___gmpn_dc_set_str_0009d4e8" * (cast_expression "(code *)PTR___gmpn_dc_set_str_0009d4e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,auStack_2ac,uVar3)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" identifier = identifier) ;) (if_statement "if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }" if (parenthesized_expression "(local_2b0 != 0)" ( (binary_expression "local_2b0 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }" { (expression_statement "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();" (call_expression "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)()" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)" ( (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_free_0009d618" * (cast_expression "(code *)PTR___gmp_tmp_reentrant_free_0009d618" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" identifier = identifier) ;) })) }))))) (if_statement "if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar11)" ( (binary_expression "local_2c == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "puVar11 = PTR___stack_chk_fail_0009d4d0;" (assignment_expression "puVar11 = PTR___stack_chk_fail_0009d4d0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0009d4d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_0009d4d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0009d4d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0009d4d0" * (cast_expression "(code *)PTR___stack_chk_fail_0009d4d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);" (assignment_expression "puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4)" identifier = (cast_expression "(uint *)(local_2c + ((uint)pbVar7 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_2c + ((uint)pbVar7 >> 5) * 4)" ( (binary_expression "local_2c + ((uint)pbVar7 >> 5) * 4" identifier + (binary_expression "((uint)pbVar7 >> 5) * 4" (parenthesized_expression "((uint)pbVar7 >> 5)" ( (binary_expression "(uint)pbVar7 >> 5" (cast_expression "(uint)pbVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )) * number_literal)) )))) ;) (expression_statement "uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;" (assignment_expression "uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8" identifier = (binary_expression "-1 << ((uint)pbVar7 & 0x1f) & ~*puVar8" (binary_expression "-1 << ((uint)pbVar7 & 0x1f)" number_literal << (parenthesized_expression "((uint)pbVar7 & 0x1f)" ( (binary_expression "(uint)pbVar7 & 0x1f" (cast_expression "(uint)pbVar7" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) & (unary_expression "~*puVar8" ~ (pointer_expression "*puVar8" * identifier)))) ;) (while_statement "while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }" while (parenthesized_expression "(puVar8 = puVar8 + 1, uVar12 == 0)" ( (comma_expression "puVar8 = puVar8 + 1, uVar12 == 0" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) , (binary_expression "uVar12 == 0" identifier == number_literal)) )) (compound_statement "{\n    uVar12 = ~*puVar8;\n  }" { (expression_statement "uVar12 = ~*puVar8;" (assignment_expression "uVar12 = ~*puVar8" identifier = (unary_expression "~*puVar8" ~ (pointer_expression "*puVar8" * identifier))) ;) })) (if_statement "if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }" if (parenthesized_expression "((uVar12 & 0xff) != 0)" ( (binary_expression "(uVar12 & 0xff) != 0" (parenthesized_expression "(uVar12 & 0xff)" ( (binary_expression "uVar12 & 0xff" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }" { (return_statement "return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);" return (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2)" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar8 - local_2c >> 2) + -1)" ( (binary_expression "((int)puVar8 - local_2c >> 2) + -1" (parenthesized_expression "((int)puVar8 - local_2c >> 2)" ( (binary_expression "(int)puVar8 - local_2c >> 2" (binary_expression "(int)puVar8 - local_2c" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "(*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2)" ( (binary_expression "*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2" (pointer_expression "*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" * (cast_expression "(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" ( (binary_expression "*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)" (pointer_expression "*(int *)(puVar11 + 0x50a9c)" * (cast_expression "(int *)(puVar11 + 0x50a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x50a9c)" ( (binary_expression "puVar11 + 0x50a9c" identifier + number_literal) )))) + (parenthesized_expression "(-uVar12 & uVar12)" ( (binary_expression "-uVar12 & uVar12" (unary_expression "-uVar12" - identifier) & identifier) ))) )))) - number_literal) ))) ;) })) (expression_statement "uVar5 = uVar12 >> 8;" (assignment_expression "uVar5 = uVar12 >> 8" identifier = (binary_expression "uVar12 >> 8" identifier >> number_literal)) ;) (expression_statement "iVar10 = 6;" (assignment_expression "iVar10 = 6" identifier = number_literal) ;) (if_statement "if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }" if (parenthesized_expression "((uVar5 & 0xff) == 0)" ( (binary_expression "(uVar5 & 0xff) == 0" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }" { (expression_statement "uVar5 = uVar12 >> 0x10;" (assignment_expression "uVar5 = uVar12 >> 0x10" identifier = (binary_expression "uVar12 >> 0x10" identifier >> number_literal)) ;) (expression_statement "iVar10 = 0xe;" (assignment_expression "iVar10 = 0xe" identifier = number_literal) ;) (if_statement "if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }" if (parenthesized_expression "((uVar5 & 0xff) == 0)" ( (binary_expression "(uVar5 & 0xff) == 0" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }" { (expression_statement "uVar5 = uVar12 >> 0x18;" (assignment_expression "uVar5 = uVar12 >> 0x18" identifier = (binary_expression "uVar12 >> 0x18" identifier >> number_literal)) ;) (expression_statement "iVar10 = 0x16;" (assignment_expression "iVar10 = 0x16" identifier = number_literal) ;) (if_statement "if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar10 = 0x1e;\n      }" { (expression_statement "iVar10 = 0x1e;" (assignment_expression "iVar10 = 0x1e" identifier = number_literal) ;) })) })) })) (return_statement "return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;" return (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar8 - local_2c >> 2) + -1)" ( (binary_expression "((int)puVar8 - local_2c >> 2) + -1" (parenthesized_expression "((int)puVar8 - local_2c >> 2)" ( (binary_expression "(int)puVar8 - local_2c >> 2" (binary_expression "(int)puVar8 - local_2c" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) >> number_literal) )) + number_literal) )) * number_literal) + (binary_expression "(uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" ( (binary_expression "*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)" (pointer_expression "*(int *)(puVar11 + 0x50a9c)" * (cast_expression "(int *)(puVar11 + 0x50a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + 0x50a9c)" ( (binary_expression "puVar11 + 0x50a9c" identifier + number_literal) )))) + (parenthesized_expression "(-uVar5 & uVar5)" ( (binary_expression "-uVar5 & uVar5" (unary_expression "-uVar5" - identifier) & identifier) ))) ))))) + identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & IDENT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_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 + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) & LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) }))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) & (unary_expression ~ (pointer_expression * IDENT)))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression ~ (pointer_expression * IDENT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) >> LIT) )) + LIT) )) * LIT) + (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (parenthesized_expression ( (binary_expression (unary_expression - IDENT) & IDENT) ))) )))) - LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) })) })) (return_statement return (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) >> LIT) )) + LIT) )) * LIT) + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (parenthesized_expression ( (binary_expression (unary_expression - IDENT) & IDENT) ))) ))))) + IDENT) ;) })))
(function_definition "int __gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int local_2b0;\n  undefined1 auStack_2ac [640];\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0009d540;\n  local_2c = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }\n  if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }\n  puVar11 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);\n  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;\n  while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }\n  if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }\n  uVar5 = uVar12 >> 8;\n  iVar10 = 6;\n  if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;\n}" (primitive_type "int") (function_declarator "__gmpn_set_str(int param_1,byte *param_2,uint param_3,uint param_4)" (identifier "__gmpn_set_str") (parameter_list "(int param_1,byte *param_2,uint param_3,uint param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  uint uVar12;\n  int local_2b0;\n  undefined1 auStack_2ac [640];\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0009d540;\n  local_2c = *(int *)PTR___stack_chk_guard_0009d540;\n  if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }\n  if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }\n  puVar11 = PTR___stack_chk_fail_0009d4d0;\n  (*(code *)PTR___stack_chk_fail_0009d4d0)();\n  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);\n  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;\n  while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }\n  if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }\n  uVar5 = uVar12 >> 8;\n  iVar10 = 6;\n  if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }\n  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "undefined *puVar11;" (type_identifier "undefined") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "int local_2b0;" (primitive_type "int") (identifier "local_2b0") (; ";")) (declaration "undefined1 auStack_2ac [640];" (type_identifier "undefined1") (array_declarator "auStack_2ac [640]" (identifier "auStack_2ac") ([ "[") (number_literal "640") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar11 = PTR___stack_chk_guard_0009d540;" (assignment_expression "puVar11 = PTR___stack_chk_guard_0009d540" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_guard_0009d540")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0009d540;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0009d540" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0009d540" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0009d540" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0009d540")))) (; ";")) (if_statement "if ((param_4 - 1 & param_4) == 0) {\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }\n  else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" (if "if") (parenthesized_expression "((param_4 - 1 & param_4) == 0)" (( "(") (binary_expression "(param_4 - 1 & param_4) == 0" (parenthesized_expression "(param_4 - 1 & param_4)" (( "(") (binary_expression "param_4 - 1 & param_4" (binary_expression "param_4 - 1" (identifier "param_4") (- "-") (number_literal "1")) (& "&") (identifier "param_4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pbVar6 = param_2 + (param_3 - 1);\n    pbVar7 = (byte *)(uint)(pbVar6 < param_2);\n    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);\n    if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n  }" ({ "{") (expression_statement "pbVar6 = param_2 + (param_3 - 1);" (assignment_expression "pbVar6 = param_2 + (param_3 - 1)" (identifier "pbVar6") (= "=") (binary_expression "param_2 + (param_3 - 1)" (identifier "param_2") (+ "+") (parenthesized_expression "(param_3 - 1)" (( "(") (binary_expression "param_3 - 1" (identifier "param_3") (- "-") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pbVar7 = (byte *)(uint)(pbVar6 < param_2);" (assignment_expression "pbVar7 = (byte *)(uint)(pbVar6 < param_2)" (identifier "pbVar7") (= "=") (cast_expression "(byte *)(uint)(pbVar6 < param_2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(uint)(pbVar6 < param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(pbVar6 < param_2)" (( "(") (binary_expression "pbVar6 < param_2" (identifier "pbVar6") (< "<") (identifier "param_2")) () ")"))))) (; ";")) (expression_statement "iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);" (assignment_expression "iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" (* "*") (cast_expression "(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc)" (( "(") (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc" (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" (identifier "PTR___gmpn_bases_0009d338") (+ "+") (binary_expression "param_4 * 0x14" (identifier "param_4") (* "*") (number_literal "0x14"))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (pbVar7 == (byte *)0x0) {\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }" (if "if") (parenthesized_expression "(pbVar7 == (byte *)0x0)" (( "(") (binary_expression "pbVar7 == (byte *)0x0" (identifier "pbVar7") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pbVar7 = param_2 + -1;\n      iVar4 = 0;\n      uVar5 = 0;\n      uVar12 = 0;\n      do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);\n      iVar10 = iVar4 * 4;\n      if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }\n    }" ({ "{") (expression_statement "pbVar7 = param_2 + -1;" (assignment_expression "pbVar7 = param_2 + -1" (identifier "pbVar7") (= "=") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" (identifier "uVar12") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      } while (pbVar7 != pbVar6);" (do "do") (compound_statement "{\n        bVar1 = *pbVar6;\n        uVar2 = uVar12 & 0x1f;\n        uVar12 = uVar12 + iVar10;\n        uVar5 = uVar5 | (uint)bVar1 << uVar2;\n        iVar9 = iVar4 * 4;\n        if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }\n        pbVar6 = pbVar6 + -1;\n      }" ({ "{") (expression_statement "bVar1 = *pbVar6;" (assignment_expression "bVar1 = *pbVar6" (identifier "bVar1") (= "=") (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6"))) (; ";")) (expression_statement "uVar2 = uVar12 & 0x1f;" (assignment_expression "uVar2 = uVar12 & 0x1f" (identifier "uVar2") (= "=") (binary_expression "uVar12 & 0x1f" (identifier "uVar12") (& "&") (number_literal "0x1f"))) (; ";")) (expression_statement "uVar12 = uVar12 + iVar10;" (assignment_expression "uVar12 = uVar12 + iVar10" (identifier "uVar12") (= "=") (binary_expression "uVar12 + iVar10" (identifier "uVar12") (+ "+") (identifier "iVar10"))) (; ";")) (expression_statement "uVar5 = uVar5 | (uint)bVar1 << uVar2;" (assignment_expression "uVar5 = uVar5 | (uint)bVar1 << uVar2" (identifier "uVar5") (= "=") (binary_expression "uVar5 | (uint)bVar1 << uVar2" (identifier "uVar5") (| "|") (binary_expression "(uint)bVar1 << uVar2" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (<< "<<") (identifier "uVar2")))) (; ";")) (expression_statement "iVar9 = iVar4 * 4;" (assignment_expression "iVar9 = iVar4 * 4" (identifier "iVar9") (= "=") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) (; ";")) (if_statement "if (0x1f < (int)uVar12) {\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }" (if "if") (parenthesized_expression "(0x1f < (int)uVar12)" (( "(") (binary_expression "0x1f < (int)uVar12" (number_literal "0x1f") (< "<") (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12"))) () ")")) (compound_statement "{\n          uVar12 = uVar12 - 0x20;\n          iVar4 = iVar4 + 1;\n          *(uint *)(param_1 + iVar9) = uVar5;\n          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);\n        }" ({ "{") (expression_statement "uVar12 = uVar12 - 0x20;" (assignment_expression "uVar12 = uVar12 - 0x20" (identifier "uVar12") (= "=") (binary_expression "uVar12 - 0x20" (identifier "uVar12") (- "-") (number_literal "0x20"))) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + iVar9) = uVar5;" (assignment_expression "*(uint *)(param_1 + iVar9) = uVar5" (pointer_expression "*(uint *)(param_1 + iVar9)" (* "*") (cast_expression "(uint *)(param_1 + iVar9)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar9)" (( "(") (binary_expression "param_1 + iVar9" (identifier "param_1") (+ "+") (identifier "iVar9")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);" (assignment_expression "uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f)" (identifier "uVar5") (= "=") (binary_expression "(int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f)" (cast_expression "(int)(uint)bVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (>> ">>") (parenthesized_expression "(iVar10 - uVar12 & 0x1f)" (( "(") (binary_expression "iVar10 - uVar12 & 0x1f" (binary_expression "iVar10 - uVar12" (identifier "iVar10") (- "-") (identifier "uVar12")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (} "}"))) (expression_statement "pbVar6 = pbVar6 + -1;" (assignment_expression "pbVar6 = pbVar6 + -1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + -1" (identifier "pbVar6") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar7 != pbVar6)" (( "(") (binary_expression "pbVar7 != pbVar6" (identifier "pbVar7") (!= "!=") (identifier "pbVar6")) () ")")) (; ";")) (expression_statement "iVar10 = iVar4 * 4;" (assignment_expression "iVar10 = iVar4 * 4" (identifier "iVar10") (= "=") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) (; ";")) (if_statement "if (uVar5 != 0) {\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }" (if "if") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = iVar4 + 1;\n        *(uint *)(param_1 + iVar10) = uVar5;\n      }" ({ "{") (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + iVar10) = uVar5;" (assignment_expression "*(uint *)(param_1 + iVar10) = uVar5" (pointer_expression "*(uint *)(param_1 + iVar10)" (* "*") (cast_expression "(uint *)(param_1 + iVar10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar10)" (( "(") (binary_expression "param_1 + iVar10" (identifier "param_1") (+ "+") (identifier "iVar10")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar4 = 0;\n    }" (else "else") (compound_statement "{\n      iVar4 = 0;\n    }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" (else "else") (if_statement "if (param_3 < 2000) {\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }\n  else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 < 2000)" (( "(") (binary_expression "param_3 < 2000" (identifier "param_3") (< "<") (number_literal "2000")) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();\n    pbVar7 = param_2;\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();" (assignment_expression "iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)()" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___gmpn_bc_set_str_0009d588)()" (parenthesized_expression "(*(code *)PTR___gmpn_bc_set_str_0009d588)" (( "(") (pointer_expression "*(code *)PTR___gmpn_bc_set_str_0009d588" (* "*") (cast_expression "(code *)PTR___gmpn_bc_set_str_0009d588" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmpn_bc_set_str_0009d588"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" (identifier "pbVar7") (= "=") (identifier "param_2")) (; ";")) (} "}")) (else_clause "else {\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" (else "else") (compound_statement "{\n    local_2b0 = 0;\n    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }\n    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);\n    iVar10 = (uVar12 + 0x21) * 4;\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    (*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);\n    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);\n    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);\n    pbVar7 = param_2;\n    if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }\n  }" ({ "{") (expression_statement "local_2b0 = 0;" (assignment_expression "local_2b0 = 0" (identifier "local_2b0") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {\n      trap(7);\n    }" (if "if") (parenthesized_expression "(*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0)" (( "(") (binary_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0" (pointer_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" (* "*") (cast_expression "(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" (( "(") (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" (identifier "PTR___gmpn_bases_0009d338") (+ "+") (binary_expression "param_4 * 0x14" (identifier "param_4") (* "*") (number_literal "0x14"))) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      trap(7);\n    }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);" (assignment_expression "uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" (identifier "uVar12") (= "=") (binary_expression "param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" (identifier "param_3") (/ "/") (pointer_expression "*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" (* "*") (cast_expression "(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___gmpn_bases_0009d338 + param_4 * 0x14)" (( "(") (binary_expression "PTR___gmpn_bases_0009d338 + param_4 * 0x14" (identifier "PTR___gmpn_bases_0009d338") (+ "+") (binary_expression "param_4 * 0x14" (identifier "param_4") (* "*") (number_literal "0x14"))) () ")")))))) (; ";")) (expression_statement "iVar10 = (uVar12 + 0x21) * 4;" (assignment_expression "iVar10 = (uVar12 + 0x21) * 4" (identifier "iVar10") (= "=") (binary_expression "(uVar12 + 0x21) * 4" (parenthesized_expression "(uVar12 + 0x21)" (( "(") (binary_expression "uVar12 + 0x21" (identifier "uVar12") (+ "+") (number_literal "0x21")) () ")")) (* "*") (number_literal "4"))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);" (assignment_expression "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)" (( "(") (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" (* "*") (cast_expression "(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_tmp_reentrant_alloc_0009d2f0"))) () ")")) (argument_list "(&local_2b0,iVar10)" (( "(") (pointer_expression "&local_2b0" (& "&") (identifier "local_2b0")) (, ",") (identifier "iVar10") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);" (call_expression "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4)" (parenthesized_expression "(*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4)" (( "(") (pointer_expression "*(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4" (* "*") (cast_expression "(code *)PTR___gmpn_set_str_compute_powtab_0009d1f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmpn_set_str_compute_powtab_0009d1f4"))) () ")")) (argument_list "(auStack_2ac,uVar3,uVar12 + 1,param_4)" (( "(") (identifier "auStack_2ac") (, ",") (identifier "uVar3") (, ",") (binary_expression "uVar12 + 1" (identifier "uVar12") (+ "+") (number_literal "1")) (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);" (assignment_expression "uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10)" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)" (( "(") (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" (* "*") (cast_expression "(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_tmp_reentrant_alloc_0009d2f0"))) () ")")) (argument_list "(&local_2b0,iVar10)" (( "(") (pointer_expression "&local_2b0" (& "&") (identifier "local_2b0")) (, ",") (identifier "iVar10") () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);" (assignment_expression "iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3)" (parenthesized_expression "(*(code *)PTR___gmpn_dc_set_str_0009d4e8)" (( "(") (pointer_expression "*(code *)PTR___gmpn_dc_set_str_0009d4e8" (* "*") (cast_expression "(code *)PTR___gmpn_dc_set_str_0009d4e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmpn_dc_set_str_0009d4e8"))) () ")")) (argument_list "(param_1,param_2,param_3,auStack_2ac,uVar3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "auStack_2ac") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" (identifier "pbVar7") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (local_2b0 != 0) {\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }" (if "if") (parenthesized_expression "(local_2b0 != 0)" (( "(") (binary_expression "local_2b0 != 0" (identifier "local_2b0") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();\n      pbVar7 = param_2;\n    }" ({ "{") (expression_statement "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();" (call_expression "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)()" (parenthesized_expression "(*(code *)PTR___gmp_tmp_reentrant_free_0009d618)" (( "(") (pointer_expression "*(code *)PTR___gmp_tmp_reentrant_free_0009d618" (* "*") (cast_expression "(code *)PTR___gmp_tmp_reentrant_free_0009d618" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_tmp_reentrant_free_0009d618"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pbVar7 = param_2;" (assignment_expression "pbVar7 = param_2" (identifier "pbVar7") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (} "}")))))) (if_statement "if (local_2c == *(int *)puVar11) {\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar11)" (( "(") (binary_expression "local_2c == *(int *)puVar11" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar11" (* "*") (cast_expression "(int *)puVar11" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar11")))) () ")")) (compound_statement "{\n    return iVar4;\n  }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "puVar11 = PTR___stack_chk_fail_0009d4d0;" (assignment_expression "puVar11 = PTR___stack_chk_fail_0009d4d0" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_fail_0009d4d0")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0009d4d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_0009d4d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0009d4d0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0009d4d0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0009d4d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0009d4d0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);" (assignment_expression "puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4)" (identifier "puVar8") (= "=") (cast_expression "(uint *)(local_2c + ((uint)pbVar7 >> 5) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_2c + ((uint)pbVar7 >> 5) * 4)" (( "(") (binary_expression "local_2c + ((uint)pbVar7 >> 5) * 4" (identifier "local_2c") (+ "+") (binary_expression "((uint)pbVar7 >> 5) * 4" (parenthesized_expression "((uint)pbVar7 >> 5)" (( "(") (binary_expression "(uint)pbVar7 >> 5" (cast_expression "(uint)pbVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pbVar7")) (>> ">>") (number_literal "5")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;" (assignment_expression "uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8" (identifier "uVar12") (= "=") (binary_expression "-1 << ((uint)pbVar7 & 0x1f) & ~*puVar8" (binary_expression "-1 << ((uint)pbVar7 & 0x1f)" (number_literal "-1") (<< "<<") (parenthesized_expression "((uint)pbVar7 & 0x1f)" (( "(") (binary_expression "(uint)pbVar7 & 0x1f" (cast_expression "(uint)pbVar7" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pbVar7")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (unary_expression "~*puVar8" (~ "~") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))))) (; ";")) (while_statement "while (puVar8 = puVar8 + 1, uVar12 == 0) {\n    uVar12 = ~*puVar8;\n  }" (while "while") (parenthesized_expression "(puVar8 = puVar8 + 1, uVar12 == 0)" (( "(") (comma_expression "puVar8 = puVar8 + 1, uVar12 == 0" (assignment_expression "puVar8 = puVar8 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1"))) (, ",") (binary_expression "uVar12 == 0" (identifier "uVar12") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    uVar12 = ~*puVar8;\n  }" ({ "{") (expression_statement "uVar12 = ~*puVar8;" (assignment_expression "uVar12 = ~*puVar8" (identifier "uVar12") (= "=") (unary_expression "~*puVar8" (~ "~") (pointer_expression "*puVar8" (* "*") (identifier "puVar8")))) (; ";")) (} "}"))) (if_statement "if ((uVar12 & 0xff) != 0) {\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }" (if "if") (parenthesized_expression "((uVar12 & 0xff) != 0)" (( "(") (binary_expression "(uVar12 & 0xff) != 0" (parenthesized_expression "(uVar12 & 0xff)" (( "(") (binary_expression "uVar12 & 0xff" (identifier "uVar12") (& "&") (number_literal "0xff")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);\n  }" ({ "{") (return_statement "return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);" (return "return") (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2)" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar8 - local_2c >> 2) + -1)" (( "(") (binary_expression "((int)puVar8 - local_2c >> 2) + -1" (parenthesized_expression "((int)puVar8 - local_2c >> 2)" (( "(") (binary_expression "(int)puVar8 - local_2c >> 2" (binary_expression "(int)puVar8 - local_2c" (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")) (- "-") (identifier "local_2c")) (>> ">>") (number_literal "2")) () ")")) (+ "+") (number_literal "-1")) () ")")) (* "*") (number_literal "0x20")) (+ "+") (parenthesized_expression "(*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2)" (( "(") (binary_expression "*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2" (pointer_expression "*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" (* "*") (cast_expression "(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12))" (( "(") (binary_expression "*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)" (pointer_expression "*(int *)(puVar11 + 0x50a9c)" (* "*") (cast_expression "(int *)(puVar11 + 0x50a9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar11 + 0x50a9c)" (( "(") (binary_expression "puVar11 + 0x50a9c" (identifier "puVar11") (+ "+") (number_literal "0x50a9c")) () ")")))) (+ "+") (parenthesized_expression "(-uVar12 & uVar12)" (( "(") (binary_expression "-uVar12 & uVar12" (unary_expression "-uVar12" (- "-") (identifier "uVar12")) (& "&") (identifier "uVar12")) () ")"))) () ")")))) (- "-") (number_literal "2")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar12 >> 8;" (assignment_expression "uVar5 = uVar12 >> 8" (identifier "uVar5") (= "=") (binary_expression "uVar12 >> 8" (identifier "uVar12") (>> ">>") (number_literal "8"))) (; ";")) (expression_statement "iVar10 = 6;" (assignment_expression "iVar10 = 6" (identifier "iVar10") (= "=") (number_literal "6")) (; ";")) (if_statement "if ((uVar5 & 0xff) == 0) {\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((uVar5 & 0xff) == 0)" (( "(") (binary_expression "(uVar5 & 0xff) == 0" (parenthesized_expression "(uVar5 & 0xff)" (( "(") (binary_expression "uVar5 & 0xff" (identifier "uVar5") (& "&") (number_literal "0xff")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = uVar12 >> 0x10;\n    iVar10 = 0xe;\n    if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar5 = uVar12 >> 0x10;" (assignment_expression "uVar5 = uVar12 >> 0x10" (identifier "uVar5") (= "=") (binary_expression "uVar12 >> 0x10" (identifier "uVar12") (>> ">>") (number_literal "0x10"))) (; ";")) (expression_statement "iVar10 = 0xe;" (assignment_expression "iVar10 = 0xe" (identifier "iVar10") (= "=") (number_literal "0xe")) (; ";")) (if_statement "if ((uVar5 & 0xff) == 0) {\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }" (if "if") (parenthesized_expression "((uVar5 & 0xff) == 0)" (( "(") (binary_expression "(uVar5 & 0xff) == 0" (parenthesized_expression "(uVar5 & 0xff)" (( "(") (binary_expression "uVar5 & 0xff" (identifier "uVar5") (& "&") (number_literal "0xff")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = uVar12 >> 0x18;\n      iVar10 = 0x16;\n      if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }\n    }" ({ "{") (expression_statement "uVar5 = uVar12 >> 0x18;" (assignment_expression "uVar5 = uVar12 >> 0x18" (identifier "uVar5") (= "=") (binary_expression "uVar12 >> 0x18" (identifier "uVar12") (>> ">>") (number_literal "0x18"))) (; ";")) (expression_statement "iVar10 = 0x16;" (assignment_expression "iVar10 = 0x16" (identifier "iVar10") (= "=") (number_literal "0x16")) (; ";")) (if_statement "if (uVar5 == 0) {\n        iVar10 = 0x1e;\n      }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar10 = 0x1e;\n      }" ({ "{") (expression_statement "iVar10 = 0x1e;" (assignment_expression "iVar10 = 0x1e" (identifier "iVar10") (= "=") (number_literal "0x1e")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;" (return "return") (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20 +\n         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" (binary_expression "(((int)puVar8 - local_2c >> 2) + -1) * 0x20" (parenthesized_expression "(((int)puVar8 - local_2c >> 2) + -1)" (( "(") (binary_expression "((int)puVar8 - local_2c >> 2) + -1" (parenthesized_expression "((int)puVar8 - local_2c >> 2)" (( "(") (binary_expression "(int)puVar8 - local_2c >> 2" (binary_expression "(int)puVar8 - local_2c" (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")) (- "-") (identifier "local_2c")) (>> ">>") (number_literal "2")) () ")")) (+ "+") (number_literal "-1")) () ")")) (* "*") (number_literal "0x20")) (+ "+") (binary_expression "(uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5))" (( "(") (binary_expression "*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)" (pointer_expression "*(int *)(puVar11 + 0x50a9c)" (* "*") (cast_expression "(int *)(puVar11 + 0x50a9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar11 + 0x50a9c)" (( "(") (binary_expression "puVar11 + 0x50a9c" (identifier "puVar11") (+ "+") (number_literal "0x50a9c")) () ")")))) (+ "+") (parenthesized_expression "(-uVar5 & uVar5)" (( "(") (binary_expression "-uVar5 & uVar5" (unary_expression "-uVar5" (- "-") (identifier "uVar5")) (& "&") (identifier "uVar5")) () ")"))) () ")"))))) (+ "+") (identifier "iVar10")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (unary_expression argument: (pointer_expression argument: (identifier)))))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (number_literal))) right: (number_literal))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (identifier))))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) (return_statement (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (number_literal))) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (identifier)))))))) right: (identifier))))))

int MASKED(int param_1,byte *param_2,uint param_3,uint param_4)

{
  byte bVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  uint uVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint *puVar8;
  int iVar9;
  int iVar10;
  undefined *puVar11;
  uint uVar12;
  int local_2b0;
  undefined1 auStack_2ac [640];
  int local_2c;
  
  puVar11 = PTR___stack_chk_guard_0009d540;
  local_2c = *(int *)PTR___stack_chk_guard_0009d540;
  if ((param_4 - 1 & param_4) == 0) {
    pbVar6 = param_2 + (param_3 - 1);
    pbVar7 = (byte *)(uint)(pbVar6 < param_2);
    iVar10 = *(int *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14 + 0xc);
    if (pbVar7 == (byte *)0x0) {
      pbVar7 = param_2 + -1;
      iVar4 = 0;
      uVar5 = 0;
      uVar12 = 0;
      do {
        bVar1 = *pbVar6;
        uVar2 = uVar12 & 0x1f;
        uVar12 = uVar12 + iVar10;
        uVar5 = uVar5 | (uint)bVar1 << uVar2;
        iVar9 = iVar4 * 4;
        if (0x1f < (int)uVar12) {
          uVar12 = uVar12 - 0x20;
          iVar4 = iVar4 + 1;
          *(uint *)(param_1 + iVar9) = uVar5;
          uVar5 = (int)(uint)bVar1 >> (iVar10 - uVar12 & 0x1f);
        }
        pbVar6 = pbVar6 + -1;
      } while (pbVar7 != pbVar6);
      iVar10 = iVar4 * 4;
      if (uVar5 != 0) {
        iVar4 = iVar4 + 1;
        *(uint *)(param_1 + iVar10) = uVar5;
      }
    }
    else {
      iVar4 = 0;
    }
  }
  else if (param_3 < 2000) {
    iVar4 = (*(code *)PTR___gmpn_bc_set_str_0009d588)();
    pbVar7 = param_2;
  }
  else {
    local_2b0 = 0;
    if (*(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14) == 0) {
      trap(7);
    }
    uVar12 = param_3 / *(uint *)(PTR___gmpn_bases_0009d338 + param_4 * 0x14);
    iVar10 = (uVar12 + 0x21) * 4;
    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);
    (*(code *)PTR_MASKED_compute_powtab_0009d1f4)(auStack_2ac,uVar3,uVar12 + 1,param_4);
    uVar3 = (*(code *)PTR___gmp_tmp_reentrant_alloc_0009d2f0)(&local_2b0,iVar10);
    iVar4 = (*(code *)PTR___gmpn_dc_set_str_0009d4e8)(param_1,param_2,param_3,auStack_2ac,uVar3);
    pbVar7 = param_2;
    if (local_2b0 != 0) {
      (*(code *)PTR___gmp_tmp_reentrant_free_0009d618)();
      pbVar7 = param_2;
    }
  }
  if (local_2c == *(int *)puVar11) {
    return iVar4;
  }
  puVar11 = PTR___stack_chk_fail_0009d4d0;
  (*(code *)PTR___stack_chk_fail_0009d4d0)();
  puVar8 = (uint *)(local_2c + ((uint)pbVar7 >> 5) * 4);
  uVar12 = -1 << ((uint)pbVar7 & 0x1f) & ~*puVar8;
  while (puVar8 = puVar8 + 1, uVar12 == 0) {
    uVar12 = ~*puVar8;
  }
  if ((uVar12 & 0xff) != 0) {
    return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +
           (*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar12 & uVar12)) - 2);
  }
  uVar5 = uVar12 >> 8;
  iVar10 = 6;
  if ((uVar5 & 0xff) == 0) {
    uVar5 = uVar12 >> 0x10;
    iVar10 = 0xe;
    if ((uVar5 & 0xff) == 0) {
      uVar5 = uVar12 >> 0x18;
      iVar10 = 0x16;
      if (uVar5 == 0) {
        iVar10 = 0x1e;
      }
    }
  }
  return (((int)puVar8 - local_2c >> 2) + -1) * 0x20 +
         (uint)*(byte *)(*(int *)(puVar11 + 0x50a9c) + (-uVar5 & uVar5)) + iVar10;
}

