
Bignum_conflict modmul(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)

{
  BignumInt *m;
  int iVar1;
  BignumInt *pBVar2;
  int iVar3;
  BignumInt *pBVar4;
  BignumInt *pBVar5;
  uint uVar6;
  BignumInt *scratch;
  Bignum_conflict pBVar7;
  BignumInt BVar8;
  BignumInt BVar9;
  BignumInt BVar10;
  Bignum_conflict pBVar11;
  BignumInt *pBVar12;
  uint len;
  BignumInt mlen;
  int local_2c;
  
  mlen = *mod;
  if (mod[mlen] == 0) {
    pBVar7 = (Bignum_conflict)
             (*(code *)PTR___assert_fail_00111f50)
                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,
                        PTR_E1_202__001112f8 + 0x1a3c);
    return pBVar7;
  }
  m = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(mlen,4);
  if (0 < (int)mlen) {
    BVar8 = 0;
    pBVar2 = m;
    do {
      iVar1 = *mod - BVar8;
      BVar8 = BVar8 + 1;
      *pBVar2 = mod[iVar1];
      pBVar2 = pBVar2 + 1;
    } while (mlen != BVar8);
  }
  len = *p;
  if (*p <= *q) {
    len = *q;
  }
  BVar8 = len << 1;
  if ((int)BVar8 <= (int)mlen) {
    len = (int)mlen / 2 + 1;
    BVar8 = len * 2;
  }
  pBVar2 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);
  BVar9 = *p;
  iVar1 = len - BVar9;
  if (0 < iVar1) {
    pBVar4 = pBVar2;
    do {
      *pBVar4 = 0;
      pBVar4 = pBVar4 + 1;
    } while (pBVar2 + iVar1 != pBVar4);
    BVar9 = *p;
  }
  if (0 < (int)BVar9) {
    iVar3 = 0;
    pBVar4 = pBVar2 + iVar1;
    do {
      iVar3 = iVar3 + 1;
      *pBVar4 = p[BVar9];
      BVar9 = *p - iVar3;
      pBVar4 = pBVar4 + 1;
    } while (iVar3 < (int)*p);
  }
  pBVar4 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);
  BVar9 = *q;
  iVar1 = len - BVar9;
  if (0 < iVar1) {
    pBVar5 = pBVar4;
    do {
      *pBVar5 = 0;
      pBVar5 = pBVar5 + 1;
    } while (pBVar4 + iVar1 != pBVar5);
    BVar9 = *q;
  }
  if (0 < (int)BVar9) {
    iVar3 = 0;
    pBVar5 = pBVar4 + iVar1;
    do {
      iVar3 = iVar3 + 1;
      *pBVar5 = q[BVar9];
      BVar9 = *q - iVar3;
      pBVar5 = pBVar5 + 1;
    } while (iVar3 < (int)*q);
  }
  pBVar5 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(BVar8,4);
  if ((int)len < 0x33) {
    local_2c = 0;
    iVar1 = 0;
  }
  else {
    iVar1 = 0;
    uVar6 = len;
    do {
      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;
      iVar1 = iVar1 + uVar6 * 4;
    } while (0x32 < (int)uVar6);
    local_2c = iVar1 * 4;
  }
  scratch = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(iVar1,4);
  iVar3 = 5;
  BVar10 = *m;
  uVar6 = 0;
  iVar1 = 0x10;
  BVar9 = BVar10;
  do {
    if (BVar9 >> (0x20U - iVar1 & 0x1f) == 0) {
      BVar9 = BVar9 << iVar1;
      uVar6 = uVar6 + iVar1;
    }
    iVar3 = iVar3 + -1;
    iVar1 = iVar1 >> 1;
  } while (iVar3 != 0);
  if ((uVar6 != 0) && (BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen)) {
    BVar10 = BVar10 | m[1] >> (-uVar6 & 0x1f);
  }
  BVar10 = reciprocal_word(BVar10);
  internal_mul(pBVar2,pBVar4,pBVar5,len,scratch);
  BVar9 = mlen;
  if ((int)BVar8 < (int)mlen) {
    BVar9 = BVar8;
  }
  internal_mod(pBVar5,BVar8,m,mlen,(BignumInt *)0x0,BVar10,uVar6);
  pBVar7 = newbn(BVar9);
  if (0 < (int)BVar9) {
    BVar10 = 0;
    pBVar12 = pBVar5 + (BVar8 - BVar9);
    do {
      iVar1 = *pBVar7 - BVar10;
      BVar10 = BVar10 + 1;
      pBVar7[iVar1] = *pBVar12;
      pBVar12 = pBVar12 + 1;
    } while (BVar9 != BVar10);
  }
  BVar8 = *pBVar7;
  if (1 < BVar8) {
    pBVar11 = pBVar7 + BVar8;
    BVar9 = *pBVar11;
    while (BVar9 == 0) {
      BVar8 = BVar8 - 1;
      *pBVar7 = BVar8;
      if (BVar8 == 1) break;
      pBVar12 = pBVar11 + -1;
      pBVar11 = pBVar11 + -1;
      BVar9 = *pBVar12;
    }
  }
  (*(code *)PTR_smemclr_00111398)(scratch,local_2c);
  (*(code *)PTR_safefree_001112f0)(scratch);
  (*(code *)PTR_smemclr_00111398)(pBVar5,len << 3);
  (*(code *)PTR_safefree_001112f0)(pBVar5);
  (*(code *)PTR_smemclr_00111398)(m,mlen * 4);
  (*(code *)PTR_safefree_001112f0)(m);
  (*(code *)PTR_smemclr_00111398)(pBVar2,len << 2);
  (*(code *)PTR_safefree_001112f0)(pBVar2);
  (*(code *)PTR_smemclr_00111398)(pBVar4,len << 2);
  (*(code *)PTR_safefree_001112f0)(pBVar4);
  return pBVar7;
}



uint * modmul(uint *param_1,uint *param_2,int *param_3)

{
  uint *puVar1;
  uint *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  uint *puVar10;
  int iVar11;
  uint uVar12;
  uint uVar13;
  int iVar14;
  uint uVar15;
  uint *puVar16;
  uint uVar17;
  int iVar18;
  int local_2c;
  
  iVar18 = *param_3;
  if (param_3[iVar18] == 0) {
    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)
                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,
                                PTR_DAT_001112f8 + 0x1a3c);
    return puVar2;
  }
  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);
  if (0 < iVar18) {
    iVar11 = 0;
    puVar10 = puVar2;
    do {
      iVar3 = *param_3 - iVar11;
      iVar11 = iVar11 + 1;
      *puVar10 = param_3[iVar3];
      puVar10 = puVar10 + 1;
    } while (iVar18 != iVar11);
  }
  uVar17 = *param_1;
  if (*param_1 <= *param_2) {
    uVar17 = *param_2;
  }
  iVar11 = uVar17 << 1;
  if (iVar11 <= iVar18) {
    uVar17 = iVar18 / 2 + 1;
    iVar11 = uVar17 * 2;
  }
  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);
  uVar12 = *param_1;
  iVar3 = uVar17 - uVar12;
  if (0 < iVar3) {
    puVar6 = puVar4;
    do {
      *puVar6 = 0;
      puVar6 = puVar6 + 1;
    } while (puVar4 + iVar3 != puVar6);
    uVar12 = *param_1;
  }
  if (0 < (int)uVar12) {
    iVar5 = 0;
    puVar10 = puVar4 + iVar3;
    do {
      iVar5 = iVar5 + 1;
      *puVar10 = param_1[uVar12];
      uVar12 = *param_1 - iVar5;
      puVar10 = puVar10 + 1;
    } while (iVar5 < (int)*param_1);
  }
  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);
  uVar12 = *param_2;
  iVar3 = uVar17 - uVar12;
  if (0 < iVar3) {
    puVar7 = puVar6;
    do {
      *puVar7 = 0;
      puVar7 = puVar7 + 1;
    } while (puVar6 + iVar3 != puVar7);
    uVar12 = *param_2;
  }
  if (0 < (int)uVar12) {
    iVar5 = 0;
    puVar10 = puVar6 + iVar3;
    do {
      iVar5 = iVar5 + 1;
      *puVar10 = param_2[uVar12];
      uVar12 = *param_2 - iVar5;
      puVar10 = puVar10 + 1;
    } while (iVar5 < (int)*param_2);
  }
  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);
  if ((int)uVar17 < 0x33) {
    local_2c = 0;
    iVar5 = 0;
  }
  else {
    iVar5 = 0;
    uVar12 = uVar17;
    do {
      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;
      iVar5 = iVar5 + uVar12 * 4;
    } while (0x32 < (int)uVar12);
    local_2c = iVar5 * 4;
  }
  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);
  iVar14 = 5;
  uVar13 = *puVar2;
  uVar15 = 0;
  iVar5 = 0x10;
  uVar12 = uVar13;
  do {
    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {
      uVar12 = uVar12 << iVar5;
      uVar15 = uVar15 + iVar5;
    }
    iVar14 = iVar14 + -1;
    iVar5 = iVar5 >> 1;
  } while (iVar14 != 0);
  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {
    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);
  }
  uVar9 = FUN_000665a0(uVar13);
  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);
  iVar5 = iVar18;
  if (iVar11 < iVar18) {
    iVar5 = iVar11;
  }
  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);
  puVar10 = (uint *)FUN_00066ee4(iVar5);
  if (0 < iVar5) {
    iVar14 = 0;
    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);
    do {
      iVar11 = *puVar10 - iVar14;
      iVar14 = iVar14 + 1;
      puVar10[iVar11] = *puVar16;
      puVar16 = puVar16 + 1;
    } while (iVar5 != iVar14);
  }
  uVar12 = *puVar10;
  if (1 < uVar12) {
    puVar16 = puVar10 + uVar12;
    uVar13 = *puVar16;
    while (uVar13 == 0) {
      uVar12 = uVar12 - 1;
      *puVar10 = uVar12;
      if (uVar12 == 1) break;
      puVar1 = puVar16 + -1;
      puVar16 = puVar16 + -1;
      uVar13 = *puVar1;
    }
  }
  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);
  (*(code *)PTR_safefree_001112f0)(uVar8);
  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);
  (*(code *)PTR_safefree_001112f0)(iVar3);
  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);
  (*(code *)PTR_safefree_001112f0)(puVar2);
  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);
  (*(code *)PTR_safefree_001112f0)(puVar4);
  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);
  (*(code *)PTR_safefree_001112f0)(puVar6);
  return puVar10;
}


lui gp,0xb
addiu gp,gp,0x189c
addu gp,gp,t9
addiu sp,sp,-0x60
sw s8,0x58(sp)
lw s8,0x0(a2)
sw gp,0x20(sp)
sw ra,0x5c(sp)
sll v0,s8,0x2
sw s7,0x54(sp)
sw s6,0x50(sp)
sw v0,0x2c(sp)
addu v0,a2,v0
sw s5,0x4c(sp)
sw s4,0x48(sp)
sw s3,0x44(sp)
sw s2,0x40(sp)
sw s1,0x3c(sp)
sw s0,0x38(sp)
lw v0,0x0(v0)
beq v0,zero,0x00067eb8
_lw t9,-0x7fc4(gp)
or s6,a1,zero
li a1,0x4
or s4,a0,zero
or a0,s8,zero
jalr t9
_or s0,a2,zero
lw gp,0x20(sp)
blez s8,0x00067abc
_or s5,v0,zero
or v1,zero,zero
or a0,v0,zero
lw v0,0x0(s0)
addiu a0,a0,0x4
subu v0,v0,v1
addiu v1,v1,0x1
sll v0,v0,0x2
addu v0,s0,v0
lw v0,0x0(v0)
bne s8,v1,0x00067a98
_sw v0,-0x4(a0)
lw v0,0x0(s4)
lw v1,0x0(s6)
sltu s1,v1,v0
movz v0,v1,s1
sll s0,v0,0x1
or s1,v0,zero
or s2,v0,zero
slt v0,s8,s0
beq v0,zero,0x00067e90
_nop
lw t9,-0x7fc4(gp)
li a1,0x4
jalr t9
_or a0,s1,zero
lw v1,0x0(s4)
or s3,v0,zero
subu a0,s1,v1
blez a0,0x00067b24
_lw gp,0x20(sp)
sll v1,a0,0x2
addu v1,v1,v0
sw zero,0x0(v0)
addiu v0,v0,0x4
bne v1,v0,0x00067b10
_nop
lw v1,0x0(s4)
blez v1,0x00067b60
_sll a0,a0,0x2
or v0,zero,zero
addu a0,s3,a0
subu v1,v1,v0
addiu a0,a0,0x4
sll v1,v1,0x2
addiu v0,v0,0x1
addu v1,s4,v1
lw v1,0x0(v1)
sw v1,-0x4(a0)
lw v1,0x0(s4)
slt a1,v0,v1
bne a1,zero,0x00067b38
_subu v1,v1,v0
lw t9,-0x7fc4(gp)
li a1,0x4
jalr t9
_or a0,s1,zero
lw v1,0x0(s6)
or s4,v0,zero
subu a0,s1,v1
blez a0,0x00067ba0
_lw gp,0x20(sp)
sll v1,a0,0x2
addu v1,v1,v0
sw zero,0x0(v0)
addiu v0,v0,0x4
bne v1,v0,0x00067b8c
_nop
lw v1,0x0(s6)
blez v1,0x00067bdc
_sll a0,a0,0x2
or v0,zero,zero
addu a0,s4,a0
subu v1,v1,v0
addiu a0,a0,0x4
sll v1,v1,0x2
addiu v0,v0,0x1
addu v1,s6,v1
lw v1,0x0(v1)
sw v1,-0x4(a0)
lw v1,0x0(s6)
slt a1,v0,v1
bne a1,zero,0x00067bb4
_subu v1,v1,v0
lw t9,-0x7fc4(gp)
li a1,0x4
jalr t9
_or a0,s0,zero
slti v1,s2,0x33
lw gp,0x20(sp)
bne v1,zero,0x00067eac
_or s6,v0,zero
or a0,zero,zero
or v0,s2,zero
sra v1,v0,0x1
subu v0,v0,v1
addiu v0,v0,0x1
sll a1,v0,0x2
slti v1,v0,0x33
beq v1,zero,0x00067c04
_addu a0,a0,a1
sll v0,a0,0x2
sw v0,0x34(sp)
lw t9,-0x7fc4(gp)
jalr t9
_li a1,0x4
li a1,0x5
lw a0,0x0(s5)
or t1,zero,zero
lw gp,0x20(sp)
li v1,0x10
li a3,0x20
or s7,v0,zero
or a2,a0,zero
subu v0,a3,v1
srlv v0,a2,v0
bne v0,zero,0x00067c6c
_nop
sllv a2,a2,v1
addu t1,t1,v1
addiu a1,a1,-0x1
bne a1,zero,0x00067c54
_sra v1,v1,0x1
bne t1,zero,0x00067e74
_slti v0,s8,0x2
lw t9,-0x7ad4(gp)
addiu t9,t9,0x65a0
bal 0x000665a0
_sw t1,0x30(sp)
or a3,s2,zero
lw gp,0x20(sp)
or a2,s6,zero
or a1,s4,zero
sw s7,0x10(sp)
or a0,s3,zero
lw t9,-0x7ad4(gp)
addiu t9,t9,0x6f80
bal 0x00066f80
_or s2,v0,zero
or a3,s8,zero
lw gp,0x20(sp)
or a0,s6,zero
lw t1,0x30(sp)
or a2,s5,zero
sw s2,0x14(sp)
or a1,s0,zero
sw zero,0x10(sp)
slt s2,s0,s8
sw t1,0x18(sp)
lw t9,-0x7ad4(gp)
addiu t9,t9,0x6848
bal 0x00066848
_movn s8,s0,s2
or a0,s8,zero
lw gp,0x20(sp)
lw t9,-0x7ad4(gp)
addiu t9,t9,0x6ee4
bal 0x00066ee4
_or s2,s8,zero
blez s8,0x00067d44
_lw gp,0x20(sp)
subu s0,s0,s8
or a0,zero,zero
sll s0,s0,0x2
addu s0,s6,s0
lw v1,0x0(v0)
addiu s0,s0,0x4
lw a1,-0x4(s0)
subu v1,v1,a0
addiu a0,a0,0x1
sll v1,v1,0x2
addu v1,v0,v1
bne s2,a0,0x00067d20
_sw a1,0x0(v1)
lw v1,0x0(v0)
sltiu a0,v1,0x2
bne a0,zero,0x00067d8c
_lw t9,-0x7f18(gp)
sll a0,v1,0x2
addu a0,v0,a0
lw a1,0x0(a0)
bne a1,zero,0x00067d8c
_addiu v1,v1,-0x1
b 0x00067d80
_li a2,0x1
lw a1,-0x4(a0)
addiu v1,v1,-0x1
bne a1,zero,0x00067d88
_addiu a0,a0,-0x4
bne v1,a2,0x00067d70
_sw v1,0x0(v0)
lw t9,-0x7f18(gp)
or a0,s7,zero
lw a1,0x34(sp)
sll s0,s1,0x2
jalr t9
_sw v0,0x30(sp)
lw gp,0x20(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s7,zero
sll a1,s1,0x3
lw gp,0x20(sp)
lw t9,-0x7f18(gp)
jalr t9
_or a0,s6,zero
lw gp,0x20(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s6,zero
or a0,s5,zero
lw gp,0x20(sp)
lw t9,-0x7f18(gp)
jalr t9
_lw a1,0x2c(sp)
lw gp,0x20(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s5,zero
or a1,s0,zero
lw gp,0x20(sp)
lw t9,-0x7f18(gp)
jalr t9
_or a0,s3,zero
lw gp,0x20(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s3,zero
or a1,s0,zero
lw gp,0x20(sp)
lw t9,-0x7f18(gp)
jalr t9
_or a0,s4,zero
lw gp,0x20(sp)
lw t9,-0x7fc0(gp)
jalr t9
_or a0,s4,zero
lw ra,0x5c(sp)
lw v0,0x30(sp)
lw s8,0x58(sp)
lw s7,0x54(sp)
lw s6,0x50(sp)
lw s5,0x4c(sp)
lw s4,0x48(sp)
lw s3,0x44(sp)
lw s2,0x40(sp)
lw s1,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x60
bne v0,zero,0x00067c80
_sllv a0,a0,t1
lw v0,0x4(s5)
subu v1,zero,t1
srlv v0,v0,v1
b 0x00067c80
_or a0,a0,v0
srl s2,s8,0x1f
addu s2,s2,s8
sra s2,s2,0x1
addiu s2,s2,0x1
sll s0,s2,0x1
b 0x00067ae4
_or s1,s2,zero
sw zero,0x34(sp)
b 0x00067c28
_or a0,zero,zero
lw a3,-0x7fb8(gp)
li a2,0x4c1
lw a1,-0x7fb8(gp)
lw a0,-0x7fb8(gp)
lw t9,-0x7360(gp)
addiu a3,a3,0x1a3c
addiu a1,a1,0x1870
jalr t9
_addiu a0,a0,0x18ac
(translation_unit "uint * modmul(uint *param_1,uint *param_2,int *param_3)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  int iVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint *puVar16;\n  uint uVar17;\n  int iVar18;\n  int local_2c;\n  \n  iVar18 = *param_3;\n  if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }\n  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);\n  if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }\n  uVar17 = *param_1;\n  if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }\n  iVar11 = uVar17 << 1;\n  if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_1;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }\n  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_2;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }\n  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);\n  if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }\n  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);\n  iVar14 = 5;\n  uVar13 = *puVar2;\n  uVar15 = 0;\n  iVar5 = 0x10;\n  uVar12 = uVar13;\n  do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);\n  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }\n  uVar9 = FUN_000665a0(uVar13);\n  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);\n  iVar5 = iVar18;\n  if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }\n  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);\n  puVar10 = (uint *)FUN_00066ee4(iVar5);\n  if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }\n  uVar12 = *puVar10;\n  if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);\n  (*(code *)PTR_safefree_001112f0)(uVar8);\n  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);\n  (*(code *)PTR_safefree_001112f0)(puVar2);\n  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar4);\n  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar6);\n  return puVar10;\n}\n\n" (function_definition "uint * modmul(uint *param_1,uint *param_2,int *param_3)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  int iVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint *puVar16;\n  uint uVar17;\n  int iVar18;\n  int local_2c;\n  \n  iVar18 = *param_3;\n  if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }\n  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);\n  if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }\n  uVar17 = *param_1;\n  if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }\n  iVar11 = uVar17 << 1;\n  if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_1;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }\n  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_2;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }\n  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);\n  if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }\n  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);\n  iVar14 = 5;\n  uVar13 = *puVar2;\n  uVar15 = 0;\n  iVar5 = 0x10;\n  uVar12 = uVar13;\n  do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);\n  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }\n  uVar9 = FUN_000665a0(uVar13);\n  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);\n  iVar5 = iVar18;\n  if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }\n  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);\n  puVar10 = (uint *)FUN_00066ee4(iVar5);\n  if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }\n  uVar12 = *puVar10;\n  if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);\n  (*(code *)PTR_safefree_001112f0)(uVar8);\n  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);\n  (*(code *)PTR_safefree_001112f0)(puVar2);\n  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar4);\n  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar6);\n  return puVar10;\n}" type_identifier (pointer_declarator "* modmul(uint *param_1,uint *param_2,int *param_3)" * (function_declarator "modmul(uint *param_1,uint *param_2,int *param_3)" identifier (parameter_list "(uint *param_1,uint *param_2,int *param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  int iVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint *puVar16;\n  uint uVar17;\n  int iVar18;\n  int local_2c;\n  \n  iVar18 = *param_3;\n  if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }\n  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);\n  if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }\n  uVar17 = *param_1;\n  if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }\n  iVar11 = uVar17 << 1;\n  if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_1;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }\n  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_2;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }\n  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);\n  if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }\n  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);\n  iVar14 = 5;\n  uVar13 = *puVar2;\n  uVar15 = 0;\n  iVar5 = 0x10;\n  uVar12 = uVar13;\n  do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);\n  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }\n  uVar9 = FUN_000665a0(uVar13);\n  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);\n  iVar5 = iVar18;\n  if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }\n  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);\n  puVar10 = (uint *)FUN_00066ee4(iVar5);\n  if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }\n  uVar12 = *puVar10;\n  if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);\n  (*(code *)PTR_safefree_001112f0)(uVar8);\n  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);\n  (*(code *)PTR_safefree_001112f0)(puVar2);\n  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar4);\n  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar6);\n  return puVar10;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "uint *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "uint uVar17;" type_identifier identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "iVar18 = *param_3;" (assignment_expression "iVar18 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }" if (parenthesized_expression "(param_3[iVar18] == 0)" ( (binary_expression "param_3[iVar18] == 0" (subscript_expression "param_3[iVar18]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }" { (expression_statement "puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);" (assignment_expression "puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" identifier = (cast_expression "(uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" ( (binary_expression "PTR_DAT_001112f8 + 0x18ac" identifier + number_literal) , (binary_expression "PTR_DAT_001112f8 + 0x1870" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f8 + 0x1a3c" identifier + number_literal) ))))) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);" (assignment_expression "puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" identifier = (cast_expression "(uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar18,4)" ( identifier , number_literal ))))) ;) (if_statement "if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }" if (parenthesized_expression "(0 < iVar18)" ( (binary_expression "0 < iVar18" number_literal < identifier) )) (compound_statement "{\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar2;" (assignment_expression "puVar10 = puVar2" identifier = identifier) ;) (do_statement "do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);" do (compound_statement "{\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    }" { (expression_statement "iVar3 = *param_3 - iVar11;" (assignment_expression "iVar3 = *param_3 - iVar11" identifier = (binary_expression "*param_3 - iVar11" (pointer_expression "*param_3" * identifier) - identifier)) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "*puVar10 = param_3[iVar3];" (assignment_expression "*puVar10 = param_3[iVar3]" (pointer_expression "*puVar10" * identifier) = (subscript_expression "param_3[iVar3]" identifier [ identifier ])) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar18 != iVar11)" ( (binary_expression "iVar18 != iVar11" identifier != identifier) )) ;) })) (expression_statement "uVar17 = *param_1;" (assignment_expression "uVar17 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }" if (parenthesized_expression "(*param_1 <= *param_2)" ( (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" * identifier) <= (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    uVar17 = *param_2;\n  }" { (expression_statement "uVar17 = *param_2;" (assignment_expression "uVar17 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar11 = uVar17 << 1;" (assignment_expression "iVar11 = uVar17 << 1" identifier = (binary_expression "uVar17 << 1" identifier << number_literal)) ;) (if_statement "if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }" if (parenthesized_expression "(iVar11 <= iVar18)" ( (binary_expression "iVar11 <= iVar18" identifier <= identifier) )) (compound_statement "{\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }" { (expression_statement "uVar17 = iVar18 / 2 + 1;" (assignment_expression "uVar17 = iVar18 / 2 + 1" identifier = (binary_expression "iVar18 / 2 + 1" (binary_expression "iVar18 / 2" identifier / number_literal) + number_literal)) ;) (expression_statement "iVar11 = uVar17 * 2;" (assignment_expression "iVar11 = uVar17 * 2" identifier = (binary_expression "uVar17 * 2" identifier * number_literal)) ;) })) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar17,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar12 = *param_1;" (assignment_expression "uVar12 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar3 = uVar17 - uVar12;" (assignment_expression "iVar3 = uVar17 - uVar12" identifier = (binary_expression "uVar17 - uVar12" identifier - identifier)) ;) (if_statement "if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }" { (expression_statement "puVar6 = puVar4;" (assignment_expression "puVar6 = puVar4" identifier = identifier) ;) (do_statement "do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);" do (compound_statement "{\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 + iVar3 != puVar6)" ( (binary_expression "puVar4 + iVar3 != puVar6" (binary_expression "puVar4 + iVar3" identifier + identifier) != identifier) )) ;) (expression_statement "uVar12 = *param_1;" (assignment_expression "uVar12 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (if_statement "if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }" if (parenthesized_expression "(0 < (int)uVar12)" ( (binary_expression "0 < (int)uVar12" number_literal < (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar4 + iVar3;" (assignment_expression "puVar10 = puVar4 + iVar3" identifier = (binary_expression "puVar4 + iVar3" identifier + identifier)) ;) (do_statement "do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);" do (compound_statement "{\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar10 = param_1[uVar12];" (assignment_expression "*puVar10 = param_1[uVar12]" (pointer_expression "*puVar10" * identifier) = (subscript_expression "param_1[uVar12]" identifier [ identifier ])) ;) (expression_statement "uVar12 = *param_1 - iVar5;" (assignment_expression "uVar12 = *param_1 - iVar5" identifier = (binary_expression "*param_1 - iVar5" (pointer_expression "*param_1" * identifier) - identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < (int)*param_1)" ( (binary_expression "iVar5 < (int)*param_1" identifier < (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier))) )) ;) })) (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar17,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar12 = *param_2;" (assignment_expression "uVar12 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar3 = uVar17 - uVar12;" (assignment_expression "iVar3 = uVar17 - uVar12" identifier = (binary_expression "uVar17 - uVar12" identifier - identifier)) ;) (if_statement "if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }" { (expression_statement "puVar7 = puVar6;" (assignment_expression "puVar7 = puVar6" identifier = identifier) ;) (do_statement "do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);" do (compound_statement "{\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar6 + iVar3 != puVar7)" ( (binary_expression "puVar6 + iVar3 != puVar7" (binary_expression "puVar6 + iVar3" identifier + identifier) != identifier) )) ;) (expression_statement "uVar12 = *param_2;" (assignment_expression "uVar12 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (if_statement "if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }" if (parenthesized_expression "(0 < (int)uVar12)" ( (binary_expression "0 < (int)uVar12" number_literal < (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar6 + iVar3;" (assignment_expression "puVar10 = puVar6 + iVar3" identifier = (binary_expression "puVar6 + iVar3" identifier + identifier)) ;) (do_statement "do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);" do (compound_statement "{\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar10 = param_2[uVar12];" (assignment_expression "*puVar10 = param_2[uVar12]" (pointer_expression "*puVar10" * identifier) = (subscript_expression "param_2[uVar12]" identifier [ identifier ])) ;) (expression_statement "uVar12 = *param_2 - iVar5;" (assignment_expression "uVar12 = *param_2 - iVar5" identifier = (binary_expression "*param_2 - iVar5" (pointer_expression "*param_2" * identifier) - identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < (int)*param_2)" ( (binary_expression "iVar5 < (int)*param_2" identifier < (cast_expression "(int)*param_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_2" * identifier))) )) ;) })) (expression_statement "iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);" (assignment_expression "iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4)" identifier = (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar11,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11,4)" ( identifier , number_literal )))) ;) (if_statement "if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" if (parenthesized_expression "((int)uVar17 < 0x33)" ( (binary_expression "(int)uVar17 < 0x33" (cast_expression "(int)uVar17" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_2c = 0;\n    iVar5 = 0;\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" else (compound_statement "{\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar12 = uVar17;" (assignment_expression "uVar12 = uVar17" identifier = identifier) ;) (do_statement "do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);" do (compound_statement "{\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    }" { (expression_statement "uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;" (assignment_expression "uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1" identifier = (binary_expression "(uVar12 - ((int)uVar12 >> 1)) + 1" (parenthesized_expression "(uVar12 - ((int)uVar12 >> 1))" ( (binary_expression "uVar12 - ((int)uVar12 >> 1)" identifier - (parenthesized_expression "((int)uVar12 >> 1)" ( (binary_expression "(int)uVar12 >> 1" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )) + number_literal)) ;) (expression_statement "iVar5 = iVar5 + uVar12 * 4;" (assignment_expression "iVar5 = iVar5 + uVar12 * 4" identifier = (binary_expression "iVar5 + uVar12 * 4" identifier + (binary_expression "uVar12 * 4" identifier * number_literal))) ;) }) while (parenthesized_expression "(0x32 < (int)uVar12)" ( (binary_expression "0x32 < (int)uVar12" number_literal < (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (expression_statement "local_2c = iVar5 * 4;" (assignment_expression "local_2c = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) }))) (expression_statement "uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);" (assignment_expression "uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4)" identifier = (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar5,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,4)" ( identifier , number_literal )))) ;) (expression_statement "iVar14 = 5;" (assignment_expression "iVar14 = 5" identifier = number_literal) ;) (expression_statement "uVar13 = *puVar2;" (assignment_expression "uVar13 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;) (expression_statement "uVar12 = uVar13;" (assignment_expression "uVar12 = uVar13" identifier = identifier) ;) (do_statement "do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);" do (compound_statement "{\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  }" { (if_statement "if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }" if (parenthesized_expression "(uVar12 >> (0x20U - iVar5 & 0x1f) == 0)" ( (binary_expression "uVar12 >> (0x20U - iVar5 & 0x1f) == 0" (binary_expression "uVar12 >> (0x20U - iVar5 & 0x1f)" identifier >> (parenthesized_expression "(0x20U - iVar5 & 0x1f)" ( (binary_expression "0x20U - iVar5 & 0x1f" (binary_expression "0x20U - iVar5" number_literal - identifier) & number_literal) ))) == number_literal) )) (compound_statement "{\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }" { (expression_statement "uVar12 = uVar12 << iVar5;" (assignment_expression "uVar12 = uVar12 << iVar5" identifier = (binary_expression "uVar12 << iVar5" identifier << identifier)) ;) (expression_statement "uVar15 = uVar15 + iVar5;" (assignment_expression "uVar15 = uVar15 + iVar5" identifier = (binary_expression "uVar15 + iVar5" identifier + identifier)) ;) })) (expression_statement "iVar14 = iVar14 + -1;" (assignment_expression "iVar14 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 >> 1;" (assignment_expression "iVar5 = iVar5 >> 1" identifier = (binary_expression "iVar5 >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "(iVar14 != 0)" ( (binary_expression "iVar14 != 0" identifier != number_literal) )) ;) (if_statement "if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }" if (parenthesized_expression "((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18))" ( (binary_expression "(uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)" (parenthesized_expression "(uVar15 != 0)" ( (binary_expression "uVar15 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)" ( (comma_expression "uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18" (assignment_expression "uVar13 = uVar13 << (uVar15 & 0x1f)" identifier = (binary_expression "uVar13 << (uVar15 & 0x1f)" identifier << (parenthesized_expression "(uVar15 & 0x1f)" ( (binary_expression "uVar15 & 0x1f" identifier & number_literal) )))) , (binary_expression "1 < iVar18" number_literal < identifier)) ))) )) (compound_statement "{\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }" { (expression_statement "uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);" (assignment_expression "uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f)" identifier = (binary_expression "uVar13 | puVar2[1] >> (-uVar15 & 0x1f)" identifier | (binary_expression "puVar2[1] >> (-uVar15 & 0x1f)" (subscript_expression "puVar2[1]" identifier [ number_literal ]) >> (parenthesized_expression "(-uVar15 & 0x1f)" ( (binary_expression "-uVar15 & 0x1f" (unary_expression "-uVar15" - identifier) & number_literal) ))))) ;) })) (expression_statement "uVar9 = FUN_000665a0(uVar13);" (assignment_expression "uVar9 = FUN_000665a0(uVar13)" identifier = (call_expression "FUN_000665a0(uVar13)" identifier (argument_list "(uVar13)" ( identifier )))) ;) (expression_statement "FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);" (call_expression "FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8)" identifier (argument_list "(puVar4,puVar6,iVar3,uVar17,uVar8)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = iVar18;" (assignment_expression "iVar5 = iVar18" identifier = identifier) ;) (if_statement "if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }" if (parenthesized_expression "(iVar11 < iVar18)" ( (binary_expression "iVar11 < iVar18" identifier < identifier) )) (compound_statement "{\n    iVar5 = iVar11;\n  }" { (expression_statement "iVar5 = iVar11;" (assignment_expression "iVar5 = iVar11" identifier = identifier) ;) })) (expression_statement "FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);" (call_expression "FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15)" identifier (argument_list "(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15)" ( identifier , identifier , identifier , identifier , number_literal , identifier , identifier ))) ;) (expression_statement "puVar10 = (uint *)FUN_00066ee4(iVar5);" (assignment_expression "puVar10 = (uint *)FUN_00066ee4(iVar5)" identifier = (cast_expression "(uint *)FUN_00066ee4(iVar5)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00066ee4(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))))) ;) (if_statement "if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (expression_statement "puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);" (assignment_expression "puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4)" identifier = (cast_expression "(uint *)(iVar3 + (iVar11 - iVar5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (iVar11 - iVar5) * 4)" ( (binary_expression "iVar3 + (iVar11 - iVar5) * 4" identifier + (binary_expression "(iVar11 - iVar5) * 4" (parenthesized_expression "(iVar11 - iVar5)" ( (binary_expression "iVar11 - iVar5" identifier - identifier) )) * number_literal)) )))) ;) (do_statement "do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);" do (compound_statement "{\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    }" { (expression_statement "iVar11 = *puVar10 - iVar14;" (assignment_expression "iVar11 = *puVar10 - iVar14" identifier = (binary_expression "*puVar10 - iVar14" (pointer_expression "*puVar10" * identifier) - identifier)) ;) (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "puVar10[iVar11] = *puVar16;" (assignment_expression "puVar10[iVar11] = *puVar16" (subscript_expression "puVar10[iVar11]" identifier [ identifier ]) = (pointer_expression "*puVar16" * identifier)) ;) (expression_statement "puVar16 = puVar16 + 1;" (assignment_expression "puVar16 = puVar16 + 1" identifier = (binary_expression "puVar16 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar14)" ( (binary_expression "iVar5 != iVar14" identifier != identifier) )) ;) })) (expression_statement "uVar12 = *puVar10;" (assignment_expression "uVar12 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (if_statement "if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }" if (parenthesized_expression "(1 < uVar12)" ( (binary_expression "1 < uVar12" number_literal < identifier) )) (compound_statement "{\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }" { (expression_statement "puVar16 = puVar10 + uVar12;" (assignment_expression "puVar16 = puVar10 + uVar12" identifier = (binary_expression "puVar10 + uVar12" identifier + identifier)) ;) (expression_statement "uVar13 = *puVar16;" (assignment_expression "uVar13 = *puVar16" identifier = (pointer_expression "*puVar16" * identifier)) ;) (while_statement "while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }" while (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }" { (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) ;) (expression_statement "*puVar10 = uVar12;" (assignment_expression "*puVar10 = uVar12" (pointer_expression "*puVar10" * identifier) = identifier) ;) (if_statement "if (uVar12 == 1) break;" if (parenthesized_expression "(uVar12 == 1)" ( (binary_expression "uVar12 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = puVar16 + -1;" (assignment_expression "puVar1 = puVar16 + -1" identifier = (binary_expression "puVar16 + -1" identifier + number_literal)) ;) (expression_statement "puVar16 = puVar16 + -1;" (assignment_expression "puVar16 = puVar16 + -1" identifier = (binary_expression "puVar16 + -1" identifier + number_literal)) ;) (expression_statement "uVar13 = *puVar1;" (assignment_expression "uVar13 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) })) })) (expression_statement "(*(code *)PTR_smemclr_00111398)(uVar8,local_2c);" (call_expression "(*(code *)PTR_smemclr_00111398)(uVar8,local_2c)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8,local_2c)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar8);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar8)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);" (call_expression "(*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,uVar17 << 3)" ( identifier , (binary_expression "uVar17 << 3" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,iVar18 * 4)" ( identifier , (binary_expression "iVar18 * 4" identifier * number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4,uVar17 << 2)" ( identifier , (binary_expression "uVar17 << 2" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar4);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar4)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6,uVar17 << 2)" ( identifier , (binary_expression "uVar17 << 2" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar6);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (return_statement "return puVar10;" return identifier ;) })))
(translation_unit "Bignum_conflict modmul(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)\n\n{\n  BignumInt *m;\n  int iVar1;\n  BignumInt *pBVar2;\n  int iVar3;\n  BignumInt *pBVar4;\n  BignumInt *pBVar5;\n  uint uVar6;\n  BignumInt *scratch;\n  Bignum_conflict pBVar7;\n  BignumInt BVar8;\n  BignumInt BVar9;\n  BignumInt BVar10;\n  Bignum_conflict pBVar11;\n  BignumInt *pBVar12;\n  uint len;\n  BignumInt mlen;\n  int local_2c;\n  \n  mlen = *mod;\n  if (mod[mlen] == 0) {\n    pBVar7 = (Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)\n                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c);\n    return pBVar7;\n  }\n  m = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(mlen,4);\n  if (0 < (int)mlen) {\n    BVar8 = 0;\n    pBVar2 = m;\n    do {\n      iVar1 = *mod - BVar8;\n      BVar8 = BVar8 + 1;\n      *pBVar2 = mod[iVar1];\n      pBVar2 = pBVar2 + 1;\n    } while (mlen != BVar8);\n  }\n  len = *p;\n  if (*p <= *q) {\n    len = *q;\n  }\n  BVar8 = len << 1;\n  if ((int)BVar8 <= (int)mlen) {\n    len = (int)mlen / 2 + 1;\n    BVar8 = len * 2;\n  }\n  pBVar2 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);\n  BVar9 = *p;\n  iVar1 = len - BVar9;\n  if (0 < iVar1) {\n    pBVar4 = pBVar2;\n    do {\n      *pBVar4 = 0;\n      pBVar4 = pBVar4 + 1;\n    } while (pBVar2 + iVar1 != pBVar4);\n    BVar9 = *p;\n  }\n  if (0 < (int)BVar9) {\n    iVar3 = 0;\n    pBVar4 = pBVar2 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar4 = p[BVar9];\n      BVar9 = *p - iVar3;\n      pBVar4 = pBVar4 + 1;\n    } while (iVar3 < (int)*p);\n  }\n  pBVar4 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);\n  BVar9 = *q;\n  iVar1 = len - BVar9;\n  if (0 < iVar1) {\n    pBVar5 = pBVar4;\n    do {\n      *pBVar5 = 0;\n      pBVar5 = pBVar5 + 1;\n    } while (pBVar4 + iVar1 != pBVar5);\n    BVar9 = *q;\n  }\n  if (0 < (int)BVar9) {\n    iVar3 = 0;\n    pBVar5 = pBVar4 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar5 = q[BVar9];\n      BVar9 = *q - iVar3;\n      pBVar5 = pBVar5 + 1;\n    } while (iVar3 < (int)*q);\n  }\n  pBVar5 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(BVar8,4);\n  if ((int)len < 0x33) {\n    local_2c = 0;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = 0;\n    uVar6 = len;\n    do {\n      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;\n      iVar1 = iVar1 + uVar6 * 4;\n    } while (0x32 < (int)uVar6);\n    local_2c = iVar1 * 4;\n  }\n  scratch = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(iVar1,4);\n  iVar3 = 5;\n  BVar10 = *m;\n  uVar6 = 0;\n  iVar1 = 0x10;\n  BVar9 = BVar10;\n  do {\n    if (BVar9 >> (0x20U - iVar1 & 0x1f) == 0) {\n      BVar9 = BVar9 << iVar1;\n      uVar6 = uVar6 + iVar1;\n    }\n    iVar3 = iVar3 + -1;\n    iVar1 = iVar1 >> 1;\n  } while (iVar3 != 0);\n  if ((uVar6 != 0) && (BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen)) {\n    BVar10 = BVar10 | m[1] >> (-uVar6 & 0x1f);\n  }\n  BVar10 = reciprocal_word(BVar10);\n  internal_mul(pBVar2,pBVar4,pBVar5,len,scratch);\n  BVar9 = mlen;\n  if ((int)BVar8 < (int)mlen) {\n    BVar9 = BVar8;\n  }\n  internal_mod(pBVar5,BVar8,m,mlen,(BignumInt *)0x0,BVar10,uVar6);\n  pBVar7 = newbn(BVar9);\n  if (0 < (int)BVar9) {\n    BVar10 = 0;\n    pBVar12 = pBVar5 + (BVar8 - BVar9);\n    do {\n      iVar1 = *pBVar7 - BVar10;\n      BVar10 = BVar10 + 1;\n      pBVar7[iVar1] = *pBVar12;\n      pBVar12 = pBVar12 + 1;\n    } while (BVar9 != BVar10);\n  }\n  BVar8 = *pBVar7;\n  if (1 < BVar8) {\n    pBVar11 = pBVar7 + BVar8;\n    BVar9 = *pBVar11;\n    while (BVar9 == 0) {\n      BVar8 = BVar8 - 1;\n      *pBVar7 = BVar8;\n      if (BVar8 == 1) break;\n      pBVar12 = pBVar11 + -1;\n      pBVar11 = pBVar11 + -1;\n      BVar9 = *pBVar12;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(scratch,local_2c);\n  (*(code *)PTR_safefree_001112f0)(scratch);\n  (*(code *)PTR_smemclr_00111398)(pBVar5,len << 3);\n  (*(code *)PTR_safefree_001112f0)(pBVar5);\n  (*(code *)PTR_smemclr_00111398)(m,mlen * 4);\n  (*(code *)PTR_safefree_001112f0)(m);\n  (*(code *)PTR_smemclr_00111398)(pBVar2,len << 2);\n  (*(code *)PTR_safefree_001112f0)(pBVar2);\n  (*(code *)PTR_smemclr_00111398)(pBVar4,len << 2);\n  (*(code *)PTR_safefree_001112f0)(pBVar4);\n  return pBVar7;\n}\n\n" (function_definition "Bignum_conflict modmul(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)\n\n{\n  BignumInt *m;\n  int iVar1;\n  BignumInt *pBVar2;\n  int iVar3;\n  BignumInt *pBVar4;\n  BignumInt *pBVar5;\n  uint uVar6;\n  BignumInt *scratch;\n  Bignum_conflict pBVar7;\n  BignumInt BVar8;\n  BignumInt BVar9;\n  BignumInt BVar10;\n  Bignum_conflict pBVar11;\n  BignumInt *pBVar12;\n  uint len;\n  BignumInt mlen;\n  int local_2c;\n  \n  mlen = *mod;\n  if (mod[mlen] == 0) {\n    pBVar7 = (Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)\n                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c);\n    return pBVar7;\n  }\n  m = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(mlen,4);\n  if (0 < (int)mlen) {\n    BVar8 = 0;\n    pBVar2 = m;\n    do {\n      iVar1 = *mod - BVar8;\n      BVar8 = BVar8 + 1;\n      *pBVar2 = mod[iVar1];\n      pBVar2 = pBVar2 + 1;\n    } while (mlen != BVar8);\n  }\n  len = *p;\n  if (*p <= *q) {\n    len = *q;\n  }\n  BVar8 = len << 1;\n  if ((int)BVar8 <= (int)mlen) {\n    len = (int)mlen / 2 + 1;\n    BVar8 = len * 2;\n  }\n  pBVar2 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);\n  BVar9 = *p;\n  iVar1 = len - BVar9;\n  if (0 < iVar1) {\n    pBVar4 = pBVar2;\n    do {\n      *pBVar4 = 0;\n      pBVar4 = pBVar4 + 1;\n    } while (pBVar2 + iVar1 != pBVar4);\n    BVar9 = *p;\n  }\n  if (0 < (int)BVar9) {\n    iVar3 = 0;\n    pBVar4 = pBVar2 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar4 = p[BVar9];\n      BVar9 = *p - iVar3;\n      pBVar4 = pBVar4 + 1;\n    } while (iVar3 < (int)*p);\n  }\n  pBVar4 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);\n  BVar9 = *q;\n  iVar1 = len - BVar9;\n  if (0 < iVar1) {\n    pBVar5 = pBVar4;\n    do {\n      *pBVar5 = 0;\n      pBVar5 = pBVar5 + 1;\n    } while (pBVar4 + iVar1 != pBVar5);\n    BVar9 = *q;\n  }\n  if (0 < (int)BVar9) {\n    iVar3 = 0;\n    pBVar5 = pBVar4 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar5 = q[BVar9];\n      BVar9 = *q - iVar3;\n      pBVar5 = pBVar5 + 1;\n    } while (iVar3 < (int)*q);\n  }\n  pBVar5 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(BVar8,4);\n  if ((int)len < 0x33) {\n    local_2c = 0;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = 0;\n    uVar6 = len;\n    do {\n      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;\n      iVar1 = iVar1 + uVar6 * 4;\n    } while (0x32 < (int)uVar6);\n    local_2c = iVar1 * 4;\n  }\n  scratch = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(iVar1,4);\n  iVar3 = 5;\n  BVar10 = *m;\n  uVar6 = 0;\n  iVar1 = 0x10;\n  BVar9 = BVar10;\n  do {\n    if (BVar9 >> (0x20U - iVar1 & 0x1f) == 0) {\n      BVar9 = BVar9 << iVar1;\n      uVar6 = uVar6 + iVar1;\n    }\n    iVar3 = iVar3 + -1;\n    iVar1 = iVar1 >> 1;\n  } while (iVar3 != 0);\n  if ((uVar6 != 0) && (BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen)) {\n    BVar10 = BVar10 | m[1] >> (-uVar6 & 0x1f);\n  }\n  BVar10 = reciprocal_word(BVar10);\n  internal_mul(pBVar2,pBVar4,pBVar5,len,scratch);\n  BVar9 = mlen;\n  if ((int)BVar8 < (int)mlen) {\n    BVar9 = BVar8;\n  }\n  internal_mod(pBVar5,BVar8,m,mlen,(BignumInt *)0x0,BVar10,uVar6);\n  pBVar7 = newbn(BVar9);\n  if (0 < (int)BVar9) {\n    BVar10 = 0;\n    pBVar12 = pBVar5 + (BVar8 - BVar9);\n    do {\n      iVar1 = *pBVar7 - BVar10;\n      BVar10 = BVar10 + 1;\n      pBVar7[iVar1] = *pBVar12;\n      pBVar12 = pBVar12 + 1;\n    } while (BVar9 != BVar10);\n  }\n  BVar8 = *pBVar7;\n  if (1 < BVar8) {\n    pBVar11 = pBVar7 + BVar8;\n    BVar9 = *pBVar11;\n    while (BVar9 == 0) {\n      BVar8 = BVar8 - 1;\n      *pBVar7 = BVar8;\n      if (BVar8 == 1) break;\n      pBVar12 = pBVar11 + -1;\n      pBVar11 = pBVar11 + -1;\n      BVar9 = *pBVar12;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(scratch,local_2c);\n  (*(code *)PTR_safefree_001112f0)(scratch);\n  (*(code *)PTR_smemclr_00111398)(pBVar5,len << 3);\n  (*(code *)PTR_safefree_001112f0)(pBVar5);\n  (*(code *)PTR_smemclr_00111398)(m,mlen * 4);\n  (*(code *)PTR_safefree_001112f0)(m);\n  (*(code *)PTR_smemclr_00111398)(pBVar2,len << 2);\n  (*(code *)PTR_safefree_001112f0)(pBVar2);\n  (*(code *)PTR_smemclr_00111398)(pBVar4,len << 2);\n  (*(code *)PTR_safefree_001112f0)(pBVar4);\n  return pBVar7;\n}" type_identifier (function_declarator "modmul(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)" identifier (parameter_list "(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)" ( (parameter_declaration "Bignum_conflict p" type_identifier identifier) , (parameter_declaration "Bignum_conflict q" type_identifier identifier) , (parameter_declaration "Bignum_conflict mod" type_identifier identifier) ))) (compound_statement "{\n  BignumInt *m;\n  int iVar1;\n  BignumInt *pBVar2;\n  int iVar3;\n  BignumInt *pBVar4;\n  BignumInt *pBVar5;\n  uint uVar6;\n  BignumInt *scratch;\n  Bignum_conflict pBVar7;\n  BignumInt BVar8;\n  BignumInt BVar9;\n  BignumInt BVar10;\n  Bignum_conflict pBVar11;\n  BignumInt *pBVar12;\n  uint len;\n  BignumInt mlen;\n  int local_2c;\n  \n  mlen = *mod;\n  if (mod[mlen] == 0) {\n    pBVar7 = (Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)\n                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c);\n    return pBVar7;\n  }\n  m = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(mlen,4);\n  if (0 < (int)mlen) {\n    BVar8 = 0;\n    pBVar2 = m;\n    do {\n      iVar1 = *mod - BVar8;\n      BVar8 = BVar8 + 1;\n      *pBVar2 = mod[iVar1];\n      pBVar2 = pBVar2 + 1;\n    } while (mlen != BVar8);\n  }\n  len = *p;\n  if (*p <= *q) {\n    len = *q;\n  }\n  BVar8 = len << 1;\n  if ((int)BVar8 <= (int)mlen) {\n    len = (int)mlen / 2 + 1;\n    BVar8 = len * 2;\n  }\n  pBVar2 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);\n  BVar9 = *p;\n  iVar1 = len - BVar9;\n  if (0 < iVar1) {\n    pBVar4 = pBVar2;\n    do {\n      *pBVar4 = 0;\n      pBVar4 = pBVar4 + 1;\n    } while (pBVar2 + iVar1 != pBVar4);\n    BVar9 = *p;\n  }\n  if (0 < (int)BVar9) {\n    iVar3 = 0;\n    pBVar4 = pBVar2 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar4 = p[BVar9];\n      BVar9 = *p - iVar3;\n      pBVar4 = pBVar4 + 1;\n    } while (iVar3 < (int)*p);\n  }\n  pBVar4 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);\n  BVar9 = *q;\n  iVar1 = len - BVar9;\n  if (0 < iVar1) {\n    pBVar5 = pBVar4;\n    do {\n      *pBVar5 = 0;\n      pBVar5 = pBVar5 + 1;\n    } while (pBVar4 + iVar1 != pBVar5);\n    BVar9 = *q;\n  }\n  if (0 < (int)BVar9) {\n    iVar3 = 0;\n    pBVar5 = pBVar4 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar5 = q[BVar9];\n      BVar9 = *q - iVar3;\n      pBVar5 = pBVar5 + 1;\n    } while (iVar3 < (int)*q);\n  }\n  pBVar5 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(BVar8,4);\n  if ((int)len < 0x33) {\n    local_2c = 0;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = 0;\n    uVar6 = len;\n    do {\n      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;\n      iVar1 = iVar1 + uVar6 * 4;\n    } while (0x32 < (int)uVar6);\n    local_2c = iVar1 * 4;\n  }\n  scratch = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(iVar1,4);\n  iVar3 = 5;\n  BVar10 = *m;\n  uVar6 = 0;\n  iVar1 = 0x10;\n  BVar9 = BVar10;\n  do {\n    if (BVar9 >> (0x20U - iVar1 & 0x1f) == 0) {\n      BVar9 = BVar9 << iVar1;\n      uVar6 = uVar6 + iVar1;\n    }\n    iVar3 = iVar3 + -1;\n    iVar1 = iVar1 >> 1;\n  } while (iVar3 != 0);\n  if ((uVar6 != 0) && (BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen)) {\n    BVar10 = BVar10 | m[1] >> (-uVar6 & 0x1f);\n  }\n  BVar10 = reciprocal_word(BVar10);\n  internal_mul(pBVar2,pBVar4,pBVar5,len,scratch);\n  BVar9 = mlen;\n  if ((int)BVar8 < (int)mlen) {\n    BVar9 = BVar8;\n  }\n  internal_mod(pBVar5,BVar8,m,mlen,(BignumInt *)0x0,BVar10,uVar6);\n  pBVar7 = newbn(BVar9);\n  if (0 < (int)BVar9) {\n    BVar10 = 0;\n    pBVar12 = pBVar5 + (BVar8 - BVar9);\n    do {\n      iVar1 = *pBVar7 - BVar10;\n      BVar10 = BVar10 + 1;\n      pBVar7[iVar1] = *pBVar12;\n      pBVar12 = pBVar12 + 1;\n    } while (BVar9 != BVar10);\n  }\n  BVar8 = *pBVar7;\n  if (1 < BVar8) {\n    pBVar11 = pBVar7 + BVar8;\n    BVar9 = *pBVar11;\n    while (BVar9 == 0) {\n      BVar8 = BVar8 - 1;\n      *pBVar7 = BVar8;\n      if (BVar8 == 1) break;\n      pBVar12 = pBVar11 + -1;\n      pBVar11 = pBVar11 + -1;\n      BVar9 = *pBVar12;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(scratch,local_2c);\n  (*(code *)PTR_safefree_001112f0)(scratch);\n  (*(code *)PTR_smemclr_00111398)(pBVar5,len << 3);\n  (*(code *)PTR_safefree_001112f0)(pBVar5);\n  (*(code *)PTR_smemclr_00111398)(m,mlen * 4);\n  (*(code *)PTR_safefree_001112f0)(m);\n  (*(code *)PTR_smemclr_00111398)(pBVar2,len << 2);\n  (*(code *)PTR_safefree_001112f0)(pBVar2);\n  (*(code *)PTR_smemclr_00111398)(pBVar4,len << 2);\n  (*(code *)PTR_safefree_001112f0)(pBVar4);\n  return pBVar7;\n}" { (declaration "BignumInt *m;" type_identifier (pointer_declarator "*m" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "BignumInt *pBVar2;" type_identifier (pointer_declarator "*pBVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "BignumInt *pBVar4;" type_identifier (pointer_declarator "*pBVar4" * identifier) ;) (declaration "BignumInt *pBVar5;" type_identifier (pointer_declarator "*pBVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "BignumInt *scratch;" type_identifier (pointer_declarator "*scratch" * identifier) ;) (declaration "Bignum_conflict pBVar7;" type_identifier identifier ;) (declaration "BignumInt BVar8;" type_identifier identifier ;) (declaration "BignumInt BVar9;" type_identifier identifier ;) (declaration "BignumInt BVar10;" type_identifier identifier ;) (declaration "Bignum_conflict pBVar11;" type_identifier identifier ;) (declaration "BignumInt *pBVar12;" type_identifier (pointer_declarator "*pBVar12" * identifier) ;) (declaration "uint len;" type_identifier identifier ;) (declaration "BignumInt mlen;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "mlen = *mod;" (assignment_expression "mlen = *mod" identifier = (pointer_expression "*mod" * identifier)) ;) (if_statement "if (mod[mlen] == 0) {\n    pBVar7 = (Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)\n                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c);\n    return pBVar7;\n  }" if (parenthesized_expression "(mod[mlen] == 0)" ( (binary_expression "mod[mlen] == 0" (subscript_expression "mod[mlen]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n    pBVar7 = (Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)\n                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c);\n    return pBVar7;\n  }" { (expression_statement "pBVar7 = (Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)\n                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c);" (assignment_expression "pBVar7 = (Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)\n                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c)" identifier = (call_expression "(Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)\n                       (PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c)" (call_expression "(Bignum_conflict)\n             (*(code *)PTR___assert_fail_00111f50)" (parenthesized_expression "(Bignum_conflict)" ( identifier )) (argument_list "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(PTR_E1_202__001112f8 + 0x18ac,PTR_E1_202__001112f8 + 0x1870,0x4c1,\n                        PTR_E1_202__001112f8 + 0x1a3c)" ( (binary_expression "PTR_E1_202__001112f8 + 0x18ac" identifier + number_literal) , (binary_expression "PTR_E1_202__001112f8 + 0x1870" identifier + number_literal) , number_literal , (binary_expression "PTR_E1_202__001112f8 + 0x1a3c" identifier + number_literal) )))) ;) (return_statement "return pBVar7;" return identifier ;) })) (expression_statement "m = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(mlen,4);" (assignment_expression "m = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(mlen,4)" identifier = (cast_expression "(BignumInt *)(*(code *)PTR_safemalloc_001112ec)(mlen,4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(mlen,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(mlen,4)" ( identifier , number_literal ))))) ;) (if_statement "if (0 < (int)mlen) {\n    BVar8 = 0;\n    pBVar2 = m;\n    do {\n      iVar1 = *mod - BVar8;\n      BVar8 = BVar8 + 1;\n      *pBVar2 = mod[iVar1];\n      pBVar2 = pBVar2 + 1;\n    } while (mlen != BVar8);\n  }" if (parenthesized_expression "(0 < (int)mlen)" ( (binary_expression "0 < (int)mlen" number_literal < (cast_expression "(int)mlen" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    BVar8 = 0;\n    pBVar2 = m;\n    do {\n      iVar1 = *mod - BVar8;\n      BVar8 = BVar8 + 1;\n      *pBVar2 = mod[iVar1];\n      pBVar2 = pBVar2 + 1;\n    } while (mlen != BVar8);\n  }" { (expression_statement "BVar8 = 0;" (assignment_expression "BVar8 = 0" identifier = number_literal) ;) (expression_statement "pBVar2 = m;" (assignment_expression "pBVar2 = m" identifier = identifier) ;) (do_statement "do {\n      iVar1 = *mod - BVar8;\n      BVar8 = BVar8 + 1;\n      *pBVar2 = mod[iVar1];\n      pBVar2 = pBVar2 + 1;\n    } while (mlen != BVar8);" do (compound_statement "{\n      iVar1 = *mod - BVar8;\n      BVar8 = BVar8 + 1;\n      *pBVar2 = mod[iVar1];\n      pBVar2 = pBVar2 + 1;\n    }" { (expression_statement "iVar1 = *mod - BVar8;" (assignment_expression "iVar1 = *mod - BVar8" identifier = (binary_expression "*mod - BVar8" (pointer_expression "*mod" * identifier) - identifier)) ;) (expression_statement "BVar8 = BVar8 + 1;" (assignment_expression "BVar8 = BVar8 + 1" identifier = (binary_expression "BVar8 + 1" identifier + number_literal)) ;) (expression_statement "*pBVar2 = mod[iVar1];" (assignment_expression "*pBVar2 = mod[iVar1]" (pointer_expression "*pBVar2" * identifier) = (subscript_expression "mod[iVar1]" identifier [ identifier ])) ;) (expression_statement "pBVar2 = pBVar2 + 1;" (assignment_expression "pBVar2 = pBVar2 + 1" identifier = (binary_expression "pBVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(mlen != BVar8)" ( (binary_expression "mlen != BVar8" identifier != identifier) )) ;) })) (expression_statement "len = *p;" (assignment_expression "len = *p" identifier = (pointer_expression "*p" * identifier)) ;) (if_statement "if (*p <= *q) {\n    len = *q;\n  }" if (parenthesized_expression "(*p <= *q)" ( (binary_expression "*p <= *q" (pointer_expression "*p" * identifier) <= (pointer_expression "*q" * identifier)) )) (compound_statement "{\n    len = *q;\n  }" { (expression_statement "len = *q;" (assignment_expression "len = *q" identifier = (pointer_expression "*q" * identifier)) ;) })) (expression_statement "BVar8 = len << 1;" (assignment_expression "BVar8 = len << 1" identifier = (binary_expression "len << 1" identifier << number_literal)) ;) (if_statement "if ((int)BVar8 <= (int)mlen) {\n    len = (int)mlen / 2 + 1;\n    BVar8 = len * 2;\n  }" if (parenthesized_expression "((int)BVar8 <= (int)mlen)" ( (binary_expression "(int)BVar8 <= (int)mlen" (cast_expression "(int)BVar8" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)mlen" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    len = (int)mlen / 2 + 1;\n    BVar8 = len * 2;\n  }" { (expression_statement "len = (int)mlen / 2 + 1;" (assignment_expression "len = (int)mlen / 2 + 1" identifier = (binary_expression "(int)mlen / 2 + 1" (binary_expression "(int)mlen / 2" (cast_expression "(int)mlen" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) + number_literal)) ;) (expression_statement "BVar8 = len * 2;" (assignment_expression "BVar8 = len * 2" identifier = (binary_expression "len * 2" identifier * number_literal)) ;) })) (expression_statement "pBVar2 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);" (assignment_expression "pBVar2 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4)" identifier = (cast_expression "(BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(len,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(len,4)" ( identifier , number_literal ))))) ;) (expression_statement "BVar9 = *p;" (assignment_expression "BVar9 = *p" identifier = (pointer_expression "*p" * identifier)) ;) (expression_statement "iVar1 = len - BVar9;" (assignment_expression "iVar1 = len - BVar9" identifier = (binary_expression "len - BVar9" identifier - identifier)) ;) (if_statement "if (0 < iVar1) {\n    pBVar4 = pBVar2;\n    do {\n      *pBVar4 = 0;\n      pBVar4 = pBVar4 + 1;\n    } while (pBVar2 + iVar1 != pBVar4);\n    BVar9 = *p;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    pBVar4 = pBVar2;\n    do {\n      *pBVar4 = 0;\n      pBVar4 = pBVar4 + 1;\n    } while (pBVar2 + iVar1 != pBVar4);\n    BVar9 = *p;\n  }" { (expression_statement "pBVar4 = pBVar2;" (assignment_expression "pBVar4 = pBVar2" identifier = identifier) ;) (do_statement "do {\n      *pBVar4 = 0;\n      pBVar4 = pBVar4 + 1;\n    } while (pBVar2 + iVar1 != pBVar4);" do (compound_statement "{\n      *pBVar4 = 0;\n      pBVar4 = pBVar4 + 1;\n    }" { (expression_statement "*pBVar4 = 0;" (assignment_expression "*pBVar4 = 0" (pointer_expression "*pBVar4" * identifier) = number_literal) ;) (expression_statement "pBVar4 = pBVar4 + 1;" (assignment_expression "pBVar4 = pBVar4 + 1" identifier = (binary_expression "pBVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pBVar2 + iVar1 != pBVar4)" ( (binary_expression "pBVar2 + iVar1 != pBVar4" (binary_expression "pBVar2 + iVar1" identifier + identifier) != identifier) )) ;) (expression_statement "BVar9 = *p;" (assignment_expression "BVar9 = *p" identifier = (pointer_expression "*p" * identifier)) ;) })) (if_statement "if (0 < (int)BVar9) {\n    iVar3 = 0;\n    pBVar4 = pBVar2 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar4 = p[BVar9];\n      BVar9 = *p - iVar3;\n      pBVar4 = pBVar4 + 1;\n    } while (iVar3 < (int)*p);\n  }" if (parenthesized_expression "(0 < (int)BVar9)" ( (binary_expression "0 < (int)BVar9" number_literal < (cast_expression "(int)BVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar3 = 0;\n    pBVar4 = pBVar2 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar4 = p[BVar9];\n      BVar9 = *p - iVar3;\n      pBVar4 = pBVar4 + 1;\n    } while (iVar3 < (int)*p);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "pBVar4 = pBVar2 + iVar1;" (assignment_expression "pBVar4 = pBVar2 + iVar1" identifier = (binary_expression "pBVar2 + iVar1" identifier + identifier)) ;) (do_statement "do {\n      iVar3 = iVar3 + 1;\n      *pBVar4 = p[BVar9];\n      BVar9 = *p - iVar3;\n      pBVar4 = pBVar4 + 1;\n    } while (iVar3 < (int)*p);" do (compound_statement "{\n      iVar3 = iVar3 + 1;\n      *pBVar4 = p[BVar9];\n      BVar9 = *p - iVar3;\n      pBVar4 = pBVar4 + 1;\n    }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pBVar4 = p[BVar9];" (assignment_expression "*pBVar4 = p[BVar9]" (pointer_expression "*pBVar4" * identifier) = (subscript_expression "p[BVar9]" identifier [ identifier ])) ;) (expression_statement "BVar9 = *p - iVar3;" (assignment_expression "BVar9 = *p - iVar3" identifier = (binary_expression "*p - iVar3" (pointer_expression "*p" * identifier) - identifier)) ;) (expression_statement "pBVar4 = pBVar4 + 1;" (assignment_expression "pBVar4 = pBVar4 + 1" identifier = (binary_expression "pBVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < (int)*p)" ( (binary_expression "iVar3 < (int)*p" identifier < (cast_expression "(int)*p" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*p" * identifier))) )) ;) })) (expression_statement "pBVar4 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4);" (assignment_expression "pBVar4 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4)" identifier = (cast_expression "(BignumInt *)(*(code *)PTR_safemalloc_001112ec)(len,4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(len,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(len,4)" ( identifier , number_literal ))))) ;) (expression_statement "BVar9 = *q;" (assignment_expression "BVar9 = *q" identifier = (pointer_expression "*q" * identifier)) ;) (expression_statement "iVar1 = len - BVar9;" (assignment_expression "iVar1 = len - BVar9" identifier = (binary_expression "len - BVar9" identifier - identifier)) ;) (if_statement "if (0 < iVar1) {\n    pBVar5 = pBVar4;\n    do {\n      *pBVar5 = 0;\n      pBVar5 = pBVar5 + 1;\n    } while (pBVar4 + iVar1 != pBVar5);\n    BVar9 = *q;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    pBVar5 = pBVar4;\n    do {\n      *pBVar5 = 0;\n      pBVar5 = pBVar5 + 1;\n    } while (pBVar4 + iVar1 != pBVar5);\n    BVar9 = *q;\n  }" { (expression_statement "pBVar5 = pBVar4;" (assignment_expression "pBVar5 = pBVar4" identifier = identifier) ;) (do_statement "do {\n      *pBVar5 = 0;\n      pBVar5 = pBVar5 + 1;\n    } while (pBVar4 + iVar1 != pBVar5);" do (compound_statement "{\n      *pBVar5 = 0;\n      pBVar5 = pBVar5 + 1;\n    }" { (expression_statement "*pBVar5 = 0;" (assignment_expression "*pBVar5 = 0" (pointer_expression "*pBVar5" * identifier) = number_literal) ;) (expression_statement "pBVar5 = pBVar5 + 1;" (assignment_expression "pBVar5 = pBVar5 + 1" identifier = (binary_expression "pBVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pBVar4 + iVar1 != pBVar5)" ( (binary_expression "pBVar4 + iVar1 != pBVar5" (binary_expression "pBVar4 + iVar1" identifier + identifier) != identifier) )) ;) (expression_statement "BVar9 = *q;" (assignment_expression "BVar9 = *q" identifier = (pointer_expression "*q" * identifier)) ;) })) (if_statement "if (0 < (int)BVar9) {\n    iVar3 = 0;\n    pBVar5 = pBVar4 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar5 = q[BVar9];\n      BVar9 = *q - iVar3;\n      pBVar5 = pBVar5 + 1;\n    } while (iVar3 < (int)*q);\n  }" if (parenthesized_expression "(0 < (int)BVar9)" ( (binary_expression "0 < (int)BVar9" number_literal < (cast_expression "(int)BVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar3 = 0;\n    pBVar5 = pBVar4 + iVar1;\n    do {\n      iVar3 = iVar3 + 1;\n      *pBVar5 = q[BVar9];\n      BVar9 = *q - iVar3;\n      pBVar5 = pBVar5 + 1;\n    } while (iVar3 < (int)*q);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "pBVar5 = pBVar4 + iVar1;" (assignment_expression "pBVar5 = pBVar4 + iVar1" identifier = (binary_expression "pBVar4 + iVar1" identifier + identifier)) ;) (do_statement "do {\n      iVar3 = iVar3 + 1;\n      *pBVar5 = q[BVar9];\n      BVar9 = *q - iVar3;\n      pBVar5 = pBVar5 + 1;\n    } while (iVar3 < (int)*q);" do (compound_statement "{\n      iVar3 = iVar3 + 1;\n      *pBVar5 = q[BVar9];\n      BVar9 = *q - iVar3;\n      pBVar5 = pBVar5 + 1;\n    }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pBVar5 = q[BVar9];" (assignment_expression "*pBVar5 = q[BVar9]" (pointer_expression "*pBVar5" * identifier) = (subscript_expression "q[BVar9]" identifier [ identifier ])) ;) (expression_statement "BVar9 = *q - iVar3;" (assignment_expression "BVar9 = *q - iVar3" identifier = (binary_expression "*q - iVar3" (pointer_expression "*q" * identifier) - identifier)) ;) (expression_statement "pBVar5 = pBVar5 + 1;" (assignment_expression "pBVar5 = pBVar5 + 1" identifier = (binary_expression "pBVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < (int)*q)" ( (binary_expression "iVar3 < (int)*q" identifier < (cast_expression "(int)*q" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*q" * identifier))) )) ;) })) (expression_statement "pBVar5 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(BVar8,4);" (assignment_expression "pBVar5 = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(BVar8,4)" identifier = (cast_expression "(BignumInt *)(*(code *)PTR_safemalloc_001112ec)(BVar8,4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(BVar8,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(BVar8,4)" ( identifier , number_literal ))))) ;) (if_statement "if ((int)len < 0x33) {\n    local_2c = 0;\n    iVar1 = 0;\n  }\n  else {\n    iVar1 = 0;\n    uVar6 = len;\n    do {\n      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;\n      iVar1 = iVar1 + uVar6 * 4;\n    } while (0x32 < (int)uVar6);\n    local_2c = iVar1 * 4;\n  }" if (parenthesized_expression "((int)len < 0x33)" ( (binary_expression "(int)len < 0x33" (cast_expression "(int)len" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_2c = 0;\n    iVar1 = 0;\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = 0;\n    uVar6 = len;\n    do {\n      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;\n      iVar1 = iVar1 + uVar6 * 4;\n    } while (0x32 < (int)uVar6);\n    local_2c = iVar1 * 4;\n  }" else (compound_statement "{\n    iVar1 = 0;\n    uVar6 = len;\n    do {\n      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;\n      iVar1 = iVar1 + uVar6 * 4;\n    } while (0x32 < (int)uVar6);\n    local_2c = iVar1 * 4;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = len;" (assignment_expression "uVar6 = len" identifier = identifier) ;) (do_statement "do {\n      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;\n      iVar1 = iVar1 + uVar6 * 4;\n    } while (0x32 < (int)uVar6);" do (compound_statement "{\n      uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;\n      iVar1 = iVar1 + uVar6 * 4;\n    }" { (expression_statement "uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1;" (assignment_expression "uVar6 = (uVar6 - ((int)uVar6 >> 1)) + 1" identifier = (binary_expression "(uVar6 - ((int)uVar6 >> 1)) + 1" (parenthesized_expression "(uVar6 - ((int)uVar6 >> 1))" ( (binary_expression "uVar6 - ((int)uVar6 >> 1)" identifier - (parenthesized_expression "((int)uVar6 >> 1)" ( (binary_expression "(int)uVar6 >> 1" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )) + number_literal)) ;) (expression_statement "iVar1 = iVar1 + uVar6 * 4;" (assignment_expression "iVar1 = iVar1 + uVar6 * 4" identifier = (binary_expression "iVar1 + uVar6 * 4" identifier + (binary_expression "uVar6 * 4" identifier * number_literal))) ;) }) while (parenthesized_expression "(0x32 < (int)uVar6)" ( (binary_expression "0x32 < (int)uVar6" number_literal < (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (expression_statement "local_2c = iVar1 * 4;" (assignment_expression "local_2c = iVar1 * 4" identifier = (binary_expression "iVar1 * 4" identifier * number_literal)) ;) }))) (expression_statement "scratch = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(iVar1,4);" (assignment_expression "scratch = (BignumInt *)(*(code *)PTR_safemalloc_001112ec)(iVar1,4)" identifier = (cast_expression "(BignumInt *)(*(code *)PTR_safemalloc_001112ec)(iVar1,4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar1,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,4)" ( identifier , number_literal ))))) ;) (expression_statement "iVar3 = 5;" (assignment_expression "iVar3 = 5" identifier = number_literal) ;) (expression_statement "BVar10 = *m;" (assignment_expression "BVar10 = *m" identifier = (pointer_expression "*m" * identifier)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = 0x10;" (assignment_expression "iVar1 = 0x10" identifier = number_literal) ;) (expression_statement "BVar9 = BVar10;" (assignment_expression "BVar9 = BVar10" identifier = identifier) ;) (do_statement "do {\n    if (BVar9 >> (0x20U - iVar1 & 0x1f) == 0) {\n      BVar9 = BVar9 << iVar1;\n      uVar6 = uVar6 + iVar1;\n    }\n    iVar3 = iVar3 + -1;\n    iVar1 = iVar1 >> 1;\n  } while (iVar3 != 0);" do (compound_statement "{\n    if (BVar9 >> (0x20U - iVar1 & 0x1f) == 0) {\n      BVar9 = BVar9 << iVar1;\n      uVar6 = uVar6 + iVar1;\n    }\n    iVar3 = iVar3 + -1;\n    iVar1 = iVar1 >> 1;\n  }" { (if_statement "if (BVar9 >> (0x20U - iVar1 & 0x1f) == 0) {\n      BVar9 = BVar9 << iVar1;\n      uVar6 = uVar6 + iVar1;\n    }" if (parenthesized_expression "(BVar9 >> (0x20U - iVar1 & 0x1f) == 0)" ( (binary_expression "BVar9 >> (0x20U - iVar1 & 0x1f) == 0" (binary_expression "BVar9 >> (0x20U - iVar1 & 0x1f)" identifier >> (parenthesized_expression "(0x20U - iVar1 & 0x1f)" ( (binary_expression "0x20U - iVar1 & 0x1f" (binary_expression "0x20U - iVar1" number_literal - identifier) & number_literal) ))) == number_literal) )) (compound_statement "{\n      BVar9 = BVar9 << iVar1;\n      uVar6 = uVar6 + iVar1;\n    }" { (expression_statement "BVar9 = BVar9 << iVar1;" (assignment_expression "BVar9 = BVar9 << iVar1" identifier = (binary_expression "BVar9 << iVar1" identifier << identifier)) ;) (expression_statement "uVar6 = uVar6 + iVar1;" (assignment_expression "uVar6 = uVar6 + iVar1" identifier = (binary_expression "uVar6 + iVar1" identifier + identifier)) ;) })) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar1 >> 1;" (assignment_expression "iVar1 = iVar1 >> 1" identifier = (binary_expression "iVar1 >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (if_statement "if ((uVar6 != 0) && (BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen)) {\n    BVar10 = BVar10 | m[1] >> (-uVar6 & 0x1f);\n  }" if (parenthesized_expression "((uVar6 != 0) && (BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen))" ( (binary_expression "(uVar6 != 0) && (BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen)" (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen)" ( (comma_expression "BVar10 = BVar10 << (uVar6 & 0x1f), 1 < (int)mlen" (assignment_expression "BVar10 = BVar10 << (uVar6 & 0x1f)" identifier = (binary_expression "BVar10 << (uVar6 & 0x1f)" identifier << (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) )))) , (binary_expression "1 < (int)mlen" number_literal < (cast_expression "(int)mlen" ( (type_descriptor "int" primitive_type) ) identifier))) ))) )) (compound_statement "{\n    BVar10 = BVar10 | m[1] >> (-uVar6 & 0x1f);\n  }" { (expression_statement "BVar10 = BVar10 | m[1] >> (-uVar6 & 0x1f);" (assignment_expression "BVar10 = BVar10 | m[1] >> (-uVar6 & 0x1f)" identifier = (binary_expression "BVar10 | m[1] >> (-uVar6 & 0x1f)" identifier | (binary_expression "m[1] >> (-uVar6 & 0x1f)" (subscript_expression "m[1]" identifier [ number_literal ]) >> (parenthesized_expression "(-uVar6 & 0x1f)" ( (binary_expression "-uVar6 & 0x1f" (unary_expression "-uVar6" - identifier) & number_literal) ))))) ;) })) (expression_statement "BVar10 = reciprocal_word(BVar10);" (assignment_expression "BVar10 = reciprocal_word(BVar10)" identifier = (call_expression "reciprocal_word(BVar10)" identifier (argument_list "(BVar10)" ( identifier )))) ;) (expression_statement "internal_mul(pBVar2,pBVar4,pBVar5,len,scratch);" (call_expression "internal_mul(pBVar2,pBVar4,pBVar5,len,scratch)" identifier (argument_list "(pBVar2,pBVar4,pBVar5,len,scratch)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "BVar9 = mlen;" (assignment_expression "BVar9 = mlen" identifier = identifier) ;) (if_statement "if ((int)BVar8 < (int)mlen) {\n    BVar9 = BVar8;\n  }" if (parenthesized_expression "((int)BVar8 < (int)mlen)" ( (binary_expression "(int)BVar8 < (int)mlen" (cast_expression "(int)BVar8" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)mlen" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    BVar9 = BVar8;\n  }" { (expression_statement "BVar9 = BVar8;" (assignment_expression "BVar9 = BVar8" identifier = identifier) ;) })) (expression_statement "internal_mod(pBVar5,BVar8,m,mlen,(BignumInt *)0x0,BVar10,uVar6);" (call_expression "internal_mod(pBVar5,BVar8,m,mlen,(BignumInt *)0x0,BVar10,uVar6)" identifier (argument_list "(pBVar5,BVar8,m,mlen,(BignumInt *)0x0,BVar10,uVar6)" ( identifier , identifier , identifier , identifier , (cast_expression "(BignumInt *)0x0" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier ))) ;) (expression_statement "pBVar7 = newbn(BVar9);" (assignment_expression "pBVar7 = newbn(BVar9)" identifier = (call_expression "newbn(BVar9)" identifier (argument_list "(BVar9)" ( identifier )))) ;) (if_statement "if (0 < (int)BVar9) {\n    BVar10 = 0;\n    pBVar12 = pBVar5 + (BVar8 - BVar9);\n    do {\n      iVar1 = *pBVar7 - BVar10;\n      BVar10 = BVar10 + 1;\n      pBVar7[iVar1] = *pBVar12;\n      pBVar12 = pBVar12 + 1;\n    } while (BVar9 != BVar10);\n  }" if (parenthesized_expression "(0 < (int)BVar9)" ( (binary_expression "0 < (int)BVar9" number_literal < (cast_expression "(int)BVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    BVar10 = 0;\n    pBVar12 = pBVar5 + (BVar8 - BVar9);\n    do {\n      iVar1 = *pBVar7 - BVar10;\n      BVar10 = BVar10 + 1;\n      pBVar7[iVar1] = *pBVar12;\n      pBVar12 = pBVar12 + 1;\n    } while (BVar9 != BVar10);\n  }" { (expression_statement "BVar10 = 0;" (assignment_expression "BVar10 = 0" identifier = number_literal) ;) (expression_statement "pBVar12 = pBVar5 + (BVar8 - BVar9);" (assignment_expression "pBVar12 = pBVar5 + (BVar8 - BVar9)" identifier = (binary_expression "pBVar5 + (BVar8 - BVar9)" identifier + (parenthesized_expression "(BVar8 - BVar9)" ( (binary_expression "BVar8 - BVar9" identifier - identifier) )))) ;) (do_statement "do {\n      iVar1 = *pBVar7 - BVar10;\n      BVar10 = BVar10 + 1;\n      pBVar7[iVar1] = *pBVar12;\n      pBVar12 = pBVar12 + 1;\n    } while (BVar9 != BVar10);" do (compound_statement "{\n      iVar1 = *pBVar7 - BVar10;\n      BVar10 = BVar10 + 1;\n      pBVar7[iVar1] = *pBVar12;\n      pBVar12 = pBVar12 + 1;\n    }" { (expression_statement "iVar1 = *pBVar7 - BVar10;" (assignment_expression "iVar1 = *pBVar7 - BVar10" identifier = (binary_expression "*pBVar7 - BVar10" (pointer_expression "*pBVar7" * identifier) - identifier)) ;) (expression_statement "BVar10 = BVar10 + 1;" (assignment_expression "BVar10 = BVar10 + 1" identifier = (binary_expression "BVar10 + 1" identifier + number_literal)) ;) (expression_statement "pBVar7[iVar1] = *pBVar12;" (assignment_expression "pBVar7[iVar1] = *pBVar12" (subscript_expression "pBVar7[iVar1]" identifier [ identifier ]) = (pointer_expression "*pBVar12" * identifier)) ;) (expression_statement "pBVar12 = pBVar12 + 1;" (assignment_expression "pBVar12 = pBVar12 + 1" identifier = (binary_expression "pBVar12 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(BVar9 != BVar10)" ( (binary_expression "BVar9 != BVar10" identifier != identifier) )) ;) })) (expression_statement "BVar8 = *pBVar7;" (assignment_expression "BVar8 = *pBVar7" identifier = (pointer_expression "*pBVar7" * identifier)) ;) (if_statement "if (1 < BVar8) {\n    pBVar11 = pBVar7 + BVar8;\n    BVar9 = *pBVar11;\n    while (BVar9 == 0) {\n      BVar8 = BVar8 - 1;\n      *pBVar7 = BVar8;\n      if (BVar8 == 1) break;\n      pBVar12 = pBVar11 + -1;\n      pBVar11 = pBVar11 + -1;\n      BVar9 = *pBVar12;\n    }\n  }" if (parenthesized_expression "(1 < BVar8)" ( (binary_expression "1 < BVar8" number_literal < identifier) )) (compound_statement "{\n    pBVar11 = pBVar7 + BVar8;\n    BVar9 = *pBVar11;\n    while (BVar9 == 0) {\n      BVar8 = BVar8 - 1;\n      *pBVar7 = BVar8;\n      if (BVar8 == 1) break;\n      pBVar12 = pBVar11 + -1;\n      pBVar11 = pBVar11 + -1;\n      BVar9 = *pBVar12;\n    }\n  }" { (expression_statement "pBVar11 = pBVar7 + BVar8;" (assignment_expression "pBVar11 = pBVar7 + BVar8" identifier = (binary_expression "pBVar7 + BVar8" identifier + identifier)) ;) (expression_statement "BVar9 = *pBVar11;" (assignment_expression "BVar9 = *pBVar11" identifier = (pointer_expression "*pBVar11" * identifier)) ;) (while_statement "while (BVar9 == 0) {\n      BVar8 = BVar8 - 1;\n      *pBVar7 = BVar8;\n      if (BVar8 == 1) break;\n      pBVar12 = pBVar11 + -1;\n      pBVar11 = pBVar11 + -1;\n      BVar9 = *pBVar12;\n    }" while (parenthesized_expression "(BVar9 == 0)" ( (binary_expression "BVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      BVar8 = BVar8 - 1;\n      *pBVar7 = BVar8;\n      if (BVar8 == 1) break;\n      pBVar12 = pBVar11 + -1;\n      pBVar11 = pBVar11 + -1;\n      BVar9 = *pBVar12;\n    }" { (expression_statement "BVar8 = BVar8 - 1;" (assignment_expression "BVar8 = BVar8 - 1" identifier = (binary_expression "BVar8 - 1" identifier - number_literal)) ;) (expression_statement "*pBVar7 = BVar8;" (assignment_expression "*pBVar7 = BVar8" (pointer_expression "*pBVar7" * identifier) = identifier) ;) (if_statement "if (BVar8 == 1) break;" if (parenthesized_expression "(BVar8 == 1)" ( (binary_expression "BVar8 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pBVar12 = pBVar11 + -1;" (assignment_expression "pBVar12 = pBVar11 + -1" identifier = (binary_expression "pBVar11 + -1" identifier + number_literal)) ;) (expression_statement "pBVar11 = pBVar11 + -1;" (assignment_expression "pBVar11 = pBVar11 + -1" identifier = (binary_expression "pBVar11 + -1" identifier + number_literal)) ;) (expression_statement "BVar9 = *pBVar12;" (assignment_expression "BVar9 = *pBVar12" identifier = (pointer_expression "*pBVar12" * identifier)) ;) })) })) (expression_statement "(*(code *)PTR_smemclr_00111398)(scratch,local_2c);" (call_expression "(*(code *)PTR_smemclr_00111398)(scratch,local_2c)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(scratch,local_2c)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(scratch);" (call_expression "(*(code *)PTR_safefree_001112f0)(scratch)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(scratch)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(pBVar5,len << 3);" (call_expression "(*(code *)PTR_smemclr_00111398)(pBVar5,len << 3)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBVar5,len << 3)" ( identifier , (binary_expression "len << 3" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(pBVar5);" (call_expression "(*(code *)PTR_safefree_001112f0)(pBVar5)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(m,mlen * 4);" (call_expression "(*(code *)PTR_smemclr_00111398)(m,mlen * 4)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(m,mlen * 4)" ( identifier , (binary_expression "mlen * 4" identifier * number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(m);" (call_expression "(*(code *)PTR_safefree_001112f0)(m)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(m)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(pBVar2,len << 2);" (call_expression "(*(code *)PTR_smemclr_00111398)(pBVar2,len << 2)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBVar2,len << 2)" ( identifier , (binary_expression "len << 2" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(pBVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(pBVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(pBVar4,len << 2);" (call_expression "(*(code *)PTR_smemclr_00111398)(pBVar4,len << 2)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBVar4,len << 2)" ( identifier , (binary_expression "len << 2" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(pBVar4);" (call_expression "(*(code *)PTR_safefree_001112f0)(pBVar4)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBVar4)" ( identifier ))) ;) (return_statement "return pBVar7;" return identifier ;) })))
(translation_unit "uint * modmul(uint *param_1,uint *param_2,int *param_3)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  int iVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint *puVar16;\n  uint uVar17;\n  int iVar18;\n  int local_2c;\n  \n  iVar18 = *param_3;\n  if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }\n  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);\n  if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }\n  uVar17 = *param_1;\n  if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }\n  iVar11 = uVar17 << 1;\n  if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_1;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }\n  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_2;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }\n  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);\n  if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }\n  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);\n  iVar14 = 5;\n  uVar13 = *puVar2;\n  uVar15 = 0;\n  iVar5 = 0x10;\n  uVar12 = uVar13;\n  do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);\n  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }\n  uVar9 = FUN_000665a0(uVar13);\n  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);\n  iVar5 = iVar18;\n  if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }\n  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);\n  puVar10 = (uint *)FUN_00066ee4(iVar5);\n  if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }\n  uVar12 = *puVar10;\n  if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);\n  (*(code *)PTR_safefree_001112f0)(uVar8);\n  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);\n  (*(code *)PTR_safefree_001112f0)(puVar2);\n  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar4);\n  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar6);\n  return puVar10;\n}\n\n" (function_definition "uint * modmul(uint *param_1,uint *param_2,int *param_3)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  int iVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint *puVar16;\n  uint uVar17;\n  int iVar18;\n  int local_2c;\n  \n  iVar18 = *param_3;\n  if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }\n  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);\n  if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }\n  uVar17 = *param_1;\n  if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }\n  iVar11 = uVar17 << 1;\n  if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_1;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }\n  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_2;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }\n  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);\n  if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }\n  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);\n  iVar14 = 5;\n  uVar13 = *puVar2;\n  uVar15 = 0;\n  iVar5 = 0x10;\n  uVar12 = uVar13;\n  do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);\n  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }\n  uVar9 = FUN_000665a0(uVar13);\n  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);\n  iVar5 = iVar18;\n  if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }\n  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);\n  puVar10 = (uint *)FUN_00066ee4(iVar5);\n  if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }\n  uVar12 = *puVar10;\n  if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);\n  (*(code *)PTR_safefree_001112f0)(uVar8);\n  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);\n  (*(code *)PTR_safefree_001112f0)(puVar2);\n  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar4);\n  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar6);\n  return puVar10;\n}" type_identifier (pointer_declarator "* modmul(uint *param_1,uint *param_2,int *param_3)" * (function_declarator "modmul(uint *param_1,uint *param_2,int *param_3)" identifier (parameter_list "(uint *param_1,uint *param_2,int *param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  int iVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint *puVar16;\n  uint uVar17;\n  int iVar18;\n  int local_2c;\n  \n  iVar18 = *param_3;\n  if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }\n  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);\n  if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }\n  uVar17 = *param_1;\n  if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }\n  iVar11 = uVar17 << 1;\n  if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_1;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }\n  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_2;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }\n  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);\n  if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }\n  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);\n  iVar14 = 5;\n  uVar13 = *puVar2;\n  uVar15 = 0;\n  iVar5 = 0x10;\n  uVar12 = uVar13;\n  do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);\n  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }\n  uVar9 = FUN_000665a0(uVar13);\n  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);\n  iVar5 = iVar18;\n  if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }\n  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);\n  puVar10 = (uint *)FUN_00066ee4(iVar5);\n  if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }\n  uVar12 = *puVar10;\n  if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);\n  (*(code *)PTR_safefree_001112f0)(uVar8);\n  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);\n  (*(code *)PTR_safefree_001112f0)(puVar2);\n  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar4);\n  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar6);\n  return puVar10;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "uint *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "uint uVar17;" type_identifier identifier ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "iVar18 = *param_3;" (assignment_expression "iVar18 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }" if (parenthesized_expression "(param_3[iVar18] == 0)" ( (binary_expression "param_3[iVar18] == 0" (subscript_expression "param_3[iVar18]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }" { (expression_statement "puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);" (assignment_expression "puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" identifier = (cast_expression "(uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" ( (binary_expression "PTR_DAT_001112f8 + 0x18ac" identifier + number_literal) , (binary_expression "PTR_DAT_001112f8 + 0x1870" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f8 + 0x1a3c" identifier + number_literal) ))))) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);" (assignment_expression "puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" identifier = (cast_expression "(uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar18,4)" ( identifier , number_literal ))))) ;) (if_statement "if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }" if (parenthesized_expression "(0 < iVar18)" ( (binary_expression "0 < iVar18" number_literal < identifier) )) (compound_statement "{\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar2;" (assignment_expression "puVar10 = puVar2" identifier = identifier) ;) (do_statement "do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);" do (compound_statement "{\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    }" { (expression_statement "iVar3 = *param_3 - iVar11;" (assignment_expression "iVar3 = *param_3 - iVar11" identifier = (binary_expression "*param_3 - iVar11" (pointer_expression "*param_3" * identifier) - identifier)) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "*puVar10 = param_3[iVar3];" (assignment_expression "*puVar10 = param_3[iVar3]" (pointer_expression "*puVar10" * identifier) = (subscript_expression "param_3[iVar3]" identifier [ identifier ])) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar18 != iVar11)" ( (binary_expression "iVar18 != iVar11" identifier != identifier) )) ;) })) (expression_statement "uVar17 = *param_1;" (assignment_expression "uVar17 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }" if (parenthesized_expression "(*param_1 <= *param_2)" ( (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" * identifier) <= (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    uVar17 = *param_2;\n  }" { (expression_statement "uVar17 = *param_2;" (assignment_expression "uVar17 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar11 = uVar17 << 1;" (assignment_expression "iVar11 = uVar17 << 1" identifier = (binary_expression "uVar17 << 1" identifier << number_literal)) ;) (if_statement "if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }" if (parenthesized_expression "(iVar11 <= iVar18)" ( (binary_expression "iVar11 <= iVar18" identifier <= identifier) )) (compound_statement "{\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }" { (expression_statement "uVar17 = iVar18 / 2 + 1;" (assignment_expression "uVar17 = iVar18 / 2 + 1" identifier = (binary_expression "iVar18 / 2 + 1" (binary_expression "iVar18 / 2" identifier / number_literal) + number_literal)) ;) (expression_statement "iVar11 = uVar17 * 2;" (assignment_expression "iVar11 = uVar17 * 2" identifier = (binary_expression "uVar17 * 2" identifier * number_literal)) ;) })) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar17,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar12 = *param_1;" (assignment_expression "uVar12 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar3 = uVar17 - uVar12;" (assignment_expression "iVar3 = uVar17 - uVar12" identifier = (binary_expression "uVar17 - uVar12" identifier - identifier)) ;) (if_statement "if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }" { (expression_statement "puVar6 = puVar4;" (assignment_expression "puVar6 = puVar4" identifier = identifier) ;) (do_statement "do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);" do (compound_statement "{\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 + iVar3 != puVar6)" ( (binary_expression "puVar4 + iVar3 != puVar6" (binary_expression "puVar4 + iVar3" identifier + identifier) != identifier) )) ;) (expression_statement "uVar12 = *param_1;" (assignment_expression "uVar12 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (if_statement "if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }" if (parenthesized_expression "(0 < (int)uVar12)" ( (binary_expression "0 < (int)uVar12" number_literal < (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar4 + iVar3;" (assignment_expression "puVar10 = puVar4 + iVar3" identifier = (binary_expression "puVar4 + iVar3" identifier + identifier)) ;) (do_statement "do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);" do (compound_statement "{\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar10 = param_1[uVar12];" (assignment_expression "*puVar10 = param_1[uVar12]" (pointer_expression "*puVar10" * identifier) = (subscript_expression "param_1[uVar12]" identifier [ identifier ])) ;) (expression_statement "uVar12 = *param_1 - iVar5;" (assignment_expression "uVar12 = *param_1 - iVar5" identifier = (binary_expression "*param_1 - iVar5" (pointer_expression "*param_1" * identifier) - identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < (int)*param_1)" ( (binary_expression "iVar5 < (int)*param_1" identifier < (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier))) )) ;) })) (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar17,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar12 = *param_2;" (assignment_expression "uVar12 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar3 = uVar17 - uVar12;" (assignment_expression "iVar3 = uVar17 - uVar12" identifier = (binary_expression "uVar17 - uVar12" identifier - identifier)) ;) (if_statement "if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }" { (expression_statement "puVar7 = puVar6;" (assignment_expression "puVar7 = puVar6" identifier = identifier) ;) (do_statement "do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);" do (compound_statement "{\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar6 + iVar3 != puVar7)" ( (binary_expression "puVar6 + iVar3 != puVar7" (binary_expression "puVar6 + iVar3" identifier + identifier) != identifier) )) ;) (expression_statement "uVar12 = *param_2;" (assignment_expression "uVar12 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (if_statement "if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }" if (parenthesized_expression "(0 < (int)uVar12)" ( (binary_expression "0 < (int)uVar12" number_literal < (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar10 = puVar6 + iVar3;" (assignment_expression "puVar10 = puVar6 + iVar3" identifier = (binary_expression "puVar6 + iVar3" identifier + identifier)) ;) (do_statement "do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);" do (compound_statement "{\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar10 = param_2[uVar12];" (assignment_expression "*puVar10 = param_2[uVar12]" (pointer_expression "*puVar10" * identifier) = (subscript_expression "param_2[uVar12]" identifier [ identifier ])) ;) (expression_statement "uVar12 = *param_2 - iVar5;" (assignment_expression "uVar12 = *param_2 - iVar5" identifier = (binary_expression "*param_2 - iVar5" (pointer_expression "*param_2" * identifier) - identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < (int)*param_2)" ( (binary_expression "iVar5 < (int)*param_2" identifier < (cast_expression "(int)*param_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_2" * identifier))) )) ;) })) (expression_statement "iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);" (assignment_expression "iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4)" identifier = (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar11,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar11,4)" ( identifier , number_literal )))) ;) (if_statement "if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" if (parenthesized_expression "((int)uVar17 < 0x33)" ( (binary_expression "(int)uVar17 < 0x33" (cast_expression "(int)uVar17" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_2c = 0;\n    iVar5 = 0;\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" else (compound_statement "{\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar12 = uVar17;" (assignment_expression "uVar12 = uVar17" identifier = identifier) ;) (do_statement "do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);" do (compound_statement "{\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    }" { (expression_statement "uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;" (assignment_expression "uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1" identifier = (binary_expression "(uVar12 - ((int)uVar12 >> 1)) + 1" (parenthesized_expression "(uVar12 - ((int)uVar12 >> 1))" ( (binary_expression "uVar12 - ((int)uVar12 >> 1)" identifier - (parenthesized_expression "((int)uVar12 >> 1)" ( (binary_expression "(int)uVar12 >> 1" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )) + number_literal)) ;) (expression_statement "iVar5 = iVar5 + uVar12 * 4;" (assignment_expression "iVar5 = iVar5 + uVar12 * 4" identifier = (binary_expression "iVar5 + uVar12 * 4" identifier + (binary_expression "uVar12 * 4" identifier * number_literal))) ;) }) while (parenthesized_expression "(0x32 < (int)uVar12)" ( (binary_expression "0x32 < (int)uVar12" number_literal < (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (expression_statement "local_2c = iVar5 * 4;" (assignment_expression "local_2c = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) }))) (expression_statement "uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);" (assignment_expression "uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4)" identifier = (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar5,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,4)" ( identifier , number_literal )))) ;) (expression_statement "iVar14 = 5;" (assignment_expression "iVar14 = 5" identifier = number_literal) ;) (expression_statement "uVar13 = *puVar2;" (assignment_expression "uVar13 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" identifier = number_literal) ;) (expression_statement "uVar12 = uVar13;" (assignment_expression "uVar12 = uVar13" identifier = identifier) ;) (do_statement "do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);" do (compound_statement "{\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  }" { (if_statement "if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }" if (parenthesized_expression "(uVar12 >> (0x20U - iVar5 & 0x1f) == 0)" ( (binary_expression "uVar12 >> (0x20U - iVar5 & 0x1f) == 0" (binary_expression "uVar12 >> (0x20U - iVar5 & 0x1f)" identifier >> (parenthesized_expression "(0x20U - iVar5 & 0x1f)" ( (binary_expression "0x20U - iVar5 & 0x1f" (binary_expression "0x20U - iVar5" number_literal - identifier) & number_literal) ))) == number_literal) )) (compound_statement "{\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }" { (expression_statement "uVar12 = uVar12 << iVar5;" (assignment_expression "uVar12 = uVar12 << iVar5" identifier = (binary_expression "uVar12 << iVar5" identifier << identifier)) ;) (expression_statement "uVar15 = uVar15 + iVar5;" (assignment_expression "uVar15 = uVar15 + iVar5" identifier = (binary_expression "uVar15 + iVar5" identifier + identifier)) ;) })) (expression_statement "iVar14 = iVar14 + -1;" (assignment_expression "iVar14 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 >> 1;" (assignment_expression "iVar5 = iVar5 >> 1" identifier = (binary_expression "iVar5 >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "(iVar14 != 0)" ( (binary_expression "iVar14 != 0" identifier != number_literal) )) ;) (if_statement "if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }" if (parenthesized_expression "((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18))" ( (binary_expression "(uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)" (parenthesized_expression "(uVar15 != 0)" ( (binary_expression "uVar15 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)" ( (comma_expression "uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18" (assignment_expression "uVar13 = uVar13 << (uVar15 & 0x1f)" identifier = (binary_expression "uVar13 << (uVar15 & 0x1f)" identifier << (parenthesized_expression "(uVar15 & 0x1f)" ( (binary_expression "uVar15 & 0x1f" identifier & number_literal) )))) , (binary_expression "1 < iVar18" number_literal < identifier)) ))) )) (compound_statement "{\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }" { (expression_statement "uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);" (assignment_expression "uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f)" identifier = (binary_expression "uVar13 | puVar2[1] >> (-uVar15 & 0x1f)" identifier | (binary_expression "puVar2[1] >> (-uVar15 & 0x1f)" (subscript_expression "puVar2[1]" identifier [ number_literal ]) >> (parenthesized_expression "(-uVar15 & 0x1f)" ( (binary_expression "-uVar15 & 0x1f" (unary_expression "-uVar15" - identifier) & number_literal) ))))) ;) })) (expression_statement "uVar9 = FUN_000665a0(uVar13);" (assignment_expression "uVar9 = FUN_000665a0(uVar13)" identifier = (call_expression "FUN_000665a0(uVar13)" identifier (argument_list "(uVar13)" ( identifier )))) ;) (expression_statement "FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);" (call_expression "FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8)" identifier (argument_list "(puVar4,puVar6,iVar3,uVar17,uVar8)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = iVar18;" (assignment_expression "iVar5 = iVar18" identifier = identifier) ;) (if_statement "if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }" if (parenthesized_expression "(iVar11 < iVar18)" ( (binary_expression "iVar11 < iVar18" identifier < identifier) )) (compound_statement "{\n    iVar5 = iVar11;\n  }" { (expression_statement "iVar5 = iVar11;" (assignment_expression "iVar5 = iVar11" identifier = identifier) ;) })) (expression_statement "FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);" (call_expression "FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15)" identifier (argument_list "(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15)" ( identifier , identifier , identifier , identifier , number_literal , identifier , identifier ))) ;) (expression_statement "puVar10 = (uint *)FUN_00066ee4(iVar5);" (assignment_expression "puVar10 = (uint *)FUN_00066ee4(iVar5)" identifier = (cast_expression "(uint *)FUN_00066ee4(iVar5)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00066ee4(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))))) ;) (if_statement "if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (expression_statement "puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);" (assignment_expression "puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4)" identifier = (cast_expression "(uint *)(iVar3 + (iVar11 - iVar5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (iVar11 - iVar5) * 4)" ( (binary_expression "iVar3 + (iVar11 - iVar5) * 4" identifier + (binary_expression "(iVar11 - iVar5) * 4" (parenthesized_expression "(iVar11 - iVar5)" ( (binary_expression "iVar11 - iVar5" identifier - identifier) )) * number_literal)) )))) ;) (do_statement "do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);" do (compound_statement "{\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    }" { (expression_statement "iVar11 = *puVar10 - iVar14;" (assignment_expression "iVar11 = *puVar10 - iVar14" identifier = (binary_expression "*puVar10 - iVar14" (pointer_expression "*puVar10" * identifier) - identifier)) ;) (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "puVar10[iVar11] = *puVar16;" (assignment_expression "puVar10[iVar11] = *puVar16" (subscript_expression "puVar10[iVar11]" identifier [ identifier ]) = (pointer_expression "*puVar16" * identifier)) ;) (expression_statement "puVar16 = puVar16 + 1;" (assignment_expression "puVar16 = puVar16 + 1" identifier = (binary_expression "puVar16 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar14)" ( (binary_expression "iVar5 != iVar14" identifier != identifier) )) ;) })) (expression_statement "uVar12 = *puVar10;" (assignment_expression "uVar12 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (if_statement "if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }" if (parenthesized_expression "(1 < uVar12)" ( (binary_expression "1 < uVar12" number_literal < identifier) )) (compound_statement "{\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }" { (expression_statement "puVar16 = puVar10 + uVar12;" (assignment_expression "puVar16 = puVar10 + uVar12" identifier = (binary_expression "puVar10 + uVar12" identifier + identifier)) ;) (expression_statement "uVar13 = *puVar16;" (assignment_expression "uVar13 = *puVar16" identifier = (pointer_expression "*puVar16" * identifier)) ;) (while_statement "while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }" while (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }" { (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) ;) (expression_statement "*puVar10 = uVar12;" (assignment_expression "*puVar10 = uVar12" (pointer_expression "*puVar10" * identifier) = identifier) ;) (if_statement "if (uVar12 == 1) break;" if (parenthesized_expression "(uVar12 == 1)" ( (binary_expression "uVar12 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = puVar16 + -1;" (assignment_expression "puVar1 = puVar16 + -1" identifier = (binary_expression "puVar16 + -1" identifier + number_literal)) ;) (expression_statement "puVar16 = puVar16 + -1;" (assignment_expression "puVar16 = puVar16 + -1" identifier = (binary_expression "puVar16 + -1" identifier + number_literal)) ;) (expression_statement "uVar13 = *puVar1;" (assignment_expression "uVar13 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) })) })) (expression_statement "(*(code *)PTR_smemclr_00111398)(uVar8,local_2c);" (call_expression "(*(code *)PTR_smemclr_00111398)(uVar8,local_2c)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8,local_2c)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar8);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar8)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);" (call_expression "(*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,uVar17 << 3)" ( identifier , (binary_expression "uVar17 << 3" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,iVar18 * 4)" ( identifier , (binary_expression "iVar18 * 4" identifier * number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4,uVar17 << 2)" ( identifier , (binary_expression "uVar17 << 2" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar4);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar4)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6,uVar17 << 2)" ( identifier , (binary_expression "uVar17 << 2" identifier << number_literal) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar6);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (return_statement "return puVar10;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT / LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }) while (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) & LIT) ))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (subscript_expression IDENT [ LIT ]) >> (parenthesized_expression ( (binary_expression (unary_expression - IDENT) & LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT * LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "uint * modmul(uint *param_1,uint *param_2,int *param_3)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  int iVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint *puVar16;\n  uint uVar17;\n  int iVar18;\n  int local_2c;\n  \n  iVar18 = *param_3;\n  if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }\n  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);\n  if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }\n  uVar17 = *param_1;\n  if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }\n  iVar11 = uVar17 << 1;\n  if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_1;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }\n  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_2;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }\n  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);\n  if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }\n  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);\n  iVar14 = 5;\n  uVar13 = *puVar2;\n  uVar15 = 0;\n  iVar5 = 0x10;\n  uVar12 = uVar13;\n  do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);\n  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }\n  uVar9 = FUN_000665a0(uVar13);\n  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);\n  iVar5 = iVar18;\n  if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }\n  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);\n  puVar10 = (uint *)FUN_00066ee4(iVar5);\n  if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }\n  uVar12 = *puVar10;\n  if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);\n  (*(code *)PTR_safefree_001112f0)(uVar8);\n  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);\n  (*(code *)PTR_safefree_001112f0)(puVar2);\n  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar4);\n  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar6);\n  return puVar10;\n}" (type_identifier "uint") (pointer_declarator "* modmul(uint *param_1,uint *param_2,int *param_3)" (* "*") (function_declarator "modmul(uint *param_1,uint *param_2,int *param_3)" (identifier "modmul") (parameter_list "(uint *param_1,uint *param_2,int *param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  int iVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  uint uVar15;\n  uint *puVar16;\n  uint uVar17;\n  int iVar18;\n  int local_2c;\n  \n  iVar18 = *param_3;\n  if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }\n  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);\n  if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }\n  uVar17 = *param_1;\n  if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }\n  iVar11 = uVar17 << 1;\n  if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }\n  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_1;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }\n  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);\n  uVar12 = *param_2;\n  iVar3 = uVar17 - uVar12;\n  if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }\n  if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }\n  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);\n  if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }\n  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);\n  iVar14 = 5;\n  uVar13 = *puVar2;\n  uVar15 = 0;\n  iVar5 = 0x10;\n  uVar12 = uVar13;\n  do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);\n  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }\n  uVar9 = FUN_000665a0(uVar13);\n  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);\n  iVar5 = iVar18;\n  if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }\n  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);\n  puVar10 = (uint *)FUN_00066ee4(iVar5);\n  if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }\n  uVar12 = *puVar10;\n  if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }\n  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);\n  (*(code *)PTR_safefree_001112f0)(uVar8);\n  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);\n  (*(code *)PTR_safefree_001112f0)(iVar3);\n  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);\n  (*(code *)PTR_safefree_001112f0)(puVar2);\n  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar4);\n  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);\n  (*(code *)PTR_safefree_001112f0)(puVar6);\n  return puVar10;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "uint *puVar10;" (type_identifier "uint") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "uint uVar15;" (type_identifier "uint") (identifier "uVar15") (; ";")) (declaration "uint *puVar16;" (type_identifier "uint") (pointer_declarator "*puVar16" (* "*") (identifier "puVar16")) (; ";")) (declaration "uint uVar17;" (type_identifier "uint") (identifier "uVar17") (; ";")) (declaration "int iVar18;" (primitive_type "int") (identifier "iVar18") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "iVar18 = *param_3;" (assignment_expression "iVar18 = *param_3" (identifier "iVar18") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if (param_3[iVar18] == 0) {\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(param_3[iVar18] == 0)" (( "(") (binary_expression "param_3[iVar18] == 0" (subscript_expression "param_3[iVar18]" (identifier "param_3") ([ "[") (identifier "iVar18") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);\n    return puVar2;\n  }" ({ "{") (expression_statement "puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c);" (assignment_expression "puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" (identifier "puVar2") (= "=") (cast_expression "(uint *)(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00111f50" (* "*") (cast_expression "(code *)PTR___assert_fail_00111f50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00111f50"))) () ")")) (argument_list "(PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,\n                                PTR_DAT_001112f8 + 0x1a3c)" (( "(") (binary_expression "PTR_DAT_001112f8 + 0x18ac" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "0x18ac")) (, ",") (binary_expression "PTR_DAT_001112f8 + 0x1870" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "0x1870")) (, ",") (number_literal "0x4c1") (, ",") (binary_expression "PTR_DAT_001112f8 + 0x1a3c" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "0x1a3c")) () ")"))))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);" (assignment_expression "puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" (identifier "puVar2") (= "=") (cast_expression "(uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar18,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(iVar18,4)" (( "(") (identifier "iVar18") (, ",") (number_literal "4") () ")"))))) (; ";")) (if_statement "if (0 < iVar18) {\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }" (if "if") (parenthesized_expression "(0 < iVar18)" (( "(") (binary_expression "0 < iVar18" (number_literal "0") (< "<") (identifier "iVar18")) () ")")) (compound_statement "{\n    iVar11 = 0;\n    puVar10 = puVar2;\n    do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);\n  }" ({ "{") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar10 = puVar2;" (assignment_expression "puVar10 = puVar2" (identifier "puVar10") (= "=") (identifier "puVar2")) (; ";")) (do_statement "do {\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    } while (iVar18 != iVar11);" (do "do") (compound_statement "{\n      iVar3 = *param_3 - iVar11;\n      iVar11 = iVar11 + 1;\n      *puVar10 = param_3[iVar3];\n      puVar10 = puVar10 + 1;\n    }" ({ "{") (expression_statement "iVar3 = *param_3 - iVar11;" (assignment_expression "iVar3 = *param_3 - iVar11" (identifier "iVar3") (= "=") (binary_expression "*param_3 - iVar11" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (- "-") (identifier "iVar11"))) (; ";")) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar10 = param_3[iVar3];" (assignment_expression "*puVar10 = param_3[iVar3]" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (subscript_expression "param_3[iVar3]" (identifier "param_3") ([ "[") (identifier "iVar3") (] "]"))) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar18 != iVar11)" (( "(") (binary_expression "iVar18 != iVar11" (identifier "iVar18") (!= "!=") (identifier "iVar11")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar17 = *param_1;" (assignment_expression "uVar17 = *param_1" (identifier "uVar17") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*param_1 <= *param_2) {\n    uVar17 = *param_2;\n  }" (if "if") (parenthesized_expression "(*param_1 <= *param_2)" (( "(") (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<= "<=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n    uVar17 = *param_2;\n  }" ({ "{") (expression_statement "uVar17 = *param_2;" (assignment_expression "uVar17 = *param_2" (identifier "uVar17") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "iVar11 = uVar17 << 1;" (assignment_expression "iVar11 = uVar17 << 1" (identifier "iVar11") (= "=") (binary_expression "uVar17 << 1" (identifier "uVar17") (<< "<<") (number_literal "1"))) (; ";")) (if_statement "if (iVar11 <= iVar18) {\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }" (if "if") (parenthesized_expression "(iVar11 <= iVar18)" (( "(") (binary_expression "iVar11 <= iVar18" (identifier "iVar11") (<= "<=") (identifier "iVar18")) () ")")) (compound_statement "{\n    uVar17 = iVar18 / 2 + 1;\n    iVar11 = uVar17 * 2;\n  }" ({ "{") (expression_statement "uVar17 = iVar18 / 2 + 1;" (assignment_expression "uVar17 = iVar18 / 2 + 1" (identifier "uVar17") (= "=") (binary_expression "iVar18 / 2 + 1" (binary_expression "iVar18 / 2" (identifier "iVar18") (/ "/") (number_literal "2")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar11 = uVar17 * 2;" (assignment_expression "iVar11 = uVar17 * 2" (identifier "iVar11") (= "=") (binary_expression "uVar17 * 2" (identifier "uVar17") (* "*") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(uVar17,4)" (( "(") (identifier "uVar17") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "uVar12 = *param_1;" (assignment_expression "uVar12 = *param_1" (identifier "uVar12") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar3 = uVar17 - uVar12;" (assignment_expression "iVar3 = uVar17 - uVar12" (identifier "iVar3") (= "=") (binary_expression "uVar17 - uVar12" (identifier "uVar17") (- "-") (identifier "uVar12"))) (; ";")) (if_statement "if (0 < iVar3) {\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    puVar6 = puVar4;\n    do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);\n    uVar12 = *param_1;\n  }" ({ "{") (expression_statement "puVar6 = puVar4;" (assignment_expression "puVar6 = puVar4" (identifier "puVar6") (= "=") (identifier "puVar4")) (; ";")) (do_statement "do {\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    } while (puVar4 + iVar3 != puVar6);" (do "do") (compound_statement "{\n      *puVar6 = 0;\n      puVar6 = puVar6 + 1;\n    }" ({ "{") (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 + iVar3 != puVar6)" (( "(") (binary_expression "puVar4 + iVar3 != puVar6" (binary_expression "puVar4 + iVar3" (identifier "puVar4") (+ "+") (identifier "iVar3")) (!= "!=") (identifier "puVar6")) () ")")) (; ";")) (expression_statement "uVar12 = *param_1;" (assignment_expression "uVar12 = *param_1" (identifier "uVar12") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (if_statement "if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar12)" (( "(") (binary_expression "0 < (int)uVar12" (number_literal "0") (< "<") (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12"))) () ")")) (compound_statement "{\n    iVar5 = 0;\n    puVar10 = puVar4 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar10 = puVar4 + iVar3;" (assignment_expression "puVar10 = puVar4 + iVar3" (identifier "puVar10") (= "=") (binary_expression "puVar4 + iVar3" (identifier "puVar4") (+ "+") (identifier "iVar3"))) (; ";")) (do_statement "do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_1);" (do "do") (compound_statement "{\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_1[uVar12];\n      uVar12 = *param_1 - iVar5;\n      puVar10 = puVar10 + 1;\n    }" ({ "{") (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar10 = param_1[uVar12];" (assignment_expression "*puVar10 = param_1[uVar12]" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (subscript_expression "param_1[uVar12]" (identifier "param_1") ([ "[") (identifier "uVar12") (] "]"))) (; ";")) (expression_statement "uVar12 = *param_1 - iVar5;" (assignment_expression "uVar12 = *param_1 - iVar5" (identifier "uVar12") (= "=") (binary_expression "*param_1 - iVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < (int)*param_1)" (( "(") (binary_expression "iVar5 < (int)*param_1" (identifier "iVar5") (< "<") (cast_expression "(int)*param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")) (; ";")) (} "}"))) (expression_statement "puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);" (assignment_expression "puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_001112ec)(uVar17,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(uVar17,4)" (( "(") (identifier "uVar17") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "uVar12 = *param_2;" (assignment_expression "uVar12 = *param_2" (identifier "uVar12") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar3 = uVar17 - uVar12;" (assignment_expression "iVar3 = uVar17 - uVar12" (identifier "iVar3") (= "=") (binary_expression "uVar17 - uVar12" (identifier "uVar17") (- "-") (identifier "uVar12"))) (; ";")) (if_statement "if (0 < iVar3) {\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    puVar7 = puVar6;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);\n    uVar12 = *param_2;\n  }" ({ "{") (expression_statement "puVar7 = puVar6;" (assignment_expression "puVar7 = puVar6" (identifier "puVar7") (= "=") (identifier "puVar6")) (; ";")) (do_statement "do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar6 + iVar3 != puVar7);" (do "do") (compound_statement "{\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    }" ({ "{") (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar7 + 1" (identifier "puVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar6 + iVar3 != puVar7)" (( "(") (binary_expression "puVar6 + iVar3 != puVar7" (binary_expression "puVar6 + iVar3" (identifier "puVar6") (+ "+") (identifier "iVar3")) (!= "!=") (identifier "puVar7")) () ")")) (; ";")) (expression_statement "uVar12 = *param_2;" (assignment_expression "uVar12 = *param_2" (identifier "uVar12") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (if_statement "if (0 < (int)uVar12) {\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar12)" (( "(") (binary_expression "0 < (int)uVar12" (number_literal "0") (< "<") (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12"))) () ")")) (compound_statement "{\n    iVar5 = 0;\n    puVar10 = puVar6 + iVar3;\n    do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar10 = puVar6 + iVar3;" (assignment_expression "puVar10 = puVar6 + iVar3" (identifier "puVar10") (= "=") (binary_expression "puVar6 + iVar3" (identifier "puVar6") (+ "+") (identifier "iVar3"))) (; ";")) (do_statement "do {\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    } while (iVar5 < (int)*param_2);" (do "do") (compound_statement "{\n      iVar5 = iVar5 + 1;\n      *puVar10 = param_2[uVar12];\n      uVar12 = *param_2 - iVar5;\n      puVar10 = puVar10 + 1;\n    }" ({ "{") (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar10 = param_2[uVar12];" (assignment_expression "*puVar10 = param_2[uVar12]" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (subscript_expression "param_2[uVar12]" (identifier "param_2") ([ "[") (identifier "uVar12") (] "]"))) (; ";")) (expression_statement "uVar12 = *param_2 - iVar5;" (assignment_expression "uVar12 = *param_2 - iVar5" (identifier "uVar12") (= "=") (binary_expression "*param_2 - iVar5" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < (int)*param_2)" (( "(") (binary_expression "iVar5 < (int)*param_2" (identifier "iVar5") (< "<") (cast_expression "(int)*param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);" (assignment_expression "iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar11,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(iVar11,4)" (( "(") (identifier "iVar11") (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if ((int)uVar17 < 0x33) {\n    local_2c = 0;\n    iVar5 = 0;\n  }\n  else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" (if "if") (parenthesized_expression "((int)uVar17 < 0x33)" (( "(") (binary_expression "(int)uVar17 < 0x33" (cast_expression "(int)uVar17" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar17")) (< "<") (number_literal "0x33")) () ")")) (compound_statement "{\n    local_2c = 0;\n    iVar5 = 0;\n  }" ({ "{") (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" (else "else") (compound_statement "{\n    iVar5 = 0;\n    uVar12 = uVar17;\n    do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);\n    local_2c = iVar5 * 4;\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar12 = uVar17;" (assignment_expression "uVar12 = uVar17" (identifier "uVar12") (= "=") (identifier "uVar17")) (; ";")) (do_statement "do {\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    } while (0x32 < (int)uVar12);" (do "do") (compound_statement "{\n      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;\n      iVar5 = iVar5 + uVar12 * 4;\n    }" ({ "{") (expression_statement "uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;" (assignment_expression "uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1" (identifier "uVar12") (= "=") (binary_expression "(uVar12 - ((int)uVar12 >> 1)) + 1" (parenthesized_expression "(uVar12 - ((int)uVar12 >> 1))" (( "(") (binary_expression "uVar12 - ((int)uVar12 >> 1)" (identifier "uVar12") (- "-") (parenthesized_expression "((int)uVar12 >> 1)" (( "(") (binary_expression "(int)uVar12 >> 1" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (>> ">>") (number_literal "1")) () ")"))) () ")")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar5 + uVar12 * 4;" (assignment_expression "iVar5 = iVar5 + uVar12 * 4" (identifier "iVar5") (= "=") (binary_expression "iVar5 + uVar12 * 4" (identifier "iVar5") (+ "+") (binary_expression "uVar12 * 4" (identifier "uVar12") (* "*") (number_literal "4")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0x32 < (int)uVar12)" (( "(") (binary_expression "0x32 < (int)uVar12" (number_literal "0x32") (< "<") (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12"))) () ")")) (; ";")) (expression_statement "local_2c = iVar5 * 4;" (assignment_expression "local_2c = iVar5 * 4" (identifier "local_2c") (= "=") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) (; ";")) (} "}")))) (expression_statement "uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);" (assignment_expression "uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4)" (identifier "uVar8") (= "=") (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar5,4)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(iVar5,4)" (( "(") (identifier "iVar5") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "iVar14 = 5;" (assignment_expression "iVar14 = 5" (identifier "iVar14") (= "=") (number_literal "5")) (; ";")) (expression_statement "uVar13 = *puVar2;" (assignment_expression "uVar13 = *puVar2" (identifier "uVar13") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" (identifier "uVar15") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0x10;" (assignment_expression "iVar5 = 0x10" (identifier "iVar5") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "uVar12 = uVar13;" (assignment_expression "uVar12 = uVar13" (identifier "uVar12") (= "=") (identifier "uVar13")) (; ";")) (do_statement "do {\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  } while (iVar14 != 0);" (do "do") (compound_statement "{\n    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }\n    iVar14 = iVar14 + -1;\n    iVar5 = iVar5 >> 1;\n  }" ({ "{") (if_statement "if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }" (if "if") (parenthesized_expression "(uVar12 >> (0x20U - iVar5 & 0x1f) == 0)" (( "(") (binary_expression "uVar12 >> (0x20U - iVar5 & 0x1f) == 0" (binary_expression "uVar12 >> (0x20U - iVar5 & 0x1f)" (identifier "uVar12") (>> ">>") (parenthesized_expression "(0x20U - iVar5 & 0x1f)" (( "(") (binary_expression "0x20U - iVar5 & 0x1f" (binary_expression "0x20U - iVar5" (number_literal "0x20U") (- "-") (identifier "iVar5")) (& "&") (number_literal "0x1f")) () ")"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar12 = uVar12 << iVar5;\n      uVar15 = uVar15 + iVar5;\n    }" ({ "{") (expression_statement "uVar12 = uVar12 << iVar5;" (assignment_expression "uVar12 = uVar12 << iVar5" (identifier "uVar12") (= "=") (binary_expression "uVar12 << iVar5" (identifier "uVar12") (<< "<<") (identifier "iVar5"))) (; ";")) (expression_statement "uVar15 = uVar15 + iVar5;" (assignment_expression "uVar15 = uVar15 + iVar5" (identifier "uVar15") (= "=") (binary_expression "uVar15 + iVar5" (identifier "uVar15") (+ "+") (identifier "iVar5"))) (; ";")) (} "}"))) (expression_statement "iVar14 = iVar14 + -1;" (assignment_expression "iVar14 = iVar14 + -1" (identifier "iVar14") (= "=") (binary_expression "iVar14 + -1" (identifier "iVar14") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar5 = iVar5 >> 1;" (assignment_expression "iVar5 = iVar5 >> 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 >> 1" (identifier "iVar5") (>> ">>") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar14 != 0)" (( "(") (binary_expression "iVar14 != 0" (identifier "iVar14") (!= "!=") (number_literal "0")) () ")")) (; ";")) (if_statement "if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }" (if "if") (parenthesized_expression "((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18))" (( "(") (binary_expression "(uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)" (parenthesized_expression "(uVar15 != 0)" (( "(") (binary_expression "uVar15 != 0" (identifier "uVar15") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)" (( "(") (comma_expression "uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18" (assignment_expression "uVar13 = uVar13 << (uVar15 & 0x1f)" (identifier "uVar13") (= "=") (binary_expression "uVar13 << (uVar15 & 0x1f)" (identifier "uVar13") (<< "<<") (parenthesized_expression "(uVar15 & 0x1f)" (( "(") (binary_expression "uVar15 & 0x1f" (identifier "uVar15") (& "&") (number_literal "0x1f")) () ")")))) (, ",") (binary_expression "1 < iVar18" (number_literal "1") (< "<") (identifier "iVar18"))) () ")"))) () ")")) (compound_statement "{\n    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);\n  }" ({ "{") (expression_statement "uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);" (assignment_expression "uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f)" (identifier "uVar13") (= "=") (binary_expression "uVar13 | puVar2[1] >> (-uVar15 & 0x1f)" (identifier "uVar13") (| "|") (binary_expression "puVar2[1] >> (-uVar15 & 0x1f)" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (>> ">>") (parenthesized_expression "(-uVar15 & 0x1f)" (( "(") (binary_expression "-uVar15 & 0x1f" (unary_expression "-uVar15" (- "-") (identifier "uVar15")) (& "&") (number_literal "0x1f")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar9 = FUN_000665a0(uVar13);" (assignment_expression "uVar9 = FUN_000665a0(uVar13)" (identifier "uVar9") (= "=") (call_expression "FUN_000665a0(uVar13)" (identifier "FUN_000665a0") (argument_list "(uVar13)" (( "(") (identifier "uVar13") () ")")))) (; ";")) (expression_statement "FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);" (call_expression "FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8)" (identifier "FUN_00066f80") (argument_list "(puVar4,puVar6,iVar3,uVar17,uVar8)" (( "(") (identifier "puVar4") (, ",") (identifier "puVar6") (, ",") (identifier "iVar3") (, ",") (identifier "uVar17") (, ",") (identifier "uVar8") () ")"))) (; ";")) (expression_statement "iVar5 = iVar18;" (assignment_expression "iVar5 = iVar18" (identifier "iVar5") (= "=") (identifier "iVar18")) (; ";")) (if_statement "if (iVar11 < iVar18) {\n    iVar5 = iVar11;\n  }" (if "if") (parenthesized_expression "(iVar11 < iVar18)" (( "(") (binary_expression "iVar11 < iVar18" (identifier "iVar11") (< "<") (identifier "iVar18")) () ")")) (compound_statement "{\n    iVar5 = iVar11;\n  }" ({ "{") (expression_statement "iVar5 = iVar11;" (assignment_expression "iVar5 = iVar11" (identifier "iVar5") (= "=") (identifier "iVar11")) (; ";")) (} "}"))) (expression_statement "FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);" (call_expression "FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15)" (identifier "FUN_00066848") (argument_list "(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar11") (, ",") (identifier "puVar2") (, ",") (identifier "iVar18") (, ",") (number_literal "0") (, ",") (identifier "uVar9") (, ",") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "puVar10 = (uint *)FUN_00066ee4(iVar5);" (assignment_expression "puVar10 = (uint *)FUN_00066ee4(iVar5)" (identifier "puVar10") (= "=") (cast_expression "(uint *)FUN_00066ee4(iVar5)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00066ee4(iVar5)" (identifier "FUN_00066ee4") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))))) (; ";")) (if_statement "if (0 < iVar5) {\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }" (if "if") (parenthesized_expression "(0 < iVar5)" (( "(") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n    iVar14 = 0;\n    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);\n    do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);\n  }" ({ "{") (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);" (assignment_expression "puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4)" (identifier "puVar16") (= "=") (cast_expression "(uint *)(iVar3 + (iVar11 - iVar5) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + (iVar11 - iVar5) * 4)" (( "(") (binary_expression "iVar3 + (iVar11 - iVar5) * 4" (identifier "iVar3") (+ "+") (binary_expression "(iVar11 - iVar5) * 4" (parenthesized_expression "(iVar11 - iVar5)" (( "(") (binary_expression "iVar11 - iVar5" (identifier "iVar11") (- "-") (identifier "iVar5")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    } while (iVar5 != iVar14);" (do "do") (compound_statement "{\n      iVar11 = *puVar10 - iVar14;\n      iVar14 = iVar14 + 1;\n      puVar10[iVar11] = *puVar16;\n      puVar16 = puVar16 + 1;\n    }" ({ "{") (expression_statement "iVar11 = *puVar10 - iVar14;" (assignment_expression "iVar11 = *puVar10 - iVar14" (identifier "iVar11") (= "=") (binary_expression "*puVar10 - iVar14" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (- "-") (identifier "iVar14"))) (; ";")) (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" (identifier "iVar14") (= "=") (binary_expression "iVar14 + 1" (identifier "iVar14") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar10[iVar11] = *puVar16;" (assignment_expression "puVar10[iVar11] = *puVar16" (subscript_expression "puVar10[iVar11]" (identifier "puVar10") ([ "[") (identifier "iVar11") (] "]")) (= "=") (pointer_expression "*puVar16" (* "*") (identifier "puVar16"))) (; ";")) (expression_statement "puVar16 = puVar16 + 1;" (assignment_expression "puVar16 = puVar16 + 1" (identifier "puVar16") (= "=") (binary_expression "puVar16 + 1" (identifier "puVar16") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != iVar14)" (( "(") (binary_expression "iVar5 != iVar14" (identifier "iVar5") (!= "!=") (identifier "iVar14")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar12 = *puVar10;" (assignment_expression "uVar12 = *puVar10" (identifier "uVar12") (= "=") (pointer_expression "*puVar10" (* "*") (identifier "puVar10"))) (; ";")) (if_statement "if (1 < uVar12) {\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }" (if "if") (parenthesized_expression "(1 < uVar12)" (( "(") (binary_expression "1 < uVar12" (number_literal "1") (< "<") (identifier "uVar12")) () ")")) (compound_statement "{\n    puVar16 = puVar10 + uVar12;\n    uVar13 = *puVar16;\n    while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }\n  }" ({ "{") (expression_statement "puVar16 = puVar10 + uVar12;" (assignment_expression "puVar16 = puVar10 + uVar12" (identifier "puVar16") (= "=") (binary_expression "puVar10 + uVar12" (identifier "puVar10") (+ "+") (identifier "uVar12"))) (; ";")) (expression_statement "uVar13 = *puVar16;" (assignment_expression "uVar13 = *puVar16" (identifier "uVar13") (= "=") (pointer_expression "*puVar16" (* "*") (identifier "puVar16"))) (; ";")) (while_statement "while (uVar13 == 0) {\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }" (while "while") (parenthesized_expression "(uVar13 == 0)" (( "(") (binary_expression "uVar13 == 0" (identifier "uVar13") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar12 = uVar12 - 1;\n      *puVar10 = uVar12;\n      if (uVar12 == 1) break;\n      puVar1 = puVar16 + -1;\n      puVar16 = puVar16 + -1;\n      uVar13 = *puVar1;\n    }" ({ "{") (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" (identifier "uVar12") (= "=") (binary_expression "uVar12 - 1" (identifier "uVar12") (- "-") (number_literal "1"))) (; ";")) (expression_statement "*puVar10 = uVar12;" (assignment_expression "*puVar10 = uVar12" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (identifier "uVar12")) (; ";")) (if_statement "if (uVar12 == 1) break;" (if "if") (parenthesized_expression "(uVar12 == 1)" (( "(") (binary_expression "uVar12 == 1" (identifier "uVar12") (== "==") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = puVar16 + -1;" (assignment_expression "puVar1 = puVar16 + -1" (identifier "puVar1") (= "=") (binary_expression "puVar16 + -1" (identifier "puVar16") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar16 = puVar16 + -1;" (assignment_expression "puVar16 = puVar16 + -1" (identifier "puVar16") (= "=") (binary_expression "puVar16 + -1" (identifier "puVar16") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar13 = *puVar1;" (assignment_expression "uVar13 = *puVar1" (identifier "uVar13") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "(*(code *)PTR_smemclr_00111398)(uVar8,local_2c);" (call_expression "(*(code *)PTR_smemclr_00111398)(uVar8,local_2c)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" (( "(") (pointer_expression "*(code *)PTR_smemclr_00111398" (* "*") (cast_expression "(code *)PTR_smemclr_00111398" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_00111398"))) () ")")) (argument_list "(uVar8,local_2c)" (( "(") (identifier "uVar8") (, ",") (identifier "local_2c") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar8);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar8)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(uVar8)" (( "(") (identifier "uVar8") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);" (call_expression "(*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" (( "(") (pointer_expression "*(code *)PTR_smemclr_00111398" (* "*") (cast_expression "(code *)PTR_smemclr_00111398" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_00111398"))) () ")")) (argument_list "(iVar3,uVar17 << 3)" (( "(") (identifier "iVar3") (, ",") (binary_expression "uVar17 << 3" (identifier "uVar17") (<< "<<") (number_literal "3")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar3);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" (( "(") (pointer_expression "*(code *)PTR_smemclr_00111398" (* "*") (cast_expression "(code *)PTR_smemclr_00111398" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_00111398"))) () ")")) (argument_list "(puVar2,iVar18 * 4)" (( "(") (identifier "puVar2") (, ",") (binary_expression "iVar18 * 4" (identifier "iVar18") (* "*") (number_literal "4")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar2);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar2)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" (( "(") (pointer_expression "*(code *)PTR_smemclr_00111398" (* "*") (cast_expression "(code *)PTR_smemclr_00111398" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_00111398"))) () ")")) (argument_list "(puVar4,uVar17 << 2)" (( "(") (identifier "puVar4") (, ",") (binary_expression "uVar17 << 2" (identifier "uVar17") (<< "<<") (number_literal "2")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar4);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar4)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" (( "(") (pointer_expression "*(code *)PTR_smemclr_00111398" (* "*") (cast_expression "(code *)PTR_smemclr_00111398" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_00111398"))) () ")")) (argument_list "(puVar6,uVar17 << 2)" (( "(") (identifier "puVar6") (, ",") (binary_expression "uVar17 << 2" (identifier "uVar17") (<< "<<") (number_literal "2")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar6);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar6)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (return_statement "return puVar10;" (return "return") (identifier "puVar10") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) consequence: (compound_statement (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (identifier)))) (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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier)))))))) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (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) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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 (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (number_literal)))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (number_literal) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (number_literal) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_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: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (pointer_expression argument: (identifier)))) (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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_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: (identifier) right: (pointer_expression argument: (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)))) (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)))) (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) (binary_expression left: (identifier) right: (number_literal))))) (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)))) (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) (binary_expression left: (identifier) right: (number_literal))))) (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)))) (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) (binary_expression left: (identifier) right: (number_literal))))) (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)))) (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) (binary_expression left: (identifier) right: (number_literal))))) (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)))) (return_statement (identifier)))))

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

{
  uint *puVar1;
  uint *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  uint *puVar10;
  int iVar11;
  uint uVar12;
  uint uVar13;
  int iVar14;
  uint uVar15;
  uint *puVar16;
  uint uVar17;
  int iVar18;
  int local_2c;
  
  iVar18 = *param_3;
  if (param_3[iVar18] == 0) {
    puVar2 = (uint *)(*(code *)PTR___assert_fail_00111f50)
                               (PTR_DAT_001112f8 + 0x18ac,PTR_DAT_001112f8 + 0x1870,0x4c1,
                                PTR_DAT_001112f8 + 0x1a3c);
    return puVar2;
  }
  puVar2 = (uint *)(*(code *)PTR_safemalloc_001112ec)(iVar18,4);
  if (0 < iVar18) {
    iVar11 = 0;
    puVar10 = puVar2;
    do {
      iVar3 = *param_3 - iVar11;
      iVar11 = iVar11 + 1;
      *puVar10 = param_3[iVar3];
      puVar10 = puVar10 + 1;
    } while (iVar18 != iVar11);
  }
  uVar17 = *param_1;
  if (*param_1 <= *param_2) {
    uVar17 = *param_2;
  }
  iVar11 = uVar17 << 1;
  if (iVar11 <= iVar18) {
    uVar17 = iVar18 / 2 + 1;
    iVar11 = uVar17 * 2;
  }
  puVar4 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);
  uVar12 = *param_1;
  iVar3 = uVar17 - uVar12;
  if (0 < iVar3) {
    puVar6 = puVar4;
    do {
      *puVar6 = 0;
      puVar6 = puVar6 + 1;
    } while (puVar4 + iVar3 != puVar6);
    uVar12 = *param_1;
  }
  if (0 < (int)uVar12) {
    iVar5 = 0;
    puVar10 = puVar4 + iVar3;
    do {
      iVar5 = iVar5 + 1;
      *puVar10 = param_1[uVar12];
      uVar12 = *param_1 - iVar5;
      puVar10 = puVar10 + 1;
    } while (iVar5 < (int)*param_1);
  }
  puVar6 = (undefined4 *)(*(code *)PTR_safemalloc_001112ec)(uVar17,4);
  uVar12 = *param_2;
  iVar3 = uVar17 - uVar12;
  if (0 < iVar3) {
    puVar7 = puVar6;
    do {
      *puVar7 = 0;
      puVar7 = puVar7 + 1;
    } while (puVar6 + iVar3 != puVar7);
    uVar12 = *param_2;
  }
  if (0 < (int)uVar12) {
    iVar5 = 0;
    puVar10 = puVar6 + iVar3;
    do {
      iVar5 = iVar5 + 1;
      *puVar10 = param_2[uVar12];
      uVar12 = *param_2 - iVar5;
      puVar10 = puVar10 + 1;
    } while (iVar5 < (int)*param_2);
  }
  iVar3 = (*(code *)PTR_safemalloc_001112ec)(iVar11,4);
  if ((int)uVar17 < 0x33) {
    local_2c = 0;
    iVar5 = 0;
  }
  else {
    iVar5 = 0;
    uVar12 = uVar17;
    do {
      uVar12 = (uVar12 - ((int)uVar12 >> 1)) + 1;
      iVar5 = iVar5 + uVar12 * 4;
    } while (0x32 < (int)uVar12);
    local_2c = iVar5 * 4;
  }
  uVar8 = (*(code *)PTR_safemalloc_001112ec)(iVar5,4);
  iVar14 = 5;
  uVar13 = *puVar2;
  uVar15 = 0;
  iVar5 = 0x10;
  uVar12 = uVar13;
  do {
    if (uVar12 >> (0x20U - iVar5 & 0x1f) == 0) {
      uVar12 = uVar12 << iVar5;
      uVar15 = uVar15 + iVar5;
    }
    iVar14 = iVar14 + -1;
    iVar5 = iVar5 >> 1;
  } while (iVar14 != 0);
  if ((uVar15 != 0) && (uVar13 = uVar13 << (uVar15 & 0x1f), 1 < iVar18)) {
    uVar13 = uVar13 | puVar2[1] >> (-uVar15 & 0x1f);
  }
  uVar9 = FUN_000665a0(uVar13);
  FUN_00066f80(puVar4,puVar6,iVar3,uVar17,uVar8);
  iVar5 = iVar18;
  if (iVar11 < iVar18) {
    iVar5 = iVar11;
  }
  FUN_00066848(iVar3,iVar11,puVar2,iVar18,0,uVar9,uVar15);
  puVar10 = (uint *)FUN_00066ee4(iVar5);
  if (0 < iVar5) {
    iVar14 = 0;
    puVar16 = (uint *)(iVar3 + (iVar11 - iVar5) * 4);
    do {
      iVar11 = *puVar10 - iVar14;
      iVar14 = iVar14 + 1;
      puVar10[iVar11] = *puVar16;
      puVar16 = puVar16 + 1;
    } while (iVar5 != iVar14);
  }
  uVar12 = *puVar10;
  if (1 < uVar12) {
    puVar16 = puVar10 + uVar12;
    uVar13 = *puVar16;
    while (uVar13 == 0) {
      uVar12 = uVar12 - 1;
      *puVar10 = uVar12;
      if (uVar12 == 1) break;
      puVar1 = puVar16 + -1;
      puVar16 = puVar16 + -1;
      uVar13 = *puVar1;
    }
  }
  (*(code *)PTR_smemclr_00111398)(uVar8,local_2c);
  (*(code *)PTR_safefree_001112f0)(uVar8);
  (*(code *)PTR_smemclr_00111398)(iVar3,uVar17 << 3);
  (*(code *)PTR_safefree_001112f0)(iVar3);
  (*(code *)PTR_smemclr_00111398)(puVar2,iVar18 * 4);
  (*(code *)PTR_safefree_001112f0)(puVar2);
  (*(code *)PTR_smemclr_00111398)(puVar4,uVar17 << 2);
  (*(code *)PTR_safefree_001112f0)(puVar4);
  (*(code *)PTR_smemclr_00111398)(puVar6,uVar17 << 2);
  (*(code *)PTR_safefree_001112f0)(puVar6);
  return puVar10;
}

