
Bignum * dss_gen_k(char *id_string,Bignum modulus,Bignum private_key,uchar *digest,int digest_len)

{
  int iVar1;
  int iVar2;
  SHA512_State ss;
  SHA512_State ss2;
  uchar digest512 [64];
  
  SHA512_Init((SHA512_CTX *)&ss);
  iVar1 = (*(code *)PTR_strlen_0006a51c)(id_string);
  SHA512_Bytes(&ss,id_string,iVar1 + 1);
  iVar1 = bignum_bitcount((Bignum_conflict)private_key);
  iVar2 = iVar1 + 8;
  if (iVar2 < 0) {
    iVar2 = iVar1 + 0xf;
  }
  digest512._0_4_ = iVar2 >> 3;
  SHA512_Bytes(&ss,digest512,4);
  if (iVar1 < 0) {
                    /* WARNING: Subroutine does not return */
    smemclr(digest512,4);
  }
                    /* WARNING: Subroutine does not return */
  bignum_byte((Bignum_conflict)private_key,(iVar2 >> 3) + -1);
}



undefined1 *
dss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,
         undefined4 param_5)

{
  undefined1 *puVar1;
  byte bVar2;
  undefined1 uVar3;
  int iVar4;
  SHA512_CTX *pSVar5;
  SHA512_CTX *pSVar6;
  undefined1 *puVar7;
  undefined1 *puVar8;
  undefined1 uVar11;
  int *piVar9;
  undefined4 uVar10;
  uchar *puVar12;
  uchar *puVar13;
  undefined4 *puVar14;
  undefined4 uVar15;
  uint uVar16;
  undefined4 *puVar17;
  undefined4 uVar18;
  code *pcVar19;
  undefined4 *puVar20;
  undefined4 *puVar21;
  int iVar22;
  undefined *puVar23;
  int iVar24;
  undefined *puVar25;
  undefined *puVar26;
  undefined4 *puVar27;
  uint uVar28;
  undefined *puVar29;
  code *pcVar30;
  int iVar31;
  undefined4 uStack_2cc;
  undefined4 uStack_2c8;
  int iStack_2c4;
  undefined4 *puStack_2c0;
  int iStack_2bc;
  undefined *puStack_2b8;
  undefined1 *puStack_2b4;
  undefined1 *puStack_2b0;
  undefined4 *puStack_2ac;
  undefined1 *puStack_2a8;
  undefined4 *puStack_2a4;
  undefined4 *puStack_2a0;
  undefined4 uStack_29c;
  undefined4 local_288;
  undefined *local_280;
  undefined1 auStack_278 [20];
  undefined4 *local_264;
  SHA512_CTX *local_260;
  SHA512_CTX *local_25c;
  undefined *local_258;
  SHA512_CTX *local_254;
  undefined *local_250;
  undefined4 *local_24c;
  undefined *local_248;
  uchar *local_244;
  undefined1 *local_240;
  undefined4 local_23c;
  undefined1 local_214 [212];
  uchar local_140 [4];
  undefined4 local_13c [52];
  int local_6c;
  undefined4 *local_2c;
  
  puVar29 = PTR___stack_chk_guard_0006a594;
  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;
  puVar20 = param_4;
  SHA512_Init((SHA512_CTX *)local_214);
  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);
  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);
  iVar4 = bignum_bitcount(param_3);
  iVar24 = iVar4 + 8;
  if (iVar24 < 0) {
    iVar24 = iVar4 + 0xf;
  }
  iVar24 = iVar24 >> 3;
  local_6c = iVar24;
  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);
  if (-1 < iVar4) {
    do {
      iVar24 = iVar24 + -1;
      uVar11 = bignum_byte(param_3,iVar24);
      local_6c = CONCAT13(uVar11,local_6c._1_3_);
      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);
    } while (0 < iVar24);
  }
  puVar25 = PTR_One_0006a2cc;
  puVar26 = PTR_Zero_0006a2b8;
  smemclr((SHA512_CTX *)&local_6c,4);
  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);
  SHA512_Init((SHA512_CTX *)local_214);
  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);
  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);
  puVar23 = PTR_DAT_0006a068 + 0x3134;
  pSVar5 = (SHA512_CTX *)local_214;
  puVar12 = local_140;
  while( true ) {
    do {
      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);
      puVar13 = puVar12 + 0x10;
      uVar10 = (undefined4)pSVar5->h[0];
      uVar18 = *(undefined4 *)(pSVar5->h + 1);
      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);
      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;
      *(undefined4 *)(puVar12 + 4) = uVar10;
      *(undefined4 *)(puVar12 + 8) = uVar18;
      *(undefined4 *)(puVar12 + 0xc) = uVar15;
      pSVar5 = pSVar6;
      puVar12 = puVar13;
    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));
    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;
    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);
    smemclr(local_140,0xd4);
    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);
    puVar7 = (undefined1 *)bigmod(uVar15,param_2);
    freebn(uVar15);
    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);
    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;
    freebn(puVar7);
    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);
    pSVar5 = (SHA512_CTX *)local_214;
    puVar12 = local_140;
  }
  smemclr((SHA512_CTX *)local_214,0xd4);
  uVar15 = 0x40;
  smemclr((SHA512_CTX *)&local_6c,0x40);
  if (local_2c == *(undefined4 **)puVar29) {
    return puVar7;
  }
  uVar18 = 0x2f68c;
  puVar21 = local_2c;
  puVar29 = PTR___stack_chk_fail_0006a574;
  (*(code *)PTR___stack_chk_fail_0006a574)();
  local_280 = puVar29 + 0x429a4;
  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);
  puVar8 = auStack_278;
  local_264 = (undefined4 *)*puVar27;
  local_260 = (SHA512_CTX *)local_214;
  local_25c = (SHA512_CTX *)&local_6c;
  local_258 = puVar23;
  local_254 = (SHA512_CTX *)(local_214 + 0xd0);
  local_250 = puVar25;
  local_24c = param_2;
  local_248 = puVar26;
  local_244 = local_140;
  local_240 = puVar7;
  local_23c = uVar18;
  SHA_Simple(uVar15,uVar10,puVar8);
  local_288 = 0x14;
  puVar7 = puVar8;
  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);
  iVar24 = modinv(iVar4,puVar21[1]);
  puVar29 = local_280;
  if (iVar24 == 0) {
    pcVar19 = (code *)0x26f;
    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);
    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;
    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);
    (**(code **)(local_280 + -0x7bb8))();
  }
  else {
    uVar15 = modpow(puVar21[2],iVar4,*puVar21);
    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);
    freebn(uVar15);
    uVar15 = bignum_from_bytes(puVar8,0x14);
    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);
    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);
    freebn(uVar18);
    freebn(iVar24);
    freebn(iVar4);
    freebn(uVar15);
    puVar26 = (undefined *)safemalloc(0x37,1);
    puVar26[3] = 7;
    *puVar26 = 0;
    param_2 = (undefined4 *)(puVar26 + 0x23);
    iVar4 = *(int *)(local_280 + -0x7fc8);
    puVar25 = puVar26 + 0x22;
    puVar26[1] = 0;
    puVar26[2] = 0;
    uVar16 = *(uint *)(iVar4 + -0x1ac8);
    bVar2 = *(byte *)(iVar4 + -0x1ac4);
    pcVar19 = (code *)(uint)bVar2;
    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);
    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);
    puVar1 = puVar26 + 4;
    uVar28 = (uint)puVar1 & 3;
    *(uint *)(puVar1 + -uVar28) =
         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;
    puVar1 = puVar26 + 7;
    uVar28 = (uint)puVar1 & 3;
    *(uint *)(puVar1 + -uVar28) =
         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;
    puVar26[8] = bVar2;
    puVar26[9] = uVar11;
    puVar26[10] = uVar3;
    puVar26[0xb] = 0;
    puVar26[0xc] = 0;
    puVar26[0xd] = 0;
    puVar26[0xe] = 0x28;
    puVar17 = (undefined4 *)(puVar26 + 0xf);
    do {
      iVar4 = (int)puVar25 - (int)puVar17;
      uVar11 = bignum_byte(puVar23,iVar4);
      puVar21 = (undefined4 *)((int)puVar17 + 1);
      *(undefined1 *)puVar17 = uVar11;
      uVar11 = bignum_byte(puVar8,iVar4);
      *(undefined1 *)(puVar17 + 5) = uVar11;
      puVar17 = puVar21;
    } while (puVar21 != param_2);
    freebn(puVar23);
    freebn(puVar8);
    iVar24 = 0x37;
    puVar14 = (undefined4 *)*puVar27;
    *puVar20 = 0x37;
    puVar17 = local_264;
    puVar29 = local_280;
    if (local_264 == puVar14) {
      return puVar26;
    }
  }
  pcVar30 = *(code **)(puVar29 + -0x7abc);
  uVar15 = 0x2f96c;
  (*pcVar30)();
  piVar9 = *(int **)(pcVar30 + 0x3ac24);
  iStack_2c4 = *piVar9;
  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);
  iVar22 = 1;
  puStack_2c0 = puVar21;
  iStack_2bc = iVar4;
  puStack_2b8 = puVar23;
  puStack_2b4 = puVar8;
  puStack_2b0 = puVar25;
  puStack_2ac = param_2;
  puStack_2a8 = puVar26;
  puStack_2a4 = puVar27;
  puStack_2a0 = puVar20;
  uStack_29c = uVar15;
  (*pcVar19)(puVar7,4,1,0x2800);
  (*pcVar19)(puVar7,3,1,0xffffd10e);
  (*pcVar19)(puVar7,4,2,iVar24 << 6);
  if (iVar24 == 0) {
    trap(7);
  }
  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);
  (*pcVar19)(puVar7,4,3,0x2000);
  (*pcVar19)(puVar7,3,3,0xffff8000);
  (*pcVar19)(puVar7,4,4,0x2000);
  (*pcVar19)(puVar7,3,4,0xffff4000);
  (*pcVar19)(puVar7,5,0,0);
  invent_firstbits(&uStack_2cc,&uStack_2c8);
  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);
  puVar17[1] = uVar15;
  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);
  *puVar17 = uVar15;
  uVar18 = bigdiv(uVar15,puVar17[1]);
  uVar15 = bignum_from_long(1);
  while( true ) {
    (*pcVar19)(puVar7,6,3,iVar22);
    uVar10 = modpow(uVar15,uVar18,*puVar17);
    iVar4 = bignum_cmp(uVar10,*puVar14);
    if (0 < iVar4) break;
    uVar10 = bignum_add_long(uVar15,1);
    freebn(uVar15);
    iVar22 = iVar22 + 1;
    uVar15 = uVar10;
  }
  puVar17[2] = uVar10;
  freebn(uVar15);
  uVar15 = copybn(puVar17[1]);
  decbn(uVar15);
  iVar4 = 0;
  while( true ) {
    iVar4 = iVar4 + 1;
    (*pcVar19)(puVar7,6,4,iVar4);
    iVar22 = 0;
    uVar28 = 0;
    uVar18 = bn_power_2(0x9f);
    iVar24 = 0;
    do {
      if (iVar22 == 0) {
        iVar22 = 7;
        uVar28 = random_byte();
      }
      else {
        iVar22 = iVar22 + -1;
      }
      iVar31 = iVar24 + 1;
      bignum_set_bit(uVar18,iVar24,uVar28 & 1);
      uVar28 = (int)uVar28 >> 1;
      iVar24 = iVar31;
    } while (iVar31 != 0xa0);
    iVar24 = bignum_cmp(uVar18,*puVar14);
    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;
    freebn(uVar18);
  }
  puVar17[4] = uVar18;
  freebn(uVar15);
  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);
  puVar17[3] = uVar15;
  if (iStack_2c4 != *piVar9) {
    iVar4 = iStack_2c4;
    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();
    if (iVar4 == 0) {
      return puVar7;
    }
    if (*(int *)(iVar4 + 8) != 0) {
      freebn();
    }
    if (*(int *)(iVar4 + 0xc) != 0) {
      freebn();
    }
    if (*(int *)(iVar4 + 0x10) != 0) {
      freebn();
    }
    if (*(int *)(iVar4 + 0x18) != 0) {
      freebn();
    }
    puVar7 = (undefined1 *)safefree(iVar4);
    return puVar7;
  }
  return (undefined1 *)0x1;
}


lui gp,0x4
addiu gp,gp,0x2cc8
addu gp,gp,t9
lw v0,-0x7a9c(gp)
addiu sp,sp,-0x238
lw t9,-0x7da4(gp)
sw v0,0x1c(sp)
sw s0,0x210(sp)
addiu s0,sp,0x24
sw ra,0x234(sp)
sw gp,0x10(sp)
sw s6,0x228(sp)
sw s5,0x224(sp)
or s5,a1,zero
sw s4,0x220(sp)
or s4,a2,zero
sw s3,0x21c(sp)
sw s2,0x218(sp)
or s2,a3,zero
sw s1,0x214(sp)
or s1,a0,zero
sw s8,0x230(sp)
or a0,s0,zero
sw s7,0x22c(sp)
lw v0,0x0(v0)
sw v0,0x20c(sp)
bal 0x00042928
_nop
lw gp,0x10(sp)
lw t9,-0x7b14(gp)
jalr t9
_or a0,s1,zero
or a0,s0,zero
lw gp,0x10(sp)
addiu a2,v0,0x1
lw t9,-0x7da0(gp)
bal 0x000429c8
_or a1,s1,zero
lw gp,0x10(sp)
lw t9,-0x7e24(gp)
bal 0x000278a8
_or a0,s4,zero
addiu s3,v0,0x8
lw gp,0x10(sp)
bgez s3,0x0002f424
_or s6,v0,zero
addiu s3,v0,0xf
lw t9,-0x7da0(gp)
sra s3,s3,0x3
addiu s1,sp,0x1cc
li a2,0x4
sw s3,0x1cc(sp)
or a1,s1,zero
bal 0x000429c8
_or a0,s0,zero
addiu s3,s3,-0x1
bgez s6,0x0002f45c
_lw gp,0x10(sp)
b 0x0002f498
_lw t9,-0x7f88(gp)
or s3,v0,zero
lw t9,-0x7e20(gp)
or a1,s3,zero
bal 0x00027a10
_or a0,s4,zero
li a2,0x1
lw gp,0x10(sp)
or a1,s1,zero
sb v0,0x1cc(sp)
lw t9,-0x7da0(gp)
bal 0x000429c8
_or a0,s0,zero
addiu v0,s3,-0x1
bgtz s3,0x0002f458
_lw gp,0x10(sp)
lw t9,-0x7f88(gp)
li a1,0x4
or a0,s1,zero
lw s4,-0x7d64(gp)
lw s6,-0x7d78(gp)
bal 0x000202bc
_addiu s7,sp,0xf8
or a1,s1,zero
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7d9c(gp)
bal 0x00043dd8
_addiu s3,sp,0xf4
lw gp,0x10(sp)
lw t9,-0x7da4(gp)
bal 0x00042928
_or a0,s0,zero
li a2,0x40
lw gp,0x10(sp)
or a1,s1,zero
lw t9,-0x7da0(gp)
bal 0x000429c8
_or a0,s0,zero
or a1,s2,zero
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7da0(gp)
bal 0x000429c8
_lw a2,0x248(sp)
lw gp,0x10(sp)
lw s2,-0x7fc8(gp)
addiu s2,s2,0x3134
or v0,s0,zero
or v1,s7,zero
lw t0,0x0(v0)
addiu v0,v0,0x10
addiu v1,v1,0x10
lw a2,-0xc(v0)
lw a1,-0x8(v0)
lw a0,-0x4(v0)
sw t0,-0x10(v1)
sw a2,-0xc(v1)
sw a1,-0x8(v1)
bne v0,s3,0x0002f51c
_sw a0,-0x4(v1)
lw v0,0x0(v0)
or a1,s1,zero
lw t9,-0x7d9c(gp)
or a0,s7,zero
bal 0x00043dd8
_sw v0,0x0(v1)
li a1,0xd4
lw gp,0x10(sp)
lw t9,-0x7f88(gp)
bal 0x000202bc
_or a0,s7,zero
li a1,0x40
lw gp,0x10(sp)
lw t9,-0x7e34(gp)
bal 0x00027570
_or a0,s1,zero
or a1,s5,zero
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7e2c(gp)
bal 0x00028d78
_or s8,v0,zero
or a0,s8,zero
lw gp,0x10(sp)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or s8,v0,zero
or a0,s8,zero
lw gp,0x10(sp)
lw t9,-0x7d84(gp)
bal 0x00027cd8
_lw a1,0x0(s4)
beq v0,zero,0x0002f5e8
_lw gp,0x10(sp)
lw t9,-0x7d84(gp)
or a0,s8,zero
bal 0x00027cd8
_lw a1,0x0(s6)
bne v0,zero,0x0002f614
_lw gp,0x10(sp)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or a0,s8,zero
li a2,0x1
lw gp,0x10(sp)
or a1,s2,zero
lw t9,-0x7da0(gp)
bal 0x000429c8
_or a0,s0,zero
b 0x0002f514
_lw gp,0x10(sp)
lw t9,-0x7f88(gp)
li a1,0xd4
bal 0x000202bc
_or a0,s0,zero
li a1,0x40
lw gp,0x10(sp)
lw t9,-0x7f88(gp)
bal 0x000202bc
_or a0,s1,zero
or v0,s8,zero
lw v1,0x1c(sp)
lw a0,0x20c(sp)
lw gp,0x10(sp)
lw v1,0x0(v1)
bne a0,v1,0x0002f680
_lw ra,0x234(sp)
lw s8,0x230(sp)
lw s7,0x22c(sp)
lw s6,0x228(sp)
lw s5,0x224(sp)
lw s4,0x220(sp)
lw s3,0x21c(sp)
lw s2,0x218(sp)
lw s1,0x214(sp)
lw s0,0x210(sp)
jr ra
_addiu sp,sp,0x238
lw t9,-0x7abc(gp)
jalr t9
_nop
lui gp,0x4
addiu gp,gp,0x29a4
addu gp,gp,t9
addiu sp,sp,-0x60
lw t9,-0x7d48(gp)
or v1,a1,zero
or a1,a2,zero
sw s7,0x54(sp)
lw s7,-0x7a9c(gp)
sw s3,0x44(sp)
addiu s3,sp,0x20
sw ra,0x5c(sp)
sw gp,0x18(sp)
or a2,s3,zero
sw s8,0x58(sp)
or s8,a3,zero
sw s1,0x3c(sp)
sw s0,0x38(sp)
or s0,a0,zero
sw s6,0x50(sp)
or a0,v1,zero
sw s5,0x4c(sp)
sw s4,0x48(sp)
sw s2,0x40(sp)
lw v0,0x0(s7)
sw v0,0x34(sp)
bal 0x00045458
_nop
li v0,0x14
lw gp,0x18(sp)
or a3,s3,zero
lw a2,0x10(s0)
lw a1,0x4(s0)
sw v0,0x10(sp)
lw a0,-0x7fc8(gp)
lw t9,-0x7d34(gp)
bal 0x0002f368
_addiu a0,a0,0x3138
lw gp,0x18(sp)
or a0,v0,zero
lw a1,0x4(s0)
lw t9,-0x7d5c(gp)
bal 0x0002976c
_or s1,v0,zero
beq v0,zero,0x0002f93c
_lw gp,0x18(sp)
lw a2,0x0(s0)
or a1,s1,zero
lw t9,-0x7d44(gp)
or s4,v0,zero
bal 0x00029c04
_lw a0,0x8(s0)
lw gp,0x18(sp)
or a0,v0,zero
lw a1,0x4(s0)
lw t9,-0x7e2c(gp)
bal 0x00028d78
_or s2,v0,zero
or a0,s2,zero
lw gp,0x18(sp)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or s2,v0,zero
li a1,0x14
lw gp,0x18(sp)
lw t9,-0x7e34(gp)
bal 0x00027570
_or a0,s3,zero
or a1,s2,zero
lw gp,0x18(sp)
or a2,v0,zero
lw a0,0x10(s0)
lw t9,-0x7d80(gp)
bal 0x000283b4
_or s5,v0,zero
or a0,s4,zero
lw gp,0x18(sp)
or a1,v0,zero
lw a2,0x4(s0)
lw t9,-0x7d58(gp)
bal 0x00027014
_or s0,v0,zero
or a0,s0,zero
lw gp,0x18(sp)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or s3,v0,zero
lw gp,0x18(sp)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or a0,s4,zero
lw gp,0x18(sp)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or a0,s1,zero
lw gp,0x18(sp)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or a0,s5,zero
li a1,0x1
lw gp,0x18(sp)
lw t9,-0x7f6c(gp)
bal 0x0001f494
_li a0,0x37
li a1,0x7
lw gp,0x18(sp)
or s6,v0,zero
addiu v0,v0,0x4
sb a1,0x3(s6)
addiu s0,s6,0xf
sb zero,0x0(s6)
addiu s5,s6,0x23
lw a0,-0x7fc8(gp)
addiu s4,s6,0x22
sb zero,0x1(s6)
sb zero,0x2(s6)
addiu v1,a0,-0x1ac8
lw a0,-0x1ac8(a0)
lbu a2,0x4(v1)
lbu a1,0x5(v1)
lbu v1,0x6(v1)
swl a0,0x4(s6)
swr a0,0x3(v0)
sb a2,0x4(v0)
sb a1,0x5(v0)
sb v1,0x6(v0)
li v0,0x28
sb zero,0xb(s6)
sb zero,0xc(s6)
sb zero,0xd(s6)
sb v0,0xe(s6)
subu s1,s4,s0
lw t9,-0x7e20(gp)
or a0,s2,zero
bal 0x00027a10
_or a1,s1,zero
addiu s0,s0,0x1
lw gp,0x18(sp)
or a1,s1,zero
sb v0,-0x1(s0)
lw t9,-0x7e20(gp)
bal 0x00027a10
_or a0,s3,zero
lw gp,0x18(sp)
bne s0,s5,0x0002f898
_sb v0,0x13(s0)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or a0,s2,zero
lw gp,0x18(sp)
lw t9,-0x7e28(gp)
bal 0x00026fc4
_or a0,s3,zero
li a1,0x37
lw a0,0x34(sp)
or v0,s6,zero
lw v1,0x0(s7)
lw gp,0x18(sp)
bne a0,v1,0x0002f960
_sw a1,0x0(s8)
lw ra,0x5c(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
lw a3,-0x7fc8(gp)
li a2,0x26f
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7bb8(gp)
addiu a3,a3,0x3198
addiu a1,a1,0x3110
jalr t9
_addiu a0,a0,0x3158
lw t9,-0x7abc(gp)
jalr t9
_nop
nop
(translation_unit "undefined1 *\ndss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)\n\n{\n  undefined1 *puVar1;\n  byte bVar2;\n  undefined1 uVar3;\n  int iVar4;\n  SHA512_CTX *pSVar5;\n  SHA512_CTX *pSVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  undefined1 uVar11;\n  int *piVar9;\n  undefined4 uVar10;\n  uchar *puVar12;\n  uchar *puVar13;\n  undefined4 *puVar14;\n  undefined4 uVar15;\n  uint uVar16;\n  undefined4 *puVar17;\n  undefined4 uVar18;\n  code *pcVar19;\n  undefined4 *puVar20;\n  undefined4 *puVar21;\n  int iVar22;\n  undefined *puVar23;\n  int iVar24;\n  undefined *puVar25;\n  undefined *puVar26;\n  undefined4 *puVar27;\n  uint uVar28;\n  undefined *puVar29;\n  code *pcVar30;\n  int iVar31;\n  undefined4 uStack_2cc;\n  undefined4 uStack_2c8;\n  int iStack_2c4;\n  undefined4 *puStack_2c0;\n  int iStack_2bc;\n  undefined *puStack_2b8;\n  undefined1 *puStack_2b4;\n  undefined1 *puStack_2b0;\n  undefined4 *puStack_2ac;\n  undefined1 *puStack_2a8;\n  undefined4 *puStack_2a4;\n  undefined4 *puStack_2a0;\n  undefined4 uStack_29c;\n  undefined4 local_288;\n  undefined *local_280;\n  undefined1 auStack_278 [20];\n  undefined4 *local_264;\n  SHA512_CTX *local_260;\n  SHA512_CTX *local_25c;\n  undefined *local_258;\n  SHA512_CTX *local_254;\n  undefined *local_250;\n  undefined4 *local_24c;\n  undefined *local_248;\n  uchar *local_244;\n  undefined1 *local_240;\n  undefined4 local_23c;\n  undefined1 local_214 [212];\n  uchar local_140 [4];\n  undefined4 local_13c [52];\n  int local_6c;\n  undefined4 *local_2c;\n  \n  puVar29 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;\n  puVar20 = param_4;\n  SHA512_Init((SHA512_CTX *)local_214);\n  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);\n  iVar4 = bignum_bitcount(param_3);\n  iVar24 = iVar4 + 8;\n  if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }\n  iVar24 = iVar24 >> 3;\n  local_6c = iVar24;\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);\n  if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }\n  puVar25 = PTR_One_0006a2cc;\n  puVar26 = PTR_Zero_0006a2b8;\n  smemclr((SHA512_CTX *)&local_6c,4);\n  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);\n  SHA512_Init((SHA512_CTX *)local_214);\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);\n  puVar23 = PTR_DAT_0006a068 + 0x3134;\n  pSVar5 = (SHA512_CTX *)local_214;\n  puVar12 = local_140;\n  while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }\n  smemclr((SHA512_CTX *)local_214,0xd4);\n  uVar15 = 0x40;\n  smemclr((SHA512_CTX *)&local_6c,0x40);\n  if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }\n  uVar18 = 0x2f68c;\n  puVar21 = local_2c;\n  puVar29 = PTR___stack_chk_fail_0006a574;\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  local_280 = puVar29 + 0x429a4;\n  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);\n  puVar8 = auStack_278;\n  local_264 = (undefined4 *)*puVar27;\n  local_260 = (SHA512_CTX *)local_214;\n  local_25c = (SHA512_CTX *)&local_6c;\n  local_258 = puVar23;\n  local_254 = (SHA512_CTX *)(local_214 + 0xd0);\n  local_250 = puVar25;\n  local_24c = param_2;\n  local_248 = puVar26;\n  local_244 = local_140;\n  local_240 = puVar7;\n  local_23c = uVar18;\n  SHA_Simple(uVar15,uVar10,puVar8);\n  local_288 = 0x14;\n  puVar7 = puVar8;\n  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);\n  iVar24 = modinv(iVar4,puVar21[1]);\n  puVar29 = local_280;\n  if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }\n  pcVar30 = *(code **)(puVar29 + -0x7abc);\n  uVar15 = 0x2f96c;\n  (*pcVar30)();\n  piVar9 = *(int **)(pcVar30 + 0x3ac24);\n  iStack_2c4 = *piVar9;\n  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);\n  iVar22 = 1;\n  puStack_2c0 = puVar21;\n  iStack_2bc = iVar4;\n  puStack_2b8 = puVar23;\n  puStack_2b4 = puVar8;\n  puStack_2b0 = puVar25;\n  puStack_2ac = param_2;\n  puStack_2a8 = puVar26;\n  puStack_2a4 = puVar27;\n  puStack_2a0 = puVar20;\n  uStack_29c = uVar15;\n  (*pcVar19)(puVar7,4,1,0x2800);\n  (*pcVar19)(puVar7,3,1,0xffffd10e);\n  (*pcVar19)(puVar7,4,2,iVar24 << 6);\n  if (iVar24 == 0) {\n    trap(7);\n  }\n  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);\n  (*pcVar19)(puVar7,4,3,0x2000);\n  (*pcVar19)(puVar7,3,3,0xffff8000);\n  (*pcVar19)(puVar7,4,4,0x2000);\n  (*pcVar19)(puVar7,3,4,0xffff4000);\n  (*pcVar19)(puVar7,5,0,0);\n  invent_firstbits(&uStack_2cc,&uStack_2c8);\n  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);\n  puVar17[1] = uVar15;\n  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);\n  *puVar17 = uVar15;\n  uVar18 = bigdiv(uVar15,puVar17[1]);\n  uVar15 = bignum_from_long(1);\n  while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }\n  puVar17[2] = uVar10;\n  freebn(uVar15);\n  uVar15 = copybn(puVar17[1]);\n  decbn(uVar15);\n  iVar4 = 0;\n  while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }\n  puVar17[4] = uVar18;\n  freebn(uVar15);\n  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);\n  puVar17[3] = uVar15;\n  if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }\n  return (undefined1 *)0x1;\n}\n\n" (function_definition "undefined1 *\ndss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)\n\n{\n  undefined1 *puVar1;\n  byte bVar2;\n  undefined1 uVar3;\n  int iVar4;\n  SHA512_CTX *pSVar5;\n  SHA512_CTX *pSVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  undefined1 uVar11;\n  int *piVar9;\n  undefined4 uVar10;\n  uchar *puVar12;\n  uchar *puVar13;\n  undefined4 *puVar14;\n  undefined4 uVar15;\n  uint uVar16;\n  undefined4 *puVar17;\n  undefined4 uVar18;\n  code *pcVar19;\n  undefined4 *puVar20;\n  undefined4 *puVar21;\n  int iVar22;\n  undefined *puVar23;\n  int iVar24;\n  undefined *puVar25;\n  undefined *puVar26;\n  undefined4 *puVar27;\n  uint uVar28;\n  undefined *puVar29;\n  code *pcVar30;\n  int iVar31;\n  undefined4 uStack_2cc;\n  undefined4 uStack_2c8;\n  int iStack_2c4;\n  undefined4 *puStack_2c0;\n  int iStack_2bc;\n  undefined *puStack_2b8;\n  undefined1 *puStack_2b4;\n  undefined1 *puStack_2b0;\n  undefined4 *puStack_2ac;\n  undefined1 *puStack_2a8;\n  undefined4 *puStack_2a4;\n  undefined4 *puStack_2a0;\n  undefined4 uStack_29c;\n  undefined4 local_288;\n  undefined *local_280;\n  undefined1 auStack_278 [20];\n  undefined4 *local_264;\n  SHA512_CTX *local_260;\n  SHA512_CTX *local_25c;\n  undefined *local_258;\n  SHA512_CTX *local_254;\n  undefined *local_250;\n  undefined4 *local_24c;\n  undefined *local_248;\n  uchar *local_244;\n  undefined1 *local_240;\n  undefined4 local_23c;\n  undefined1 local_214 [212];\n  uchar local_140 [4];\n  undefined4 local_13c [52];\n  int local_6c;\n  undefined4 *local_2c;\n  \n  puVar29 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;\n  puVar20 = param_4;\n  SHA512_Init((SHA512_CTX *)local_214);\n  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);\n  iVar4 = bignum_bitcount(param_3);\n  iVar24 = iVar4 + 8;\n  if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }\n  iVar24 = iVar24 >> 3;\n  local_6c = iVar24;\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);\n  if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }\n  puVar25 = PTR_One_0006a2cc;\n  puVar26 = PTR_Zero_0006a2b8;\n  smemclr((SHA512_CTX *)&local_6c,4);\n  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);\n  SHA512_Init((SHA512_CTX *)local_214);\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);\n  puVar23 = PTR_DAT_0006a068 + 0x3134;\n  pSVar5 = (SHA512_CTX *)local_214;\n  puVar12 = local_140;\n  while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }\n  smemclr((SHA512_CTX *)local_214,0xd4);\n  uVar15 = 0x40;\n  smemclr((SHA512_CTX *)&local_6c,0x40);\n  if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }\n  uVar18 = 0x2f68c;\n  puVar21 = local_2c;\n  puVar29 = PTR___stack_chk_fail_0006a574;\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  local_280 = puVar29 + 0x429a4;\n  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);\n  puVar8 = auStack_278;\n  local_264 = (undefined4 *)*puVar27;\n  local_260 = (SHA512_CTX *)local_214;\n  local_25c = (SHA512_CTX *)&local_6c;\n  local_258 = puVar23;\n  local_254 = (SHA512_CTX *)(local_214 + 0xd0);\n  local_250 = puVar25;\n  local_24c = param_2;\n  local_248 = puVar26;\n  local_244 = local_140;\n  local_240 = puVar7;\n  local_23c = uVar18;\n  SHA_Simple(uVar15,uVar10,puVar8);\n  local_288 = 0x14;\n  puVar7 = puVar8;\n  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);\n  iVar24 = modinv(iVar4,puVar21[1]);\n  puVar29 = local_280;\n  if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }\n  pcVar30 = *(code **)(puVar29 + -0x7abc);\n  uVar15 = 0x2f96c;\n  (*pcVar30)();\n  piVar9 = *(int **)(pcVar30 + 0x3ac24);\n  iStack_2c4 = *piVar9;\n  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);\n  iVar22 = 1;\n  puStack_2c0 = puVar21;\n  iStack_2bc = iVar4;\n  puStack_2b8 = puVar23;\n  puStack_2b4 = puVar8;\n  puStack_2b0 = puVar25;\n  puStack_2ac = param_2;\n  puStack_2a8 = puVar26;\n  puStack_2a4 = puVar27;\n  puStack_2a0 = puVar20;\n  uStack_29c = uVar15;\n  (*pcVar19)(puVar7,4,1,0x2800);\n  (*pcVar19)(puVar7,3,1,0xffffd10e);\n  (*pcVar19)(puVar7,4,2,iVar24 << 6);\n  if (iVar24 == 0) {\n    trap(7);\n  }\n  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);\n  (*pcVar19)(puVar7,4,3,0x2000);\n  (*pcVar19)(puVar7,3,3,0xffff8000);\n  (*pcVar19)(puVar7,4,4,0x2000);\n  (*pcVar19)(puVar7,3,4,0xffff4000);\n  (*pcVar19)(puVar7,5,0,0);\n  invent_firstbits(&uStack_2cc,&uStack_2c8);\n  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);\n  puVar17[1] = uVar15;\n  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);\n  *puVar17 = uVar15;\n  uVar18 = bigdiv(uVar15,puVar17[1]);\n  uVar15 = bignum_from_long(1);\n  while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }\n  puVar17[2] = uVar10;\n  freebn(uVar15);\n  uVar15 = copybn(puVar17[1]);\n  decbn(uVar15);\n  iVar4 = 0;\n  while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }\n  puVar17[4] = uVar18;\n  freebn(uVar15);\n  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);\n  puVar17[3] = uVar15;\n  if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }\n  return (undefined1 *)0x1;\n}" type_identifier (pointer_declarator "*\ndss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" * (function_declarator "dss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  undefined1 *puVar1;\n  byte bVar2;\n  undefined1 uVar3;\n  int iVar4;\n  SHA512_CTX *pSVar5;\n  SHA512_CTX *pSVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  undefined1 uVar11;\n  int *piVar9;\n  undefined4 uVar10;\n  uchar *puVar12;\n  uchar *puVar13;\n  undefined4 *puVar14;\n  undefined4 uVar15;\n  uint uVar16;\n  undefined4 *puVar17;\n  undefined4 uVar18;\n  code *pcVar19;\n  undefined4 *puVar20;\n  undefined4 *puVar21;\n  int iVar22;\n  undefined *puVar23;\n  int iVar24;\n  undefined *puVar25;\n  undefined *puVar26;\n  undefined4 *puVar27;\n  uint uVar28;\n  undefined *puVar29;\n  code *pcVar30;\n  int iVar31;\n  undefined4 uStack_2cc;\n  undefined4 uStack_2c8;\n  int iStack_2c4;\n  undefined4 *puStack_2c0;\n  int iStack_2bc;\n  undefined *puStack_2b8;\n  undefined1 *puStack_2b4;\n  undefined1 *puStack_2b0;\n  undefined4 *puStack_2ac;\n  undefined1 *puStack_2a8;\n  undefined4 *puStack_2a4;\n  undefined4 *puStack_2a0;\n  undefined4 uStack_29c;\n  undefined4 local_288;\n  undefined *local_280;\n  undefined1 auStack_278 [20];\n  undefined4 *local_264;\n  SHA512_CTX *local_260;\n  SHA512_CTX *local_25c;\n  undefined *local_258;\n  SHA512_CTX *local_254;\n  undefined *local_250;\n  undefined4 *local_24c;\n  undefined *local_248;\n  uchar *local_244;\n  undefined1 *local_240;\n  undefined4 local_23c;\n  undefined1 local_214 [212];\n  uchar local_140 [4];\n  undefined4 local_13c [52];\n  int local_6c;\n  undefined4 *local_2c;\n  \n  puVar29 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;\n  puVar20 = param_4;\n  SHA512_Init((SHA512_CTX *)local_214);\n  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);\n  iVar4 = bignum_bitcount(param_3);\n  iVar24 = iVar4 + 8;\n  if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }\n  iVar24 = iVar24 >> 3;\n  local_6c = iVar24;\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);\n  if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }\n  puVar25 = PTR_One_0006a2cc;\n  puVar26 = PTR_Zero_0006a2b8;\n  smemclr((SHA512_CTX *)&local_6c,4);\n  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);\n  SHA512_Init((SHA512_CTX *)local_214);\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);\n  puVar23 = PTR_DAT_0006a068 + 0x3134;\n  pSVar5 = (SHA512_CTX *)local_214;\n  puVar12 = local_140;\n  while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }\n  smemclr((SHA512_CTX *)local_214,0xd4);\n  uVar15 = 0x40;\n  smemclr((SHA512_CTX *)&local_6c,0x40);\n  if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }\n  uVar18 = 0x2f68c;\n  puVar21 = local_2c;\n  puVar29 = PTR___stack_chk_fail_0006a574;\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  local_280 = puVar29 + 0x429a4;\n  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);\n  puVar8 = auStack_278;\n  local_264 = (undefined4 *)*puVar27;\n  local_260 = (SHA512_CTX *)local_214;\n  local_25c = (SHA512_CTX *)&local_6c;\n  local_258 = puVar23;\n  local_254 = (SHA512_CTX *)(local_214 + 0xd0);\n  local_250 = puVar25;\n  local_24c = param_2;\n  local_248 = puVar26;\n  local_244 = local_140;\n  local_240 = puVar7;\n  local_23c = uVar18;\n  SHA_Simple(uVar15,uVar10,puVar8);\n  local_288 = 0x14;\n  puVar7 = puVar8;\n  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);\n  iVar24 = modinv(iVar4,puVar21[1]);\n  puVar29 = local_280;\n  if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }\n  pcVar30 = *(code **)(puVar29 + -0x7abc);\n  uVar15 = 0x2f96c;\n  (*pcVar30)();\n  piVar9 = *(int **)(pcVar30 + 0x3ac24);\n  iStack_2c4 = *piVar9;\n  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);\n  iVar22 = 1;\n  puStack_2c0 = puVar21;\n  iStack_2bc = iVar4;\n  puStack_2b8 = puVar23;\n  puStack_2b4 = puVar8;\n  puStack_2b0 = puVar25;\n  puStack_2ac = param_2;\n  puStack_2a8 = puVar26;\n  puStack_2a4 = puVar27;\n  puStack_2a0 = puVar20;\n  uStack_29c = uVar15;\n  (*pcVar19)(puVar7,4,1,0x2800);\n  (*pcVar19)(puVar7,3,1,0xffffd10e);\n  (*pcVar19)(puVar7,4,2,iVar24 << 6);\n  if (iVar24 == 0) {\n    trap(7);\n  }\n  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);\n  (*pcVar19)(puVar7,4,3,0x2000);\n  (*pcVar19)(puVar7,3,3,0xffff8000);\n  (*pcVar19)(puVar7,4,4,0x2000);\n  (*pcVar19)(puVar7,3,4,0xffff4000);\n  (*pcVar19)(puVar7,5,0,0);\n  invent_firstbits(&uStack_2cc,&uStack_2c8);\n  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);\n  puVar17[1] = uVar15;\n  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);\n  *puVar17 = uVar15;\n  uVar18 = bigdiv(uVar15,puVar17[1]);\n  uVar15 = bignum_from_long(1);\n  while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }\n  puVar17[2] = uVar10;\n  freebn(uVar15);\n  uVar15 = copybn(puVar17[1]);\n  decbn(uVar15);\n  iVar4 = 0;\n  while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }\n  puVar17[4] = uVar18;\n  freebn(uVar15);\n  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);\n  puVar17[3] = uVar15;\n  if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }\n  return (undefined1 *)0x1;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "SHA512_CTX *pSVar5;" type_identifier (pointer_declarator "*pSVar5" * identifier) ;) (declaration "SHA512_CTX *pSVar6;" type_identifier (pointer_declarator "*pSVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 uVar11;" type_identifier identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "uchar *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "uchar *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "undefined4 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 uVar15;" type_identifier identifier ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "undefined4 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "undefined4 uVar18;" type_identifier identifier ;) (declaration "code *pcVar19;" type_identifier (pointer_declarator "*pcVar19" * identifier) ;) (declaration "undefined4 *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "undefined4 *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "int iVar22;" primitive_type identifier ;) (declaration "undefined *puVar23;" type_identifier (pointer_declarator "*puVar23" * identifier) ;) (declaration "int iVar24;" primitive_type identifier ;) (declaration "undefined *puVar25;" type_identifier (pointer_declarator "*puVar25" * identifier) ;) (declaration "undefined *puVar26;" type_identifier (pointer_declarator "*puVar26" * identifier) ;) (declaration "undefined4 *puVar27;" type_identifier (pointer_declarator "*puVar27" * identifier) ;) (declaration "uint uVar28;" type_identifier identifier ;) (declaration "undefined *puVar29;" type_identifier (pointer_declarator "*puVar29" * identifier) ;) (declaration "code *pcVar30;" type_identifier (pointer_declarator "*pcVar30" * identifier) ;) (declaration "int iVar31;" primitive_type identifier ;) (declaration "undefined4 uStack_2cc;" type_identifier identifier ;) (declaration "undefined4 uStack_2c8;" type_identifier identifier ;) (declaration "int iStack_2c4;" primitive_type identifier ;) (declaration "undefined4 *puStack_2c0;" type_identifier (pointer_declarator "*puStack_2c0" * identifier) ;) (declaration "int iStack_2bc;" primitive_type identifier ;) (declaration "undefined *puStack_2b8;" type_identifier (pointer_declarator "*puStack_2b8" * identifier) ;) (declaration "undefined1 *puStack_2b4;" type_identifier (pointer_declarator "*puStack_2b4" * identifier) ;) (declaration "undefined1 *puStack_2b0;" type_identifier (pointer_declarator "*puStack_2b0" * identifier) ;) (declaration "undefined4 *puStack_2ac;" type_identifier (pointer_declarator "*puStack_2ac" * identifier) ;) (declaration "undefined1 *puStack_2a8;" type_identifier (pointer_declarator "*puStack_2a8" * identifier) ;) (declaration "undefined4 *puStack_2a4;" type_identifier (pointer_declarator "*puStack_2a4" * identifier) ;) (declaration "undefined4 *puStack_2a0;" type_identifier (pointer_declarator "*puStack_2a0" * identifier) ;) (declaration "undefined4 uStack_29c;" type_identifier identifier ;) (declaration "undefined4 local_288;" type_identifier identifier ;) (declaration "undefined *local_280;" type_identifier (pointer_declarator "*local_280" * identifier) ;) (declaration "undefined1 auStack_278 [20];" type_identifier (array_declarator "auStack_278 [20]" identifier [ number_literal ]) ;) (declaration "undefined4 *local_264;" type_identifier (pointer_declarator "*local_264" * identifier) ;) (declaration "SHA512_CTX *local_260;" type_identifier (pointer_declarator "*local_260" * identifier) ;) (declaration "SHA512_CTX *local_25c;" type_identifier (pointer_declarator "*local_25c" * identifier) ;) (declaration "undefined *local_258;" type_identifier (pointer_declarator "*local_258" * identifier) ;) (declaration "SHA512_CTX *local_254;" type_identifier (pointer_declarator "*local_254" * identifier) ;) (declaration "undefined *local_250;" type_identifier (pointer_declarator "*local_250" * identifier) ;) (declaration "undefined4 *local_24c;" type_identifier (pointer_declarator "*local_24c" * identifier) ;) (declaration "undefined *local_248;" type_identifier (pointer_declarator "*local_248" * identifier) ;) (declaration "uchar *local_244;" type_identifier (pointer_declarator "*local_244" * identifier) ;) (declaration "undefined1 *local_240;" type_identifier (pointer_declarator "*local_240" * identifier) ;) (declaration "undefined4 local_23c;" type_identifier identifier ;) (declaration "undefined1 local_214 [212];" type_identifier (array_declarator "local_214 [212]" identifier [ number_literal ]) ;) (declaration "uchar local_140 [4];" type_identifier (array_declarator "local_140 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_13c [52];" type_identifier (array_declarator "local_13c [52]" identifier [ number_literal ]) ;) (declaration "int local_6c;" primitive_type identifier ;) (declaration "undefined4 *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (expression_statement "puVar29 = PTR___stack_chk_guard_0006a594;" (assignment_expression "puVar29 = PTR___stack_chk_guard_0006a594" identifier = identifier) ;) (expression_statement "local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;" (assignment_expression "local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_0006a594" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_0006a594" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar20 = param_4;" (assignment_expression "puVar20 = param_4" identifier = identifier) ;) (expression_statement "SHA512_Init((SHA512_CTX *)local_214);" (call_expression "SHA512_Init((SHA512_CTX *)local_214)" identifier (argument_list "((SHA512_CTX *)local_214)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_0006a51c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0006a51c)" ( (pointer_expression "*(code *)PTR_strlen_0006a51c" * (cast_expression "(code *)PTR_strlen_0006a51c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1)" identifier (argument_list "((SHA512_CTX *)local_214,param_1,iVar4 + 1)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (binary_expression "iVar4 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar4 = bignum_bitcount(param_3);" (assignment_expression "iVar4 = bignum_bitcount(param_3)" identifier = (call_expression "bignum_bitcount(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar24 = iVar4 + 8;" (assignment_expression "iVar24 = iVar4 + 8" identifier = (binary_expression "iVar4 + 8" identifier + number_literal)) ;) (if_statement "if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }" if (parenthesized_expression "(iVar24 < 0)" ( (binary_expression "iVar24 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar24 = iVar4 + 0xf;\n  }" { (expression_statement "iVar24 = iVar4 + 0xf;" (assignment_expression "iVar24 = iVar4 + 0xf" identifier = (binary_expression "iVar4 + 0xf" identifier + number_literal)) ;) })) (expression_statement "iVar24 = iVar24 >> 3;" (assignment_expression "iVar24 = iVar24 >> 3" identifier = (binary_expression "iVar24 >> 3" identifier >> number_literal)) ;) (expression_statement "local_6c = iVar24;" (assignment_expression "local_6c = iVar24" identifier = identifier) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4)" identifier (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) (if_statement "if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }" { (do_statement "do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);" do (compound_statement "{\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    }" { (expression_statement "iVar24 = iVar24 + -1;" (assignment_expression "iVar24 = iVar24 + -1" identifier = (binary_expression "iVar24 + -1" identifier + number_literal)) ;) (expression_statement "uVar11 = bignum_byte(param_3,iVar24);" (assignment_expression "uVar11 = bignum_byte(param_3,iVar24)" identifier = (call_expression "bignum_byte(param_3,iVar24)" identifier (argument_list "(param_3,iVar24)" ( identifier , identifier )))) ;) (expression_statement "local_6c = CONCAT13(uVar11,local_6c._1_3_);" (assignment_expression "local_6c = CONCAT13(uVar11,local_6c._1_3_)" identifier = (call_expression "CONCAT13(uVar11,local_6c._1_3_)" identifier (argument_list "(uVar11,local_6c._1_3_)" ( identifier , (field_expression "local_6c._1_3_" identifier . field_identifier) )))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1)" identifier (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) }) while (parenthesized_expression "(0 < iVar24)" ( (binary_expression "0 < iVar24" number_literal < identifier) )) ;) })) (expression_statement "puVar25 = PTR_One_0006a2cc;" (assignment_expression "puVar25 = PTR_One_0006a2cc" identifier = identifier) ;) (expression_statement "puVar26 = PTR_Zero_0006a2b8;" (assignment_expression "puVar26 = PTR_Zero_0006a2b8" identifier = identifier) ;) (expression_statement "smemclr((SHA512_CTX *)&local_6c,4);" (call_expression "smemclr((SHA512_CTX *)&local_6c,4)" identifier (argument_list "((SHA512_CTX *)&local_6c,4)" ( (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) (expression_statement "SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);" (call_expression "SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c)" identifier (argument_list "((uchar *)local_214,(SHA512_CTX *)&local_6c)" ( (cast_expression "(uchar *)local_214" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) ))) ;) (expression_statement "SHA512_Init((SHA512_CTX *)local_214);" (call_expression "SHA512_Init((SHA512_CTX *)local_214)" identifier (argument_list "((SHA512_CTX *)local_214)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40)" identifier (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5)" identifier (argument_list "((SHA512_CTX *)local_214,param_4,param_5)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (expression_statement "puVar23 = PTR_DAT_0006a068 + 0x3134;" (assignment_expression "puVar23 = PTR_DAT_0006a068 + 0x3134" identifier = (binary_expression "PTR_DAT_0006a068 + 0x3134" identifier + number_literal)) ;) (expression_statement "pSVar5 = (SHA512_CTX *)local_214;" (assignment_expression "pSVar5 = (SHA512_CTX *)local_214" identifier = (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar12 = local_140;" (assignment_expression "puVar12 = local_140" identifier = identifier) ;) (while_statement "while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }" { (do_statement "do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));" do (compound_statement "{\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    }" { (expression_statement "pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);" (assignment_expression "pSVar6 = (SHA512_CTX *)(pSVar5->h + 2)" identifier = (cast_expression "(SHA512_CTX *)(pSVar5->h + 2)" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pSVar5->h + 2)" ( (binary_expression "pSVar5->h + 2" (field_expression "pSVar5->h" identifier -> field_identifier) + number_literal) )))) ;) (expression_statement "puVar13 = puVar12 + 0x10;" (assignment_expression "puVar13 = puVar12 + 0x10" identifier = (binary_expression "puVar12 + 0x10" identifier + number_literal)) ;) (expression_statement "uVar10 = (undefined4)pSVar5->h[0];" (assignment_expression "uVar10 = (undefined4)pSVar5->h[0]" identifier = (cast_expression "(undefined4)pSVar5->h[0]" ( (type_descriptor "undefined4" type_identifier) ) (subscript_expression "pSVar5->h[0]" (field_expression "pSVar5->h" identifier -> field_identifier) [ number_literal ]))) ;) (expression_statement "uVar18 = *(undefined4 *)(pSVar5->h + 1);" (assignment_expression "uVar18 = *(undefined4 *)(pSVar5->h + 1)" identifier = (pointer_expression "*(undefined4 *)(pSVar5->h + 1)" * (cast_expression "(undefined4 *)(pSVar5->h + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pSVar5->h + 1)" ( (binary_expression "pSVar5->h + 1" (field_expression "pSVar5->h" identifier -> field_identifier) + number_literal) ))))) ;) (expression_statement "uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);" (assignment_expression "uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc)" identifier = (pointer_expression "*(undefined4 *)((int)pSVar5->h + 0xc)" * (cast_expression "(undefined4 *)((int)pSVar5->h + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pSVar5->h + 0xc)" ( (binary_expression "(int)pSVar5->h + 0xc" (cast_expression "(int)pSVar5->h" ( (type_descriptor "int" primitive_type) ) (field_expression "pSVar5->h" identifier -> field_identifier)) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;" (assignment_expression "*(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h" (pointer_expression "*(undefined4 *)puVar12" * (cast_expression "(undefined4 *)puVar12" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)pSVar5->h" * (cast_expression "(undefined4 *)pSVar5->h" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pSVar5->h" identifier -> field_identifier)))) ;) (expression_statement "*(undefined4 *)(puVar12 + 4) = uVar10;" (assignment_expression "*(undefined4 *)(puVar12 + 4) = uVar10" (pointer_expression "*(undefined4 *)(puVar12 + 4)" * (cast_expression "(undefined4 *)(puVar12 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 4)" ( (binary_expression "puVar12 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar12 + 8) = uVar18;" (assignment_expression "*(undefined4 *)(puVar12 + 8) = uVar18" (pointer_expression "*(undefined4 *)(puVar12 + 8)" * (cast_expression "(undefined4 *)(puVar12 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 8)" ( (binary_expression "puVar12 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar12 + 0xc) = uVar15;" (assignment_expression "*(undefined4 *)(puVar12 + 0xc) = uVar15" (pointer_expression "*(undefined4 *)(puVar12 + 0xc)" * (cast_expression "(undefined4 *)(puVar12 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0xc)" ( (binary_expression "puVar12 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "pSVar5 = pSVar6;" (assignment_expression "pSVar5 = pSVar6" identifier = identifier) ;) (expression_statement "puVar12 = puVar13;" (assignment_expression "puVar12 = puVar13" identifier = identifier) ;) }) while (parenthesized_expression "(pSVar6 != (SHA512_CTX *)(local_214 + 0xd0))" ( (binary_expression "pSVar6 != (SHA512_CTX *)(local_214 + 0xd0)" identifier != (cast_expression "(SHA512_CTX *)(local_214 + 0xd0)" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_214 + 0xd0)" ( (binary_expression "local_214 + 0xd0" identifier + number_literal) )))) )) ;) (expression_statement "*(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;" (assignment_expression "*(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h" (pointer_expression "*(undefined4 *)puVar13" * (cast_expression "(undefined4 *)puVar13" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)pSVar6->h" * (cast_expression "(undefined4 *)pSVar6->h" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pSVar6->h" identifier -> field_identifier)))) ;) (expression_statement "SHA512_Final(local_140,(SHA512_CTX *)&local_6c);" (call_expression "SHA512_Final(local_140,(SHA512_CTX *)&local_6c)" identifier (argument_list "(local_140,(SHA512_CTX *)&local_6c)" ( identifier , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) ))) ;) (expression_statement "smemclr(local_140,0xd4);" (call_expression "smemclr(local_140,0xd4)" identifier (argument_list "(local_140,0xd4)" ( identifier , number_literal ))) ;) (expression_statement "uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);" (assignment_expression "uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40)" identifier = (call_expression "bignum_from_bytes((SHA512_CTX *)&local_6c,0x40)" identifier (argument_list "((SHA512_CTX *)&local_6c,0x40)" ( (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal )))) ;) (expression_statement "puVar7 = (undefined1 *)bigmod(uVar15,param_2);" (assignment_expression "puVar7 = (undefined1 *)bigmod(uVar15,param_2)" identifier = (cast_expression "(undefined1 *)bigmod(uVar15,param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bigmod(uVar15,param_2)" identifier (argument_list "(uVar15,param_2)" ( identifier , identifier ))))) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);" (assignment_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25)" identifier = (call_expression "bignum_cmp(puVar7,*(undefined4 *)puVar25)" identifier (argument_list "(puVar7,*(undefined4 *)puVar25)" ( identifier , (pointer_expression "*(undefined4 *)puVar25" * (cast_expression "(undefined4 *)puVar25" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;" if (parenthesized_expression "((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0))" ( (binary_expression "(iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)" ( (comma_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0" (assignment_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26)" identifier = (call_expression "bignum_cmp(puVar7,*(undefined4 *)puVar26)" identifier (argument_list "(puVar7,*(undefined4 *)puVar26)" ( identifier , (pointer_expression "*(undefined4 *)puVar26" * (cast_expression "(undefined4 *)puVar26" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "freebn(puVar7);" (call_expression "freebn(puVar7)" identifier (argument_list "(puVar7)" ( identifier ))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1)" identifier (argument_list "((SHA512_CTX *)local_214,puVar23,1)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "pSVar5 = (SHA512_CTX *)local_214;" (assignment_expression "pSVar5 = (SHA512_CTX *)local_214" identifier = (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar12 = local_140;" (assignment_expression "puVar12 = local_140" identifier = identifier) ;) })) (expression_statement "smemclr((SHA512_CTX *)local_214,0xd4);" (call_expression "smemclr((SHA512_CTX *)local_214,0xd4)" identifier (argument_list "((SHA512_CTX *)local_214,0xd4)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))) ;) (expression_statement "uVar15 = 0x40;" (assignment_expression "uVar15 = 0x40" identifier = number_literal) ;) (expression_statement "smemclr((SHA512_CTX *)&local_6c,0x40);" (call_expression "smemclr((SHA512_CTX *)&local_6c,0x40)" identifier (argument_list "((SHA512_CTX *)&local_6c,0x40)" ( (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) (if_statement "if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }" if (parenthesized_expression "(local_2c == *(undefined4 **)puVar29)" ( (binary_expression "local_2c == *(undefined4 **)puVar29" identifier == (pointer_expression "*(undefined4 **)puVar29" * (cast_expression "(undefined4 **)puVar29" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return puVar7;\n  }" { (return_statement "return puVar7;" return identifier ;) })) (expression_statement "uVar18 = 0x2f68c;" (assignment_expression "uVar18 = 0x2f68c" identifier = number_literal) ;) (expression_statement "puVar21 = local_2c;" (assignment_expression "puVar21 = local_2c" identifier = identifier) ;) (expression_statement "puVar29 = PTR___stack_chk_fail_0006a574;" (assignment_expression "puVar29 = PTR___stack_chk_fail_0006a574" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0006a574)();" (call_expression "(*(code *)PTR___stack_chk_fail_0006a574)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0006a574)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0006a574" * (cast_expression "(code *)PTR___stack_chk_fail_0006a574" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "local_280 = puVar29 + 0x429a4;" (assignment_expression "local_280 = puVar29 + 0x429a4" identifier = (binary_expression "puVar29 + 0x429a4" identifier + number_literal)) ;) (expression_statement "puVar27 = *(undefined4 **)(puVar29 + 0x3af08);" (assignment_expression "puVar27 = *(undefined4 **)(puVar29 + 0x3af08)" identifier = (pointer_expression "*(undefined4 **)(puVar29 + 0x3af08)" * (cast_expression "(undefined4 **)(puVar29 + 0x3af08)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar29 + 0x3af08)" ( (binary_expression "puVar29 + 0x3af08" identifier + number_literal) ))))) ;) (expression_statement "puVar8 = auStack_278;" (assignment_expression "puVar8 = auStack_278" identifier = identifier) ;) (expression_statement "local_264 = (undefined4 *)*puVar27;" (assignment_expression "local_264 = (undefined4 *)*puVar27" identifier = (cast_expression "(undefined4 *)*puVar27" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar27" * identifier))) ;) (expression_statement "local_260 = (SHA512_CTX *)local_214;" (assignment_expression "local_260 = (SHA512_CTX *)local_214" identifier = (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_25c = (SHA512_CTX *)&local_6c;" (assignment_expression "local_25c = (SHA512_CTX *)&local_6c" identifier = (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier))) ;) (expression_statement "local_258 = puVar23;" (assignment_expression "local_258 = puVar23" identifier = identifier) ;) (expression_statement "local_254 = (SHA512_CTX *)(local_214 + 0xd0);" (assignment_expression "local_254 = (SHA512_CTX *)(local_214 + 0xd0)" identifier = (cast_expression "(SHA512_CTX *)(local_214 + 0xd0)" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_214 + 0xd0)" ( (binary_expression "local_214 + 0xd0" identifier + number_literal) )))) ;) (expression_statement "local_250 = puVar25;" (assignment_expression "local_250 = puVar25" identifier = identifier) ;) (expression_statement "local_24c = param_2;" (assignment_expression "local_24c = param_2" identifier = identifier) ;) (expression_statement "local_248 = puVar26;" (assignment_expression "local_248 = puVar26" identifier = identifier) ;) (expression_statement "local_244 = local_140;" (assignment_expression "local_244 = local_140" identifier = identifier) ;) (expression_statement "local_240 = puVar7;" (assignment_expression "local_240 = puVar7" identifier = identifier) ;) (expression_statement "local_23c = uVar18;" (assignment_expression "local_23c = uVar18" identifier = identifier) ;) (expression_statement "SHA_Simple(uVar15,uVar10,puVar8);" (call_expression "SHA_Simple(uVar15,uVar10,puVar8)" identifier (argument_list "(uVar15,uVar10,puVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_288 = 0x14;" (assignment_expression "local_288 = 0x14" identifier = number_literal) ;) (expression_statement "puVar7 = puVar8;" (assignment_expression "puVar7 = puVar8" identifier = identifier) ;) (expression_statement "iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);" (assignment_expression "iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" identifier = (call_expression "dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" identifier (argument_list "(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" ( (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3138" (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) )))) + number_literal) , (subscript_expression "puVar21[1]" identifier [ number_literal ]) , (subscript_expression "puVar21[4]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar24 = modinv(iVar4,puVar21[1]);" (assignment_expression "iVar24 = modinv(iVar4,puVar21[1])" identifier = (call_expression "modinv(iVar4,puVar21[1])" identifier (argument_list "(iVar4,puVar21[1])" ( identifier , (subscript_expression "puVar21[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar29 = local_280;" (assignment_expression "puVar29 = local_280" identifier = identifier) ;) (if_statement "if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" if (parenthesized_expression "(iVar24 == 0)" ( (binary_expression "iVar24 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }" { (expression_statement "pcVar19 = (code *)0x26f;" (assignment_expression "pcVar19 = (code *)0x26f" identifier = (cast_expression "(code *)0x26f" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);" (assignment_expression "puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198)" identifier = (cast_expression "(undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(local_280 + -0x7fc8) + 0x3198)" ( (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3198" (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;" (assignment_expression "iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110" identifier = (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3110" (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);" (assignment_expression "puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158)" identifier = (cast_expression "(undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(local_280 + -0x7fc8) + 0x3158)" ( (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3158" (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(local_280 + -0x7bb8))();" (call_expression "(**(code **)(local_280 + -0x7bb8))()" (parenthesized_expression "(**(code **)(local_280 + -0x7bb8))" ( (pointer_expression "**(code **)(local_280 + -0x7bb8)" * (pointer_expression "*(code **)(local_280 + -0x7bb8)" * (cast_expression "(code **)(local_280 + -0x7bb8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_280 + -0x7bb8)" ( (binary_expression "local_280 + -0x7bb8" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" else (compound_statement "{\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" { (expression_statement "uVar15 = modpow(puVar21[2],iVar4,*puVar21);" (assignment_expression "uVar15 = modpow(puVar21[2],iVar4,*puVar21)" identifier = (call_expression "modpow(puVar21[2],iVar4,*puVar21)" identifier (argument_list "(puVar21[2],iVar4,*puVar21)" ( (subscript_expression "puVar21[2]" identifier [ number_literal ]) , identifier , (pointer_expression "*puVar21" * identifier) )))) ;) (expression_statement "puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);" (assignment_expression "puVar23 = (undefined *)bigmod(uVar15,puVar21[1])" identifier = (cast_expression "(undefined *)bigmod(uVar15,puVar21[1])" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bigmod(uVar15,puVar21[1])" identifier (argument_list "(uVar15,puVar21[1])" ( identifier , (subscript_expression "puVar21[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "uVar15 = bignum_from_bytes(puVar8,0x14);" (assignment_expression "uVar15 = bignum_from_bytes(puVar8,0x14)" identifier = (call_expression "bignum_from_bytes(puVar8,0x14)" identifier (argument_list "(puVar8,0x14)" ( identifier , number_literal )))) ;) (expression_statement "uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);" (assignment_expression "uVar18 = bigmuladd(puVar21[4],puVar23,uVar15)" identifier = (call_expression "bigmuladd(puVar21[4],puVar23,uVar15)" identifier (argument_list "(puVar21[4],puVar23,uVar15)" ( (subscript_expression "puVar21[4]" identifier [ number_literal ]) , identifier , identifier )))) ;) (expression_statement "puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);" (assignment_expression "puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1])" identifier = (cast_expression "(undefined1 *)modmul(iVar24,uVar18,puVar21[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "modmul(iVar24,uVar18,puVar21[1])" identifier (argument_list "(iVar24,uVar18,puVar21[1])" ( identifier , identifier , (subscript_expression "puVar21[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "freebn(uVar18);" (call_expression "freebn(uVar18)" identifier (argument_list "(uVar18)" ( identifier ))) ;) (expression_statement "freebn(iVar24);" (call_expression "freebn(iVar24)" identifier (argument_list "(iVar24)" ( identifier ))) ;) (expression_statement "freebn(iVar4);" (call_expression "freebn(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "puVar26 = (undefined *)safemalloc(0x37,1);" (assignment_expression "puVar26 = (undefined *)safemalloc(0x37,1)" identifier = (cast_expression "(undefined *)safemalloc(0x37,1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(0x37,1)" identifier (argument_list "(0x37,1)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar26[3] = 7;" (assignment_expression "puVar26[3] = 7" (subscript_expression "puVar26[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar26 = 0;" (assignment_expression "*puVar26 = 0" (pointer_expression "*puVar26" * identifier) = number_literal) ;) (expression_statement "param_2 = (undefined4 *)(puVar26 + 0x23);" (assignment_expression "param_2 = (undefined4 *)(puVar26 + 0x23)" identifier = (cast_expression "(undefined4 *)(puVar26 + 0x23)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar26 + 0x23)" ( (binary_expression "puVar26 + 0x23" identifier + number_literal) )))) ;) (expression_statement "iVar4 = *(int *)(local_280 + -0x7fc8);" (assignment_expression "iVar4 = *(int *)(local_280 + -0x7fc8)" identifier = (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) ))))) ;) (expression_statement "puVar25 = puVar26 + 0x22;" (assignment_expression "puVar25 = puVar26 + 0x22" identifier = (binary_expression "puVar26 + 0x22" identifier + number_literal)) ;) (expression_statement "puVar26[1] = 0;" (assignment_expression "puVar26[1] = 0" (subscript_expression "puVar26[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar26[2] = 0;" (assignment_expression "puVar26[2] = 0" (subscript_expression "puVar26[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar16 = *(uint *)(iVar4 + -0x1ac8);" (assignment_expression "uVar16 = *(uint *)(iVar4 + -0x1ac8)" identifier = (pointer_expression "*(uint *)(iVar4 + -0x1ac8)" * (cast_expression "(uint *)(iVar4 + -0x1ac8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0x1ac8)" ( (binary_expression "iVar4 + -0x1ac8" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = *(byte *)(iVar4 + -0x1ac4);" (assignment_expression "bVar2 = *(byte *)(iVar4 + -0x1ac4)" identifier = (pointer_expression "*(byte *)(iVar4 + -0x1ac4)" * (cast_expression "(byte *)(iVar4 + -0x1ac4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0x1ac4)" ( (binary_expression "iVar4 + -0x1ac4" identifier + number_literal) ))))) ;) (expression_statement "pcVar19 = (code *)(uint)bVar2;" (assignment_expression "pcVar19 = (code *)(uint)bVar2" identifier = (cast_expression "(code *)(uint)bVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);" (assignment_expression "uVar11 = *(undefined1 *)(iVar4 + -0x1ac3)" identifier = (pointer_expression "*(undefined1 *)(iVar4 + -0x1ac3)" * (cast_expression "(undefined1 *)(iVar4 + -0x1ac3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0x1ac3)" ( (binary_expression "iVar4 + -0x1ac3" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);" (assignment_expression "uVar3 = *(undefined1 *)(iVar4 + -0x1ac2)" identifier = (pointer_expression "*(undefined1 *)(iVar4 + -0x1ac2)" * (cast_expression "(undefined1 *)(iVar4 + -0x1ac2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0x1ac2)" ( (binary_expression "iVar4 + -0x1ac2" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = puVar26 + 4;" (assignment_expression "puVar1 = puVar26 + 4" identifier = (binary_expression "puVar26 + 4" identifier + number_literal)) ;) (expression_statement "uVar28 = (uint)puVar1 & 3;" (assignment_expression "uVar28 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" * (cast_expression "(uint *)(puVar1 + -uVar28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar28)" ( (binary_expression "puVar1 + -uVar28" identifier + (unary_expression "-uVar28" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8" (binary_expression "*(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" * (cast_expression "(uint *)(puVar1 + -uVar28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar28)" ( (binary_expression "puVar1 + -uVar28" identifier + (unary_expression "-uVar28" - identifier)) )))) & (binary_expression "-1 << (4 - uVar28) * 8" number_literal << (binary_expression "(4 - uVar28) * 8" (parenthesized_expression "(4 - uVar28)" ( (binary_expression "4 - uVar28" number_literal - identifier) )) * number_literal))) | (binary_expression "uVar16 >> uVar28 * 8" identifier >> (binary_expression "uVar28 * 8" identifier * number_literal)))) ;) (expression_statement "puVar1 = puVar26 + 7;" (assignment_expression "puVar1 = puVar26 + 7" identifier = (binary_expression "puVar26 + 7" identifier + number_literal)) ;) (expression_statement "uVar28 = (uint)puVar1 & 3;" (assignment_expression "uVar28 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" * (cast_expression "(uint *)(puVar1 + -uVar28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar28)" ( (binary_expression "puVar1 + -uVar28" identifier + (unary_expression "-uVar28" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8" (binary_expression "*(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" * (cast_expression "(uint *)(puVar1 + -uVar28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar28)" ( (binary_expression "puVar1 + -uVar28" identifier + (unary_expression "-uVar28" - identifier)) )))) & (binary_expression "0xffffffffU >> (uVar28 + 1) * 8" number_literal >> (binary_expression "(uVar28 + 1) * 8" (parenthesized_expression "(uVar28 + 1)" ( (binary_expression "uVar28 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "uVar16 << (3 - uVar28) * 8" identifier << (binary_expression "(3 - uVar28) * 8" (parenthesized_expression "(3 - uVar28)" ( (binary_expression "3 - uVar28" number_literal - identifier) )) * number_literal)))) ;) (expression_statement "puVar26[8] = bVar2;" (assignment_expression "puVar26[8] = bVar2" (subscript_expression "puVar26[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar26[9] = uVar11;" (assignment_expression "puVar26[9] = uVar11" (subscript_expression "puVar26[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar26[10] = uVar3;" (assignment_expression "puVar26[10] = uVar3" (subscript_expression "puVar26[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar26[0xb] = 0;" (assignment_expression "puVar26[0xb] = 0" (subscript_expression "puVar26[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar26[0xc] = 0;" (assignment_expression "puVar26[0xc] = 0" (subscript_expression "puVar26[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar26[0xd] = 0;" (assignment_expression "puVar26[0xd] = 0" (subscript_expression "puVar26[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar26[0xe] = 0x28;" (assignment_expression "puVar26[0xe] = 0x28" (subscript_expression "puVar26[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar17 = (undefined4 *)(puVar26 + 0xf);" (assignment_expression "puVar17 = (undefined4 *)(puVar26 + 0xf)" identifier = (cast_expression "(undefined4 *)(puVar26 + 0xf)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar26 + 0xf)" ( (binary_expression "puVar26 + 0xf" identifier + number_literal) )))) ;) (do_statement "do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);" do (compound_statement "{\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    }" { (expression_statement "iVar4 = (int)puVar25 - (int)puVar17;" (assignment_expression "iVar4 = (int)puVar25 - (int)puVar17" identifier = (binary_expression "(int)puVar25 - (int)puVar17" (cast_expression "(int)puVar25" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar17" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar11 = bignum_byte(puVar23,iVar4);" (assignment_expression "uVar11 = bignum_byte(puVar23,iVar4)" identifier = (call_expression "bignum_byte(puVar23,iVar4)" identifier (argument_list "(puVar23,iVar4)" ( identifier , identifier )))) ;) (expression_statement "puVar21 = (undefined4 *)((int)puVar17 + 1);" (assignment_expression "puVar21 = (undefined4 *)((int)puVar17 + 1)" identifier = (cast_expression "(undefined4 *)((int)puVar17 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar17 + 1)" ( (binary_expression "(int)puVar17 + 1" (cast_expression "(int)puVar17" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*(undefined1 *)puVar17 = uVar11;" (assignment_expression "*(undefined1 *)puVar17 = uVar11" (pointer_expression "*(undefined1 *)puVar17" * (cast_expression "(undefined1 *)puVar17" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "uVar11 = bignum_byte(puVar8,iVar4);" (assignment_expression "uVar11 = bignum_byte(puVar8,iVar4)" identifier = (call_expression "bignum_byte(puVar8,iVar4)" identifier (argument_list "(puVar8,iVar4)" ( identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(puVar17 + 5) = uVar11;" (assignment_expression "*(undefined1 *)(puVar17 + 5) = uVar11" (pointer_expression "*(undefined1 *)(puVar17 + 5)" * (cast_expression "(undefined1 *)(puVar17 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + 5)" ( (binary_expression "puVar17 + 5" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar17 = puVar21;" (assignment_expression "puVar17 = puVar21" identifier = identifier) ;) }) while (parenthesized_expression "(puVar21 != param_2)" ( (binary_expression "puVar21 != param_2" identifier != identifier) )) ;) (expression_statement "freebn(puVar23);" (call_expression "freebn(puVar23)" identifier (argument_list "(puVar23)" ( identifier ))) ;) (expression_statement "freebn(puVar8);" (call_expression "freebn(puVar8)" identifier (argument_list "(puVar8)" ( identifier ))) ;) (expression_statement "iVar24 = 0x37;" (assignment_expression "iVar24 = 0x37" identifier = number_literal) ;) (expression_statement "puVar14 = (undefined4 *)*puVar27;" (assignment_expression "puVar14 = (undefined4 *)*puVar27" identifier = (cast_expression "(undefined4 *)*puVar27" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar27" * identifier))) ;) (expression_statement "*puVar20 = 0x37;" (assignment_expression "*puVar20 = 0x37" (pointer_expression "*puVar20" * identifier) = number_literal) ;) (expression_statement "puVar17 = local_264;" (assignment_expression "puVar17 = local_264" identifier = identifier) ;) (expression_statement "puVar29 = local_280;" (assignment_expression "puVar29 = local_280" identifier = identifier) ;) (if_statement "if (local_264 == puVar14) {\n      return puVar26;\n    }" if (parenthesized_expression "(local_264 == puVar14)" ( (binary_expression "local_264 == puVar14" identifier == identifier) )) (compound_statement "{\n      return puVar26;\n    }" { (return_statement "return puVar26;" return identifier ;) })) }))) (expression_statement "pcVar30 = *(code **)(puVar29 + -0x7abc);" (assignment_expression "pcVar30 = *(code **)(puVar29 + -0x7abc)" identifier = (pointer_expression "*(code **)(puVar29 + -0x7abc)" * (cast_expression "(code **)(puVar29 + -0x7abc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar29 + -0x7abc)" ( (binary_expression "puVar29 + -0x7abc" identifier + number_literal) ))))) ;) (expression_statement "uVar15 = 0x2f96c;" (assignment_expression "uVar15 = 0x2f96c" identifier = number_literal) ;) (expression_statement "(*pcVar30)();" (call_expression "(*pcVar30)()" (parenthesized_expression "(*pcVar30)" ( (pointer_expression "*pcVar30" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar9 = *(int **)(pcVar30 + 0x3ac24);" (assignment_expression "piVar9 = *(int **)(pcVar30 + 0x3ac24)" identifier = (pointer_expression "*(int **)(pcVar30 + 0x3ac24)" * (cast_expression "(int **)(pcVar30 + 0x3ac24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar30 + 0x3ac24)" ( (binary_expression "pcVar30 + 0x3ac24" identifier + number_literal) ))))) ;) (expression_statement "iStack_2c4 = *piVar9;" (assignment_expression "iStack_2c4 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (expression_statement "puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);" (assignment_expression "puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c)" identifier = (pointer_expression "*(undefined4 **)(pcVar30 + 0x3a95c)" * (cast_expression "(undefined4 **)(pcVar30 + 0x3a95c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar30 + 0x3a95c)" ( (binary_expression "pcVar30 + 0x3a95c" identifier + number_literal) ))))) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (expression_statement "puStack_2c0 = puVar21;" (assignment_expression "puStack_2c0 = puVar21" identifier = identifier) ;) (expression_statement "iStack_2bc = iVar4;" (assignment_expression "iStack_2bc = iVar4" identifier = identifier) ;) (expression_statement "puStack_2b8 = puVar23;" (assignment_expression "puStack_2b8 = puVar23" identifier = identifier) ;) (expression_statement "puStack_2b4 = puVar8;" (assignment_expression "puStack_2b4 = puVar8" identifier = identifier) ;) (expression_statement "puStack_2b0 = puVar25;" (assignment_expression "puStack_2b0 = puVar25" identifier = identifier) ;) (expression_statement "puStack_2ac = param_2;" (assignment_expression "puStack_2ac = param_2" identifier = identifier) ;) (expression_statement "puStack_2a8 = puVar26;" (assignment_expression "puStack_2a8 = puVar26" identifier = identifier) ;) (expression_statement "puStack_2a4 = puVar27;" (assignment_expression "puStack_2a4 = puVar27" identifier = identifier) ;) (expression_statement "puStack_2a0 = puVar20;" (assignment_expression "puStack_2a0 = puVar20" identifier = identifier) ;) (expression_statement "uStack_29c = uVar15;" (assignment_expression "uStack_29c = uVar15" identifier = identifier) ;) (expression_statement "(*pcVar19)(puVar7,4,1,0x2800);" (call_expression "(*pcVar19)(puVar7,4,1,0x2800)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,4,1,0x2800)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,3,1,0xffffd10e);" (call_expression "(*pcVar19)(puVar7,3,1,0xffffd10e)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,3,1,0xffffd10e)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,4,2,iVar24 << 6);" (call_expression "(*pcVar19)(puVar7,4,2,iVar24 << 6)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,4,2,iVar24 << 6)" ( identifier , number_literal , number_literal , (binary_expression "iVar24 << 6" identifier << number_literal) ))) ;) (if_statement "if (iVar24 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(iVar24 == 0)" ( (binary_expression "iVar24 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "(*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);" (call_expression "(*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,3,2,-0x1d57c4 / iVar24)" ( identifier , number_literal , number_literal , (binary_expression "-0x1d57c4 / iVar24" number_literal / identifier) ))) ;) (expression_statement "(*pcVar19)(puVar7,4,3,0x2000);" (call_expression "(*pcVar19)(puVar7,4,3,0x2000)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,4,3,0x2000)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,3,3,0xffff8000);" (call_expression "(*pcVar19)(puVar7,3,3,0xffff8000)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,3,3,0xffff8000)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,4,4,0x2000);" (call_expression "(*pcVar19)(puVar7,4,4,0x2000)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,4,4,0x2000)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,3,4,0xffff4000);" (call_expression "(*pcVar19)(puVar7,3,4,0xffff4000)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,3,4,0xffff4000)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,5,0,0);" (call_expression "(*pcVar19)(puVar7,5,0,0)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,5,0,0)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "invent_firstbits(&uStack_2cc,&uStack_2c8);" (call_expression "invent_firstbits(&uStack_2cc,&uStack_2c8)" identifier (argument_list "(&uStack_2cc,&uStack_2c8)" ( (pointer_expression "&uStack_2cc" & identifier) , (pointer_expression "&uStack_2c8" & identifier) ))) ;) (expression_statement "uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);" (assignment_expression "uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" identifier = (call_expression "primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" identifier (argument_list "(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" ( number_literal , number_literal , number_literal , number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "puVar17[1] = uVar15;" (assignment_expression "puVar17[1] = uVar15" (subscript_expression "puVar17[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);" (assignment_expression "uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" identifier = (call_expression "primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" identifier (argument_list "(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" ( (binary_expression "iVar24 + -0xa0" identifier + number_literal) , number_literal , number_literal , identifier , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "*puVar17 = uVar15;" (assignment_expression "*puVar17 = uVar15" (pointer_expression "*puVar17" * identifier) = identifier) ;) (expression_statement "uVar18 = bigdiv(uVar15,puVar17[1]);" (assignment_expression "uVar18 = bigdiv(uVar15,puVar17[1])" identifier = (call_expression "bigdiv(uVar15,puVar17[1])" identifier (argument_list "(uVar15,puVar17[1])" ( identifier , (subscript_expression "puVar17[1]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar15 = bignum_from_long(1);" (assignment_expression "uVar15 = bignum_from_long(1)" identifier = (call_expression "bignum_from_long(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (while_statement "while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }" { (expression_statement "(*pcVar19)(puVar7,6,3,iVar22);" (call_expression "(*pcVar19)(puVar7,6,3,iVar22)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,6,3,iVar22)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "uVar10 = modpow(uVar15,uVar18,*puVar17);" (assignment_expression "uVar10 = modpow(uVar15,uVar18,*puVar17)" identifier = (call_expression "modpow(uVar15,uVar18,*puVar17)" identifier (argument_list "(uVar15,uVar18,*puVar17)" ( identifier , identifier , (pointer_expression "*puVar17" * identifier) )))) ;) (expression_statement "iVar4 = bignum_cmp(uVar10,*puVar14);" (assignment_expression "iVar4 = bignum_cmp(uVar10,*puVar14)" identifier = (call_expression "bignum_cmp(uVar10,*puVar14)" identifier (argument_list "(uVar10,*puVar14)" ( identifier , (pointer_expression "*puVar14" * identifier) )))) ;) (if_statement "if (0 < iVar4) break;" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar10 = bignum_add_long(uVar15,1);" (assignment_expression "uVar10 = bignum_add_long(uVar15,1)" identifier = (call_expression "bignum_add_long(uVar15,1)" identifier (argument_list "(uVar15,1)" ( identifier , number_literal )))) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "iVar22 = iVar22 + 1;" (assignment_expression "iVar22 = iVar22 + 1" identifier = (binary_expression "iVar22 + 1" identifier + number_literal)) ;) (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (expression_statement "puVar17[2] = uVar10;" (assignment_expression "puVar17[2] = uVar10" (subscript_expression "puVar17[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "uVar15 = copybn(puVar17[1]);" (assignment_expression "uVar15 = copybn(puVar17[1])" identifier = (call_expression "copybn(puVar17[1])" identifier (argument_list "(puVar17[1])" ( (subscript_expression "puVar17[1]" identifier [ number_literal ]) )))) ;) (expression_statement "decbn(uVar15);" (call_expression "decbn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "(*pcVar19)(puVar7,6,4,iVar4);" (call_expression "(*pcVar19)(puVar7,6,4,iVar4)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,6,4,iVar4)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (expression_statement "uVar28 = 0;" (assignment_expression "uVar28 = 0" identifier = number_literal) ;) (expression_statement "uVar18 = bn_power_2(0x9f);" (assignment_expression "uVar18 = bn_power_2(0x9f)" identifier = (call_expression "bn_power_2(0x9f)" identifier (argument_list "(0x9f)" ( number_literal )))) ;) (expression_statement "iVar24 = 0;" (assignment_expression "iVar24 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);" do (compound_statement "{\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    }" { (if_statement "if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }" if (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }" { (expression_statement "iVar22 = 7;" (assignment_expression "iVar22 = 7" identifier = number_literal) ;) (expression_statement "uVar28 = random_byte();" (assignment_expression "uVar28 = random_byte()" identifier = (call_expression "random_byte()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n        iVar22 = iVar22 + -1;\n      }" else (compound_statement "{\n        iVar22 = iVar22 + -1;\n      }" { (expression_statement "iVar22 = iVar22 + -1;" (assignment_expression "iVar22 = iVar22 + -1" identifier = (binary_expression "iVar22 + -1" identifier + number_literal)) ;) }))) (expression_statement "iVar31 = iVar24 + 1;" (assignment_expression "iVar31 = iVar24 + 1" identifier = (binary_expression "iVar24 + 1" identifier + number_literal)) ;) (expression_statement "bignum_set_bit(uVar18,iVar24,uVar28 & 1);" (call_expression "bignum_set_bit(uVar18,iVar24,uVar28 & 1)" identifier (argument_list "(uVar18,iVar24,uVar28 & 1)" ( identifier , identifier , (binary_expression "uVar28 & 1" identifier & number_literal) ))) ;) (expression_statement "uVar28 = (int)uVar28 >> 1;" (assignment_expression "uVar28 = (int)uVar28 >> 1" identifier = (binary_expression "(int)uVar28 >> 1" (cast_expression "(int)uVar28" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar24 = iVar31;" (assignment_expression "iVar24 = iVar31" identifier = identifier) ;) }) while (parenthesized_expression "(iVar31 != 0xa0)" ( (binary_expression "iVar31 != 0xa0" identifier != number_literal) )) ;) (expression_statement "iVar24 = bignum_cmp(uVar18,*puVar14);" (assignment_expression "iVar24 = bignum_cmp(uVar18,*puVar14)" identifier = (call_expression "bignum_cmp(uVar18,*puVar14)" identifier (argument_list "(uVar18,*puVar14)" ( identifier , (pointer_expression "*puVar14" * identifier) )))) ;) (if_statement "if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;" if (parenthesized_expression "((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0))" ( (binary_expression "(0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)" (parenthesized_expression "(0 < iVar24)" ( (binary_expression "0 < iVar24" number_literal < identifier) )) && (parenthesized_expression "(iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)" ( (comma_expression "iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0" (assignment_expression "iVar24 = bignum_cmp(uVar18,uVar15)" identifier = (call_expression "bignum_cmp(uVar18,uVar15)" identifier (argument_list "(uVar18,uVar15)" ( identifier , identifier )))) , (binary_expression "iVar24 < 0" identifier < number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "freebn(uVar18);" (call_expression "freebn(uVar18)" identifier (argument_list "(uVar18)" ( identifier ))) ;) })) (expression_statement "puVar17[4] = uVar18;" (assignment_expression "puVar17[4] = uVar18" (subscript_expression "puVar17[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);" (assignment_expression "uVar15 = modpow(puVar17[2],puVar17[4],*puVar17)" identifier = (call_expression "modpow(puVar17[2],puVar17[4],*puVar17)" identifier (argument_list "(puVar17[2],puVar17[4],*puVar17)" ( (subscript_expression "puVar17[2]" identifier [ number_literal ]) , (subscript_expression "puVar17[4]" identifier [ number_literal ]) , (pointer_expression "*puVar17" * identifier) )))) ;) (expression_statement "puVar17[3] = uVar15;" (assignment_expression "puVar17[3] = uVar15" (subscript_expression "puVar17[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }" if (parenthesized_expression "(iStack_2c4 != *piVar9)" ( (binary_expression "iStack_2c4 != *piVar9" identifier != (pointer_expression "*piVar9" * identifier)) )) (compound_statement "{\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }" { (expression_statement "iVar4 = iStack_2c4;" (assignment_expression "iVar4 = iStack_2c4" identifier = identifier) ;) (expression_statement "puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();" (assignment_expression "puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))()" identifier = (cast_expression "(undefined1 *)(**(code **)(pcVar30 + 0x3ac04))()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar30 + 0x3ac04))()" (parenthesized_expression "(**(code **)(pcVar30 + 0x3ac04))" ( (pointer_expression "**(code **)(pcVar30 + 0x3ac04)" * (pointer_expression "*(code **)(pcVar30 + 0x3ac04)" * (cast_expression "(code **)(pcVar30 + 0x3ac04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar30 + 0x3ac04)" ( (binary_expression "pcVar30 + 0x3ac04" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (if_statement "if (iVar4 == 0) {\n      return puVar7;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return puVar7;\n    }" { (return_statement "return puVar7;" return identifier ;) })) (if_statement "if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }" if (parenthesized_expression "(*(int *)(iVar4 + 8) != 0)" ( (binary_expression "*(int *)(iVar4 + 8) != 0" (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      freebn();\n    }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }" if (parenthesized_expression "(*(int *)(iVar4 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar4 + 0xc) != 0" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      freebn();\n    }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }" if (parenthesized_expression "(*(int *)(iVar4 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar4 + 0x10) != 0" (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      freebn();\n    }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }" if (parenthesized_expression "(*(int *)(iVar4 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar4 + 0x18) != 0" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      freebn();\n    }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar7 = (undefined1 *)safefree(iVar4);" (assignment_expression "puVar7 = (undefined1 *)safefree(iVar4)" identifier = (cast_expression "(undefined1 *)safefree(iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safefree(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))))) ;) (return_statement "return puVar7;" return identifier ;) })) (return_statement "return (undefined1 *)0x1;" return (cast_expression "(undefined1 *)0x1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "Bignum * dss_gen_k(char *id_string,Bignum modulus,Bignum private_key,uchar *digest,int digest_len)\n\n{\n  int iVar1;\n  int iVar2;\n  SHA512_State ss;\n  SHA512_State ss2;\n  uchar digest512 [64];\n  \n  SHA512_Init((SHA512_CTX *)&ss);\n  iVar1 = (*(code *)PTR_strlen_0006a51c)(id_string);\n  SHA512_Bytes(&ss,id_string,iVar1 + 1);\n  iVar1 = bignum_bitcount((Bignum_conflict)private_key);\n  iVar2 = iVar1 + 8;\n  if (iVar2 < 0) {\n    iVar2 = iVar1 + 0xf;\n  }\n  digest512._0_4_ = iVar2 >> 3;\n  SHA512_Bytes(&ss,digest512,4);\n  if (iVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    smemclr(digest512,4);\n  }\n                    /* WARNING: Subroutine does not return */\n  bignum_byte((Bignum_conflict)private_key,(iVar2 >> 3) + -1);\n}\n\n" (function_definition "Bignum * dss_gen_k(char *id_string,Bignum modulus,Bignum private_key,uchar *digest,int digest_len)\n\n{\n  int iVar1;\n  int iVar2;\n  SHA512_State ss;\n  SHA512_State ss2;\n  uchar digest512 [64];\n  \n  SHA512_Init((SHA512_CTX *)&ss);\n  iVar1 = (*(code *)PTR_strlen_0006a51c)(id_string);\n  SHA512_Bytes(&ss,id_string,iVar1 + 1);\n  iVar1 = bignum_bitcount((Bignum_conflict)private_key);\n  iVar2 = iVar1 + 8;\n  if (iVar2 < 0) {\n    iVar2 = iVar1 + 0xf;\n  }\n  digest512._0_4_ = iVar2 >> 3;\n  SHA512_Bytes(&ss,digest512,4);\n  if (iVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    smemclr(digest512,4);\n  }\n                    /* WARNING: Subroutine does not return */\n  bignum_byte((Bignum_conflict)private_key,(iVar2 >> 3) + -1);\n}" type_identifier (pointer_declarator "* dss_gen_k(char *id_string,Bignum modulus,Bignum private_key,uchar *digest,int digest_len)" * (function_declarator "dss_gen_k(char *id_string,Bignum modulus,Bignum private_key,uchar *digest,int digest_len)" identifier (parameter_list "(char *id_string,Bignum modulus,Bignum private_key,uchar *digest,int digest_len)" ( (parameter_declaration "char *id_string" primitive_type (pointer_declarator "*id_string" * identifier)) , (parameter_declaration "Bignum modulus" type_identifier identifier) , (parameter_declaration "Bignum private_key" type_identifier identifier) , (parameter_declaration "uchar *digest" type_identifier (pointer_declarator "*digest" * identifier)) , (parameter_declaration "int digest_len" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  SHA512_State ss;\n  SHA512_State ss2;\n  uchar digest512 [64];\n  \n  SHA512_Init((SHA512_CTX *)&ss);\n  iVar1 = (*(code *)PTR_strlen_0006a51c)(id_string);\n  SHA512_Bytes(&ss,id_string,iVar1 + 1);\n  iVar1 = bignum_bitcount((Bignum_conflict)private_key);\n  iVar2 = iVar1 + 8;\n  if (iVar2 < 0) {\n    iVar2 = iVar1 + 0xf;\n  }\n  digest512._0_4_ = iVar2 >> 3;\n  SHA512_Bytes(&ss,digest512,4);\n  if (iVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    smemclr(digest512,4);\n  }\n                    /* WARNING: Subroutine does not return */\n  bignum_byte((Bignum_conflict)private_key,(iVar2 >> 3) + -1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "SHA512_State ss;" type_identifier identifier ;) (declaration "SHA512_State ss2;" type_identifier identifier ;) (declaration "uchar digest512 [64];" type_identifier (array_declarator "digest512 [64]" identifier [ number_literal ]) ;) (expression_statement "SHA512_Init((SHA512_CTX *)&ss);" (call_expression "SHA512_Init((SHA512_CTX *)&ss)" identifier (argument_list "((SHA512_CTX *)&ss)" ( (cast_expression "(SHA512_CTX *)&ss" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ss" & identifier)) ))) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0006a51c)(id_string);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0006a51c)(id_string)" identifier = (call_expression "(*(code *)PTR_strlen_0006a51c)(id_string)" (parenthesized_expression "(*(code *)PTR_strlen_0006a51c)" ( (pointer_expression "*(code *)PTR_strlen_0006a51c" * (cast_expression "(code *)PTR_strlen_0006a51c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(id_string)" ( identifier )))) ;) (expression_statement "SHA512_Bytes(&ss,id_string,iVar1 + 1);" (call_expression "SHA512_Bytes(&ss,id_string,iVar1 + 1)" identifier (argument_list "(&ss,id_string,iVar1 + 1)" ( (pointer_expression "&ss" & identifier) , identifier , (binary_expression "iVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar1 = bignum_bitcount((Bignum_conflict)private_key);" (assignment_expression "iVar1 = bignum_bitcount((Bignum_conflict)private_key)" identifier = (call_expression "bignum_bitcount((Bignum_conflict)private_key)" identifier (argument_list "((Bignum_conflict)private_key)" ( (cast_expression "(Bignum_conflict)private_key" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) )))) ;) (expression_statement "iVar2 = iVar1 + 8;" (assignment_expression "iVar2 = iVar1 + 8" identifier = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (if_statement "if (iVar2 < 0) {\n    iVar2 = iVar1 + 0xf;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar2 = iVar1 + 0xf;\n  }" { (expression_statement "iVar2 = iVar1 + 0xf;" (assignment_expression "iVar2 = iVar1 + 0xf" identifier = (binary_expression "iVar1 + 0xf" identifier + number_literal)) ;) })) (expression_statement "digest512._0_4_ = iVar2 >> 3;" (assignment_expression "digest512._0_4_ = iVar2 >> 3" (field_expression "digest512._0_4_" identifier . field_identifier) = (binary_expression "iVar2 >> 3" identifier >> number_literal)) ;) (expression_statement "SHA512_Bytes(&ss,digest512,4);" (call_expression "SHA512_Bytes(&ss,digest512,4)" identifier (argument_list "(&ss,digest512,4)" ( (pointer_expression "&ss" & identifier) , identifier , number_literal ))) ;) (if_statement "if (iVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    smemclr(digest512,4);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    smemclr(digest512,4);\n  }" { comment (expression_statement "smemclr(digest512,4);" (call_expression "smemclr(digest512,4)" identifier (argument_list "(digest512,4)" ( identifier , number_literal ))) ;) })) comment (expression_statement "bignum_byte((Bignum_conflict)private_key,(iVar2 >> 3) + -1);" (call_expression "bignum_byte((Bignum_conflict)private_key,(iVar2 >> 3) + -1)" identifier (argument_list "((Bignum_conflict)private_key,(iVar2 >> 3) + -1)" ( (cast_expression "(Bignum_conflict)private_key" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) , (binary_expression "(iVar2 >> 3) + -1" (parenthesized_expression "(iVar2 >> 3)" ( (binary_expression "iVar2 >> 3" identifier >> number_literal) )) + number_literal) ))) ;) })))
(translation_unit "undefined1 *\ndss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)\n\n{\n  undefined1 *puVar1;\n  byte bVar2;\n  undefined1 uVar3;\n  int iVar4;\n  SHA512_CTX *pSVar5;\n  SHA512_CTX *pSVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  undefined1 uVar11;\n  int *piVar9;\n  undefined4 uVar10;\n  uchar *puVar12;\n  uchar *puVar13;\n  undefined4 *puVar14;\n  undefined4 uVar15;\n  uint uVar16;\n  undefined4 *puVar17;\n  undefined4 uVar18;\n  code *pcVar19;\n  undefined4 *puVar20;\n  undefined4 *puVar21;\n  int iVar22;\n  undefined *puVar23;\n  int iVar24;\n  undefined *puVar25;\n  undefined *puVar26;\n  undefined4 *puVar27;\n  uint uVar28;\n  undefined *puVar29;\n  code *pcVar30;\n  int iVar31;\n  undefined4 uStack_2cc;\n  undefined4 uStack_2c8;\n  int iStack_2c4;\n  undefined4 *puStack_2c0;\n  int iStack_2bc;\n  undefined *puStack_2b8;\n  undefined1 *puStack_2b4;\n  undefined1 *puStack_2b0;\n  undefined4 *puStack_2ac;\n  undefined1 *puStack_2a8;\n  undefined4 *puStack_2a4;\n  undefined4 *puStack_2a0;\n  undefined4 uStack_29c;\n  undefined4 local_288;\n  undefined *local_280;\n  undefined1 auStack_278 [20];\n  undefined4 *local_264;\n  SHA512_CTX *local_260;\n  SHA512_CTX *local_25c;\n  undefined *local_258;\n  SHA512_CTX *local_254;\n  undefined *local_250;\n  undefined4 *local_24c;\n  undefined *local_248;\n  uchar *local_244;\n  undefined1 *local_240;\n  undefined4 local_23c;\n  undefined1 local_214 [212];\n  uchar local_140 [4];\n  undefined4 local_13c [52];\n  int local_6c;\n  undefined4 *local_2c;\n  \n  puVar29 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;\n  puVar20 = param_4;\n  SHA512_Init((SHA512_CTX *)local_214);\n  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);\n  iVar4 = bignum_bitcount(param_3);\n  iVar24 = iVar4 + 8;\n  if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }\n  iVar24 = iVar24 >> 3;\n  local_6c = iVar24;\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);\n  if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }\n  puVar25 = PTR_One_0006a2cc;\n  puVar26 = PTR_Zero_0006a2b8;\n  smemclr((SHA512_CTX *)&local_6c,4);\n  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);\n  SHA512_Init((SHA512_CTX *)local_214);\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);\n  puVar23 = PTR_DAT_0006a068 + 0x3134;\n  pSVar5 = (SHA512_CTX *)local_214;\n  puVar12 = local_140;\n  while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }\n  smemclr((SHA512_CTX *)local_214,0xd4);\n  uVar15 = 0x40;\n  smemclr((SHA512_CTX *)&local_6c,0x40);\n  if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }\n  uVar18 = 0x2f68c;\n  puVar21 = local_2c;\n  puVar29 = PTR___stack_chk_fail_0006a574;\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  local_280 = puVar29 + 0x429a4;\n  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);\n  puVar8 = auStack_278;\n  local_264 = (undefined4 *)*puVar27;\n  local_260 = (SHA512_CTX *)local_214;\n  local_25c = (SHA512_CTX *)&local_6c;\n  local_258 = puVar23;\n  local_254 = (SHA512_CTX *)(local_214 + 0xd0);\n  local_250 = puVar25;\n  local_24c = param_2;\n  local_248 = puVar26;\n  local_244 = local_140;\n  local_240 = puVar7;\n  local_23c = uVar18;\n  SHA_Simple(uVar15,uVar10,puVar8);\n  local_288 = 0x14;\n  puVar7 = puVar8;\n  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);\n  iVar24 = modinv(iVar4,puVar21[1]);\n  puVar29 = local_280;\n  if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }\n  pcVar30 = *(code **)(puVar29 + -0x7abc);\n  uVar15 = 0x2f96c;\n  (*pcVar30)();\n  piVar9 = *(int **)(pcVar30 + 0x3ac24);\n  iStack_2c4 = *piVar9;\n  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);\n  iVar22 = 1;\n  puStack_2c0 = puVar21;\n  iStack_2bc = iVar4;\n  puStack_2b8 = puVar23;\n  puStack_2b4 = puVar8;\n  puStack_2b0 = puVar25;\n  puStack_2ac = param_2;\n  puStack_2a8 = puVar26;\n  puStack_2a4 = puVar27;\n  puStack_2a0 = puVar20;\n  uStack_29c = uVar15;\n  (*pcVar19)(puVar7,4,1,0x2800);\n  (*pcVar19)(puVar7,3,1,0xffffd10e);\n  (*pcVar19)(puVar7,4,2,iVar24 << 6);\n  if (iVar24 == 0) {\n    trap(7);\n  }\n  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);\n  (*pcVar19)(puVar7,4,3,0x2000);\n  (*pcVar19)(puVar7,3,3,0xffff8000);\n  (*pcVar19)(puVar7,4,4,0x2000);\n  (*pcVar19)(puVar7,3,4,0xffff4000);\n  (*pcVar19)(puVar7,5,0,0);\n  invent_firstbits(&uStack_2cc,&uStack_2c8);\n  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);\n  puVar17[1] = uVar15;\n  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);\n  *puVar17 = uVar15;\n  uVar18 = bigdiv(uVar15,puVar17[1]);\n  uVar15 = bignum_from_long(1);\n  while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }\n  puVar17[2] = uVar10;\n  freebn(uVar15);\n  uVar15 = copybn(puVar17[1]);\n  decbn(uVar15);\n  iVar4 = 0;\n  while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }\n  puVar17[4] = uVar18;\n  freebn(uVar15);\n  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);\n  puVar17[3] = uVar15;\n  if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }\n  return (undefined1 *)0x1;\n}\n\n" (function_definition "undefined1 *\ndss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)\n\n{\n  undefined1 *puVar1;\n  byte bVar2;\n  undefined1 uVar3;\n  int iVar4;\n  SHA512_CTX *pSVar5;\n  SHA512_CTX *pSVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  undefined1 uVar11;\n  int *piVar9;\n  undefined4 uVar10;\n  uchar *puVar12;\n  uchar *puVar13;\n  undefined4 *puVar14;\n  undefined4 uVar15;\n  uint uVar16;\n  undefined4 *puVar17;\n  undefined4 uVar18;\n  code *pcVar19;\n  undefined4 *puVar20;\n  undefined4 *puVar21;\n  int iVar22;\n  undefined *puVar23;\n  int iVar24;\n  undefined *puVar25;\n  undefined *puVar26;\n  undefined4 *puVar27;\n  uint uVar28;\n  undefined *puVar29;\n  code *pcVar30;\n  int iVar31;\n  undefined4 uStack_2cc;\n  undefined4 uStack_2c8;\n  int iStack_2c4;\n  undefined4 *puStack_2c0;\n  int iStack_2bc;\n  undefined *puStack_2b8;\n  undefined1 *puStack_2b4;\n  undefined1 *puStack_2b0;\n  undefined4 *puStack_2ac;\n  undefined1 *puStack_2a8;\n  undefined4 *puStack_2a4;\n  undefined4 *puStack_2a0;\n  undefined4 uStack_29c;\n  undefined4 local_288;\n  undefined *local_280;\n  undefined1 auStack_278 [20];\n  undefined4 *local_264;\n  SHA512_CTX *local_260;\n  SHA512_CTX *local_25c;\n  undefined *local_258;\n  SHA512_CTX *local_254;\n  undefined *local_250;\n  undefined4 *local_24c;\n  undefined *local_248;\n  uchar *local_244;\n  undefined1 *local_240;\n  undefined4 local_23c;\n  undefined1 local_214 [212];\n  uchar local_140 [4];\n  undefined4 local_13c [52];\n  int local_6c;\n  undefined4 *local_2c;\n  \n  puVar29 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;\n  puVar20 = param_4;\n  SHA512_Init((SHA512_CTX *)local_214);\n  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);\n  iVar4 = bignum_bitcount(param_3);\n  iVar24 = iVar4 + 8;\n  if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }\n  iVar24 = iVar24 >> 3;\n  local_6c = iVar24;\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);\n  if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }\n  puVar25 = PTR_One_0006a2cc;\n  puVar26 = PTR_Zero_0006a2b8;\n  smemclr((SHA512_CTX *)&local_6c,4);\n  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);\n  SHA512_Init((SHA512_CTX *)local_214);\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);\n  puVar23 = PTR_DAT_0006a068 + 0x3134;\n  pSVar5 = (SHA512_CTX *)local_214;\n  puVar12 = local_140;\n  while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }\n  smemclr((SHA512_CTX *)local_214,0xd4);\n  uVar15 = 0x40;\n  smemclr((SHA512_CTX *)&local_6c,0x40);\n  if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }\n  uVar18 = 0x2f68c;\n  puVar21 = local_2c;\n  puVar29 = PTR___stack_chk_fail_0006a574;\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  local_280 = puVar29 + 0x429a4;\n  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);\n  puVar8 = auStack_278;\n  local_264 = (undefined4 *)*puVar27;\n  local_260 = (SHA512_CTX *)local_214;\n  local_25c = (SHA512_CTX *)&local_6c;\n  local_258 = puVar23;\n  local_254 = (SHA512_CTX *)(local_214 + 0xd0);\n  local_250 = puVar25;\n  local_24c = param_2;\n  local_248 = puVar26;\n  local_244 = local_140;\n  local_240 = puVar7;\n  local_23c = uVar18;\n  SHA_Simple(uVar15,uVar10,puVar8);\n  local_288 = 0x14;\n  puVar7 = puVar8;\n  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);\n  iVar24 = modinv(iVar4,puVar21[1]);\n  puVar29 = local_280;\n  if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }\n  pcVar30 = *(code **)(puVar29 + -0x7abc);\n  uVar15 = 0x2f96c;\n  (*pcVar30)();\n  piVar9 = *(int **)(pcVar30 + 0x3ac24);\n  iStack_2c4 = *piVar9;\n  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);\n  iVar22 = 1;\n  puStack_2c0 = puVar21;\n  iStack_2bc = iVar4;\n  puStack_2b8 = puVar23;\n  puStack_2b4 = puVar8;\n  puStack_2b0 = puVar25;\n  puStack_2ac = param_2;\n  puStack_2a8 = puVar26;\n  puStack_2a4 = puVar27;\n  puStack_2a0 = puVar20;\n  uStack_29c = uVar15;\n  (*pcVar19)(puVar7,4,1,0x2800);\n  (*pcVar19)(puVar7,3,1,0xffffd10e);\n  (*pcVar19)(puVar7,4,2,iVar24 << 6);\n  if (iVar24 == 0) {\n    trap(7);\n  }\n  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);\n  (*pcVar19)(puVar7,4,3,0x2000);\n  (*pcVar19)(puVar7,3,3,0xffff8000);\n  (*pcVar19)(puVar7,4,4,0x2000);\n  (*pcVar19)(puVar7,3,4,0xffff4000);\n  (*pcVar19)(puVar7,5,0,0);\n  invent_firstbits(&uStack_2cc,&uStack_2c8);\n  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);\n  puVar17[1] = uVar15;\n  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);\n  *puVar17 = uVar15;\n  uVar18 = bigdiv(uVar15,puVar17[1]);\n  uVar15 = bignum_from_long(1);\n  while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }\n  puVar17[2] = uVar10;\n  freebn(uVar15);\n  uVar15 = copybn(puVar17[1]);\n  decbn(uVar15);\n  iVar4 = 0;\n  while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }\n  puVar17[4] = uVar18;\n  freebn(uVar15);\n  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);\n  puVar17[3] = uVar15;\n  if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }\n  return (undefined1 *)0x1;\n}" type_identifier (pointer_declarator "*\ndss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" * (function_declarator "dss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  undefined1 *puVar1;\n  byte bVar2;\n  undefined1 uVar3;\n  int iVar4;\n  SHA512_CTX *pSVar5;\n  SHA512_CTX *pSVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  undefined1 uVar11;\n  int *piVar9;\n  undefined4 uVar10;\n  uchar *puVar12;\n  uchar *puVar13;\n  undefined4 *puVar14;\n  undefined4 uVar15;\n  uint uVar16;\n  undefined4 *puVar17;\n  undefined4 uVar18;\n  code *pcVar19;\n  undefined4 *puVar20;\n  undefined4 *puVar21;\n  int iVar22;\n  undefined *puVar23;\n  int iVar24;\n  undefined *puVar25;\n  undefined *puVar26;\n  undefined4 *puVar27;\n  uint uVar28;\n  undefined *puVar29;\n  code *pcVar30;\n  int iVar31;\n  undefined4 uStack_2cc;\n  undefined4 uStack_2c8;\n  int iStack_2c4;\n  undefined4 *puStack_2c0;\n  int iStack_2bc;\n  undefined *puStack_2b8;\n  undefined1 *puStack_2b4;\n  undefined1 *puStack_2b0;\n  undefined4 *puStack_2ac;\n  undefined1 *puStack_2a8;\n  undefined4 *puStack_2a4;\n  undefined4 *puStack_2a0;\n  undefined4 uStack_29c;\n  undefined4 local_288;\n  undefined *local_280;\n  undefined1 auStack_278 [20];\n  undefined4 *local_264;\n  SHA512_CTX *local_260;\n  SHA512_CTX *local_25c;\n  undefined *local_258;\n  SHA512_CTX *local_254;\n  undefined *local_250;\n  undefined4 *local_24c;\n  undefined *local_248;\n  uchar *local_244;\n  undefined1 *local_240;\n  undefined4 local_23c;\n  undefined1 local_214 [212];\n  uchar local_140 [4];\n  undefined4 local_13c [52];\n  int local_6c;\n  undefined4 *local_2c;\n  \n  puVar29 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;\n  puVar20 = param_4;\n  SHA512_Init((SHA512_CTX *)local_214);\n  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);\n  iVar4 = bignum_bitcount(param_3);\n  iVar24 = iVar4 + 8;\n  if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }\n  iVar24 = iVar24 >> 3;\n  local_6c = iVar24;\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);\n  if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }\n  puVar25 = PTR_One_0006a2cc;\n  puVar26 = PTR_Zero_0006a2b8;\n  smemclr((SHA512_CTX *)&local_6c,4);\n  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);\n  SHA512_Init((SHA512_CTX *)local_214);\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);\n  puVar23 = PTR_DAT_0006a068 + 0x3134;\n  pSVar5 = (SHA512_CTX *)local_214;\n  puVar12 = local_140;\n  while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }\n  smemclr((SHA512_CTX *)local_214,0xd4);\n  uVar15 = 0x40;\n  smemclr((SHA512_CTX *)&local_6c,0x40);\n  if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }\n  uVar18 = 0x2f68c;\n  puVar21 = local_2c;\n  puVar29 = PTR___stack_chk_fail_0006a574;\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  local_280 = puVar29 + 0x429a4;\n  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);\n  puVar8 = auStack_278;\n  local_264 = (undefined4 *)*puVar27;\n  local_260 = (SHA512_CTX *)local_214;\n  local_25c = (SHA512_CTX *)&local_6c;\n  local_258 = puVar23;\n  local_254 = (SHA512_CTX *)(local_214 + 0xd0);\n  local_250 = puVar25;\n  local_24c = param_2;\n  local_248 = puVar26;\n  local_244 = local_140;\n  local_240 = puVar7;\n  local_23c = uVar18;\n  SHA_Simple(uVar15,uVar10,puVar8);\n  local_288 = 0x14;\n  puVar7 = puVar8;\n  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);\n  iVar24 = modinv(iVar4,puVar21[1]);\n  puVar29 = local_280;\n  if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }\n  pcVar30 = *(code **)(puVar29 + -0x7abc);\n  uVar15 = 0x2f96c;\n  (*pcVar30)();\n  piVar9 = *(int **)(pcVar30 + 0x3ac24);\n  iStack_2c4 = *piVar9;\n  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);\n  iVar22 = 1;\n  puStack_2c0 = puVar21;\n  iStack_2bc = iVar4;\n  puStack_2b8 = puVar23;\n  puStack_2b4 = puVar8;\n  puStack_2b0 = puVar25;\n  puStack_2ac = param_2;\n  puStack_2a8 = puVar26;\n  puStack_2a4 = puVar27;\n  puStack_2a0 = puVar20;\n  uStack_29c = uVar15;\n  (*pcVar19)(puVar7,4,1,0x2800);\n  (*pcVar19)(puVar7,3,1,0xffffd10e);\n  (*pcVar19)(puVar7,4,2,iVar24 << 6);\n  if (iVar24 == 0) {\n    trap(7);\n  }\n  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);\n  (*pcVar19)(puVar7,4,3,0x2000);\n  (*pcVar19)(puVar7,3,3,0xffff8000);\n  (*pcVar19)(puVar7,4,4,0x2000);\n  (*pcVar19)(puVar7,3,4,0xffff4000);\n  (*pcVar19)(puVar7,5,0,0);\n  invent_firstbits(&uStack_2cc,&uStack_2c8);\n  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);\n  puVar17[1] = uVar15;\n  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);\n  *puVar17 = uVar15;\n  uVar18 = bigdiv(uVar15,puVar17[1]);\n  uVar15 = bignum_from_long(1);\n  while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }\n  puVar17[2] = uVar10;\n  freebn(uVar15);\n  uVar15 = copybn(puVar17[1]);\n  decbn(uVar15);\n  iVar4 = 0;\n  while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }\n  puVar17[4] = uVar18;\n  freebn(uVar15);\n  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);\n  puVar17[3] = uVar15;\n  if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }\n  return (undefined1 *)0x1;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "SHA512_CTX *pSVar5;" type_identifier (pointer_declarator "*pSVar5" * identifier) ;) (declaration "SHA512_CTX *pSVar6;" type_identifier (pointer_declarator "*pSVar6" * identifier) ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 uVar11;" type_identifier identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "uchar *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "uchar *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "undefined4 *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 uVar15;" type_identifier identifier ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "undefined4 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "undefined4 uVar18;" type_identifier identifier ;) (declaration "code *pcVar19;" type_identifier (pointer_declarator "*pcVar19" * identifier) ;) (declaration "undefined4 *puVar20;" type_identifier (pointer_declarator "*puVar20" * identifier) ;) (declaration "undefined4 *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "int iVar22;" primitive_type identifier ;) (declaration "undefined *puVar23;" type_identifier (pointer_declarator "*puVar23" * identifier) ;) (declaration "int iVar24;" primitive_type identifier ;) (declaration "undefined *puVar25;" type_identifier (pointer_declarator "*puVar25" * identifier) ;) (declaration "undefined *puVar26;" type_identifier (pointer_declarator "*puVar26" * identifier) ;) (declaration "undefined4 *puVar27;" type_identifier (pointer_declarator "*puVar27" * identifier) ;) (declaration "uint uVar28;" type_identifier identifier ;) (declaration "undefined *puVar29;" type_identifier (pointer_declarator "*puVar29" * identifier) ;) (declaration "code *pcVar30;" type_identifier (pointer_declarator "*pcVar30" * identifier) ;) (declaration "int iVar31;" primitive_type identifier ;) (declaration "undefined4 uStack_2cc;" type_identifier identifier ;) (declaration "undefined4 uStack_2c8;" type_identifier identifier ;) (declaration "int iStack_2c4;" primitive_type identifier ;) (declaration "undefined4 *puStack_2c0;" type_identifier (pointer_declarator "*puStack_2c0" * identifier) ;) (declaration "int iStack_2bc;" primitive_type identifier ;) (declaration "undefined *puStack_2b8;" type_identifier (pointer_declarator "*puStack_2b8" * identifier) ;) (declaration "undefined1 *puStack_2b4;" type_identifier (pointer_declarator "*puStack_2b4" * identifier) ;) (declaration "undefined1 *puStack_2b0;" type_identifier (pointer_declarator "*puStack_2b0" * identifier) ;) (declaration "undefined4 *puStack_2ac;" type_identifier (pointer_declarator "*puStack_2ac" * identifier) ;) (declaration "undefined1 *puStack_2a8;" type_identifier (pointer_declarator "*puStack_2a8" * identifier) ;) (declaration "undefined4 *puStack_2a4;" type_identifier (pointer_declarator "*puStack_2a4" * identifier) ;) (declaration "undefined4 *puStack_2a0;" type_identifier (pointer_declarator "*puStack_2a0" * identifier) ;) (declaration "undefined4 uStack_29c;" type_identifier identifier ;) (declaration "undefined4 local_288;" type_identifier identifier ;) (declaration "undefined *local_280;" type_identifier (pointer_declarator "*local_280" * identifier) ;) (declaration "undefined1 auStack_278 [20];" type_identifier (array_declarator "auStack_278 [20]" identifier [ number_literal ]) ;) (declaration "undefined4 *local_264;" type_identifier (pointer_declarator "*local_264" * identifier) ;) (declaration "SHA512_CTX *local_260;" type_identifier (pointer_declarator "*local_260" * identifier) ;) (declaration "SHA512_CTX *local_25c;" type_identifier (pointer_declarator "*local_25c" * identifier) ;) (declaration "undefined *local_258;" type_identifier (pointer_declarator "*local_258" * identifier) ;) (declaration "SHA512_CTX *local_254;" type_identifier (pointer_declarator "*local_254" * identifier) ;) (declaration "undefined *local_250;" type_identifier (pointer_declarator "*local_250" * identifier) ;) (declaration "undefined4 *local_24c;" type_identifier (pointer_declarator "*local_24c" * identifier) ;) (declaration "undefined *local_248;" type_identifier (pointer_declarator "*local_248" * identifier) ;) (declaration "uchar *local_244;" type_identifier (pointer_declarator "*local_244" * identifier) ;) (declaration "undefined1 *local_240;" type_identifier (pointer_declarator "*local_240" * identifier) ;) (declaration "undefined4 local_23c;" type_identifier identifier ;) (declaration "undefined1 local_214 [212];" type_identifier (array_declarator "local_214 [212]" identifier [ number_literal ]) ;) (declaration "uchar local_140 [4];" type_identifier (array_declarator "local_140 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_13c [52];" type_identifier (array_declarator "local_13c [52]" identifier [ number_literal ]) ;) (declaration "int local_6c;" primitive_type identifier ;) (declaration "undefined4 *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (expression_statement "puVar29 = PTR___stack_chk_guard_0006a594;" (assignment_expression "puVar29 = PTR___stack_chk_guard_0006a594" identifier = identifier) ;) (expression_statement "local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;" (assignment_expression "local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_0006a594" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_0006a594" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar20 = param_4;" (assignment_expression "puVar20 = param_4" identifier = identifier) ;) (expression_statement "SHA512_Init((SHA512_CTX *)local_214);" (call_expression "SHA512_Init((SHA512_CTX *)local_214)" identifier (argument_list "((SHA512_CTX *)local_214)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_0006a51c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0006a51c)" ( (pointer_expression "*(code *)PTR_strlen_0006a51c" * (cast_expression "(code *)PTR_strlen_0006a51c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1)" identifier (argument_list "((SHA512_CTX *)local_214,param_1,iVar4 + 1)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (binary_expression "iVar4 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar4 = bignum_bitcount(param_3);" (assignment_expression "iVar4 = bignum_bitcount(param_3)" identifier = (call_expression "bignum_bitcount(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar24 = iVar4 + 8;" (assignment_expression "iVar24 = iVar4 + 8" identifier = (binary_expression "iVar4 + 8" identifier + number_literal)) ;) (if_statement "if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }" if (parenthesized_expression "(iVar24 < 0)" ( (binary_expression "iVar24 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar24 = iVar4 + 0xf;\n  }" { (expression_statement "iVar24 = iVar4 + 0xf;" (assignment_expression "iVar24 = iVar4 + 0xf" identifier = (binary_expression "iVar4 + 0xf" identifier + number_literal)) ;) })) (expression_statement "iVar24 = iVar24 >> 3;" (assignment_expression "iVar24 = iVar24 >> 3" identifier = (binary_expression "iVar24 >> 3" identifier >> number_literal)) ;) (expression_statement "local_6c = iVar24;" (assignment_expression "local_6c = iVar24" identifier = identifier) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4)" identifier (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) (if_statement "if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }" { (do_statement "do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);" do (compound_statement "{\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    }" { (expression_statement "iVar24 = iVar24 + -1;" (assignment_expression "iVar24 = iVar24 + -1" identifier = (binary_expression "iVar24 + -1" identifier + number_literal)) ;) (expression_statement "uVar11 = bignum_byte(param_3,iVar24);" (assignment_expression "uVar11 = bignum_byte(param_3,iVar24)" identifier = (call_expression "bignum_byte(param_3,iVar24)" identifier (argument_list "(param_3,iVar24)" ( identifier , identifier )))) ;) (expression_statement "local_6c = CONCAT13(uVar11,local_6c._1_3_);" (assignment_expression "local_6c = CONCAT13(uVar11,local_6c._1_3_)" identifier = (call_expression "CONCAT13(uVar11,local_6c._1_3_)" identifier (argument_list "(uVar11,local_6c._1_3_)" ( identifier , (field_expression "local_6c._1_3_" identifier . field_identifier) )))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1)" identifier (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) }) while (parenthesized_expression "(0 < iVar24)" ( (binary_expression "0 < iVar24" number_literal < identifier) )) ;) })) (expression_statement "puVar25 = PTR_One_0006a2cc;" (assignment_expression "puVar25 = PTR_One_0006a2cc" identifier = identifier) ;) (expression_statement "puVar26 = PTR_Zero_0006a2b8;" (assignment_expression "puVar26 = PTR_Zero_0006a2b8" identifier = identifier) ;) (expression_statement "smemclr((SHA512_CTX *)&local_6c,4);" (call_expression "smemclr((SHA512_CTX *)&local_6c,4)" identifier (argument_list "((SHA512_CTX *)&local_6c,4)" ( (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) (expression_statement "SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);" (call_expression "SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c)" identifier (argument_list "((uchar *)local_214,(SHA512_CTX *)&local_6c)" ( (cast_expression "(uchar *)local_214" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) ))) ;) (expression_statement "SHA512_Init((SHA512_CTX *)local_214);" (call_expression "SHA512_Init((SHA512_CTX *)local_214)" identifier (argument_list "((SHA512_CTX *)local_214)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40)" identifier (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5)" identifier (argument_list "((SHA512_CTX *)local_214,param_4,param_5)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (expression_statement "puVar23 = PTR_DAT_0006a068 + 0x3134;" (assignment_expression "puVar23 = PTR_DAT_0006a068 + 0x3134" identifier = (binary_expression "PTR_DAT_0006a068 + 0x3134" identifier + number_literal)) ;) (expression_statement "pSVar5 = (SHA512_CTX *)local_214;" (assignment_expression "pSVar5 = (SHA512_CTX *)local_214" identifier = (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar12 = local_140;" (assignment_expression "puVar12 = local_140" identifier = identifier) ;) (while_statement "while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }" { (do_statement "do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));" do (compound_statement "{\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    }" { (expression_statement "pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);" (assignment_expression "pSVar6 = (SHA512_CTX *)(pSVar5->h + 2)" identifier = (cast_expression "(SHA512_CTX *)(pSVar5->h + 2)" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pSVar5->h + 2)" ( (binary_expression "pSVar5->h + 2" (field_expression "pSVar5->h" identifier -> field_identifier) + number_literal) )))) ;) (expression_statement "puVar13 = puVar12 + 0x10;" (assignment_expression "puVar13 = puVar12 + 0x10" identifier = (binary_expression "puVar12 + 0x10" identifier + number_literal)) ;) (expression_statement "uVar10 = (undefined4)pSVar5->h[0];" (assignment_expression "uVar10 = (undefined4)pSVar5->h[0]" identifier = (cast_expression "(undefined4)pSVar5->h[0]" ( (type_descriptor "undefined4" type_identifier) ) (subscript_expression "pSVar5->h[0]" (field_expression "pSVar5->h" identifier -> field_identifier) [ number_literal ]))) ;) (expression_statement "uVar18 = *(undefined4 *)(pSVar5->h + 1);" (assignment_expression "uVar18 = *(undefined4 *)(pSVar5->h + 1)" identifier = (pointer_expression "*(undefined4 *)(pSVar5->h + 1)" * (cast_expression "(undefined4 *)(pSVar5->h + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pSVar5->h + 1)" ( (binary_expression "pSVar5->h + 1" (field_expression "pSVar5->h" identifier -> field_identifier) + number_literal) ))))) ;) (expression_statement "uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);" (assignment_expression "uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc)" identifier = (pointer_expression "*(undefined4 *)((int)pSVar5->h + 0xc)" * (cast_expression "(undefined4 *)((int)pSVar5->h + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pSVar5->h + 0xc)" ( (binary_expression "(int)pSVar5->h + 0xc" (cast_expression "(int)pSVar5->h" ( (type_descriptor "int" primitive_type) ) (field_expression "pSVar5->h" identifier -> field_identifier)) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;" (assignment_expression "*(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h" (pointer_expression "*(undefined4 *)puVar12" * (cast_expression "(undefined4 *)puVar12" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)pSVar5->h" * (cast_expression "(undefined4 *)pSVar5->h" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pSVar5->h" identifier -> field_identifier)))) ;) (expression_statement "*(undefined4 *)(puVar12 + 4) = uVar10;" (assignment_expression "*(undefined4 *)(puVar12 + 4) = uVar10" (pointer_expression "*(undefined4 *)(puVar12 + 4)" * (cast_expression "(undefined4 *)(puVar12 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 4)" ( (binary_expression "puVar12 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar12 + 8) = uVar18;" (assignment_expression "*(undefined4 *)(puVar12 + 8) = uVar18" (pointer_expression "*(undefined4 *)(puVar12 + 8)" * (cast_expression "(undefined4 *)(puVar12 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 8)" ( (binary_expression "puVar12 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar12 + 0xc) = uVar15;" (assignment_expression "*(undefined4 *)(puVar12 + 0xc) = uVar15" (pointer_expression "*(undefined4 *)(puVar12 + 0xc)" * (cast_expression "(undefined4 *)(puVar12 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0xc)" ( (binary_expression "puVar12 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "pSVar5 = pSVar6;" (assignment_expression "pSVar5 = pSVar6" identifier = identifier) ;) (expression_statement "puVar12 = puVar13;" (assignment_expression "puVar12 = puVar13" identifier = identifier) ;) }) while (parenthesized_expression "(pSVar6 != (SHA512_CTX *)(local_214 + 0xd0))" ( (binary_expression "pSVar6 != (SHA512_CTX *)(local_214 + 0xd0)" identifier != (cast_expression "(SHA512_CTX *)(local_214 + 0xd0)" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_214 + 0xd0)" ( (binary_expression "local_214 + 0xd0" identifier + number_literal) )))) )) ;) (expression_statement "*(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;" (assignment_expression "*(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h" (pointer_expression "*(undefined4 *)puVar13" * (cast_expression "(undefined4 *)puVar13" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)pSVar6->h" * (cast_expression "(undefined4 *)pSVar6->h" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pSVar6->h" identifier -> field_identifier)))) ;) (expression_statement "SHA512_Final(local_140,(SHA512_CTX *)&local_6c);" (call_expression "SHA512_Final(local_140,(SHA512_CTX *)&local_6c)" identifier (argument_list "(local_140,(SHA512_CTX *)&local_6c)" ( identifier , (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) ))) ;) (expression_statement "smemclr(local_140,0xd4);" (call_expression "smemclr(local_140,0xd4)" identifier (argument_list "(local_140,0xd4)" ( identifier , number_literal ))) ;) (expression_statement "uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);" (assignment_expression "uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40)" identifier = (call_expression "bignum_from_bytes((SHA512_CTX *)&local_6c,0x40)" identifier (argument_list "((SHA512_CTX *)&local_6c,0x40)" ( (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal )))) ;) (expression_statement "puVar7 = (undefined1 *)bigmod(uVar15,param_2);" (assignment_expression "puVar7 = (undefined1 *)bigmod(uVar15,param_2)" identifier = (cast_expression "(undefined1 *)bigmod(uVar15,param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bigmod(uVar15,param_2)" identifier (argument_list "(uVar15,param_2)" ( identifier , identifier ))))) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);" (assignment_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25)" identifier = (call_expression "bignum_cmp(puVar7,*(undefined4 *)puVar25)" identifier (argument_list "(puVar7,*(undefined4 *)puVar25)" ( identifier , (pointer_expression "*(undefined4 *)puVar25" * (cast_expression "(undefined4 *)puVar25" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;" if (parenthesized_expression "((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0))" ( (binary_expression "(iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)" ( (comma_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0" (assignment_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26)" identifier = (call_expression "bignum_cmp(puVar7,*(undefined4 *)puVar26)" identifier (argument_list "(puVar7,*(undefined4 *)puVar26)" ( identifier , (pointer_expression "*(undefined4 *)puVar26" * (cast_expression "(undefined4 *)puVar26" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "freebn(puVar7);" (call_expression "freebn(puVar7)" identifier (argument_list "(puVar7)" ( identifier ))) ;) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1)" identifier (argument_list "((SHA512_CTX *)local_214,puVar23,1)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "pSVar5 = (SHA512_CTX *)local_214;" (assignment_expression "pSVar5 = (SHA512_CTX *)local_214" identifier = (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar12 = local_140;" (assignment_expression "puVar12 = local_140" identifier = identifier) ;) })) (expression_statement "smemclr((SHA512_CTX *)local_214,0xd4);" (call_expression "smemclr((SHA512_CTX *)local_214,0xd4)" identifier (argument_list "((SHA512_CTX *)local_214,0xd4)" ( (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))) ;) (expression_statement "uVar15 = 0x40;" (assignment_expression "uVar15 = 0x40" identifier = number_literal) ;) (expression_statement "smemclr((SHA512_CTX *)&local_6c,0x40);" (call_expression "smemclr((SHA512_CTX *)&local_6c,0x40)" identifier (argument_list "((SHA512_CTX *)&local_6c,0x40)" ( (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier)) , number_literal ))) ;) (if_statement "if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }" if (parenthesized_expression "(local_2c == *(undefined4 **)puVar29)" ( (binary_expression "local_2c == *(undefined4 **)puVar29" identifier == (pointer_expression "*(undefined4 **)puVar29" * (cast_expression "(undefined4 **)puVar29" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return puVar7;\n  }" { (return_statement "return puVar7;" return identifier ;) })) (expression_statement "uVar18 = 0x2f68c;" (assignment_expression "uVar18 = 0x2f68c" identifier = number_literal) ;) (expression_statement "puVar21 = local_2c;" (assignment_expression "puVar21 = local_2c" identifier = identifier) ;) (expression_statement "puVar29 = PTR___stack_chk_fail_0006a574;" (assignment_expression "puVar29 = PTR___stack_chk_fail_0006a574" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0006a574)();" (call_expression "(*(code *)PTR___stack_chk_fail_0006a574)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0006a574)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0006a574" * (cast_expression "(code *)PTR___stack_chk_fail_0006a574" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "local_280 = puVar29 + 0x429a4;" (assignment_expression "local_280 = puVar29 + 0x429a4" identifier = (binary_expression "puVar29 + 0x429a4" identifier + number_literal)) ;) (expression_statement "puVar27 = *(undefined4 **)(puVar29 + 0x3af08);" (assignment_expression "puVar27 = *(undefined4 **)(puVar29 + 0x3af08)" identifier = (pointer_expression "*(undefined4 **)(puVar29 + 0x3af08)" * (cast_expression "(undefined4 **)(puVar29 + 0x3af08)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar29 + 0x3af08)" ( (binary_expression "puVar29 + 0x3af08" identifier + number_literal) ))))) ;) (expression_statement "puVar8 = auStack_278;" (assignment_expression "puVar8 = auStack_278" identifier = identifier) ;) (expression_statement "local_264 = (undefined4 *)*puVar27;" (assignment_expression "local_264 = (undefined4 *)*puVar27" identifier = (cast_expression "(undefined4 *)*puVar27" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar27" * identifier))) ;) (expression_statement "local_260 = (SHA512_CTX *)local_214;" (assignment_expression "local_260 = (SHA512_CTX *)local_214" identifier = (cast_expression "(SHA512_CTX *)local_214" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_25c = (SHA512_CTX *)&local_6c;" (assignment_expression "local_25c = (SHA512_CTX *)&local_6c" identifier = (cast_expression "(SHA512_CTX *)&local_6c" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_6c" & identifier))) ;) (expression_statement "local_258 = puVar23;" (assignment_expression "local_258 = puVar23" identifier = identifier) ;) (expression_statement "local_254 = (SHA512_CTX *)(local_214 + 0xd0);" (assignment_expression "local_254 = (SHA512_CTX *)(local_214 + 0xd0)" identifier = (cast_expression "(SHA512_CTX *)(local_214 + 0xd0)" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_214 + 0xd0)" ( (binary_expression "local_214 + 0xd0" identifier + number_literal) )))) ;) (expression_statement "local_250 = puVar25;" (assignment_expression "local_250 = puVar25" identifier = identifier) ;) (expression_statement "local_24c = param_2;" (assignment_expression "local_24c = param_2" identifier = identifier) ;) (expression_statement "local_248 = puVar26;" (assignment_expression "local_248 = puVar26" identifier = identifier) ;) (expression_statement "local_244 = local_140;" (assignment_expression "local_244 = local_140" identifier = identifier) ;) (expression_statement "local_240 = puVar7;" (assignment_expression "local_240 = puVar7" identifier = identifier) ;) (expression_statement "local_23c = uVar18;" (assignment_expression "local_23c = uVar18" identifier = identifier) ;) (expression_statement "SHA_Simple(uVar15,uVar10,puVar8);" (call_expression "SHA_Simple(uVar15,uVar10,puVar8)" identifier (argument_list "(uVar15,uVar10,puVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_288 = 0x14;" (assignment_expression "local_288 = 0x14" identifier = number_literal) ;) (expression_statement "puVar7 = puVar8;" (assignment_expression "puVar7 = puVar8" identifier = identifier) ;) (expression_statement "iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);" (assignment_expression "iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" identifier = (call_expression "dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" identifier (argument_list "(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" ( (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3138" (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) )))) + number_literal) , (subscript_expression "puVar21[1]" identifier [ number_literal ]) , (subscript_expression "puVar21[4]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar24 = modinv(iVar4,puVar21[1]);" (assignment_expression "iVar24 = modinv(iVar4,puVar21[1])" identifier = (call_expression "modinv(iVar4,puVar21[1])" identifier (argument_list "(iVar4,puVar21[1])" ( identifier , (subscript_expression "puVar21[1]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar29 = local_280;" (assignment_expression "puVar29 = local_280" identifier = identifier) ;) (if_statement "if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" if (parenthesized_expression "(iVar24 == 0)" ( (binary_expression "iVar24 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }" { (expression_statement "pcVar19 = (code *)0x26f;" (assignment_expression "pcVar19 = (code *)0x26f" identifier = (cast_expression "(code *)0x26f" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);" (assignment_expression "puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198)" identifier = (cast_expression "(undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(local_280 + -0x7fc8) + 0x3198)" ( (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3198" (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;" (assignment_expression "iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110" identifier = (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3110" (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);" (assignment_expression "puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158)" identifier = (cast_expression "(undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(local_280 + -0x7fc8) + 0x3158)" ( (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3158" (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(**(code **)(local_280 + -0x7bb8))();" (call_expression "(**(code **)(local_280 + -0x7bb8))()" (parenthesized_expression "(**(code **)(local_280 + -0x7bb8))" ( (pointer_expression "**(code **)(local_280 + -0x7bb8)" * (pointer_expression "*(code **)(local_280 + -0x7bb8)" * (cast_expression "(code **)(local_280 + -0x7bb8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_280 + -0x7bb8)" ( (binary_expression "local_280 + -0x7bb8" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }) (else_clause "else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" else (compound_statement "{\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" { (expression_statement "uVar15 = modpow(puVar21[2],iVar4,*puVar21);" (assignment_expression "uVar15 = modpow(puVar21[2],iVar4,*puVar21)" identifier = (call_expression "modpow(puVar21[2],iVar4,*puVar21)" identifier (argument_list "(puVar21[2],iVar4,*puVar21)" ( (subscript_expression "puVar21[2]" identifier [ number_literal ]) , identifier , (pointer_expression "*puVar21" * identifier) )))) ;) (expression_statement "puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);" (assignment_expression "puVar23 = (undefined *)bigmod(uVar15,puVar21[1])" identifier = (cast_expression "(undefined *)bigmod(uVar15,puVar21[1])" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bigmod(uVar15,puVar21[1])" identifier (argument_list "(uVar15,puVar21[1])" ( identifier , (subscript_expression "puVar21[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "uVar15 = bignum_from_bytes(puVar8,0x14);" (assignment_expression "uVar15 = bignum_from_bytes(puVar8,0x14)" identifier = (call_expression "bignum_from_bytes(puVar8,0x14)" identifier (argument_list "(puVar8,0x14)" ( identifier , number_literal )))) ;) (expression_statement "uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);" (assignment_expression "uVar18 = bigmuladd(puVar21[4],puVar23,uVar15)" identifier = (call_expression "bigmuladd(puVar21[4],puVar23,uVar15)" identifier (argument_list "(puVar21[4],puVar23,uVar15)" ( (subscript_expression "puVar21[4]" identifier [ number_literal ]) , identifier , identifier )))) ;) (expression_statement "puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);" (assignment_expression "puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1])" identifier = (cast_expression "(undefined1 *)modmul(iVar24,uVar18,puVar21[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "modmul(iVar24,uVar18,puVar21[1])" identifier (argument_list "(iVar24,uVar18,puVar21[1])" ( identifier , identifier , (subscript_expression "puVar21[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "freebn(uVar18);" (call_expression "freebn(uVar18)" identifier (argument_list "(uVar18)" ( identifier ))) ;) (expression_statement "freebn(iVar24);" (call_expression "freebn(iVar24)" identifier (argument_list "(iVar24)" ( identifier ))) ;) (expression_statement "freebn(iVar4);" (call_expression "freebn(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "puVar26 = (undefined *)safemalloc(0x37,1);" (assignment_expression "puVar26 = (undefined *)safemalloc(0x37,1)" identifier = (cast_expression "(undefined *)safemalloc(0x37,1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(0x37,1)" identifier (argument_list "(0x37,1)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar26[3] = 7;" (assignment_expression "puVar26[3] = 7" (subscript_expression "puVar26[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar26 = 0;" (assignment_expression "*puVar26 = 0" (pointer_expression "*puVar26" * identifier) = number_literal) ;) (expression_statement "param_2 = (undefined4 *)(puVar26 + 0x23);" (assignment_expression "param_2 = (undefined4 *)(puVar26 + 0x23)" identifier = (cast_expression "(undefined4 *)(puVar26 + 0x23)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar26 + 0x23)" ( (binary_expression "puVar26 + 0x23" identifier + number_literal) )))) ;) (expression_statement "iVar4 = *(int *)(local_280 + -0x7fc8);" (assignment_expression "iVar4 = *(int *)(local_280 + -0x7fc8)" identifier = (pointer_expression "*(int *)(local_280 + -0x7fc8)" * (cast_expression "(int *)(local_280 + -0x7fc8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_280 + -0x7fc8)" ( (binary_expression "local_280 + -0x7fc8" identifier + number_literal) ))))) ;) (expression_statement "puVar25 = puVar26 + 0x22;" (assignment_expression "puVar25 = puVar26 + 0x22" identifier = (binary_expression "puVar26 + 0x22" identifier + number_literal)) ;) (expression_statement "puVar26[1] = 0;" (assignment_expression "puVar26[1] = 0" (subscript_expression "puVar26[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar26[2] = 0;" (assignment_expression "puVar26[2] = 0" (subscript_expression "puVar26[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar16 = *(uint *)(iVar4 + -0x1ac8);" (assignment_expression "uVar16 = *(uint *)(iVar4 + -0x1ac8)" identifier = (pointer_expression "*(uint *)(iVar4 + -0x1ac8)" * (cast_expression "(uint *)(iVar4 + -0x1ac8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0x1ac8)" ( (binary_expression "iVar4 + -0x1ac8" identifier + number_literal) ))))) ;) (expression_statement "bVar2 = *(byte *)(iVar4 + -0x1ac4);" (assignment_expression "bVar2 = *(byte *)(iVar4 + -0x1ac4)" identifier = (pointer_expression "*(byte *)(iVar4 + -0x1ac4)" * (cast_expression "(byte *)(iVar4 + -0x1ac4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0x1ac4)" ( (binary_expression "iVar4 + -0x1ac4" identifier + number_literal) ))))) ;) (expression_statement "pcVar19 = (code *)(uint)bVar2;" (assignment_expression "pcVar19 = (code *)(uint)bVar2" identifier = (cast_expression "(code *)(uint)bVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);" (assignment_expression "uVar11 = *(undefined1 *)(iVar4 + -0x1ac3)" identifier = (pointer_expression "*(undefined1 *)(iVar4 + -0x1ac3)" * (cast_expression "(undefined1 *)(iVar4 + -0x1ac3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0x1ac3)" ( (binary_expression "iVar4 + -0x1ac3" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);" (assignment_expression "uVar3 = *(undefined1 *)(iVar4 + -0x1ac2)" identifier = (pointer_expression "*(undefined1 *)(iVar4 + -0x1ac2)" * (cast_expression "(undefined1 *)(iVar4 + -0x1ac2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0x1ac2)" ( (binary_expression "iVar4 + -0x1ac2" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = puVar26 + 4;" (assignment_expression "puVar1 = puVar26 + 4" identifier = (binary_expression "puVar26 + 4" identifier + number_literal)) ;) (expression_statement "uVar28 = (uint)puVar1 & 3;" (assignment_expression "uVar28 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" * (cast_expression "(uint *)(puVar1 + -uVar28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar28)" ( (binary_expression "puVar1 + -uVar28" identifier + (unary_expression "-uVar28" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8" (binary_expression "*(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" * (cast_expression "(uint *)(puVar1 + -uVar28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar28)" ( (binary_expression "puVar1 + -uVar28" identifier + (unary_expression "-uVar28" - identifier)) )))) & (binary_expression "-1 << (4 - uVar28) * 8" number_literal << (binary_expression "(4 - uVar28) * 8" (parenthesized_expression "(4 - uVar28)" ( (binary_expression "4 - uVar28" number_literal - identifier) )) * number_literal))) | (binary_expression "uVar16 >> uVar28 * 8" identifier >> (binary_expression "uVar28 * 8" identifier * number_literal)))) ;) (expression_statement "puVar1 = puVar26 + 7;" (assignment_expression "puVar1 = puVar26 + 7" identifier = (binary_expression "puVar26 + 7" identifier + number_literal)) ;) (expression_statement "uVar28 = (uint)puVar1 & 3;" (assignment_expression "uVar28 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" * (cast_expression "(uint *)(puVar1 + -uVar28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar28)" ( (binary_expression "puVar1 + -uVar28" identifier + (unary_expression "-uVar28" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8" (binary_expression "*(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" * (cast_expression "(uint *)(puVar1 + -uVar28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar28)" ( (binary_expression "puVar1 + -uVar28" identifier + (unary_expression "-uVar28" - identifier)) )))) & (binary_expression "0xffffffffU >> (uVar28 + 1) * 8" number_literal >> (binary_expression "(uVar28 + 1) * 8" (parenthesized_expression "(uVar28 + 1)" ( (binary_expression "uVar28 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "uVar16 << (3 - uVar28) * 8" identifier << (binary_expression "(3 - uVar28) * 8" (parenthesized_expression "(3 - uVar28)" ( (binary_expression "3 - uVar28" number_literal - identifier) )) * number_literal)))) ;) (expression_statement "puVar26[8] = bVar2;" (assignment_expression "puVar26[8] = bVar2" (subscript_expression "puVar26[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar26[9] = uVar11;" (assignment_expression "puVar26[9] = uVar11" (subscript_expression "puVar26[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar26[10] = uVar3;" (assignment_expression "puVar26[10] = uVar3" (subscript_expression "puVar26[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar26[0xb] = 0;" (assignment_expression "puVar26[0xb] = 0" (subscript_expression "puVar26[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar26[0xc] = 0;" (assignment_expression "puVar26[0xc] = 0" (subscript_expression "puVar26[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar26[0xd] = 0;" (assignment_expression "puVar26[0xd] = 0" (subscript_expression "puVar26[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar26[0xe] = 0x28;" (assignment_expression "puVar26[0xe] = 0x28" (subscript_expression "puVar26[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar17 = (undefined4 *)(puVar26 + 0xf);" (assignment_expression "puVar17 = (undefined4 *)(puVar26 + 0xf)" identifier = (cast_expression "(undefined4 *)(puVar26 + 0xf)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar26 + 0xf)" ( (binary_expression "puVar26 + 0xf" identifier + number_literal) )))) ;) (do_statement "do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);" do (compound_statement "{\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    }" { (expression_statement "iVar4 = (int)puVar25 - (int)puVar17;" (assignment_expression "iVar4 = (int)puVar25 - (int)puVar17" identifier = (binary_expression "(int)puVar25 - (int)puVar17" (cast_expression "(int)puVar25" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar17" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar11 = bignum_byte(puVar23,iVar4);" (assignment_expression "uVar11 = bignum_byte(puVar23,iVar4)" identifier = (call_expression "bignum_byte(puVar23,iVar4)" identifier (argument_list "(puVar23,iVar4)" ( identifier , identifier )))) ;) (expression_statement "puVar21 = (undefined4 *)((int)puVar17 + 1);" (assignment_expression "puVar21 = (undefined4 *)((int)puVar17 + 1)" identifier = (cast_expression "(undefined4 *)((int)puVar17 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar17 + 1)" ( (binary_expression "(int)puVar17 + 1" (cast_expression "(int)puVar17" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*(undefined1 *)puVar17 = uVar11;" (assignment_expression "*(undefined1 *)puVar17 = uVar11" (pointer_expression "*(undefined1 *)puVar17" * (cast_expression "(undefined1 *)puVar17" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "uVar11 = bignum_byte(puVar8,iVar4);" (assignment_expression "uVar11 = bignum_byte(puVar8,iVar4)" identifier = (call_expression "bignum_byte(puVar8,iVar4)" identifier (argument_list "(puVar8,iVar4)" ( identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(puVar17 + 5) = uVar11;" (assignment_expression "*(undefined1 *)(puVar17 + 5) = uVar11" (pointer_expression "*(undefined1 *)(puVar17 + 5)" * (cast_expression "(undefined1 *)(puVar17 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar17 + 5)" ( (binary_expression "puVar17 + 5" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar17 = puVar21;" (assignment_expression "puVar17 = puVar21" identifier = identifier) ;) }) while (parenthesized_expression "(puVar21 != param_2)" ( (binary_expression "puVar21 != param_2" identifier != identifier) )) ;) (expression_statement "freebn(puVar23);" (call_expression "freebn(puVar23)" identifier (argument_list "(puVar23)" ( identifier ))) ;) (expression_statement "freebn(puVar8);" (call_expression "freebn(puVar8)" identifier (argument_list "(puVar8)" ( identifier ))) ;) (expression_statement "iVar24 = 0x37;" (assignment_expression "iVar24 = 0x37" identifier = number_literal) ;) (expression_statement "puVar14 = (undefined4 *)*puVar27;" (assignment_expression "puVar14 = (undefined4 *)*puVar27" identifier = (cast_expression "(undefined4 *)*puVar27" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar27" * identifier))) ;) (expression_statement "*puVar20 = 0x37;" (assignment_expression "*puVar20 = 0x37" (pointer_expression "*puVar20" * identifier) = number_literal) ;) (expression_statement "puVar17 = local_264;" (assignment_expression "puVar17 = local_264" identifier = identifier) ;) (expression_statement "puVar29 = local_280;" (assignment_expression "puVar29 = local_280" identifier = identifier) ;) (if_statement "if (local_264 == puVar14) {\n      return puVar26;\n    }" if (parenthesized_expression "(local_264 == puVar14)" ( (binary_expression "local_264 == puVar14" identifier == identifier) )) (compound_statement "{\n      return puVar26;\n    }" { (return_statement "return puVar26;" return identifier ;) })) }))) (expression_statement "pcVar30 = *(code **)(puVar29 + -0x7abc);" (assignment_expression "pcVar30 = *(code **)(puVar29 + -0x7abc)" identifier = (pointer_expression "*(code **)(puVar29 + -0x7abc)" * (cast_expression "(code **)(puVar29 + -0x7abc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar29 + -0x7abc)" ( (binary_expression "puVar29 + -0x7abc" identifier + number_literal) ))))) ;) (expression_statement "uVar15 = 0x2f96c;" (assignment_expression "uVar15 = 0x2f96c" identifier = number_literal) ;) (expression_statement "(*pcVar30)();" (call_expression "(*pcVar30)()" (parenthesized_expression "(*pcVar30)" ( (pointer_expression "*pcVar30" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar9 = *(int **)(pcVar30 + 0x3ac24);" (assignment_expression "piVar9 = *(int **)(pcVar30 + 0x3ac24)" identifier = (pointer_expression "*(int **)(pcVar30 + 0x3ac24)" * (cast_expression "(int **)(pcVar30 + 0x3ac24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar30 + 0x3ac24)" ( (binary_expression "pcVar30 + 0x3ac24" identifier + number_literal) ))))) ;) (expression_statement "iStack_2c4 = *piVar9;" (assignment_expression "iStack_2c4 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (expression_statement "puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);" (assignment_expression "puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c)" identifier = (pointer_expression "*(undefined4 **)(pcVar30 + 0x3a95c)" * (cast_expression "(undefined4 **)(pcVar30 + 0x3a95c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar30 + 0x3a95c)" ( (binary_expression "pcVar30 + 0x3a95c" identifier + number_literal) ))))) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (expression_statement "puStack_2c0 = puVar21;" (assignment_expression "puStack_2c0 = puVar21" identifier = identifier) ;) (expression_statement "iStack_2bc = iVar4;" (assignment_expression "iStack_2bc = iVar4" identifier = identifier) ;) (expression_statement "puStack_2b8 = puVar23;" (assignment_expression "puStack_2b8 = puVar23" identifier = identifier) ;) (expression_statement "puStack_2b4 = puVar8;" (assignment_expression "puStack_2b4 = puVar8" identifier = identifier) ;) (expression_statement "puStack_2b0 = puVar25;" (assignment_expression "puStack_2b0 = puVar25" identifier = identifier) ;) (expression_statement "puStack_2ac = param_2;" (assignment_expression "puStack_2ac = param_2" identifier = identifier) ;) (expression_statement "puStack_2a8 = puVar26;" (assignment_expression "puStack_2a8 = puVar26" identifier = identifier) ;) (expression_statement "puStack_2a4 = puVar27;" (assignment_expression "puStack_2a4 = puVar27" identifier = identifier) ;) (expression_statement "puStack_2a0 = puVar20;" (assignment_expression "puStack_2a0 = puVar20" identifier = identifier) ;) (expression_statement "uStack_29c = uVar15;" (assignment_expression "uStack_29c = uVar15" identifier = identifier) ;) (expression_statement "(*pcVar19)(puVar7,4,1,0x2800);" (call_expression "(*pcVar19)(puVar7,4,1,0x2800)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,4,1,0x2800)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,3,1,0xffffd10e);" (call_expression "(*pcVar19)(puVar7,3,1,0xffffd10e)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,3,1,0xffffd10e)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,4,2,iVar24 << 6);" (call_expression "(*pcVar19)(puVar7,4,2,iVar24 << 6)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,4,2,iVar24 << 6)" ( identifier , number_literal , number_literal , (binary_expression "iVar24 << 6" identifier << number_literal) ))) ;) (if_statement "if (iVar24 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(iVar24 == 0)" ( (binary_expression "iVar24 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "(*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);" (call_expression "(*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,3,2,-0x1d57c4 / iVar24)" ( identifier , number_literal , number_literal , (binary_expression "-0x1d57c4 / iVar24" number_literal / identifier) ))) ;) (expression_statement "(*pcVar19)(puVar7,4,3,0x2000);" (call_expression "(*pcVar19)(puVar7,4,3,0x2000)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,4,3,0x2000)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,3,3,0xffff8000);" (call_expression "(*pcVar19)(puVar7,3,3,0xffff8000)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,3,3,0xffff8000)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,4,4,0x2000);" (call_expression "(*pcVar19)(puVar7,4,4,0x2000)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,4,4,0x2000)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,3,4,0xffff4000);" (call_expression "(*pcVar19)(puVar7,3,4,0xffff4000)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,3,4,0xffff4000)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "(*pcVar19)(puVar7,5,0,0);" (call_expression "(*pcVar19)(puVar7,5,0,0)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,5,0,0)" ( identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "invent_firstbits(&uStack_2cc,&uStack_2c8);" (call_expression "invent_firstbits(&uStack_2cc,&uStack_2c8)" identifier (argument_list "(&uStack_2cc,&uStack_2c8)" ( (pointer_expression "&uStack_2cc" & identifier) , (pointer_expression "&uStack_2c8" & identifier) ))) ;) (expression_statement "uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);" (assignment_expression "uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" identifier = (call_expression "primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" identifier (argument_list "(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" ( number_literal , number_literal , number_literal , number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "puVar17[1] = uVar15;" (assignment_expression "puVar17[1] = uVar15" (subscript_expression "puVar17[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);" (assignment_expression "uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" identifier = (call_expression "primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" identifier (argument_list "(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" ( (binary_expression "iVar24 + -0xa0" identifier + number_literal) , number_literal , number_literal , identifier , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "*puVar17 = uVar15;" (assignment_expression "*puVar17 = uVar15" (pointer_expression "*puVar17" * identifier) = identifier) ;) (expression_statement "uVar18 = bigdiv(uVar15,puVar17[1]);" (assignment_expression "uVar18 = bigdiv(uVar15,puVar17[1])" identifier = (call_expression "bigdiv(uVar15,puVar17[1])" identifier (argument_list "(uVar15,puVar17[1])" ( identifier , (subscript_expression "puVar17[1]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar15 = bignum_from_long(1);" (assignment_expression "uVar15 = bignum_from_long(1)" identifier = (call_expression "bignum_from_long(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (while_statement "while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }" { (expression_statement "(*pcVar19)(puVar7,6,3,iVar22);" (call_expression "(*pcVar19)(puVar7,6,3,iVar22)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,6,3,iVar22)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "uVar10 = modpow(uVar15,uVar18,*puVar17);" (assignment_expression "uVar10 = modpow(uVar15,uVar18,*puVar17)" identifier = (call_expression "modpow(uVar15,uVar18,*puVar17)" identifier (argument_list "(uVar15,uVar18,*puVar17)" ( identifier , identifier , (pointer_expression "*puVar17" * identifier) )))) ;) (expression_statement "iVar4 = bignum_cmp(uVar10,*puVar14);" (assignment_expression "iVar4 = bignum_cmp(uVar10,*puVar14)" identifier = (call_expression "bignum_cmp(uVar10,*puVar14)" identifier (argument_list "(uVar10,*puVar14)" ( identifier , (pointer_expression "*puVar14" * identifier) )))) ;) (if_statement "if (0 < iVar4) break;" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar10 = bignum_add_long(uVar15,1);" (assignment_expression "uVar10 = bignum_add_long(uVar15,1)" identifier = (call_expression "bignum_add_long(uVar15,1)" identifier (argument_list "(uVar15,1)" ( identifier , number_literal )))) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "iVar22 = iVar22 + 1;" (assignment_expression "iVar22 = iVar22 + 1" identifier = (binary_expression "iVar22 + 1" identifier + number_literal)) ;) (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (expression_statement "puVar17[2] = uVar10;" (assignment_expression "puVar17[2] = uVar10" (subscript_expression "puVar17[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "uVar15 = copybn(puVar17[1]);" (assignment_expression "uVar15 = copybn(puVar17[1])" identifier = (call_expression "copybn(puVar17[1])" identifier (argument_list "(puVar17[1])" ( (subscript_expression "puVar17[1]" identifier [ number_literal ]) )))) ;) (expression_statement "decbn(uVar15);" (call_expression "decbn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "(*pcVar19)(puVar7,6,4,iVar4);" (call_expression "(*pcVar19)(puVar7,6,4,iVar4)" (parenthesized_expression "(*pcVar19)" ( (pointer_expression "*pcVar19" * identifier) )) (argument_list "(puVar7,6,4,iVar4)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (expression_statement "uVar28 = 0;" (assignment_expression "uVar28 = 0" identifier = number_literal) ;) (expression_statement "uVar18 = bn_power_2(0x9f);" (assignment_expression "uVar18 = bn_power_2(0x9f)" identifier = (call_expression "bn_power_2(0x9f)" identifier (argument_list "(0x9f)" ( number_literal )))) ;) (expression_statement "iVar24 = 0;" (assignment_expression "iVar24 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);" do (compound_statement "{\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    }" { (if_statement "if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }" if (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }" { (expression_statement "iVar22 = 7;" (assignment_expression "iVar22 = 7" identifier = number_literal) ;) (expression_statement "uVar28 = random_byte();" (assignment_expression "uVar28 = random_byte()" identifier = (call_expression "random_byte()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n        iVar22 = iVar22 + -1;\n      }" else (compound_statement "{\n        iVar22 = iVar22 + -1;\n      }" { (expression_statement "iVar22 = iVar22 + -1;" (assignment_expression "iVar22 = iVar22 + -1" identifier = (binary_expression "iVar22 + -1" identifier + number_literal)) ;) }))) (expression_statement "iVar31 = iVar24 + 1;" (assignment_expression "iVar31 = iVar24 + 1" identifier = (binary_expression "iVar24 + 1" identifier + number_literal)) ;) (expression_statement "bignum_set_bit(uVar18,iVar24,uVar28 & 1);" (call_expression "bignum_set_bit(uVar18,iVar24,uVar28 & 1)" identifier (argument_list "(uVar18,iVar24,uVar28 & 1)" ( identifier , identifier , (binary_expression "uVar28 & 1" identifier & number_literal) ))) ;) (expression_statement "uVar28 = (int)uVar28 >> 1;" (assignment_expression "uVar28 = (int)uVar28 >> 1" identifier = (binary_expression "(int)uVar28 >> 1" (cast_expression "(int)uVar28" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar24 = iVar31;" (assignment_expression "iVar24 = iVar31" identifier = identifier) ;) }) while (parenthesized_expression "(iVar31 != 0xa0)" ( (binary_expression "iVar31 != 0xa0" identifier != number_literal) )) ;) (expression_statement "iVar24 = bignum_cmp(uVar18,*puVar14);" (assignment_expression "iVar24 = bignum_cmp(uVar18,*puVar14)" identifier = (call_expression "bignum_cmp(uVar18,*puVar14)" identifier (argument_list "(uVar18,*puVar14)" ( identifier , (pointer_expression "*puVar14" * identifier) )))) ;) (if_statement "if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;" if (parenthesized_expression "((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0))" ( (binary_expression "(0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)" (parenthesized_expression "(0 < iVar24)" ( (binary_expression "0 < iVar24" number_literal < identifier) )) && (parenthesized_expression "(iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)" ( (comma_expression "iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0" (assignment_expression "iVar24 = bignum_cmp(uVar18,uVar15)" identifier = (call_expression "bignum_cmp(uVar18,uVar15)" identifier (argument_list "(uVar18,uVar15)" ( identifier , identifier )))) , (binary_expression "iVar24 < 0" identifier < number_literal)) ))) )) (break_statement "break;" break ;)) (expression_statement "freebn(uVar18);" (call_expression "freebn(uVar18)" identifier (argument_list "(uVar18)" ( identifier ))) ;) })) (expression_statement "puVar17[4] = uVar18;" (assignment_expression "puVar17[4] = uVar18" (subscript_expression "puVar17[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" identifier (argument_list "(uVar15)" ( identifier ))) ;) (expression_statement "uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);" (assignment_expression "uVar15 = modpow(puVar17[2],puVar17[4],*puVar17)" identifier = (call_expression "modpow(puVar17[2],puVar17[4],*puVar17)" identifier (argument_list "(puVar17[2],puVar17[4],*puVar17)" ( (subscript_expression "puVar17[2]" identifier [ number_literal ]) , (subscript_expression "puVar17[4]" identifier [ number_literal ]) , (pointer_expression "*puVar17" * identifier) )))) ;) (expression_statement "puVar17[3] = uVar15;" (assignment_expression "puVar17[3] = uVar15" (subscript_expression "puVar17[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }" if (parenthesized_expression "(iStack_2c4 != *piVar9)" ( (binary_expression "iStack_2c4 != *piVar9" identifier != (pointer_expression "*piVar9" * identifier)) )) (compound_statement "{\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }" { (expression_statement "iVar4 = iStack_2c4;" (assignment_expression "iVar4 = iStack_2c4" identifier = identifier) ;) (expression_statement "puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();" (assignment_expression "puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))()" identifier = (cast_expression "(undefined1 *)(**(code **)(pcVar30 + 0x3ac04))()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar30 + 0x3ac04))()" (parenthesized_expression "(**(code **)(pcVar30 + 0x3ac04))" ( (pointer_expression "**(code **)(pcVar30 + 0x3ac04)" * (pointer_expression "*(code **)(pcVar30 + 0x3ac04)" * (cast_expression "(code **)(pcVar30 + 0x3ac04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar30 + 0x3ac04)" ( (binary_expression "pcVar30 + 0x3ac04" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (if_statement "if (iVar4 == 0) {\n      return puVar7;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return puVar7;\n    }" { (return_statement "return puVar7;" return identifier ;) })) (if_statement "if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }" if (parenthesized_expression "(*(int *)(iVar4 + 8) != 0)" ( (binary_expression "*(int *)(iVar4 + 8) != 0" (pointer_expression "*(int *)(iVar4 + 8)" * (cast_expression "(int *)(iVar4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      freebn();\n    }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }" if (parenthesized_expression "(*(int *)(iVar4 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar4 + 0xc) != 0" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      freebn();\n    }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }" if (parenthesized_expression "(*(int *)(iVar4 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar4 + 0x10) != 0" (pointer_expression "*(int *)(iVar4 + 0x10)" * (cast_expression "(int *)(iVar4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      freebn();\n    }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }" if (parenthesized_expression "(*(int *)(iVar4 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar4 + 0x18) != 0" (pointer_expression "*(int *)(iVar4 + 0x18)" * (cast_expression "(int *)(iVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      freebn();\n    }" { (expression_statement "freebn();" (call_expression "freebn()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar7 = (undefined1 *)safefree(iVar4);" (assignment_expression "puVar7 = (undefined1 *)safefree(iVar4)" identifier = (cast_expression "(undefined1 *)safefree(iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safefree(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))))) ;) (return_statement "return puVar7;" return identifier ;) })) (return_statement "return (undefined1 *)0x1;" return (cast_expression "(undefined1 *)0x1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (field_expression IDENT . field_identifier) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , LIT ))) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression (field_expression IDENT -> field_identifier) [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT -> field_identifier)) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier)))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier)))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) , (binary_expression IDENT != LIT)) ))) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (unary_expression - IDENT)) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (unary_expression - IDENT)) )))) & (binary_expression LIT << (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT))) | (binary_expression IDENT >> (binary_expression IDENT * LIT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (unary_expression - IDENT)) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (unary_expression - IDENT)) )))) & (binary_expression LIT >> (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT))) | (binary_expression IDENT << (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT)))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , (binary_expression IDENT << LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , (binary_expression LIT / IDENT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , LIT , LIT , LIT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , IDENT , LIT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT & LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT < LIT)) ))) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined1 *\ndss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)\n\n{\n  undefined1 *puVar1;\n  byte bVar2;\n  undefined1 uVar3;\n  int iVar4;\n  SHA512_CTX *pSVar5;\n  SHA512_CTX *pSVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  undefined1 uVar11;\n  int *piVar9;\n  undefined4 uVar10;\n  uchar *puVar12;\n  uchar *puVar13;\n  undefined4 *puVar14;\n  undefined4 uVar15;\n  uint uVar16;\n  undefined4 *puVar17;\n  undefined4 uVar18;\n  code *pcVar19;\n  undefined4 *puVar20;\n  undefined4 *puVar21;\n  int iVar22;\n  undefined *puVar23;\n  int iVar24;\n  undefined *puVar25;\n  undefined *puVar26;\n  undefined4 *puVar27;\n  uint uVar28;\n  undefined *puVar29;\n  code *pcVar30;\n  int iVar31;\n  undefined4 uStack_2cc;\n  undefined4 uStack_2c8;\n  int iStack_2c4;\n  undefined4 *puStack_2c0;\n  int iStack_2bc;\n  undefined *puStack_2b8;\n  undefined1 *puStack_2b4;\n  undefined1 *puStack_2b0;\n  undefined4 *puStack_2ac;\n  undefined1 *puStack_2a8;\n  undefined4 *puStack_2a4;\n  undefined4 *puStack_2a0;\n  undefined4 uStack_29c;\n  undefined4 local_288;\n  undefined *local_280;\n  undefined1 auStack_278 [20];\n  undefined4 *local_264;\n  SHA512_CTX *local_260;\n  SHA512_CTX *local_25c;\n  undefined *local_258;\n  SHA512_CTX *local_254;\n  undefined *local_250;\n  undefined4 *local_24c;\n  undefined *local_248;\n  uchar *local_244;\n  undefined1 *local_240;\n  undefined4 local_23c;\n  undefined1 local_214 [212];\n  uchar local_140 [4];\n  undefined4 local_13c [52];\n  int local_6c;\n  undefined4 *local_2c;\n  \n  puVar29 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;\n  puVar20 = param_4;\n  SHA512_Init((SHA512_CTX *)local_214);\n  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);\n  iVar4 = bignum_bitcount(param_3);\n  iVar24 = iVar4 + 8;\n  if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }\n  iVar24 = iVar24 >> 3;\n  local_6c = iVar24;\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);\n  if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }\n  puVar25 = PTR_One_0006a2cc;\n  puVar26 = PTR_Zero_0006a2b8;\n  smemclr((SHA512_CTX *)&local_6c,4);\n  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);\n  SHA512_Init((SHA512_CTX *)local_214);\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);\n  puVar23 = PTR_DAT_0006a068 + 0x3134;\n  pSVar5 = (SHA512_CTX *)local_214;\n  puVar12 = local_140;\n  while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }\n  smemclr((SHA512_CTX *)local_214,0xd4);\n  uVar15 = 0x40;\n  smemclr((SHA512_CTX *)&local_6c,0x40);\n  if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }\n  uVar18 = 0x2f68c;\n  puVar21 = local_2c;\n  puVar29 = PTR___stack_chk_fail_0006a574;\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  local_280 = puVar29 + 0x429a4;\n  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);\n  puVar8 = auStack_278;\n  local_264 = (undefined4 *)*puVar27;\n  local_260 = (SHA512_CTX *)local_214;\n  local_25c = (SHA512_CTX *)&local_6c;\n  local_258 = puVar23;\n  local_254 = (SHA512_CTX *)(local_214 + 0xd0);\n  local_250 = puVar25;\n  local_24c = param_2;\n  local_248 = puVar26;\n  local_244 = local_140;\n  local_240 = puVar7;\n  local_23c = uVar18;\n  SHA_Simple(uVar15,uVar10,puVar8);\n  local_288 = 0x14;\n  puVar7 = puVar8;\n  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);\n  iVar24 = modinv(iVar4,puVar21[1]);\n  puVar29 = local_280;\n  if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }\n  pcVar30 = *(code **)(puVar29 + -0x7abc);\n  uVar15 = 0x2f96c;\n  (*pcVar30)();\n  piVar9 = *(int **)(pcVar30 + 0x3ac24);\n  iStack_2c4 = *piVar9;\n  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);\n  iVar22 = 1;\n  puStack_2c0 = puVar21;\n  iStack_2bc = iVar4;\n  puStack_2b8 = puVar23;\n  puStack_2b4 = puVar8;\n  puStack_2b0 = puVar25;\n  puStack_2ac = param_2;\n  puStack_2a8 = puVar26;\n  puStack_2a4 = puVar27;\n  puStack_2a0 = puVar20;\n  uStack_29c = uVar15;\n  (*pcVar19)(puVar7,4,1,0x2800);\n  (*pcVar19)(puVar7,3,1,0xffffd10e);\n  (*pcVar19)(puVar7,4,2,iVar24 << 6);\n  if (iVar24 == 0) {\n    trap(7);\n  }\n  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);\n  (*pcVar19)(puVar7,4,3,0x2000);\n  (*pcVar19)(puVar7,3,3,0xffff8000);\n  (*pcVar19)(puVar7,4,4,0x2000);\n  (*pcVar19)(puVar7,3,4,0xffff4000);\n  (*pcVar19)(puVar7,5,0,0);\n  invent_firstbits(&uStack_2cc,&uStack_2c8);\n  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);\n  puVar17[1] = uVar15;\n  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);\n  *puVar17 = uVar15;\n  uVar18 = bigdiv(uVar15,puVar17[1]);\n  uVar15 = bignum_from_long(1);\n  while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }\n  puVar17[2] = uVar10;\n  freebn(uVar15);\n  uVar15 = copybn(puVar17[1]);\n  decbn(uVar15);\n  iVar4 = 0;\n  while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }\n  puVar17[4] = uVar18;\n  freebn(uVar15);\n  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);\n  puVar17[3] = uVar15;\n  if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }\n  return (undefined1 *)0x1;\n}" (type_identifier "undefined1") (pointer_declarator "*\ndss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" (* "*") (function_declarator "dss_gen_k(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" (identifier "dss_gen_k") (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,\n         undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")")))) (compound_statement "{\n  undefined1 *puVar1;\n  byte bVar2;\n  undefined1 uVar3;\n  int iVar4;\n  SHA512_CTX *pSVar5;\n  SHA512_CTX *pSVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  undefined1 uVar11;\n  int *piVar9;\n  undefined4 uVar10;\n  uchar *puVar12;\n  uchar *puVar13;\n  undefined4 *puVar14;\n  undefined4 uVar15;\n  uint uVar16;\n  undefined4 *puVar17;\n  undefined4 uVar18;\n  code *pcVar19;\n  undefined4 *puVar20;\n  undefined4 *puVar21;\n  int iVar22;\n  undefined *puVar23;\n  int iVar24;\n  undefined *puVar25;\n  undefined *puVar26;\n  undefined4 *puVar27;\n  uint uVar28;\n  undefined *puVar29;\n  code *pcVar30;\n  int iVar31;\n  undefined4 uStack_2cc;\n  undefined4 uStack_2c8;\n  int iStack_2c4;\n  undefined4 *puStack_2c0;\n  int iStack_2bc;\n  undefined *puStack_2b8;\n  undefined1 *puStack_2b4;\n  undefined1 *puStack_2b0;\n  undefined4 *puStack_2ac;\n  undefined1 *puStack_2a8;\n  undefined4 *puStack_2a4;\n  undefined4 *puStack_2a0;\n  undefined4 uStack_29c;\n  undefined4 local_288;\n  undefined *local_280;\n  undefined1 auStack_278 [20];\n  undefined4 *local_264;\n  SHA512_CTX *local_260;\n  SHA512_CTX *local_25c;\n  undefined *local_258;\n  SHA512_CTX *local_254;\n  undefined *local_250;\n  undefined4 *local_24c;\n  undefined *local_248;\n  uchar *local_244;\n  undefined1 *local_240;\n  undefined4 local_23c;\n  undefined1 local_214 [212];\n  uchar local_140 [4];\n  undefined4 local_13c [52];\n  int local_6c;\n  undefined4 *local_2c;\n  \n  puVar29 = PTR___stack_chk_guard_0006a594;\n  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;\n  puVar20 = param_4;\n  SHA512_Init((SHA512_CTX *)local_214);\n  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);\n  iVar4 = bignum_bitcount(param_3);\n  iVar24 = iVar4 + 8;\n  if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }\n  iVar24 = iVar24 >> 3;\n  local_6c = iVar24;\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);\n  if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }\n  puVar25 = PTR_One_0006a2cc;\n  puVar26 = PTR_Zero_0006a2b8;\n  smemclr((SHA512_CTX *)&local_6c,4);\n  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);\n  SHA512_Init((SHA512_CTX *)local_214);\n  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);\n  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);\n  puVar23 = PTR_DAT_0006a068 + 0x3134;\n  pSVar5 = (SHA512_CTX *)local_214;\n  puVar12 = local_140;\n  while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }\n  smemclr((SHA512_CTX *)local_214,0xd4);\n  uVar15 = 0x40;\n  smemclr((SHA512_CTX *)&local_6c,0x40);\n  if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }\n  uVar18 = 0x2f68c;\n  puVar21 = local_2c;\n  puVar29 = PTR___stack_chk_fail_0006a574;\n  (*(code *)PTR___stack_chk_fail_0006a574)();\n  local_280 = puVar29 + 0x429a4;\n  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);\n  puVar8 = auStack_278;\n  local_264 = (undefined4 *)*puVar27;\n  local_260 = (SHA512_CTX *)local_214;\n  local_25c = (SHA512_CTX *)&local_6c;\n  local_258 = puVar23;\n  local_254 = (SHA512_CTX *)(local_214 + 0xd0);\n  local_250 = puVar25;\n  local_24c = param_2;\n  local_248 = puVar26;\n  local_244 = local_140;\n  local_240 = puVar7;\n  local_23c = uVar18;\n  SHA_Simple(uVar15,uVar10,puVar8);\n  local_288 = 0x14;\n  puVar7 = puVar8;\n  iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);\n  iVar24 = modinv(iVar4,puVar21[1]);\n  puVar29 = local_280;\n  if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }\n  pcVar30 = *(code **)(puVar29 + -0x7abc);\n  uVar15 = 0x2f96c;\n  (*pcVar30)();\n  piVar9 = *(int **)(pcVar30 + 0x3ac24);\n  iStack_2c4 = *piVar9;\n  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);\n  iVar22 = 1;\n  puStack_2c0 = puVar21;\n  iStack_2bc = iVar4;\n  puStack_2b8 = puVar23;\n  puStack_2b4 = puVar8;\n  puStack_2b0 = puVar25;\n  puStack_2ac = param_2;\n  puStack_2a8 = puVar26;\n  puStack_2a4 = puVar27;\n  puStack_2a0 = puVar20;\n  uStack_29c = uVar15;\n  (*pcVar19)(puVar7,4,1,0x2800);\n  (*pcVar19)(puVar7,3,1,0xffffd10e);\n  (*pcVar19)(puVar7,4,2,iVar24 << 6);\n  if (iVar24 == 0) {\n    trap(7);\n  }\n  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);\n  (*pcVar19)(puVar7,4,3,0x2000);\n  (*pcVar19)(puVar7,3,3,0xffff8000);\n  (*pcVar19)(puVar7,4,4,0x2000);\n  (*pcVar19)(puVar7,3,4,0xffff4000);\n  (*pcVar19)(puVar7,5,0,0);\n  invent_firstbits(&uStack_2cc,&uStack_2c8);\n  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);\n  puVar17[1] = uVar15;\n  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);\n  *puVar17 = uVar15;\n  uVar18 = bigdiv(uVar15,puVar17[1]);\n  uVar15 = bignum_from_long(1);\n  while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }\n  puVar17[2] = uVar10;\n  freebn(uVar15);\n  uVar15 = copybn(puVar17[1]);\n  decbn(uVar15);\n  iVar4 = 0;\n  while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }\n  puVar17[4] = uVar18;\n  freebn(uVar15);\n  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);\n  puVar17[3] = uVar15;\n  if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }\n  return (undefined1 *)0x1;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "undefined1 uVar3;" (type_identifier "undefined1") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "SHA512_CTX *pSVar5;" (type_identifier "SHA512_CTX") (pointer_declarator "*pSVar5" (* "*") (identifier "pSVar5")) (; ";")) (declaration "SHA512_CTX *pSVar6;" (type_identifier "SHA512_CTX") (pointer_declarator "*pSVar6" (* "*") (identifier "pSVar6")) (; ";")) (declaration "undefined1 *puVar7;" (type_identifier "undefined1") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined1 *puVar8;" (type_identifier "undefined1") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined1 uVar11;" (type_identifier "undefined1") (identifier "uVar11") (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "uchar *puVar12;" (type_identifier "uchar") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "uchar *puVar13;" (type_identifier "uchar") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "undefined4 *puVar14;" (type_identifier "undefined4") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (declaration "undefined4 uVar15;" (type_identifier "undefined4") (identifier "uVar15") (; ";")) (declaration "uint uVar16;" (type_identifier "uint") (identifier "uVar16") (; ";")) (declaration "undefined4 *puVar17;" (type_identifier "undefined4") (pointer_declarator "*puVar17" (* "*") (identifier "puVar17")) (; ";")) (declaration "undefined4 uVar18;" (type_identifier "undefined4") (identifier "uVar18") (; ";")) (declaration "code *pcVar19;" (type_identifier "code") (pointer_declarator "*pcVar19" (* "*") (identifier "pcVar19")) (; ";")) (declaration "undefined4 *puVar20;" (type_identifier "undefined4") (pointer_declarator "*puVar20" (* "*") (identifier "puVar20")) (; ";")) (declaration "undefined4 *puVar21;" (type_identifier "undefined4") (pointer_declarator "*puVar21" (* "*") (identifier "puVar21")) (; ";")) (declaration "int iVar22;" (primitive_type "int") (identifier "iVar22") (; ";")) (declaration "undefined *puVar23;" (type_identifier "undefined") (pointer_declarator "*puVar23" (* "*") (identifier "puVar23")) (; ";")) (declaration "int iVar24;" (primitive_type "int") (identifier "iVar24") (; ";")) (declaration "undefined *puVar25;" (type_identifier "undefined") (pointer_declarator "*puVar25" (* "*") (identifier "puVar25")) (; ";")) (declaration "undefined *puVar26;" (type_identifier "undefined") (pointer_declarator "*puVar26" (* "*") (identifier "puVar26")) (; ";")) (declaration "undefined4 *puVar27;" (type_identifier "undefined4") (pointer_declarator "*puVar27" (* "*") (identifier "puVar27")) (; ";")) (declaration "uint uVar28;" (type_identifier "uint") (identifier "uVar28") (; ";")) (declaration "undefined *puVar29;" (type_identifier "undefined") (pointer_declarator "*puVar29" (* "*") (identifier "puVar29")) (; ";")) (declaration "code *pcVar30;" (type_identifier "code") (pointer_declarator "*pcVar30" (* "*") (identifier "pcVar30")) (; ";")) (declaration "int iVar31;" (primitive_type "int") (identifier "iVar31") (; ";")) (declaration "undefined4 uStack_2cc;" (type_identifier "undefined4") (identifier "uStack_2cc") (; ";")) (declaration "undefined4 uStack_2c8;" (type_identifier "undefined4") (identifier "uStack_2c8") (; ";")) (declaration "int iStack_2c4;" (primitive_type "int") (identifier "iStack_2c4") (; ";")) (declaration "undefined4 *puStack_2c0;" (type_identifier "undefined4") (pointer_declarator "*puStack_2c0" (* "*") (identifier "puStack_2c0")) (; ";")) (declaration "int iStack_2bc;" (primitive_type "int") (identifier "iStack_2bc") (; ";")) (declaration "undefined *puStack_2b8;" (type_identifier "undefined") (pointer_declarator "*puStack_2b8" (* "*") (identifier "puStack_2b8")) (; ";")) (declaration "undefined1 *puStack_2b4;" (type_identifier "undefined1") (pointer_declarator "*puStack_2b4" (* "*") (identifier "puStack_2b4")) (; ";")) (declaration "undefined1 *puStack_2b0;" (type_identifier "undefined1") (pointer_declarator "*puStack_2b0" (* "*") (identifier "puStack_2b0")) (; ";")) (declaration "undefined4 *puStack_2ac;" (type_identifier "undefined4") (pointer_declarator "*puStack_2ac" (* "*") (identifier "puStack_2ac")) (; ";")) (declaration "undefined1 *puStack_2a8;" (type_identifier "undefined1") (pointer_declarator "*puStack_2a8" (* "*") (identifier "puStack_2a8")) (; ";")) (declaration "undefined4 *puStack_2a4;" (type_identifier "undefined4") (pointer_declarator "*puStack_2a4" (* "*") (identifier "puStack_2a4")) (; ";")) (declaration "undefined4 *puStack_2a0;" (type_identifier "undefined4") (pointer_declarator "*puStack_2a0" (* "*") (identifier "puStack_2a0")) (; ";")) (declaration "undefined4 uStack_29c;" (type_identifier "undefined4") (identifier "uStack_29c") (; ";")) (declaration "undefined4 local_288;" (type_identifier "undefined4") (identifier "local_288") (; ";")) (declaration "undefined *local_280;" (type_identifier "undefined") (pointer_declarator "*local_280" (* "*") (identifier "local_280")) (; ";")) (declaration "undefined1 auStack_278 [20];" (type_identifier "undefined1") (array_declarator "auStack_278 [20]" (identifier "auStack_278") ([ "[") (number_literal "20") (] "]")) (; ";")) (declaration "undefined4 *local_264;" (type_identifier "undefined4") (pointer_declarator "*local_264" (* "*") (identifier "local_264")) (; ";")) (declaration "SHA512_CTX *local_260;" (type_identifier "SHA512_CTX") (pointer_declarator "*local_260" (* "*") (identifier "local_260")) (; ";")) (declaration "SHA512_CTX *local_25c;" (type_identifier "SHA512_CTX") (pointer_declarator "*local_25c" (* "*") (identifier "local_25c")) (; ";")) (declaration "undefined *local_258;" (type_identifier "undefined") (pointer_declarator "*local_258" (* "*") (identifier "local_258")) (; ";")) (declaration "SHA512_CTX *local_254;" (type_identifier "SHA512_CTX") (pointer_declarator "*local_254" (* "*") (identifier "local_254")) (; ";")) (declaration "undefined *local_250;" (type_identifier "undefined") (pointer_declarator "*local_250" (* "*") (identifier "local_250")) (; ";")) (declaration "undefined4 *local_24c;" (type_identifier "undefined4") (pointer_declarator "*local_24c" (* "*") (identifier "local_24c")) (; ";")) (declaration "undefined *local_248;" (type_identifier "undefined") (pointer_declarator "*local_248" (* "*") (identifier "local_248")) (; ";")) (declaration "uchar *local_244;" (type_identifier "uchar") (pointer_declarator "*local_244" (* "*") (identifier "local_244")) (; ";")) (declaration "undefined1 *local_240;" (type_identifier "undefined1") (pointer_declarator "*local_240" (* "*") (identifier "local_240")) (; ";")) (declaration "undefined4 local_23c;" (type_identifier "undefined4") (identifier "local_23c") (; ";")) (declaration "undefined1 local_214 [212];" (type_identifier "undefined1") (array_declarator "local_214 [212]" (identifier "local_214") ([ "[") (number_literal "212") (] "]")) (; ";")) (declaration "uchar local_140 [4];" (type_identifier "uchar") (array_declarator "local_140 [4]" (identifier "local_140") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_13c [52];" (type_identifier "undefined4") (array_declarator "local_13c [52]" (identifier "local_13c") ([ "[") (number_literal "52") (] "]")) (; ";")) (declaration "int local_6c;" (primitive_type "int") (identifier "local_6c") (; ";")) (declaration "undefined4 *local_2c;" (type_identifier "undefined4") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (expression_statement "puVar29 = PTR___stack_chk_guard_0006a594;" (assignment_expression "puVar29 = PTR___stack_chk_guard_0006a594" (identifier "puVar29") (= "=") (identifier "PTR___stack_chk_guard_0006a594")) (; ";")) (expression_statement "local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;" (assignment_expression "local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594" (identifier "local_2c") (= "=") (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_0006a594" (* "*") (cast_expression "(undefined4 **)PTR___stack_chk_guard_0006a594" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_0006a594")))) (; ";")) (expression_statement "puVar20 = param_4;" (assignment_expression "puVar20 = param_4" (identifier "puVar20") (= "=") (identifier "param_4")) (; ";")) (expression_statement "SHA512_Init((SHA512_CTX *)local_214);" (call_expression "SHA512_Init((SHA512_CTX *)local_214)" (identifier "SHA512_Init") (argument_list "((SHA512_CTX *)local_214)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) () ")"))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_0006a51c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_0006a51c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0006a51c" (* "*") (cast_expression "(code *)PTR_strlen_0006a51c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0006a51c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1)" (identifier "SHA512_Bytes") (argument_list "((SHA512_CTX *)local_214,param_1,iVar4 + 1)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) (, ",") (identifier "param_1") (, ",") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "iVar4 = bignum_bitcount(param_3);" (assignment_expression "iVar4 = bignum_bitcount(param_3)" (identifier "iVar4") (= "=") (call_expression "bignum_bitcount(param_3)" (identifier "bignum_bitcount") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar24 = iVar4 + 8;" (assignment_expression "iVar24 = iVar4 + 8" (identifier "iVar24") (= "=") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (iVar24 < 0) {\n    iVar24 = iVar4 + 0xf;\n  }" (if "if") (parenthesized_expression "(iVar24 < 0)" (( "(") (binary_expression "iVar24 < 0" (identifier "iVar24") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar24 = iVar4 + 0xf;\n  }" ({ "{") (expression_statement "iVar24 = iVar4 + 0xf;" (assignment_expression "iVar24 = iVar4 + 0xf" (identifier "iVar24") (= "=") (binary_expression "iVar4 + 0xf" (identifier "iVar4") (+ "+") (number_literal "0xf"))) (; ";")) (} "}"))) (expression_statement "iVar24 = iVar24 >> 3;" (assignment_expression "iVar24 = iVar24 >> 3" (identifier "iVar24") (= "=") (binary_expression "iVar24 >> 3" (identifier "iVar24") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "local_6c = iVar24;" (assignment_expression "local_6c = iVar24" (identifier "local_6c") (= "=") (identifier "iVar24")) (; ";")) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4)" (identifier "SHA512_Bytes") (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) (, ",") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c"))) (, ",") (number_literal "4") () ")"))) (; ";")) (if_statement "if (-1 < iVar4) {\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);\n  }" ({ "{") (do_statement "do {\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    } while (0 < iVar24);" (do "do") (compound_statement "{\n      iVar24 = iVar24 + -1;\n      uVar11 = bignum_byte(param_3,iVar24);\n      local_6c = CONCAT13(uVar11,local_6c._1_3_);\n      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);\n    }" ({ "{") (expression_statement "iVar24 = iVar24 + -1;" (assignment_expression "iVar24 = iVar24 + -1" (identifier "iVar24") (= "=") (binary_expression "iVar24 + -1" (identifier "iVar24") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar11 = bignum_byte(param_3,iVar24);" (assignment_expression "uVar11 = bignum_byte(param_3,iVar24)" (identifier "uVar11") (= "=") (call_expression "bignum_byte(param_3,iVar24)" (identifier "bignum_byte") (argument_list "(param_3,iVar24)" (( "(") (identifier "param_3") (, ",") (identifier "iVar24") () ")")))) (; ";")) (expression_statement "local_6c = CONCAT13(uVar11,local_6c._1_3_);" (assignment_expression "local_6c = CONCAT13(uVar11,local_6c._1_3_)" (identifier "local_6c") (= "=") (call_expression "CONCAT13(uVar11,local_6c._1_3_)" (identifier "CONCAT13") (argument_list "(uVar11,local_6c._1_3_)" (( "(") (identifier "uVar11") (, ",") (field_expression "local_6c._1_3_" (identifier "local_6c") (. ".") (field_identifier "_1_3_")) () ")")))) (; ";")) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1)" (identifier "SHA512_Bytes") (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) (, ",") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c"))) (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0 < iVar24)" (( "(") (binary_expression "0 < iVar24" (number_literal "0") (< "<") (identifier "iVar24")) () ")")) (; ";")) (} "}"))) (expression_statement "puVar25 = PTR_One_0006a2cc;" (assignment_expression "puVar25 = PTR_One_0006a2cc" (identifier "puVar25") (= "=") (identifier "PTR_One_0006a2cc")) (; ";")) (expression_statement "puVar26 = PTR_Zero_0006a2b8;" (assignment_expression "puVar26 = PTR_Zero_0006a2b8" (identifier "puVar26") (= "=") (identifier "PTR_Zero_0006a2b8")) (; ";")) (expression_statement "smemclr((SHA512_CTX *)&local_6c,4);" (call_expression "smemclr((SHA512_CTX *)&local_6c,4)" (identifier "smemclr") (argument_list "((SHA512_CTX *)&local_6c,4)" (( "(") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c"))) (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);" (call_expression "SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c)" (identifier "SHA512_Final") (argument_list "((uchar *)local_214,(SHA512_CTX *)&local_6c)" (( "(") (cast_expression "(uchar *)local_214" (( "(") (type_descriptor "uchar *" (type_identifier "uchar") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) (, ",") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c"))) () ")"))) (; ";")) (expression_statement "SHA512_Init((SHA512_CTX *)local_214);" (call_expression "SHA512_Init((SHA512_CTX *)local_214)" (identifier "SHA512_Init") (argument_list "((SHA512_CTX *)local_214)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) () ")"))) (; ";")) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40)" (identifier "SHA512_Bytes") (argument_list "((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) (, ",") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c"))) (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5)" (identifier "SHA512_Bytes") (argument_list "((SHA512_CTX *)local_214,param_4,param_5)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "puVar23 = PTR_DAT_0006a068 + 0x3134;" (assignment_expression "puVar23 = PTR_DAT_0006a068 + 0x3134" (identifier "puVar23") (= "=") (binary_expression "PTR_DAT_0006a068 + 0x3134" (identifier "PTR_DAT_0006a068") (+ "+") (number_literal "0x3134"))) (; ";")) (expression_statement "pSVar5 = (SHA512_CTX *)local_214;" (assignment_expression "pSVar5 = (SHA512_CTX *)local_214" (identifier "pSVar5") (= "=") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214"))) (; ";")) (expression_statement "puVar12 = local_140;" (assignment_expression "puVar12 = local_140" (identifier "puVar12") (= "=") (identifier "local_140")) (; ";")) (while_statement "while( true ) {\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));\n    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;\n    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);\n    smemclr(local_140,0xd4);\n    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);\n    puVar7 = (undefined1 *)bigmod(uVar15,param_2);\n    freebn(uVar15);\n    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);\n    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;\n    freebn(puVar7);\n    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);\n    pSVar5 = (SHA512_CTX *)local_214;\n    puVar12 = local_140;\n  }" ({ "{") (do_statement "do {\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));" (do "do") (compound_statement "{\n      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);\n      puVar13 = puVar12 + 0x10;\n      uVar10 = (undefined4)pSVar5->h[0];\n      uVar18 = *(undefined4 *)(pSVar5->h + 1);\n      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);\n      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;\n      *(undefined4 *)(puVar12 + 4) = uVar10;\n      *(undefined4 *)(puVar12 + 8) = uVar18;\n      *(undefined4 *)(puVar12 + 0xc) = uVar15;\n      pSVar5 = pSVar6;\n      puVar12 = puVar13;\n    }" ({ "{") (expression_statement "pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);" (assignment_expression "pSVar6 = (SHA512_CTX *)(pSVar5->h + 2)" (identifier "pSVar6") (= "=") (cast_expression "(SHA512_CTX *)(pSVar5->h + 2)" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pSVar5->h + 2)" (( "(") (binary_expression "pSVar5->h + 2" (field_expression "pSVar5->h" (identifier "pSVar5") (-> "->") (field_identifier "h")) (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "puVar13 = puVar12 + 0x10;" (assignment_expression "puVar13 = puVar12 + 0x10" (identifier "puVar13") (= "=") (binary_expression "puVar12 + 0x10" (identifier "puVar12") (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "uVar10 = (undefined4)pSVar5->h[0];" (assignment_expression "uVar10 = (undefined4)pSVar5->h[0]" (identifier "uVar10") (= "=") (cast_expression "(undefined4)pSVar5->h[0]" (( "(") (type_descriptor "undefined4" (type_identifier "undefined4")) () ")") (subscript_expression "pSVar5->h[0]" (field_expression "pSVar5->h" (identifier "pSVar5") (-> "->") (field_identifier "h")) ([ "[") (number_literal "0") (] "]")))) (; ";")) (expression_statement "uVar18 = *(undefined4 *)(pSVar5->h + 1);" (assignment_expression "uVar18 = *(undefined4 *)(pSVar5->h + 1)" (identifier "uVar18") (= "=") (pointer_expression "*(undefined4 *)(pSVar5->h + 1)" (* "*") (cast_expression "(undefined4 *)(pSVar5->h + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pSVar5->h + 1)" (( "(") (binary_expression "pSVar5->h + 1" (field_expression "pSVar5->h" (identifier "pSVar5") (-> "->") (field_identifier "h")) (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);" (assignment_expression "uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc)" (identifier "uVar15") (= "=") (pointer_expression "*(undefined4 *)((int)pSVar5->h + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)pSVar5->h + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pSVar5->h + 0xc)" (( "(") (binary_expression "(int)pSVar5->h + 0xc" (cast_expression "(int)pSVar5->h" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "pSVar5->h" (identifier "pSVar5") (-> "->") (field_identifier "h"))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;" (assignment_expression "*(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h" (pointer_expression "*(undefined4 *)puVar12" (* "*") (cast_expression "(undefined4 *)puVar12" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar12"))) (= "=") (pointer_expression "*(undefined4 *)pSVar5->h" (* "*") (cast_expression "(undefined4 *)pSVar5->h" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "pSVar5->h" (identifier "pSVar5") (-> "->") (field_identifier "h"))))) (; ";")) (expression_statement "*(undefined4 *)(puVar12 + 4) = uVar10;" (assignment_expression "*(undefined4 *)(puVar12 + 4) = uVar10" (pointer_expression "*(undefined4 *)(puVar12 + 4)" (* "*") (cast_expression "(undefined4 *)(puVar12 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 4)" (( "(") (binary_expression "puVar12 + 4" (identifier "puVar12") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "*(undefined4 *)(puVar12 + 8) = uVar18;" (assignment_expression "*(undefined4 *)(puVar12 + 8) = uVar18" (pointer_expression "*(undefined4 *)(puVar12 + 8)" (* "*") (cast_expression "(undefined4 *)(puVar12 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 8)" (( "(") (binary_expression "puVar12 + 8" (identifier "puVar12") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar18")) (; ";")) (expression_statement "*(undefined4 *)(puVar12 + 0xc) = uVar15;" (assignment_expression "*(undefined4 *)(puVar12 + 0xc) = uVar15" (pointer_expression "*(undefined4 *)(puVar12 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar12 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0xc)" (( "(") (binary_expression "puVar12 + 0xc" (identifier "puVar12") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar15")) (; ";")) (expression_statement "pSVar5 = pSVar6;" (assignment_expression "pSVar5 = pSVar6" (identifier "pSVar5") (= "=") (identifier "pSVar6")) (; ";")) (expression_statement "puVar12 = puVar13;" (assignment_expression "puVar12 = puVar13" (identifier "puVar12") (= "=") (identifier "puVar13")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pSVar6 != (SHA512_CTX *)(local_214 + 0xd0))" (( "(") (binary_expression "pSVar6 != (SHA512_CTX *)(local_214 + 0xd0)" (identifier "pSVar6") (!= "!=") (cast_expression "(SHA512_CTX *)(local_214 + 0xd0)" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_214 + 0xd0)" (( "(") (binary_expression "local_214 + 0xd0" (identifier "local_214") (+ "+") (number_literal "0xd0")) () ")")))) () ")")) (; ";")) (expression_statement "*(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;" (assignment_expression "*(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h" (pointer_expression "*(undefined4 *)puVar13" (* "*") (cast_expression "(undefined4 *)puVar13" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar13"))) (= "=") (pointer_expression "*(undefined4 *)pSVar6->h" (* "*") (cast_expression "(undefined4 *)pSVar6->h" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "pSVar6->h" (identifier "pSVar6") (-> "->") (field_identifier "h"))))) (; ";")) (expression_statement "SHA512_Final(local_140,(SHA512_CTX *)&local_6c);" (call_expression "SHA512_Final(local_140,(SHA512_CTX *)&local_6c)" (identifier "SHA512_Final") (argument_list "(local_140,(SHA512_CTX *)&local_6c)" (( "(") (identifier "local_140") (, ",") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c"))) () ")"))) (; ";")) (expression_statement "smemclr(local_140,0xd4);" (call_expression "smemclr(local_140,0xd4)" (identifier "smemclr") (argument_list "(local_140,0xd4)" (( "(") (identifier "local_140") (, ",") (number_literal "0xd4") () ")"))) (; ";")) (expression_statement "uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);" (assignment_expression "uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40)" (identifier "uVar15") (= "=") (call_expression "bignum_from_bytes((SHA512_CTX *)&local_6c,0x40)" (identifier "bignum_from_bytes") (argument_list "((SHA512_CTX *)&local_6c,0x40)" (( "(") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c"))) (, ",") (number_literal "0x40") () ")")))) (; ";")) (expression_statement "puVar7 = (undefined1 *)bigmod(uVar15,param_2);" (assignment_expression "puVar7 = (undefined1 *)bigmod(uVar15,param_2)" (identifier "puVar7") (= "=") (cast_expression "(undefined1 *)bigmod(uVar15,param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bigmod(uVar15,param_2)" (identifier "bigmod") (argument_list "(uVar15,param_2)" (( "(") (identifier "uVar15") (, ",") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" (identifier "freebn") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);" (assignment_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25)" (identifier "iVar4") (= "=") (call_expression "bignum_cmp(puVar7,*(undefined4 *)puVar25)" (identifier "bignum_cmp") (argument_list "(puVar7,*(undefined4 *)puVar25)" (( "(") (identifier "puVar7") (, ",") (pointer_expression "*(undefined4 *)puVar25" (* "*") (cast_expression "(undefined4 *)puVar25" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar25"))) () ")")))) (; ";")) (if_statement "if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;" (if "if") (parenthesized_expression "((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0))" (( "(") (binary_expression "(iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)" (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)" (( "(") (comma_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0" (assignment_expression "iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26)" (identifier "iVar4") (= "=") (call_expression "bignum_cmp(puVar7,*(undefined4 *)puVar26)" (identifier "bignum_cmp") (argument_list "(puVar7,*(undefined4 *)puVar26)" (( "(") (identifier "puVar7") (, ",") (pointer_expression "*(undefined4 *)puVar26" (* "*") (cast_expression "(undefined4 *)puVar26" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar26"))) () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "freebn(puVar7);" (call_expression "freebn(puVar7)" (identifier "freebn") (argument_list "(puVar7)" (( "(") (identifier "puVar7") () ")"))) (; ";")) (expression_statement "SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);" (call_expression "SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1)" (identifier "SHA512_Bytes") (argument_list "((SHA512_CTX *)local_214,puVar23,1)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) (, ",") (identifier "puVar23") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "pSVar5 = (SHA512_CTX *)local_214;" (assignment_expression "pSVar5 = (SHA512_CTX *)local_214" (identifier "pSVar5") (= "=") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214"))) (; ";")) (expression_statement "puVar12 = local_140;" (assignment_expression "puVar12 = local_140" (identifier "puVar12") (= "=") (identifier "local_140")) (; ";")) (} "}"))) (expression_statement "smemclr((SHA512_CTX *)local_214,0xd4);" (call_expression "smemclr((SHA512_CTX *)local_214,0xd4)" (identifier "smemclr") (argument_list "((SHA512_CTX *)local_214,0xd4)" (( "(") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214")) (, ",") (number_literal "0xd4") () ")"))) (; ";")) (expression_statement "uVar15 = 0x40;" (assignment_expression "uVar15 = 0x40" (identifier "uVar15") (= "=") (number_literal "0x40")) (; ";")) (expression_statement "smemclr((SHA512_CTX *)&local_6c,0x40);" (call_expression "smemclr((SHA512_CTX *)&local_6c,0x40)" (identifier "smemclr") (argument_list "((SHA512_CTX *)&local_6c,0x40)" (( "(") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c"))) (, ",") (number_literal "0x40") () ")"))) (; ";")) (if_statement "if (local_2c == *(undefined4 **)puVar29) {\n    return puVar7;\n  }" (if "if") (parenthesized_expression "(local_2c == *(undefined4 **)puVar29)" (( "(") (binary_expression "local_2c == *(undefined4 **)puVar29" (identifier "local_2c") (== "==") (pointer_expression "*(undefined4 **)puVar29" (* "*") (cast_expression "(undefined4 **)puVar29" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar29")))) () ")")) (compound_statement "{\n    return puVar7;\n  }" ({ "{") (return_statement "return puVar7;" (return "return") (identifier "puVar7") (; ";")) (} "}"))) (expression_statement "uVar18 = 0x2f68c;" (assignment_expression "uVar18 = 0x2f68c" (identifier "uVar18") (= "=") (number_literal "0x2f68c")) (; ";")) (expression_statement "puVar21 = local_2c;" (assignment_expression "puVar21 = local_2c" (identifier "puVar21") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "puVar29 = PTR___stack_chk_fail_0006a574;" (assignment_expression "puVar29 = PTR___stack_chk_fail_0006a574" (identifier "puVar29") (= "=") (identifier "PTR___stack_chk_fail_0006a574")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0006a574)();" (call_expression "(*(code *)PTR___stack_chk_fail_0006a574)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0006a574)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0006a574" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0006a574" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0006a574"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_280 = puVar29 + 0x429a4;" (assignment_expression "local_280 = puVar29 + 0x429a4" (identifier "local_280") (= "=") (binary_expression "puVar29 + 0x429a4" (identifier "puVar29") (+ "+") (number_literal "0x429a4"))) (; ";")) (expression_statement "puVar27 = *(undefined4 **)(puVar29 + 0x3af08);" (assignment_expression "puVar27 = *(undefined4 **)(puVar29 + 0x3af08)" (identifier "puVar27") (= "=") (pointer_expression "*(undefined4 **)(puVar29 + 0x3af08)" (* "*") (cast_expression "(undefined4 **)(puVar29 + 0x3af08)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar29 + 0x3af08)" (( "(") (binary_expression "puVar29 + 0x3af08" (identifier "puVar29") (+ "+") (number_literal "0x3af08")) () ")"))))) (; ";")) (expression_statement "puVar8 = auStack_278;" (assignment_expression "puVar8 = auStack_278" (identifier "puVar8") (= "=") (identifier "auStack_278")) (; ";")) (expression_statement "local_264 = (undefined4 *)*puVar27;" (assignment_expression "local_264 = (undefined4 *)*puVar27" (identifier "local_264") (= "=") (cast_expression "(undefined4 *)*puVar27" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar27" (* "*") (identifier "puVar27")))) (; ";")) (expression_statement "local_260 = (SHA512_CTX *)local_214;" (assignment_expression "local_260 = (SHA512_CTX *)local_214" (identifier "local_260") (= "=") (cast_expression "(SHA512_CTX *)local_214" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_214"))) (; ";")) (expression_statement "local_25c = (SHA512_CTX *)&local_6c;" (assignment_expression "local_25c = (SHA512_CTX *)&local_6c" (identifier "local_25c") (= "=") (cast_expression "(SHA512_CTX *)&local_6c" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_6c" (& "&") (identifier "local_6c")))) (; ";")) (expression_statement "local_258 = puVar23;" (assignment_expression "local_258 = puVar23" (identifier "local_258") (= "=") (identifier "puVar23")) (; ";")) (expression_statement "local_254 = (SHA512_CTX *)(local_214 + 0xd0);" (assignment_expression "local_254 = (SHA512_CTX *)(local_214 + 0xd0)" (identifier "local_254") (= "=") (cast_expression "(SHA512_CTX *)(local_214 + 0xd0)" (( "(") (type_descriptor "SHA512_CTX *" (type_identifier "SHA512_CTX") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_214 + 0xd0)" (( "(") (binary_expression "local_214 + 0xd0" (identifier "local_214") (+ "+") (number_literal "0xd0")) () ")")))) (; ";")) (expression_statement "local_250 = puVar25;" (assignment_expression "local_250 = puVar25" (identifier "local_250") (= "=") (identifier "puVar25")) (; ";")) (expression_statement "local_24c = param_2;" (assignment_expression "local_24c = param_2" (identifier "local_24c") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_248 = puVar26;" (assignment_expression "local_248 = puVar26" (identifier "local_248") (= "=") (identifier "puVar26")) (; ";")) (expression_statement "local_244 = local_140;" (assignment_expression "local_244 = local_140" (identifier "local_244") (= "=") (identifier "local_140")) (; ";")) (expression_statement "local_240 = puVar7;" (assignment_expression "local_240 = puVar7" (identifier "local_240") (= "=") (identifier "puVar7")) (; ";")) (expression_statement "local_23c = uVar18;" (assignment_expression "local_23c = uVar18" (identifier "local_23c") (= "=") (identifier "uVar18")) (; ";")) (expression_statement "SHA_Simple(uVar15,uVar10,puVar8);" (call_expression "SHA_Simple(uVar15,uVar10,puVar8)" (identifier "SHA_Simple") (argument_list "(uVar15,uVar10,puVar8)" (( "(") (identifier "uVar15") (, ",") (identifier "uVar10") (, ",") (identifier "puVar8") () ")"))) (; ";")) (expression_statement "local_288 = 0x14;" (assignment_expression "local_288 = 0x14" (identifier "local_288") (= "=") (number_literal "0x14")) (; ";")) (expression_statement "puVar7 = puVar8;" (assignment_expression "puVar7 = puVar8" (identifier "puVar7") (= "=") (identifier "puVar8")) (; ";")) (expression_statement "iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);" (assignment_expression "iVar4 = dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" (identifier "iVar4") (= "=") (call_expression "dss_gen_k(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" (identifier "dss_gen_k") (argument_list "(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4])" (( "(") (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3138" (pointer_expression "*(int *)(local_280 + -0x7fc8)" (* "*") (cast_expression "(int *)(local_280 + -0x7fc8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_280 + -0x7fc8)" (( "(") (binary_expression "local_280 + -0x7fc8" (identifier "local_280") (+ "+") (number_literal "-0x7fc8")) () ")")))) (+ "+") (number_literal "0x3138")) (, ",") (subscript_expression "puVar21[1]" (identifier "puVar21") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "puVar21[4]" (identifier "puVar21") ([ "[") (number_literal "4") (] "]")) () ")")))) (; ";")) (expression_statement "iVar24 = modinv(iVar4,puVar21[1]);" (assignment_expression "iVar24 = modinv(iVar4,puVar21[1])" (identifier "iVar24") (= "=") (call_expression "modinv(iVar4,puVar21[1])" (identifier "modinv") (argument_list "(iVar4,puVar21[1])" (( "(") (identifier "iVar4") (, ",") (subscript_expression "puVar21[1]" (identifier "puVar21") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "puVar29 = local_280;" (assignment_expression "puVar29 = local_280" (identifier "puVar29") (= "=") (identifier "local_280")) (; ";")) (if_statement "if (iVar24 == 0) {\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }\n  else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" (if "if") (parenthesized_expression "(iVar24 == 0)" (( "(") (binary_expression "iVar24 == 0" (identifier "iVar24") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar19 = (code *)0x26f;\n    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);\n    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;\n    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);\n    (**(code **)(local_280 + -0x7bb8))();\n  }" ({ "{") (expression_statement "pcVar19 = (code *)0x26f;" (assignment_expression "pcVar19 = (code *)0x26f" (identifier "pcVar19") (= "=") (cast_expression "(code *)0x26f" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x26f"))) (; ";")) (expression_statement "puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);" (assignment_expression "puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198)" (identifier "puVar7") (= "=") (cast_expression "(undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(local_280 + -0x7fc8) + 0x3198)" (( "(") (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3198" (pointer_expression "*(int *)(local_280 + -0x7fc8)" (* "*") (cast_expression "(int *)(local_280 + -0x7fc8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_280 + -0x7fc8)" (( "(") (binary_expression "local_280 + -0x7fc8" (identifier "local_280") (+ "+") (number_literal "-0x7fc8")) () ")")))) (+ "+") (number_literal "0x3198")) () ")")))) (; ";")) (expression_statement "iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;" (assignment_expression "iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110" (identifier "iVar24") (= "=") (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3110" (pointer_expression "*(int *)(local_280 + -0x7fc8)" (* "*") (cast_expression "(int *)(local_280 + -0x7fc8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_280 + -0x7fc8)" (( "(") (binary_expression "local_280 + -0x7fc8" (identifier "local_280") (+ "+") (number_literal "-0x7fc8")) () ")")))) (+ "+") (number_literal "0x3110"))) (; ";")) (expression_statement "puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);" (assignment_expression "puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158)" (identifier "puVar17") (= "=") (cast_expression "(undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(local_280 + -0x7fc8) + 0x3158)" (( "(") (binary_expression "*(int *)(local_280 + -0x7fc8) + 0x3158" (pointer_expression "*(int *)(local_280 + -0x7fc8)" (* "*") (cast_expression "(int *)(local_280 + -0x7fc8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_280 + -0x7fc8)" (( "(") (binary_expression "local_280 + -0x7fc8" (identifier "local_280") (+ "+") (number_literal "-0x7fc8")) () ")")))) (+ "+") (number_literal "0x3158")) () ")")))) (; ";")) (expression_statement "(**(code **)(local_280 + -0x7bb8))();" (call_expression "(**(code **)(local_280 + -0x7bb8))()" (parenthesized_expression "(**(code **)(local_280 + -0x7bb8))" (( "(") (pointer_expression "**(code **)(local_280 + -0x7bb8)" (* "*") (pointer_expression "*(code **)(local_280 + -0x7bb8)" (* "*") (cast_expression "(code **)(local_280 + -0x7bb8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_280 + -0x7bb8)" (( "(") (binary_expression "local_280 + -0x7bb8" (identifier "local_280") (+ "+") (number_literal "-0x7bb8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" (else "else") (compound_statement "{\n    uVar15 = modpow(puVar21[2],iVar4,*puVar21);\n    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);\n    freebn(uVar15);\n    uVar15 = bignum_from_bytes(puVar8,0x14);\n    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);\n    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);\n    freebn(uVar18);\n    freebn(iVar24);\n    freebn(iVar4);\n    freebn(uVar15);\n    puVar26 = (undefined *)safemalloc(0x37,1);\n    puVar26[3] = 7;\n    *puVar26 = 0;\n    param_2 = (undefined4 *)(puVar26 + 0x23);\n    iVar4 = *(int *)(local_280 + -0x7fc8);\n    puVar25 = puVar26 + 0x22;\n    puVar26[1] = 0;\n    puVar26[2] = 0;\n    uVar16 = *(uint *)(iVar4 + -0x1ac8);\n    bVar2 = *(byte *)(iVar4 + -0x1ac4);\n    pcVar19 = (code *)(uint)bVar2;\n    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);\n    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);\n    puVar1 = puVar26 + 4;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;\n    puVar1 = puVar26 + 7;\n    uVar28 = (uint)puVar1 & 3;\n    *(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;\n    puVar26[8] = bVar2;\n    puVar26[9] = uVar11;\n    puVar26[10] = uVar3;\n    puVar26[0xb] = 0;\n    puVar26[0xc] = 0;\n    puVar26[0xd] = 0;\n    puVar26[0xe] = 0x28;\n    puVar17 = (undefined4 *)(puVar26 + 0xf);\n    do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);\n    freebn(puVar23);\n    freebn(puVar8);\n    iVar24 = 0x37;\n    puVar14 = (undefined4 *)*puVar27;\n    *puVar20 = 0x37;\n    puVar17 = local_264;\n    puVar29 = local_280;\n    if (local_264 == puVar14) {\n      return puVar26;\n    }\n  }" ({ "{") (expression_statement "uVar15 = modpow(puVar21[2],iVar4,*puVar21);" (assignment_expression "uVar15 = modpow(puVar21[2],iVar4,*puVar21)" (identifier "uVar15") (= "=") (call_expression "modpow(puVar21[2],iVar4,*puVar21)" (identifier "modpow") (argument_list "(puVar21[2],iVar4,*puVar21)" (( "(") (subscript_expression "puVar21[2]" (identifier "puVar21") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "iVar4") (, ",") (pointer_expression "*puVar21" (* "*") (identifier "puVar21")) () ")")))) (; ";")) (expression_statement "puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);" (assignment_expression "puVar23 = (undefined *)bigmod(uVar15,puVar21[1])" (identifier "puVar23") (= "=") (cast_expression "(undefined *)bigmod(uVar15,puVar21[1])" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bigmod(uVar15,puVar21[1])" (identifier "bigmod") (argument_list "(uVar15,puVar21[1])" (( "(") (identifier "uVar15") (, ",") (subscript_expression "puVar21[1]" (identifier "puVar21") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" (identifier "freebn") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "uVar15 = bignum_from_bytes(puVar8,0x14);" (assignment_expression "uVar15 = bignum_from_bytes(puVar8,0x14)" (identifier "uVar15") (= "=") (call_expression "bignum_from_bytes(puVar8,0x14)" (identifier "bignum_from_bytes") (argument_list "(puVar8,0x14)" (( "(") (identifier "puVar8") (, ",") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);" (assignment_expression "uVar18 = bigmuladd(puVar21[4],puVar23,uVar15)" (identifier "uVar18") (= "=") (call_expression "bigmuladd(puVar21[4],puVar23,uVar15)" (identifier "bigmuladd") (argument_list "(puVar21[4],puVar23,uVar15)" (( "(") (subscript_expression "puVar21[4]" (identifier "puVar21") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "puVar23") (, ",") (identifier "uVar15") () ")")))) (; ";")) (expression_statement "puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);" (assignment_expression "puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1])" (identifier "puVar8") (= "=") (cast_expression "(undefined1 *)modmul(iVar24,uVar18,puVar21[1])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "modmul(iVar24,uVar18,puVar21[1])" (identifier "modmul") (argument_list "(iVar24,uVar18,puVar21[1])" (( "(") (identifier "iVar24") (, ",") (identifier "uVar18") (, ",") (subscript_expression "puVar21[1]" (identifier "puVar21") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (expression_statement "freebn(uVar18);" (call_expression "freebn(uVar18)" (identifier "freebn") (argument_list "(uVar18)" (( "(") (identifier "uVar18") () ")"))) (; ";")) (expression_statement "freebn(iVar24);" (call_expression "freebn(iVar24)" (identifier "freebn") (argument_list "(iVar24)" (( "(") (identifier "iVar24") () ")"))) (; ";")) (expression_statement "freebn(iVar4);" (call_expression "freebn(iVar4)" (identifier "freebn") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" (identifier "freebn") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "puVar26 = (undefined *)safemalloc(0x37,1);" (assignment_expression "puVar26 = (undefined *)safemalloc(0x37,1)" (identifier "puVar26") (= "=") (cast_expression "(undefined *)safemalloc(0x37,1)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(0x37,1)" (identifier "safemalloc") (argument_list "(0x37,1)" (( "(") (number_literal "0x37") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "puVar26[3] = 7;" (assignment_expression "puVar26[3] = 7" (subscript_expression "puVar26[3]" (identifier "puVar26") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "7")) (; ";")) (expression_statement "*puVar26 = 0;" (assignment_expression "*puVar26 = 0" (pointer_expression "*puVar26" (* "*") (identifier "puVar26")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2 = (undefined4 *)(puVar26 + 0x23);" (assignment_expression "param_2 = (undefined4 *)(puVar26 + 0x23)" (identifier "param_2") (= "=") (cast_expression "(undefined4 *)(puVar26 + 0x23)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar26 + 0x23)" (( "(") (binary_expression "puVar26 + 0x23" (identifier "puVar26") (+ "+") (number_literal "0x23")) () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(local_280 + -0x7fc8);" (assignment_expression "iVar4 = *(int *)(local_280 + -0x7fc8)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(local_280 + -0x7fc8)" (* "*") (cast_expression "(int *)(local_280 + -0x7fc8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_280 + -0x7fc8)" (( "(") (binary_expression "local_280 + -0x7fc8" (identifier "local_280") (+ "+") (number_literal "-0x7fc8")) () ")"))))) (; ";")) (expression_statement "puVar25 = puVar26 + 0x22;" (assignment_expression "puVar25 = puVar26 + 0x22" (identifier "puVar25") (= "=") (binary_expression "puVar26 + 0x22" (identifier "puVar26") (+ "+") (number_literal "0x22"))) (; ";")) (expression_statement "puVar26[1] = 0;" (assignment_expression "puVar26[1] = 0" (subscript_expression "puVar26[1]" (identifier "puVar26") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar26[2] = 0;" (assignment_expression "puVar26[2] = 0" (subscript_expression "puVar26[2]" (identifier "puVar26") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar16 = *(uint *)(iVar4 + -0x1ac8);" (assignment_expression "uVar16 = *(uint *)(iVar4 + -0x1ac8)" (identifier "uVar16") (= "=") (pointer_expression "*(uint *)(iVar4 + -0x1ac8)" (* "*") (cast_expression "(uint *)(iVar4 + -0x1ac8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -0x1ac8)" (( "(") (binary_expression "iVar4 + -0x1ac8" (identifier "iVar4") (+ "+") (number_literal "-0x1ac8")) () ")"))))) (; ";")) (expression_statement "bVar2 = *(byte *)(iVar4 + -0x1ac4);" (assignment_expression "bVar2 = *(byte *)(iVar4 + -0x1ac4)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(iVar4 + -0x1ac4)" (* "*") (cast_expression "(byte *)(iVar4 + -0x1ac4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -0x1ac4)" (( "(") (binary_expression "iVar4 + -0x1ac4" (identifier "iVar4") (+ "+") (number_literal "-0x1ac4")) () ")"))))) (; ";")) (expression_statement "pcVar19 = (code *)(uint)bVar2;" (assignment_expression "pcVar19 = (code *)(uint)bVar2" (identifier "pcVar19") (= "=") (cast_expression "(code *)(uint)bVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2")))) (; ";")) (expression_statement "uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);" (assignment_expression "uVar11 = *(undefined1 *)(iVar4 + -0x1ac3)" (identifier "uVar11") (= "=") (pointer_expression "*(undefined1 *)(iVar4 + -0x1ac3)" (* "*") (cast_expression "(undefined1 *)(iVar4 + -0x1ac3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -0x1ac3)" (( "(") (binary_expression "iVar4 + -0x1ac3" (identifier "iVar4") (+ "+") (number_literal "-0x1ac3")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);" (assignment_expression "uVar3 = *(undefined1 *)(iVar4 + -0x1ac2)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined1 *)(iVar4 + -0x1ac2)" (* "*") (cast_expression "(undefined1 *)(iVar4 + -0x1ac2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -0x1ac2)" (( "(") (binary_expression "iVar4 + -0x1ac2" (identifier "iVar4") (+ "+") (number_literal "-0x1ac2")) () ")"))))) (; ";")) (expression_statement "puVar1 = puVar26 + 4;" (assignment_expression "puVar1 = puVar26 + 4" (identifier "puVar1") (= "=") (binary_expression "puVar26 + 4" (identifier "puVar26") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar28 = (uint)puVar1 & 3;" (assignment_expression "uVar28 = (uint)puVar1 & 3" (identifier "uVar28") (= "=") (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar1")) (& "&") (number_literal "3"))) (; ";")) (expression_statement "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" (* "*") (cast_expression "(uint *)(puVar1 + -uVar28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -uVar28)" (( "(") (binary_expression "puVar1 + -uVar28" (identifier "puVar1") (+ "+") (unary_expression "-uVar28" (- "-") (identifier "uVar28"))) () ")")))) (= "=") (binary_expression "*(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8" (binary_expression "*(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" (* "*") (cast_expression "(uint *)(puVar1 + -uVar28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -uVar28)" (( "(") (binary_expression "puVar1 + -uVar28" (identifier "puVar1") (+ "+") (unary_expression "-uVar28" (- "-") (identifier "uVar28"))) () ")")))) (& "&") (binary_expression "-1 << (4 - uVar28) * 8" (number_literal "-1") (<< "<<") (binary_expression "(4 - uVar28) * 8" (parenthesized_expression "(4 - uVar28)" (( "(") (binary_expression "4 - uVar28" (number_literal "4") (- "-") (identifier "uVar28")) () ")")) (* "*") (number_literal "8")))) (| "|") (binary_expression "uVar16 >> uVar28 * 8" (identifier "uVar16") (>> ">>") (binary_expression "uVar28 * 8" (identifier "uVar28") (* "*") (number_literal "8"))))) (; ";")) (expression_statement "puVar1 = puVar26 + 7;" (assignment_expression "puVar1 = puVar26 + 7" (identifier "puVar1") (= "=") (binary_expression "puVar26 + 7" (identifier "puVar26") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "uVar28 = (uint)puVar1 & 3;" (assignment_expression "uVar28 = (uint)puVar1 & 3" (identifier "uVar28") (= "=") (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar1")) (& "&") (number_literal "3"))) (; ";")) (expression_statement "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar28) =\n         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" (* "*") (cast_expression "(uint *)(puVar1 + -uVar28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -uVar28)" (( "(") (binary_expression "puVar1 + -uVar28" (identifier "puVar1") (+ "+") (unary_expression "-uVar28" (- "-") (identifier "uVar28"))) () ")")))) (= "=") (binary_expression "*(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8" (binary_expression "*(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar28)" (* "*") (cast_expression "(uint *)(puVar1 + -uVar28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -uVar28)" (( "(") (binary_expression "puVar1 + -uVar28" (identifier "puVar1") (+ "+") (unary_expression "-uVar28" (- "-") (identifier "uVar28"))) () ")")))) (& "&") (binary_expression "0xffffffffU >> (uVar28 + 1) * 8" (number_literal "0xffffffffU") (>> ">>") (binary_expression "(uVar28 + 1) * 8" (parenthesized_expression "(uVar28 + 1)" (( "(") (binary_expression "uVar28 + 1" (identifier "uVar28") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "8")))) (| "|") (binary_expression "uVar16 << (3 - uVar28) * 8" (identifier "uVar16") (<< "<<") (binary_expression "(3 - uVar28) * 8" (parenthesized_expression "(3 - uVar28)" (( "(") (binary_expression "3 - uVar28" (number_literal "3") (- "-") (identifier "uVar28")) () ")")) (* "*") (number_literal "8"))))) (; ";")) (expression_statement "puVar26[8] = bVar2;" (assignment_expression "puVar26[8] = bVar2" (subscript_expression "puVar26[8]" (identifier "puVar26") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "bVar2")) (; ";")) (expression_statement "puVar26[9] = uVar11;" (assignment_expression "puVar26[9] = uVar11" (subscript_expression "puVar26[9]" (identifier "puVar26") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "puVar26[10] = uVar3;" (assignment_expression "puVar26[10] = uVar3" (subscript_expression "puVar26[10]" (identifier "puVar26") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar26[0xb] = 0;" (assignment_expression "puVar26[0xb] = 0" (subscript_expression "puVar26[0xb]" (identifier "puVar26") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar26[0xc] = 0;" (assignment_expression "puVar26[0xc] = 0" (subscript_expression "puVar26[0xc]" (identifier "puVar26") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar26[0xd] = 0;" (assignment_expression "puVar26[0xd] = 0" (subscript_expression "puVar26[0xd]" (identifier "puVar26") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar26[0xe] = 0x28;" (assignment_expression "puVar26[0xe] = 0x28" (subscript_expression "puVar26[0xe]" (identifier "puVar26") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "0x28")) (; ";")) (expression_statement "puVar17 = (undefined4 *)(puVar26 + 0xf);" (assignment_expression "puVar17 = (undefined4 *)(puVar26 + 0xf)" (identifier "puVar17") (= "=") (cast_expression "(undefined4 *)(puVar26 + 0xf)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar26 + 0xf)" (( "(") (binary_expression "puVar26 + 0xf" (identifier "puVar26") (+ "+") (number_literal "0xf")) () ")")))) (; ";")) (do_statement "do {\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    } while (puVar21 != param_2);" (do "do") (compound_statement "{\n      iVar4 = (int)puVar25 - (int)puVar17;\n      uVar11 = bignum_byte(puVar23,iVar4);\n      puVar21 = (undefined4 *)((int)puVar17 + 1);\n      *(undefined1 *)puVar17 = uVar11;\n      uVar11 = bignum_byte(puVar8,iVar4);\n      *(undefined1 *)(puVar17 + 5) = uVar11;\n      puVar17 = puVar21;\n    }" ({ "{") (expression_statement "iVar4 = (int)puVar25 - (int)puVar17;" (assignment_expression "iVar4 = (int)puVar25 - (int)puVar17" (identifier "iVar4") (= "=") (binary_expression "(int)puVar25 - (int)puVar17" (cast_expression "(int)puVar25" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar25")) (- "-") (cast_expression "(int)puVar17" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar17")))) (; ";")) (expression_statement "uVar11 = bignum_byte(puVar23,iVar4);" (assignment_expression "uVar11 = bignum_byte(puVar23,iVar4)" (identifier "uVar11") (= "=") (call_expression "bignum_byte(puVar23,iVar4)" (identifier "bignum_byte") (argument_list "(puVar23,iVar4)" (( "(") (identifier "puVar23") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "puVar21 = (undefined4 *)((int)puVar17 + 1);" (assignment_expression "puVar21 = (undefined4 *)((int)puVar17 + 1)" (identifier "puVar21") (= "=") (cast_expression "(undefined4 *)((int)puVar17 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar17 + 1)" (( "(") (binary_expression "(int)puVar17 + 1" (cast_expression "(int)puVar17" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar17")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*(undefined1 *)puVar17 = uVar11;" (assignment_expression "*(undefined1 *)puVar17 = uVar11" (pointer_expression "*(undefined1 *)puVar17" (* "*") (cast_expression "(undefined1 *)puVar17" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar17"))) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "uVar11 = bignum_byte(puVar8,iVar4);" (assignment_expression "uVar11 = bignum_byte(puVar8,iVar4)" (identifier "uVar11") (= "=") (call_expression "bignum_byte(puVar8,iVar4)" (identifier "bignum_byte") (argument_list "(puVar8,iVar4)" (( "(") (identifier "puVar8") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(puVar17 + 5) = uVar11;" (assignment_expression "*(undefined1 *)(puVar17 + 5) = uVar11" (pointer_expression "*(undefined1 *)(puVar17 + 5)" (* "*") (cast_expression "(undefined1 *)(puVar17 + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar17 + 5)" (( "(") (binary_expression "puVar17 + 5" (identifier "puVar17") (+ "+") (number_literal "5")) () ")")))) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "puVar17 = puVar21;" (assignment_expression "puVar17 = puVar21" (identifier "puVar17") (= "=") (identifier "puVar21")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar21 != param_2)" (( "(") (binary_expression "puVar21 != param_2" (identifier "puVar21") (!= "!=") (identifier "param_2")) () ")")) (; ";")) (expression_statement "freebn(puVar23);" (call_expression "freebn(puVar23)" (identifier "freebn") (argument_list "(puVar23)" (( "(") (identifier "puVar23") () ")"))) (; ";")) (expression_statement "freebn(puVar8);" (call_expression "freebn(puVar8)" (identifier "freebn") (argument_list "(puVar8)" (( "(") (identifier "puVar8") () ")"))) (; ";")) (expression_statement "iVar24 = 0x37;" (assignment_expression "iVar24 = 0x37" (identifier "iVar24") (= "=") (number_literal "0x37")) (; ";")) (expression_statement "puVar14 = (undefined4 *)*puVar27;" (assignment_expression "puVar14 = (undefined4 *)*puVar27" (identifier "puVar14") (= "=") (cast_expression "(undefined4 *)*puVar27" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar27" (* "*") (identifier "puVar27")))) (; ";")) (expression_statement "*puVar20 = 0x37;" (assignment_expression "*puVar20 = 0x37" (pointer_expression "*puVar20" (* "*") (identifier "puVar20")) (= "=") (number_literal "0x37")) (; ";")) (expression_statement "puVar17 = local_264;" (assignment_expression "puVar17 = local_264" (identifier "puVar17") (= "=") (identifier "local_264")) (; ";")) (expression_statement "puVar29 = local_280;" (assignment_expression "puVar29 = local_280" (identifier "puVar29") (= "=") (identifier "local_280")) (; ";")) (if_statement "if (local_264 == puVar14) {\n      return puVar26;\n    }" (if "if") (parenthesized_expression "(local_264 == puVar14)" (( "(") (binary_expression "local_264 == puVar14" (identifier "local_264") (== "==") (identifier "puVar14")) () ")")) (compound_statement "{\n      return puVar26;\n    }" ({ "{") (return_statement "return puVar26;" (return "return") (identifier "puVar26") (; ";")) (} "}"))) (} "}")))) (expression_statement "pcVar30 = *(code **)(puVar29 + -0x7abc);" (assignment_expression "pcVar30 = *(code **)(puVar29 + -0x7abc)" (identifier "pcVar30") (= "=") (pointer_expression "*(code **)(puVar29 + -0x7abc)" (* "*") (cast_expression "(code **)(puVar29 + -0x7abc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar29 + -0x7abc)" (( "(") (binary_expression "puVar29 + -0x7abc" (identifier "puVar29") (+ "+") (number_literal "-0x7abc")) () ")"))))) (; ";")) (expression_statement "uVar15 = 0x2f96c;" (assignment_expression "uVar15 = 0x2f96c" (identifier "uVar15") (= "=") (number_literal "0x2f96c")) (; ";")) (expression_statement "(*pcVar30)();" (call_expression "(*pcVar30)()" (parenthesized_expression "(*pcVar30)" (( "(") (pointer_expression "*pcVar30" (* "*") (identifier "pcVar30")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar9 = *(int **)(pcVar30 + 0x3ac24);" (assignment_expression "piVar9 = *(int **)(pcVar30 + 0x3ac24)" (identifier "piVar9") (= "=") (pointer_expression "*(int **)(pcVar30 + 0x3ac24)" (* "*") (cast_expression "(int **)(pcVar30 + 0x3ac24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar30 + 0x3ac24)" (( "(") (binary_expression "pcVar30 + 0x3ac24" (identifier "pcVar30") (+ "+") (number_literal "0x3ac24")) () ")"))))) (; ";")) (expression_statement "iStack_2c4 = *piVar9;" (assignment_expression "iStack_2c4 = *piVar9" (identifier "iStack_2c4") (= "=") (pointer_expression "*piVar9" (* "*") (identifier "piVar9"))) (; ";")) (expression_statement "puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);" (assignment_expression "puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c)" (identifier "puVar14") (= "=") (pointer_expression "*(undefined4 **)(pcVar30 + 0x3a95c)" (* "*") (cast_expression "(undefined4 **)(pcVar30 + 0x3a95c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar30 + 0x3a95c)" (( "(") (binary_expression "pcVar30 + 0x3a95c" (identifier "pcVar30") (+ "+") (number_literal "0x3a95c")) () ")"))))) (; ";")) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" (identifier "iVar22") (= "=") (number_literal "1")) (; ";")) (expression_statement "puStack_2c0 = puVar21;" (assignment_expression "puStack_2c0 = puVar21" (identifier "puStack_2c0") (= "=") (identifier "puVar21")) (; ";")) (expression_statement "iStack_2bc = iVar4;" (assignment_expression "iStack_2bc = iVar4" (identifier "iStack_2bc") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "puStack_2b8 = puVar23;" (assignment_expression "puStack_2b8 = puVar23" (identifier "puStack_2b8") (= "=") (identifier "puVar23")) (; ";")) (expression_statement "puStack_2b4 = puVar8;" (assignment_expression "puStack_2b4 = puVar8" (identifier "puStack_2b4") (= "=") (identifier "puVar8")) (; ";")) (expression_statement "puStack_2b0 = puVar25;" (assignment_expression "puStack_2b0 = puVar25" (identifier "puStack_2b0") (= "=") (identifier "puVar25")) (; ";")) (expression_statement "puStack_2ac = param_2;" (assignment_expression "puStack_2ac = param_2" (identifier "puStack_2ac") (= "=") (identifier "param_2")) (; ";")) (expression_statement "puStack_2a8 = puVar26;" (assignment_expression "puStack_2a8 = puVar26" (identifier "puStack_2a8") (= "=") (identifier "puVar26")) (; ";")) (expression_statement "puStack_2a4 = puVar27;" (assignment_expression "puStack_2a4 = puVar27" (identifier "puStack_2a4") (= "=") (identifier "puVar27")) (; ";")) (expression_statement "puStack_2a0 = puVar20;" (assignment_expression "puStack_2a0 = puVar20" (identifier "puStack_2a0") (= "=") (identifier "puVar20")) (; ";")) (expression_statement "uStack_29c = uVar15;" (assignment_expression "uStack_29c = uVar15" (identifier "uStack_29c") (= "=") (identifier "uVar15")) (; ";")) (expression_statement "(*pcVar19)(puVar7,4,1,0x2800);" (call_expression "(*pcVar19)(puVar7,4,1,0x2800)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,4,1,0x2800)" (( "(") (identifier "puVar7") (, ",") (number_literal "4") (, ",") (number_literal "1") (, ",") (number_literal "0x2800") () ")"))) (; ";")) (expression_statement "(*pcVar19)(puVar7,3,1,0xffffd10e);" (call_expression "(*pcVar19)(puVar7,3,1,0xffffd10e)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,3,1,0xffffd10e)" (( "(") (identifier "puVar7") (, ",") (number_literal "3") (, ",") (number_literal "1") (, ",") (number_literal "0xffffd10e") () ")"))) (; ";")) (expression_statement "(*pcVar19)(puVar7,4,2,iVar24 << 6);" (call_expression "(*pcVar19)(puVar7,4,2,iVar24 << 6)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,4,2,iVar24 << 6)" (( "(") (identifier "puVar7") (, ",") (number_literal "4") (, ",") (number_literal "2") (, ",") (binary_expression "iVar24 << 6" (identifier "iVar24") (<< "<<") (number_literal "6")) () ")"))) (; ";")) (if_statement "if (iVar24 == 0) {\n    trap(7);\n  }" (if "if") (parenthesized_expression "(iVar24 == 0)" (( "(") (binary_expression "iVar24 == 0" (identifier "iVar24") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    trap(7);\n  }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "(*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);" (call_expression "(*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,3,2,-0x1d57c4 / iVar24)" (( "(") (identifier "puVar7") (, ",") (number_literal "3") (, ",") (number_literal "2") (, ",") (binary_expression "-0x1d57c4 / iVar24" (number_literal "-0x1d57c4") (/ "/") (identifier "iVar24")) () ")"))) (; ";")) (expression_statement "(*pcVar19)(puVar7,4,3,0x2000);" (call_expression "(*pcVar19)(puVar7,4,3,0x2000)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,4,3,0x2000)" (( "(") (identifier "puVar7") (, ",") (number_literal "4") (, ",") (number_literal "3") (, ",") (number_literal "0x2000") () ")"))) (; ";")) (expression_statement "(*pcVar19)(puVar7,3,3,0xffff8000);" (call_expression "(*pcVar19)(puVar7,3,3,0xffff8000)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,3,3,0xffff8000)" (( "(") (identifier "puVar7") (, ",") (number_literal "3") (, ",") (number_literal "3") (, ",") (number_literal "0xffff8000") () ")"))) (; ";")) (expression_statement "(*pcVar19)(puVar7,4,4,0x2000);" (call_expression "(*pcVar19)(puVar7,4,4,0x2000)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,4,4,0x2000)" (( "(") (identifier "puVar7") (, ",") (number_literal "4") (, ",") (number_literal "4") (, ",") (number_literal "0x2000") () ")"))) (; ";")) (expression_statement "(*pcVar19)(puVar7,3,4,0xffff4000);" (call_expression "(*pcVar19)(puVar7,3,4,0xffff4000)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,3,4,0xffff4000)" (( "(") (identifier "puVar7") (, ",") (number_literal "3") (, ",") (number_literal "4") (, ",") (number_literal "0xffff4000") () ")"))) (; ";")) (expression_statement "(*pcVar19)(puVar7,5,0,0);" (call_expression "(*pcVar19)(puVar7,5,0,0)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,5,0,0)" (( "(") (identifier "puVar7") (, ",") (number_literal "5") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "invent_firstbits(&uStack_2cc,&uStack_2c8);" (call_expression "invent_firstbits(&uStack_2cc,&uStack_2c8)" (identifier "invent_firstbits") (argument_list "(&uStack_2cc,&uStack_2c8)" (( "(") (pointer_expression "&uStack_2cc" (& "&") (identifier "uStack_2cc")) (, ",") (pointer_expression "&uStack_2c8" (& "&") (identifier "uStack_2c8")) () ")"))) (; ";")) (expression_statement "uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);" (assignment_expression "uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" (identifier "uVar15") (= "=") (call_expression "primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" (identifier "primegen") (argument_list "(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8)" (( "(") (number_literal "0xa0") (, ",") (number_literal "2") (, ",") (number_literal "2") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "pcVar19") (, ",") (identifier "puVar7") (, ",") (identifier "uStack_2c8") () ")")))) (; ";")) (expression_statement "puVar17[1] = uVar15;" (assignment_expression "puVar17[1] = uVar15" (subscript_expression "puVar17[1]" (identifier "puVar17") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar15")) (; ";")) (expression_statement "uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);" (assignment_expression "uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" (identifier "uVar15") (= "=") (call_expression "primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" (identifier "primegen") (argument_list "(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc)" (( "(") (binary_expression "iVar24 + -0xa0" (identifier "iVar24") (+ "+") (number_literal "-0xa0")) (, ",") (number_literal "2") (, ",") (number_literal "2") (, ",") (identifier "uVar15") (, ",") (number_literal "2") (, ",") (identifier "pcVar19") (, ",") (identifier "puVar7") (, ",") (identifier "uStack_2cc") () ")")))) (; ";")) (expression_statement "*puVar17 = uVar15;" (assignment_expression "*puVar17 = uVar15" (pointer_expression "*puVar17" (* "*") (identifier "puVar17")) (= "=") (identifier "uVar15")) (; ";")) (expression_statement "uVar18 = bigdiv(uVar15,puVar17[1]);" (assignment_expression "uVar18 = bigdiv(uVar15,puVar17[1])" (identifier "uVar18") (= "=") (call_expression "bigdiv(uVar15,puVar17[1])" (identifier "bigdiv") (argument_list "(uVar15,puVar17[1])" (( "(") (identifier "uVar15") (, ",") (subscript_expression "puVar17[1]" (identifier "puVar17") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "uVar15 = bignum_from_long(1);" (assignment_expression "uVar15 = bignum_from_long(1)" (identifier "uVar15") (= "=") (call_expression "bignum_from_long(1)" (identifier "bignum_from_long") (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (; ";")) (while_statement "while( true ) {\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    (*pcVar19)(puVar7,6,3,iVar22);\n    uVar10 = modpow(uVar15,uVar18,*puVar17);\n    iVar4 = bignum_cmp(uVar10,*puVar14);\n    if (0 < iVar4) break;\n    uVar10 = bignum_add_long(uVar15,1);\n    freebn(uVar15);\n    iVar22 = iVar22 + 1;\n    uVar15 = uVar10;\n  }" ({ "{") (expression_statement "(*pcVar19)(puVar7,6,3,iVar22);" (call_expression "(*pcVar19)(puVar7,6,3,iVar22)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,6,3,iVar22)" (( "(") (identifier "puVar7") (, ",") (number_literal "6") (, ",") (number_literal "3") (, ",") (identifier "iVar22") () ")"))) (; ";")) (expression_statement "uVar10 = modpow(uVar15,uVar18,*puVar17);" (assignment_expression "uVar10 = modpow(uVar15,uVar18,*puVar17)" (identifier "uVar10") (= "=") (call_expression "modpow(uVar15,uVar18,*puVar17)" (identifier "modpow") (argument_list "(uVar15,uVar18,*puVar17)" (( "(") (identifier "uVar15") (, ",") (identifier "uVar18") (, ",") (pointer_expression "*puVar17" (* "*") (identifier "puVar17")) () ")")))) (; ";")) (expression_statement "iVar4 = bignum_cmp(uVar10,*puVar14);" (assignment_expression "iVar4 = bignum_cmp(uVar10,*puVar14)" (identifier "iVar4") (= "=") (call_expression "bignum_cmp(uVar10,*puVar14)" (identifier "bignum_cmp") (argument_list "(uVar10,*puVar14)" (( "(") (identifier "uVar10") (, ",") (pointer_expression "*puVar14" (* "*") (identifier "puVar14")) () ")")))) (; ";")) (if_statement "if (0 < iVar4) break;" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar10 = bignum_add_long(uVar15,1);" (assignment_expression "uVar10 = bignum_add_long(uVar15,1)" (identifier "uVar10") (= "=") (call_expression "bignum_add_long(uVar15,1)" (identifier "bignum_add_long") (argument_list "(uVar15,1)" (( "(") (identifier "uVar15") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" (identifier "freebn") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "iVar22 = iVar22 + 1;" (assignment_expression "iVar22 = iVar22 + 1" (identifier "iVar22") (= "=") (binary_expression "iVar22 + 1" (identifier "iVar22") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" (identifier "uVar15") (= "=") (identifier "uVar10")) (; ";")) (} "}"))) (expression_statement "puVar17[2] = uVar10;" (assignment_expression "puVar17[2] = uVar10" (subscript_expression "puVar17[2]" (identifier "puVar17") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" (identifier "freebn") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "uVar15 = copybn(puVar17[1]);" (assignment_expression "uVar15 = copybn(puVar17[1])" (identifier "uVar15") (= "=") (call_expression "copybn(puVar17[1])" (identifier "copybn") (argument_list "(puVar17[1])" (( "(") (subscript_expression "puVar17[1]" (identifier "puVar17") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "decbn(uVar15);" (call_expression "decbn(uVar15)" (identifier "decbn") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar4 = iVar4 + 1;\n    (*pcVar19)(puVar7,6,4,iVar4);\n    iVar22 = 0;\n    uVar28 = 0;\n    uVar18 = bn_power_2(0x9f);\n    iVar24 = 0;\n    do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);\n    iVar24 = bignum_cmp(uVar18,*puVar14);\n    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;\n    freebn(uVar18);\n  }" ({ "{") (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*pcVar19)(puVar7,6,4,iVar4);" (call_expression "(*pcVar19)(puVar7,6,4,iVar4)" (parenthesized_expression "(*pcVar19)" (( "(") (pointer_expression "*pcVar19" (* "*") (identifier "pcVar19")) () ")")) (argument_list "(puVar7,6,4,iVar4)" (( "(") (identifier "puVar7") (, ",") (number_literal "6") (, ",") (number_literal "4") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" (identifier "iVar22") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar28 = 0;" (assignment_expression "uVar28 = 0" (identifier "uVar28") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar18 = bn_power_2(0x9f);" (assignment_expression "uVar18 = bn_power_2(0x9f)" (identifier "uVar18") (= "=") (call_expression "bn_power_2(0x9f)" (identifier "bn_power_2") (argument_list "(0x9f)" (( "(") (number_literal "0x9f") () ")")))) (; ";")) (expression_statement "iVar24 = 0;" (assignment_expression "iVar24 = 0" (identifier "iVar24") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    } while (iVar31 != 0xa0);" (do "do") (compound_statement "{\n      if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }\n      iVar31 = iVar24 + 1;\n      bignum_set_bit(uVar18,iVar24,uVar28 & 1);\n      uVar28 = (int)uVar28 >> 1;\n      iVar24 = iVar31;\n    }" ({ "{") (if_statement "if (iVar22 == 0) {\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }\n      else {\n        iVar22 = iVar22 + -1;\n      }" (if "if") (parenthesized_expression "(iVar22 == 0)" (( "(") (binary_expression "iVar22 == 0" (identifier "iVar22") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar22 = 7;\n        uVar28 = random_byte();\n      }" ({ "{") (expression_statement "iVar22 = 7;" (assignment_expression "iVar22 = 7" (identifier "iVar22") (= "=") (number_literal "7")) (; ";")) (expression_statement "uVar28 = random_byte();" (assignment_expression "uVar28 = random_byte()" (identifier "uVar28") (= "=") (call_expression "random_byte()" (identifier "random_byte") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar22 = iVar22 + -1;\n      }" (else "else") (compound_statement "{\n        iVar22 = iVar22 + -1;\n      }" ({ "{") (expression_statement "iVar22 = iVar22 + -1;" (assignment_expression "iVar22 = iVar22 + -1" (identifier "iVar22") (= "=") (binary_expression "iVar22 + -1" (identifier "iVar22") (+ "+") (number_literal "-1"))) (; ";")) (} "}")))) (expression_statement "iVar31 = iVar24 + 1;" (assignment_expression "iVar31 = iVar24 + 1" (identifier "iVar31") (= "=") (binary_expression "iVar24 + 1" (identifier "iVar24") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bignum_set_bit(uVar18,iVar24,uVar28 & 1);" (call_expression "bignum_set_bit(uVar18,iVar24,uVar28 & 1)" (identifier "bignum_set_bit") (argument_list "(uVar18,iVar24,uVar28 & 1)" (( "(") (identifier "uVar18") (, ",") (identifier "iVar24") (, ",") (binary_expression "uVar28 & 1" (identifier "uVar28") (& "&") (number_literal "1")) () ")"))) (; ";")) (expression_statement "uVar28 = (int)uVar28 >> 1;" (assignment_expression "uVar28 = (int)uVar28 >> 1" (identifier "uVar28") (= "=") (binary_expression "(int)uVar28 >> 1" (cast_expression "(int)uVar28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar28")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar24 = iVar31;" (assignment_expression "iVar24 = iVar31" (identifier "iVar24") (= "=") (identifier "iVar31")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar31 != 0xa0)" (( "(") (binary_expression "iVar31 != 0xa0" (identifier "iVar31") (!= "!=") (number_literal "0xa0")) () ")")) (; ";")) (expression_statement "iVar24 = bignum_cmp(uVar18,*puVar14);" (assignment_expression "iVar24 = bignum_cmp(uVar18,*puVar14)" (identifier "iVar24") (= "=") (call_expression "bignum_cmp(uVar18,*puVar14)" (identifier "bignum_cmp") (argument_list "(uVar18,*puVar14)" (( "(") (identifier "uVar18") (, ",") (pointer_expression "*puVar14" (* "*") (identifier "puVar14")) () ")")))) (; ";")) (if_statement "if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;" (if "if") (parenthesized_expression "((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0))" (( "(") (binary_expression "(0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)" (parenthesized_expression "(0 < iVar24)" (( "(") (binary_expression "0 < iVar24" (number_literal "0") (< "<") (identifier "iVar24")) () ")")) (&& "&&") (parenthesized_expression "(iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)" (( "(") (comma_expression "iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0" (assignment_expression "iVar24 = bignum_cmp(uVar18,uVar15)" (identifier "iVar24") (= "=") (call_expression "bignum_cmp(uVar18,uVar15)" (identifier "bignum_cmp") (argument_list "(uVar18,uVar15)" (( "(") (identifier "uVar18") (, ",") (identifier "uVar15") () ")")))) (, ",") (binary_expression "iVar24 < 0" (identifier "iVar24") (< "<") (number_literal "0"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "freebn(uVar18);" (call_expression "freebn(uVar18)" (identifier "freebn") (argument_list "(uVar18)" (( "(") (identifier "uVar18") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar17[4] = uVar18;" (assignment_expression "puVar17[4] = uVar18" (subscript_expression "puVar17[4]" (identifier "puVar17") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar18")) (; ";")) (expression_statement "freebn(uVar15);" (call_expression "freebn(uVar15)" (identifier "freebn") (argument_list "(uVar15)" (( "(") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);" (assignment_expression "uVar15 = modpow(puVar17[2],puVar17[4],*puVar17)" (identifier "uVar15") (= "=") (call_expression "modpow(puVar17[2],puVar17[4],*puVar17)" (identifier "modpow") (argument_list "(puVar17[2],puVar17[4],*puVar17)" (( "(") (subscript_expression "puVar17[2]" (identifier "puVar17") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "puVar17[4]" (identifier "puVar17") ([ "[") (number_literal "4") (] "]")) (, ",") (pointer_expression "*puVar17" (* "*") (identifier "puVar17")) () ")")))) (; ";")) (expression_statement "puVar17[3] = uVar15;" (assignment_expression "puVar17[3] = uVar15" (subscript_expression "puVar17[3]" (identifier "puVar17") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar15")) (; ";")) (if_statement "if (iStack_2c4 != *piVar9) {\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }" (if "if") (parenthesized_expression "(iStack_2c4 != *piVar9)" (( "(") (binary_expression "iStack_2c4 != *piVar9" (identifier "iStack_2c4") (!= "!=") (pointer_expression "*piVar9" (* "*") (identifier "piVar9"))) () ")")) (compound_statement "{\n    iVar4 = iStack_2c4;\n    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();\n    if (iVar4 == 0) {\n      return puVar7;\n    }\n    if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }\n    if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }\n    puVar7 = (undefined1 *)safefree(iVar4);\n    return puVar7;\n  }" ({ "{") (expression_statement "iVar4 = iStack_2c4;" (assignment_expression "iVar4 = iStack_2c4" (identifier "iVar4") (= "=") (identifier "iStack_2c4")) (; ";")) (expression_statement "puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();" (assignment_expression "puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))()" (identifier "puVar7") (= "=") (cast_expression "(undefined1 *)(**(code **)(pcVar30 + 0x3ac04))()" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(pcVar30 + 0x3ac04))()" (parenthesized_expression "(**(code **)(pcVar30 + 0x3ac04))" (( "(") (pointer_expression "**(code **)(pcVar30 + 0x3ac04)" (* "*") (pointer_expression "*(code **)(pcVar30 + 0x3ac04)" (* "*") (cast_expression "(code **)(pcVar30 + 0x3ac04)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar30 + 0x3ac04)" (( "(") (binary_expression "pcVar30 + 0x3ac04" (identifier "pcVar30") (+ "+") (number_literal "0x3ac04")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) {\n      return puVar7;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return puVar7;\n    }" ({ "{") (return_statement "return puVar7;" (return "return") (identifier "puVar7") (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar4 + 8) != 0) {\n      freebn();\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar4 + 8) != 0" (pointer_expression "*(int *)(iVar4 + 8)" (* "*") (cast_expression "(int *)(iVar4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      freebn();\n    }" ({ "{") (expression_statement "freebn();" (call_expression "freebn()" (identifier "freebn") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar4 + 0xc) != 0) {\n      freebn();\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar4 + 0xc) != 0" (pointer_expression "*(int *)(iVar4 + 0xc)" (* "*") (cast_expression "(int *)(iVar4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      freebn();\n    }" ({ "{") (expression_statement "freebn();" (call_expression "freebn()" (identifier "freebn") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar4 + 0x10) != 0) {\n      freebn();\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(iVar4 + 0x10) != 0" (pointer_expression "*(int *)(iVar4 + 0x10)" (* "*") (cast_expression "(int *)(iVar4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      freebn();\n    }" ({ "{") (expression_statement "freebn();" (call_expression "freebn()" (identifier "freebn") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar4 + 0x18) != 0) {\n      freebn();\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(iVar4 + 0x18) != 0" (pointer_expression "*(int *)(iVar4 + 0x18)" (* "*") (cast_expression "(int *)(iVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      freebn();\n    }" ({ "{") (expression_statement "freebn();" (call_expression "freebn()" (identifier "freebn") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar7 = (undefined1 *)safefree(iVar4);" (assignment_expression "puVar7 = (undefined1 *)safefree(iVar4)" (identifier "puVar7") (= "=") (cast_expression "(undefined1 *)safefree(iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safefree(iVar4)" (identifier "safefree") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))))) (; ";")) (return_statement "return puVar7;" (return "return") (identifier "puVar7") (; ";")) (} "}"))) (return_statement "return (undefined1 *)0x1;" (return "return") (cast_expression "(undefined1 *)0x1" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1")) (; ";")) (} "}")))

type_1 * function_1(char *id_string,type_1 modulus,type_1 private_key,type_2 *digest,int digest_len)

{
  int var_3;
  int var_5;
  type_3 ss;
  type_3 ss2;
  type_2 digest512 [64];
  
  var_1((type_4 *)&ss);
  var_3 = (*(type_5 *)PTR_strlen_0006a51c)(id_string);
  var_2(&ss,id_string,var_3 + 1);
  var_3 = var_4((type_6)private_key);
  var_5 = var_3 + 8;
  if (var_5 < 0) {
    var_5 = var_3 + 0xf;
  }
  digest512._0_4_ = var_5 >> 3;
  var_2(&ss,digest512,4);
  if (var_3 < 0) {
                    /* WARNING: Subroutine does not return */
    var_6(digest512,4);
  }
                    /* WARNING: Subroutine does not return */
  var_7((type_6)private_key,(var_5 >> 3) + -1);
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (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: (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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (field_expression argument: (identifier) field: (field_identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (number_literal))))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (identifier) (identifier)))) (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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (do_statement body: (compound_statement (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: (field_expression argument: (identifier) field: (field_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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (identifier) field: (field_identifier))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (field_expression argument: (identifier) field: (field_identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (field_expression argument: (identifier) field: (field_identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (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: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) 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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (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: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (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) (identifier) (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (unary_expression argument: (identifier)))))) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (unary_expression argument: (identifier)))))) right: (binary_expression left: (number_literal) right: (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (number_literal)))) right: (binary_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: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (unary_expression argument: (identifier)))))) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (unary_expression argument: (identifier)))))) right: (binary_expression left: (number_literal) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (number_literal)))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (binary_expression left: (number_literal) right: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (number_literal) (number_literal) (number_literal) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (identifier) (number_literal) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal) (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: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (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)))))) (return_statement (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

undefined1 *
MASKED(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 *param_4,
         undefined4 param_5)

{
  undefined1 *puVar1;
  byte bVar2;
  undefined1 uVar3;
  int iVar4;
  SHA512_CTX *pSVar5;
  SHA512_CTX *pSVar6;
  undefined1 *puVar7;
  undefined1 *puVar8;
  undefined1 uVar11;
  int *piVar9;
  undefined4 uVar10;
  uchar *puVar12;
  uchar *puVar13;
  undefined4 *puVar14;
  undefined4 uVar15;
  uint uVar16;
  undefined4 *puVar17;
  undefined4 uVar18;
  code *pcVar19;
  undefined4 *puVar20;
  undefined4 *puVar21;
  int iVar22;
  undefined *puVar23;
  int iVar24;
  undefined *puVar25;
  undefined *puVar26;
  undefined4 *puVar27;
  uint uVar28;
  undefined *puVar29;
  code *pcVar30;
  int iVar31;
  undefined4 uStack_2cc;
  undefined4 uStack_2c8;
  int iStack_2c4;
  undefined4 *puStack_2c0;
  int iStack_2bc;
  undefined *puStack_2b8;
  undefined1 *puStack_2b4;
  undefined1 *puStack_2b0;
  undefined4 *puStack_2ac;
  undefined1 *puStack_2a8;
  undefined4 *puStack_2a4;
  undefined4 *puStack_2a0;
  undefined4 uStack_29c;
  undefined4 local_288;
  undefined *local_280;
  undefined1 auStack_278 [20];
  undefined4 *local_264;
  SHA512_CTX *local_260;
  SHA512_CTX *local_25c;
  undefined *local_258;
  SHA512_CTX *local_254;
  undefined *local_250;
  undefined4 *local_24c;
  undefined *local_248;
  uchar *local_244;
  undefined1 *local_240;
  undefined4 local_23c;
  undefined1 local_214 [212];
  uchar local_140 [4];
  undefined4 local_13c [52];
  int local_6c;
  undefined4 *local_2c;
  
  puVar29 = PTR___stack_chk_guard_0006a594;
  local_2c = *(undefined4 **)PTR___stack_chk_guard_0006a594;
  puVar20 = param_4;
  SHA512_Init((SHA512_CTX *)local_214);
  iVar4 = (*(code *)PTR_strlen_0006a51c)(param_1);
  SHA512_Bytes((SHA512_CTX *)local_214,param_1,iVar4 + 1);
  iVar4 = bignum_bitcount(param_3);
  iVar24 = iVar4 + 8;
  if (iVar24 < 0) {
    iVar24 = iVar4 + 0xf;
  }
  iVar24 = iVar24 >> 3;
  local_6c = iVar24;
  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,4);
  if (-1 < iVar4) {
    do {
      iVar24 = iVar24 + -1;
      uVar11 = bignum_byte(param_3,iVar24);
      local_6c = CONCAT13(uVar11,local_6c._1_3_);
      SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,1);
    } while (0 < iVar24);
  }
  puVar25 = PTR_One_0006a2cc;
  puVar26 = PTR_Zero_0006a2b8;
  smemclr((SHA512_CTX *)&local_6c,4);
  SHA512_Final((uchar *)local_214,(SHA512_CTX *)&local_6c);
  SHA512_Init((SHA512_CTX *)local_214);
  SHA512_Bytes((SHA512_CTX *)local_214,(SHA512_CTX *)&local_6c,0x40);
  SHA512_Bytes((SHA512_CTX *)local_214,param_4,param_5);
  puVar23 = PTR_DAT_0006a068 + 0x3134;
  pSVar5 = (SHA512_CTX *)local_214;
  puVar12 = local_140;
  while( true ) {
    do {
      pSVar6 = (SHA512_CTX *)(pSVar5->h + 2);
      puVar13 = puVar12 + 0x10;
      uVar10 = (undefined4)pSVar5->h[0];
      uVar18 = *(undefined4 *)(pSVar5->h + 1);
      uVar15 = *(undefined4 *)((int)pSVar5->h + 0xc);
      *(undefined4 *)puVar12 = *(undefined4 *)pSVar5->h;
      *(undefined4 *)(puVar12 + 4) = uVar10;
      *(undefined4 *)(puVar12 + 8) = uVar18;
      *(undefined4 *)(puVar12 + 0xc) = uVar15;
      pSVar5 = pSVar6;
      puVar12 = puVar13;
    } while (pSVar6 != (SHA512_CTX *)(local_214 + 0xd0));
    *(undefined4 *)puVar13 = *(undefined4 *)pSVar6->h;
    SHA512_Final(local_140,(SHA512_CTX *)&local_6c);
    smemclr(local_140,0xd4);
    uVar15 = bignum_from_bytes((SHA512_CTX *)&local_6c,0x40);
    puVar7 = (undefined1 *)bigmod(uVar15,param_2);
    freebn(uVar15);
    iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar25);
    if ((iVar4 != 0) && (iVar4 = bignum_cmp(puVar7,*(undefined4 *)puVar26), iVar4 != 0)) break;
    freebn(puVar7);
    SHA512_Bytes((SHA512_CTX *)local_214,puVar23,1);
    pSVar5 = (SHA512_CTX *)local_214;
    puVar12 = local_140;
  }
  smemclr((SHA512_CTX *)local_214,0xd4);
  uVar15 = 0x40;
  smemclr((SHA512_CTX *)&local_6c,0x40);
  if (local_2c == *(undefined4 **)puVar29) {
    return puVar7;
  }
  uVar18 = 0x2f68c;
  puVar21 = local_2c;
  puVar29 = PTR___stack_chk_fail_0006a574;
  (*(code *)PTR___stack_chk_fail_0006a574)();
  local_280 = puVar29 + 0x429a4;
  puVar27 = *(undefined4 **)(puVar29 + 0x3af08);
  puVar8 = auStack_278;
  local_264 = (undefined4 *)*puVar27;
  local_260 = (SHA512_CTX *)local_214;
  local_25c = (SHA512_CTX *)&local_6c;
  local_258 = puVar23;
  local_254 = (SHA512_CTX *)(local_214 + 0xd0);
  local_250 = puVar25;
  local_24c = param_2;
  local_248 = puVar26;
  local_244 = local_140;
  local_240 = puVar7;
  local_23c = uVar18;
  SHA_Simple(uVar15,uVar10,puVar8);
  local_288 = 0x14;
  puVar7 = puVar8;
  iVar4 = MASKED(*(int *)(local_280 + -0x7fc8) + 0x3138,puVar21[1],puVar21[4]);
  iVar24 = modinv(iVar4,puVar21[1]);
  puVar29 = local_280;
  if (iVar24 == 0) {
    pcVar19 = (code *)0x26f;
    puVar7 = (undefined1 *)(*(int *)(local_280 + -0x7fc8) + 0x3198);
    iVar24 = *(int *)(local_280 + -0x7fc8) + 0x3110;
    puVar17 = (undefined4 *)(*(int *)(local_280 + -0x7fc8) + 0x3158);
    (**(code **)(local_280 + -0x7bb8))();
  }
  else {
    uVar15 = modpow(puVar21[2],iVar4,*puVar21);
    puVar23 = (undefined *)bigmod(uVar15,puVar21[1]);
    freebn(uVar15);
    uVar15 = bignum_from_bytes(puVar8,0x14);
    uVar18 = bigmuladd(puVar21[4],puVar23,uVar15);
    puVar8 = (undefined1 *)modmul(iVar24,uVar18,puVar21[1]);
    freebn(uVar18);
    freebn(iVar24);
    freebn(iVar4);
    freebn(uVar15);
    puVar26 = (undefined *)safemalloc(0x37,1);
    puVar26[3] = 7;
    *puVar26 = 0;
    param_2 = (undefined4 *)(puVar26 + 0x23);
    iVar4 = *(int *)(local_280 + -0x7fc8);
    puVar25 = puVar26 + 0x22;
    puVar26[1] = 0;
    puVar26[2] = 0;
    uVar16 = *(uint *)(iVar4 + -0x1ac8);
    bVar2 = *(byte *)(iVar4 + -0x1ac4);
    pcVar19 = (code *)(uint)bVar2;
    uVar11 = *(undefined1 *)(iVar4 + -0x1ac3);
    uVar3 = *(undefined1 *)(iVar4 + -0x1ac2);
    puVar1 = puVar26 + 4;
    uVar28 = (uint)puVar1 & 3;
    *(uint *)(puVar1 + -uVar28) =
         *(uint *)(puVar1 + -uVar28) & -1 << (4 - uVar28) * 8 | uVar16 >> uVar28 * 8;
    puVar1 = puVar26 + 7;
    uVar28 = (uint)puVar1 & 3;
    *(uint *)(puVar1 + -uVar28) =
         *(uint *)(puVar1 + -uVar28) & 0xffffffffU >> (uVar28 + 1) * 8 | uVar16 << (3 - uVar28) * 8;
    puVar26[8] = bVar2;
    puVar26[9] = uVar11;
    puVar26[10] = uVar3;
    puVar26[0xb] = 0;
    puVar26[0xc] = 0;
    puVar26[0xd] = 0;
    puVar26[0xe] = 0x28;
    puVar17 = (undefined4 *)(puVar26 + 0xf);
    do {
      iVar4 = (int)puVar25 - (int)puVar17;
      uVar11 = bignum_byte(puVar23,iVar4);
      puVar21 = (undefined4 *)((int)puVar17 + 1);
      *(undefined1 *)puVar17 = uVar11;
      uVar11 = bignum_byte(puVar8,iVar4);
      *(undefined1 *)(puVar17 + 5) = uVar11;
      puVar17 = puVar21;
    } while (puVar21 != param_2);
    freebn(puVar23);
    freebn(puVar8);
    iVar24 = 0x37;
    puVar14 = (undefined4 *)*puVar27;
    *puVar20 = 0x37;
    puVar17 = local_264;
    puVar29 = local_280;
    if (local_264 == puVar14) {
      return puVar26;
    }
  }
  pcVar30 = *(code **)(puVar29 + -0x7abc);
  uVar15 = 0x2f96c;
  (*pcVar30)();
  piVar9 = *(int **)(pcVar30 + 0x3ac24);
  iStack_2c4 = *piVar9;
  puVar14 = *(undefined4 **)(pcVar30 + 0x3a95c);
  iVar22 = 1;
  puStack_2c0 = puVar21;
  iStack_2bc = iVar4;
  puStack_2b8 = puVar23;
  puStack_2b4 = puVar8;
  puStack_2b0 = puVar25;
  puStack_2ac = param_2;
  puStack_2a8 = puVar26;
  puStack_2a4 = puVar27;
  puStack_2a0 = puVar20;
  uStack_29c = uVar15;
  (*pcVar19)(puVar7,4,1,0x2800);
  (*pcVar19)(puVar7,3,1,0xffffd10e);
  (*pcVar19)(puVar7,4,2,iVar24 << 6);
  if (iVar24 == 0) {
    trap(7);
  }
  (*pcVar19)(puVar7,3,2,-0x1d57c4 / iVar24);
  (*pcVar19)(puVar7,4,3,0x2000);
  (*pcVar19)(puVar7,3,3,0xffff8000);
  (*pcVar19)(puVar7,4,4,0x2000);
  (*pcVar19)(puVar7,3,4,0xffff4000);
  (*pcVar19)(puVar7,5,0,0);
  invent_firstbits(&uStack_2cc,&uStack_2c8);
  uVar15 = primegen(0xa0,2,2,0,1,pcVar19,puVar7,uStack_2c8);
  puVar17[1] = uVar15;
  uVar15 = primegen(iVar24 + -0xa0,2,2,uVar15,2,pcVar19,puVar7,uStack_2cc);
  *puVar17 = uVar15;
  uVar18 = bigdiv(uVar15,puVar17[1]);
  uVar15 = bignum_from_long(1);
  while( true ) {
    (*pcVar19)(puVar7,6,3,iVar22);
    uVar10 = modpow(uVar15,uVar18,*puVar17);
    iVar4 = bignum_cmp(uVar10,*puVar14);
    if (0 < iVar4) break;
    uVar10 = bignum_add_long(uVar15,1);
    freebn(uVar15);
    iVar22 = iVar22 + 1;
    uVar15 = uVar10;
  }
  puVar17[2] = uVar10;
  freebn(uVar15);
  uVar15 = copybn(puVar17[1]);
  decbn(uVar15);
  iVar4 = 0;
  while( true ) {
    iVar4 = iVar4 + 1;
    (*pcVar19)(puVar7,6,4,iVar4);
    iVar22 = 0;
    uVar28 = 0;
    uVar18 = bn_power_2(0x9f);
    iVar24 = 0;
    do {
      if (iVar22 == 0) {
        iVar22 = 7;
        uVar28 = random_byte();
      }
      else {
        iVar22 = iVar22 + -1;
      }
      iVar31 = iVar24 + 1;
      bignum_set_bit(uVar18,iVar24,uVar28 & 1);
      uVar28 = (int)uVar28 >> 1;
      iVar24 = iVar31;
    } while (iVar31 != 0xa0);
    iVar24 = bignum_cmp(uVar18,*puVar14);
    if ((0 < iVar24) && (iVar24 = bignum_cmp(uVar18,uVar15), iVar24 < 0)) break;
    freebn(uVar18);
  }
  puVar17[4] = uVar18;
  freebn(uVar15);
  uVar15 = modpow(puVar17[2],puVar17[4],*puVar17);
  puVar17[3] = uVar15;
  if (iStack_2c4 != *piVar9) {
    iVar4 = iStack_2c4;
    puVar7 = (undefined1 *)(**(code **)(pcVar30 + 0x3ac04))();
    if (iVar4 == 0) {
      return puVar7;
    }
    if (*(int *)(iVar4 + 8) != 0) {
      freebn();
    }
    if (*(int *)(iVar4 + 0xc) != 0) {
      freebn();
    }
    if (*(int *)(iVar4 + 0x10) != 0) {
      freebn();
    }
    if (*(int *)(iVar4 + 0x18) != 0) {
      freebn();
    }
    puVar7 = (undefined1 *)safefree(iVar4);
    return puVar7;
  }
  return (undefined1 *)0x1;
}

