
int dss_verifysig(void *key,char *sig,int siglen,char *data,int datalen)

{
  Bignum_conflict pBVar1;
  Bignum_conflict pBVar2;
  int iVar3;
  Bignum pvVar4;
  char **data_00;
  char **data_01;
  Bignum_conflict *p_00;
  int *piVar5;
  int *piVar6;
  undefined4 *puVar7;
  undefined *puVar8;
  code *pcVar9;
  char *local_res8 [2];
  Bignum_conflict pBStack_84;
  char **ppcStack_80;
  int iStack_7c;
  void *pvStack_78;
  code *pcStack_74;
  uchar *local_4c;
  char *p;
  int slen;
  char hash [20];
  
  puVar8 = PTR___stack_chk_guard_000adcd4;
                    /* WARNING: Load size is inaccurate */
  data_00 = *(char ***)PTR___stack_chk_guard_000adcd4;
  data_01 = (char **)sig;
  local_res8[0] = (char *)siglen;
  local_4c = (uchar *)sig;
  if (*key == 0) goto LAB_00059444;
  if (siglen != 0x28) {
    data_01 = local_res8;
    getstring((char **)&local_4c,(int *)data_01,&p,&slen);
    if ((p == (char *)0x0) || (slen != 7)) goto LAB_00059444;
    data_01 = (char **)(PTR_DAT_000ad2c8 + 0x5650);
    iVar3 = (*(code *)PTR_memcmp_000adcb8)(p,data_01,7);
    if (iVar3 != 0) goto LAB_00059444;
    local_res8[0] = local_res8[0] + -4;
    local_4c = local_4c + 4;
    if ((int)local_res8[0] < 0x14) goto LAB_00059444;
  }
  data_01 = (char **)&DAT_00000014;
  pBVar1 = bignum_from_bytes(local_4c,0x14);
  local_res8[0] = local_res8[0] + -0x14;
  local_4c = local_4c + 0x14;
  if ((int)local_res8[0] < 0x14) {
    if (pBVar1 != (Bignum_conflict)0x0) goto LAB_00059498;
  }
  else {
    data_01 = (char **)&DAT_00000014;
    pBVar2 = bignum_from_bytes(local_4c,0x14);
    local_4c = local_4c + 0x14;
    local_res8[0] = local_res8[0] + -0x14;
    if (pBVar1 != (Bignum_conflict)0x0) {
      if (pBVar2 != (Bignum_conflict)0x0) {
        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);
        if (iVar3 == 0) {
          iVar3 = FUN_000593a8(pBVar1);
          return iVar3;
        }
        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));
        if (pBVar2 == (Bignum_conflict)0x0) {
                    /* WARNING: Subroutine does not return */
          freebn(pBVar1);
        }
        SHA_Simple(data,datalen,(uchar *)hash);
        slen = 0x14;
        p = hash;
        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);
        p = p + 0x14;
        slen = slen + -0x14;
                    /* WARNING: Subroutine does not return */
        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));
      }
LAB_00059498:
                    /* WARNING: Subroutine does not return */
      freebn(pBVar1);
    }
    if (pBVar2 != (Bignum_conflict)0x0) {
                    /* WARNING: Subroutine does not return */
      freebn(pBVar2);
    }
  }
LAB_00059444:
  if (data_00 == *(char ***)puVar8) {
    return 0;
  }
  pcVar9 = getmp;
  puVar8 = PTR___stack_chk_fail_000adca4;
  (*(code *)PTR___stack_chk_fail_000adca4)();
  p_00 = &pBStack_84;
  piVar5 = *(int **)(puVar8 + 0x547d8);
  iStack_7c = *piVar5;
  pvStack_78 = key;
  pcStack_74 = pcVar9;
  getstring(data_00,(int *)data_01,(char **)p_00,(int *)&ppcStack_80);
  if (pBStack_84 != (Bignum_conflict)0x0) {
    if (*(char *)pBStack_84 < '\0') {
      pBStack_84 = (Bignum_conflict)0x0;
    }
    else {
      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);
      data_01 = ppcStack_80;
    }
  }
  if (iStack_7c != *piVar5) {
    pcVar9 = *(code **)(puVar8 + 0x547a8);
    (*pcVar9)();
    piVar5 = (int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14);
    pvVar4 = getmp(data_01,(int *)p_00);
    *piVar5 = (int)pvVar4;
    pvVar4 = getmp(data_01,(int *)p_00);
    piVar5[1] = (int)pvVar4;
    pvVar4 = getmp(data_01,(int *)p_00);
    piVar5[2] = (int)pvVar4;
    pvVar4 = getmp(data_01,(int *)p_00);
    piVar5[3] = (int)pvVar4;
    pvVar4 = getmp(data_01,(int *)p_00);
    piVar5[4] = (int)pvVar4;
    if ((((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||
        (piVar5[2] == 0)) ||
       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||
        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||
         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,
         iVar3 == 0)))))) {
      piVar6 = (int *)0x0;
      dss_freekey(piVar5);
    }
    return (int)piVar6;
  }
  return (int)pBStack_84;
}



int * FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  int iVar10;
  int **ppiVar11;
  int *piVar12;
  undefined4 *puVar13;
  undefined *puVar14;
  code *pcVar15;
  int local_res8 [2];
  int *piStack_84;
  int *piStack_80;
  int iStack_7c;
  int *piStack_78;
  code *pcStack_74;
  int *local_58;
  int *local_4c;
  undefined1 *local_48;
  int local_44;
  undefined1 auStack_40 [20];
  int local_2c;
  
  puVar14 = PTR___stack_chk_guard_000adcd4;
  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;
  local_res8[0] = param_3;
  local_4c = param_2;
  if (*param_1 != 0) {
    if (param_3 == 0x28) {
LAB_00059158:
      param_2 = (int *)&DAT_00000014;
      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);
      local_res8[0] = local_res8[0] + -0x14;
      local_4c = local_4c + 5;
      if (local_res8[0] < 0x14) {
        if (piVar1 == (int *)0x0) goto LAB_00059440;
      }
      else {
        param_2 = (int *)&DAT_00000014;
        iVar2 = bignum_from_bytes(local_4c,0x14);
        local_4c = local_4c + 5;
        local_res8[0] = local_res8[0] + -0x14;
        if (piVar1 == (int *)0x0) {
          if (iVar2 != 0) {
            freebn(iVar2);
            local_58 = (int *)0x0;
            goto LAB_00059444;
          }
          goto LAB_00059440;
        }
        if (iVar2 != 0) {
          param_2 = *(int **)PTR_Zero_000ad870;
          iVar3 = bignum_cmp(iVar2,param_2);
          if (iVar3 == 0) {
            local_58 = (int *)0x0;
          }
          else {
            param_2 = (int *)param_1[1];
            iVar3 = modinv(iVar2,param_2);
            if (iVar3 == 0) {
              freebn(piVar1);
              freebn(iVar2);
              goto LAB_00059440;
            }
            SHA_Simple(param_4,param_5,auStack_40);
            local_44 = 0x14;
            local_48 = auStack_40;
            uVar4 = bignum_from_bytes(auStack_40,0x14);
            local_48 = local_48 + 0x14;
            local_44 = local_44 + -0x14;
            uVar5 = modmul(uVar4,iVar3,param_1[1]);
            uVar6 = modmul(piVar1,iVar3,param_1[1]);
            uVar7 = modpow(param_1[2],uVar5,*param_1);
            uVar8 = modpow(param_1[3],uVar6,*param_1);
            uVar9 = modmul(uVar7,uVar8,*param_1);
            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);
            param_2 = piVar1;
            iVar10 = bignum_cmp(param_1,piVar1);
            local_58 = (int *)(uint)(iVar10 == 0);
            freebn(iVar3);
            freebn(uVar4);
            freebn(uVar5);
            freebn(uVar6);
            freebn(uVar7);
            freebn(uVar8);
            freebn(uVar9);
            freebn(param_1);
          }
          freebn(piVar1);
          freebn(iVar2);
          goto LAB_00059444;
        }
      }
      freebn(piVar1);
      local_58 = (int *)0x0;
      goto LAB_00059444;
    }
    param_2 = local_res8;
    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);
    if (local_48 != (undefined1 *)0x0) {
      local_58 = (int *)0x0;
      if (local_44 != 7) goto LAB_00059444;
      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);
      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);
      if (iVar2 == 0) {
        local_res8[0] = local_res8[0] + -4;
        local_4c = local_4c + 1;
        if (0x13 < local_res8[0]) goto LAB_00059158;
      }
    }
  }
LAB_00059440:
  local_58 = (int *)0x0;
LAB_00059444:
  if (local_2c == *(int *)puVar14) {
    return local_58;
  }
  pcVar15 = FUN_000594fc;
  puVar14 = PTR___stack_chk_fail_000adca4;
  (*(code *)PTR___stack_chk_fail_000adca4)();
  ppiVar11 = &piStack_84;
  piVar1 = *(int **)(puVar14 + 0x547d8);
  iStack_7c = *piVar1;
  piStack_78 = param_1;
  pcStack_74 = pcVar15;
  FUN_0005902c();
  if (piStack_84 != (int *)0x0) {
    if (*(char *)piStack_84 < '\0') {
      piStack_84 = (int *)0x0;
    }
    else {
      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);
      param_2 = piStack_80;
    }
  }
  if (iStack_7c != *piVar1) {
    pcVar15 = *(code **)(puVar14 + 0x547a8);
    (*pcVar15)();
    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    *piVar1 = iVar2;
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    piVar1[1] = iVar2;
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    piVar1[2] = iVar2;
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    piVar1[3] = iVar2;
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    piVar1[4] = iVar2;
    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||
       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||
        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||
         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {
      piVar12 = (int *)0x0;
      FUN_00058e40(piVar1);
    }
    return piVar12;
  }
  return piStack_84;
}


lui gp,0x6
addiu gp,gp,-0x3e5c
addu gp,gp,t9
addiu sp,sp,-0x70
lw v0,0x0(a0)
sw s1,0x4c(sp)
lw s1,-0x75bc(gp)
sw gp,0x10(sp)
sw s0,0x48(sp)
or s0,a0,zero
sw ra,0x6c(sp)
sw s8,0x68(sp)
sw s7,0x64(sp)
sw s6,0x60(sp)
sw s5,0x5c(sp)
sw s4,0x58(sp)
sw s3,0x54(sp)
sw s2,0x50(sp)
sw a1,0x24(sp)
sw a2,0x78(sp)
lw v1,0x0(s1)
sw v1,0x44(sp)
beq v0,zero,0x00059440
_li v0,0x28
or a0,a1,zero
bne a2,v0,0x000593cc
_or s2,a3,zero
lw t9,-0x7c3c(gp)
bal 0x0004ff80
_li a1,0x14
or s3,v0,zero
lw v0,0x78(sp)
lw a0,0x24(sp)
lw gp,0x10(sp)
addiu v0,v0,-0x14
addiu a0,a0,0x14
slti v1,v0,0x14
sw v0,0x78(sp)
bne v1,zero,0x00059490
_sw a0,0x24(sp)
lw t9,-0x7c3c(gp)
bal 0x0004ff80
_li a1,0x14
lw v1,0x24(sp)
or s4,v0,zero
lw v0,0x78(sp)
lw gp,0x10(sp)
addiu v1,v1,0x14
addiu v0,v0,-0x14
sw v1,0x24(sp)
beq s3,zero,0x000594b0
_sw v0,0x78(sp)
beq s4,zero,0x00059498
_or a0,s4,zero
lw v0,-0x7a20(gp)
lw t9,-0x7a2c(gp)
bal 0x000506e8
_lw a1,0x0(v0)
beq v0,zero,0x00059480
_lw gp,0x10(sp)
lw t9,-0x7a04(gp)
or a0,s4,zero
bal 0x0005217c
_lw a1,0x4(s0)
lw gp,0x10(sp)
beq v0,zero,0x000594cc
_or s6,v0,zero
lw t9,-0x79d4(gp)
addiu s5,sp,0x30
lw a1,0x80(sp)
or a0,s2,zero
bal 0x0006f328
_or a2,s5,zero
li v0,0x14
lw gp,0x10(sp)
li a1,0x14
or a0,s5,zero
sw s5,0x28(sp)
lw t9,-0x7c3c(gp)
bal 0x0004ff80
_sw v0,0x2c(sp)
or a1,s6,zero
lw gp,0x10(sp)
or a0,v0,zero
lw v1,0x28(sp)
lw a2,0x4(s0)
sw v0,0x20(sp)
lw v0,0x2c(sp)
addiu v1,v1,0x14
lw t9,-0x7a00(gp)
sw v1,0x28(sp)
addiu v0,v0,-0x14
bal 0x0004fa24
_sw v0,0x2c(sp)
or a1,s6,zero
lw gp,0x10(sp)
or a0,s3,zero
lw a2,0x4(s0)
lw t9,-0x7a00(gp)
bal 0x0004fa24
_or s7,v0,zero
or a1,s7,zero
lw gp,0x10(sp)
or s5,v0,zero
lw a2,0x0(s0)
lw t9,-0x79dc(gp)
bal 0x00052614
_lw a0,0x8(s0)
or a1,s5,zero
lw gp,0x10(sp)
or s2,v0,zero
lw a2,0x0(s0)
lw t9,-0x79dc(gp)
bal 0x00052614
_lw a0,0xc(s0)
or a0,s2,zero
lw gp,0x10(sp)
or a1,v0,zero
lw a2,0x0(s0)
lw t9,-0x7a00(gp)
bal 0x0004fa24
_sw v0,0x1c(sp)
lw gp,0x10(sp)
or a0,v0,zero
or s8,v0,zero
lw a2,0x4(s0)
lw v0,-0x7a08(gp)
lw t9,-0x7a00(gp)
bal 0x0004fa24
_lw a1,0x0(v0)
or a1,s3,zero
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7a2c(gp)
bal 0x000506e8
_or s0,v0,zero
or a0,s6,zero
lw gp,0x10(sp)
sltiu v0,v0,0x1
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_sw v0,0x18(sp)
lw gp,0x10(sp)
lw a3,0x20(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,a3,zero
lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s7,zero
lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s5,zero
lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s2,zero
lw gp,0x10(sp)
lw v1,0x1c(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,v1,zero
lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s8,zero
lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s0,zero
or a0,s3,zero
lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_nop
lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s4,zero
lw gp,0x10(sp)
b 0x00059444
_lw v0,0x18(sp)
lw t9,-0x79e0(gp)
addiu a0,sp,0x24
addiu a3,sp,0x2c
addiu a2,sp,0x28
addiu t9,t9,-0x6fd4
bal 0x0005902c
_addiu a1,sp,0x78
lw a0,0x28(sp)
beq a0,zero,0x00059440
_lw gp,0x10(sp)
lw v1,0x2c(sp)
li v0,0x7
bne v1,v0,0x00059444
_or v0,zero,zero
lw a1,-0x7fc8(gp)
li a2,0x7
lw t9,-0x75d8(gp)
jalr t9
_addiu a1,a1,0x5650
bne v0,zero,0x00059440
_lw gp,0x10(sp)
lw v0,0x78(sp)
lw a0,0x24(sp)
addiu v0,v0,-0x4
addiu a0,a0,0x4
slti v1,v0,0x14
sw v0,0x78(sp)
beq v1,zero,0x00059158
_sw a0,0x24(sp)
or v0,zero,zero
lw a0,0x44(sp)
lw v1,0x0(s1)
bne a0,v1,0x000594f0
_lw ra,0x6c(sp)
lw s8,0x68(sp)
lw s7,0x64(sp)
lw s6,0x60(sp)
lw s5,0x5c(sp)
lw s4,0x58(sp)
lw s3,0x54(sp)
lw s2,0x50(sp)
lw s1,0x4c(sp)
lw s0,0x48(sp)
jr ra
_addiu sp,sp,0x70
lw t9,-0x7b18(gp)
or a0,s3,zero
b 0x000593a8
_sw v0,0x18(sp)
beq s3,zero,0x00059440
_nop
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s3,zero
or v0,zero,zero
b 0x00059444
_lw gp,0x10(sp)
beq s4,zero,0x00059440
_lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s4,zero
or v0,zero,zero
b 0x00059444
_lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s3,zero
lw gp,0x10(sp)
lw t9,-0x7b18(gp)
bal 0x0004f9d4
_or a0,s4,zero
b 0x00059440
_lw gp,0x10(sp)
lw t9,-0x75ec(gp)
jalr t9
_nop
(translation_unit "int * FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int **ppiVar11;\n  int *piVar12;\n  undefined4 *puVar13;\n  undefined *puVar14;\n  code *pcVar15;\n  int local_res8 [2];\n  int *piStack_84;\n  int *piStack_80;\n  int iStack_7c;\n  int *piStack_78;\n  code *pcStack_74;\n  int *local_58;\n  int *local_4c;\n  undefined1 *local_48;\n  int local_44;\n  undefined1 auStack_40 [20];\n  int local_2c;\n  \n  puVar14 = PTR___stack_chk_guard_000adcd4;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  local_res8[0] = param_3;\n  local_4c = param_2;\n  if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }\nLAB_00059440:\n  local_58 = (int *)0x0;\nLAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }\n  pcVar15 = FUN_000594fc;\n  puVar14 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  ppiVar11 = &piStack_84;\n  piVar1 = *(int **)(puVar14 + 0x547d8);\n  iStack_7c = *piVar1;\n  piStack_78 = param_1;\n  pcStack_74 = pcVar15;\n  FUN_0005902c();\n  if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }\n  if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }\n  return piStack_84;\n}\n\n" (function_definition "int * FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int **ppiVar11;\n  int *piVar12;\n  undefined4 *puVar13;\n  undefined *puVar14;\n  code *pcVar15;\n  int local_res8 [2];\n  int *piStack_84;\n  int *piStack_80;\n  int iStack_7c;\n  int *piStack_78;\n  code *pcStack_74;\n  int *local_58;\n  int *local_4c;\n  undefined1 *local_48;\n  int local_44;\n  undefined1 auStack_40 [20];\n  int local_2c;\n  \n  puVar14 = PTR___stack_chk_guard_000adcd4;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  local_res8[0] = param_3;\n  local_4c = param_2;\n  if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }\nLAB_00059440:\n  local_58 = (int *)0x0;\nLAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }\n  pcVar15 = FUN_000594fc;\n  puVar14 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  ppiVar11 = &piStack_84;\n  piVar1 = *(int **)(puVar14 + 0x547d8);\n  iStack_7c = *piVar1;\n  piStack_78 = param_1;\n  pcStack_74 = pcVar15;\n  FUN_0005902c();\n  if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }\n  if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }\n  return piStack_84;\n}" primitive_type (pointer_declarator "* FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" * (function_declarator "FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int **ppiVar11;\n  int *piVar12;\n  undefined4 *puVar13;\n  undefined *puVar14;\n  code *pcVar15;\n  int local_res8 [2];\n  int *piStack_84;\n  int *piStack_80;\n  int iStack_7c;\n  int *piStack_78;\n  code *pcStack_74;\n  int *local_58;\n  int *local_4c;\n  undefined1 *local_48;\n  int local_44;\n  undefined1 auStack_40 [20];\n  int local_2c;\n  \n  puVar14 = PTR___stack_chk_guard_000adcd4;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  local_res8[0] = param_3;\n  local_4c = param_2;\n  if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }\nLAB_00059440:\n  local_58 = (int *)0x0;\nLAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }\n  pcVar15 = FUN_000594fc;\n  puVar14 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  ppiVar11 = &piStack_84;\n  piVar1 = *(int **)(puVar14 + 0x547d8);\n  iStack_7c = *piVar1;\n  piStack_78 = param_1;\n  pcStack_74 = pcVar15;\n  FUN_0005902c();\n  if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }\n  if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }\n  return piStack_84;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int **ppiVar11;" primitive_type (pointer_declarator "**ppiVar11" * (pointer_declarator "*ppiVar11" * identifier)) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "undefined4 *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "code *pcVar15;" type_identifier (pointer_declarator "*pcVar15" * identifier) ;) (declaration "int local_res8 [2];" primitive_type (array_declarator "local_res8 [2]" identifier [ number_literal ]) ;) (declaration "int *piStack_84;" primitive_type (pointer_declarator "*piStack_84" * identifier) ;) (declaration "int *piStack_80;" primitive_type (pointer_declarator "*piStack_80" * identifier) ;) (declaration "int iStack_7c;" primitive_type identifier ;) (declaration "int *piStack_78;" primitive_type (pointer_declarator "*piStack_78" * identifier) ;) (declaration "code *pcStack_74;" type_identifier (pointer_declarator "*pcStack_74" * identifier) ;) (declaration "int *local_58;" primitive_type (pointer_declarator "*local_58" * identifier) ;) (declaration "int *local_4c;" primitive_type (pointer_declarator "*local_4c" * identifier) ;) (declaration "undefined1 *local_48;" type_identifier (pointer_declarator "*local_48" * identifier) ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "undefined1 auStack_40 [20];" type_identifier (array_declarator "auStack_40 [20]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar14 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar14 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000adcd4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000adcd4" * (cast_expression "(int *)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_4c = param_2;" (assignment_expression "local_4c = param_2" identifier = identifier) ;) (if_statement "if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }" { (if_statement "if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }" if (parenthesized_expression "(param_3 == 0x28)" ( (binary_expression "param_3 == 0x28" identifier == number_literal) )) (compound_statement "{\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }" { (labeled_statement "LAB_00059158:\n      param_2 = (int *)&DAT_00000014;" statement_identifier : (expression_statement "param_2 = (int *)&DAT_00000014;" (assignment_expression "param_2 = (int *)&DAT_00000014" identifier = (cast_expression "(int *)&DAT_00000014" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000014" & identifier))) ;)) (expression_statement "piVar1 = (int *)bignum_from_bytes(local_4c,0x14);" (assignment_expression "piVar1 = (int *)bignum_from_bytes(local_4c,0x14)" identifier = (cast_expression "(int *)bignum_from_bytes(local_4c,0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bignum_from_bytes(local_4c,0x14)" identifier (argument_list "(local_4c,0x14)" ( identifier , number_literal ))))) ;) (expression_statement "local_res8[0] = local_res8[0] + -0x14;" (assignment_expression "local_res8[0] = local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "local_4c = local_4c + 5;" (assignment_expression "local_4c = local_4c + 5" identifier = (binary_expression "local_4c + 5" identifier + number_literal)) ;) (if_statement "if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" if (parenthesized_expression "(local_res8[0] < 0x14)" ( (binary_expression "local_res8[0] < 0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }" { (if_statement "if (piVar1 == (int *)0x0) goto LAB_00059440;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00059440;" goto statement_identifier ;)) }) (else_clause "else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" else (compound_statement "{\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" { (expression_statement "param_2 = (int *)&DAT_00000014;" (assignment_expression "param_2 = (int *)&DAT_00000014" identifier = (cast_expression "(int *)&DAT_00000014" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000014" & identifier))) ;) (expression_statement "iVar2 = bignum_from_bytes(local_4c,0x14);" (assignment_expression "iVar2 = bignum_from_bytes(local_4c,0x14)" identifier = (call_expression "bignum_from_bytes(local_4c,0x14)" identifier (argument_list "(local_4c,0x14)" ( identifier , number_literal )))) ;) (expression_statement "local_4c = local_4c + 5;" (assignment_expression "local_4c = local_4c + 5" identifier = (binary_expression "local_4c + 5" identifier + number_literal)) ;) (expression_statement "local_res8[0] = local_res8[0] + -0x14;" (assignment_expression "local_res8[0] = local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }" { (if_statement "if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }" { (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00059444;" goto statement_identifier ;) })) (goto_statement "goto LAB_00059440;" goto statement_identifier ;) })) (if_statement "if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }" { (expression_statement "param_2 = *(int **)PTR_Zero_000ad870;" (assignment_expression "param_2 = *(int **)PTR_Zero_000ad870" identifier = (pointer_expression "*(int **)PTR_Zero_000ad870" * (cast_expression "(int **)PTR_Zero_000ad870" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar3 = bignum_cmp(iVar2,param_2);" (assignment_expression "iVar3 = bignum_cmp(iVar2,param_2)" identifier = (call_expression "bignum_cmp(iVar2,param_2)" identifier (argument_list "(iVar2,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            local_58 = (int *)0x0;\n          }" { (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" else (compound_statement "{\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" { (expression_statement "param_2 = (int *)param_1[1];" (assignment_expression "param_2 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = modinv(iVar2,param_2);" (assignment_expression "iVar3 = modinv(iVar2,param_2)" identifier = (call_expression "modinv(iVar2,param_2)" identifier (argument_list "(iVar2,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }" { (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (goto_statement "goto LAB_00059440;" goto statement_identifier ;) })) (expression_statement "SHA_Simple(param_4,param_5,auStack_40);" (call_expression "SHA_Simple(param_4,param_5,auStack_40)" identifier (argument_list "(param_4,param_5,auStack_40)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_44 = 0x14;" (assignment_expression "local_44 = 0x14" identifier = number_literal) ;) (expression_statement "local_48 = auStack_40;" (assignment_expression "local_48 = auStack_40" identifier = identifier) ;) (expression_statement "uVar4 = bignum_from_bytes(auStack_40,0x14);" (assignment_expression "uVar4 = bignum_from_bytes(auStack_40,0x14)" identifier = (call_expression "bignum_from_bytes(auStack_40,0x14)" identifier (argument_list "(auStack_40,0x14)" ( identifier , number_literal )))) ;) (expression_statement "local_48 = local_48 + 0x14;" (assignment_expression "local_48 = local_48 + 0x14" identifier = (binary_expression "local_48 + 0x14" identifier + number_literal)) ;) (expression_statement "local_44 = local_44 + -0x14;" (assignment_expression "local_44 = local_44 + -0x14" identifier = (binary_expression "local_44 + -0x14" identifier + number_literal)) ;) (expression_statement "uVar5 = modmul(uVar4,iVar3,param_1[1]);" (assignment_expression "uVar5 = modmul(uVar4,iVar3,param_1[1])" identifier = (call_expression "modmul(uVar4,iVar3,param_1[1])" identifier (argument_list "(uVar4,iVar3,param_1[1])" ( identifier , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar6 = modmul(piVar1,iVar3,param_1[1]);" (assignment_expression "uVar6 = modmul(piVar1,iVar3,param_1[1])" identifier = (call_expression "modmul(piVar1,iVar3,param_1[1])" identifier (argument_list "(piVar1,iVar3,param_1[1])" ( identifier , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar7 = modpow(param_1[2],uVar5,*param_1);" (assignment_expression "uVar7 = modpow(param_1[2],uVar5,*param_1)" identifier = (call_expression "modpow(param_1[2],uVar5,*param_1)" identifier (argument_list "(param_1[2],uVar5,*param_1)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "uVar8 = modpow(param_1[3],uVar6,*param_1);" (assignment_expression "uVar8 = modpow(param_1[3],uVar6,*param_1)" identifier = (call_expression "modpow(param_1[3],uVar6,*param_1)" identifier (argument_list "(param_1[3],uVar6,*param_1)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "uVar9 = modmul(uVar7,uVar8,*param_1);" (assignment_expression "uVar9 = modmul(uVar7,uVar8,*param_1)" identifier = (call_expression "modmul(uVar7,uVar8,*param_1)" identifier (argument_list "(uVar7,uVar8,*param_1)" ( identifier , identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);" (assignment_expression "param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" identifier = (cast_expression "(int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" identifier (argument_list "(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" ( identifier , (pointer_expression "*(undefined4 *)PTR_One_000ad888" * (cast_expression "(undefined4 *)PTR_One_000ad888" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (subscript_expression "param_1[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "param_2 = piVar1;" (assignment_expression "param_2 = piVar1" identifier = identifier) ;) (expression_statement "iVar10 = bignum_cmp(param_1,piVar1);" (assignment_expression "iVar10 = bignum_cmp(param_1,piVar1)" identifier = (call_expression "bignum_cmp(param_1,piVar1)" identifier (argument_list "(param_1,piVar1)" ( identifier , identifier )))) ;) (expression_statement "local_58 = (int *)(uint)(iVar10 == 0);" (assignment_expression "local_58 = (int *)(uint)(iVar10 == 0)" identifier = (cast_expression "(int *)(uint)(iVar10 == 0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(iVar10 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) ))))) ;) (expression_statement "freebn(iVar3);" (call_expression "freebn(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "freebn(uVar4);" (call_expression "freebn(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "freebn(uVar5);" (call_expression "freebn(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "freebn(uVar6);" (call_expression "freebn(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "freebn(uVar7);" (call_expression "freebn(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "freebn(uVar8);" (call_expression "freebn(uVar8)" identifier (argument_list "(uVar8)" ( identifier ))) ;) (expression_statement "freebn(uVar9);" (call_expression "freebn(uVar9)" identifier (argument_list "(uVar9)" ( identifier ))) ;) (expression_statement "freebn(param_1);" (call_expression "freebn(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (goto_statement "goto LAB_00059444;" goto statement_identifier ;) })) }))) (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00059444;" goto statement_identifier ;) })) (expression_statement "param_2 = local_res8;" (assignment_expression "param_2 = local_res8" identifier = identifier) ;) (expression_statement "FUN_0005902c(&local_4c,param_2,&local_48,&local_44);" (call_expression "FUN_0005902c(&local_4c,param_2,&local_48,&local_44)" identifier (argument_list "(&local_4c,param_2,&local_48,&local_44)" ( (pointer_expression "&local_4c" & identifier) , identifier , (pointer_expression "&local_48" & identifier) , (pointer_expression "&local_44" & identifier) ))) ;) (if_statement "if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }" if (parenthesized_expression "(local_48 != (undefined1 *)0x0)" ( (binary_expression "local_48 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }" { (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (local_44 != 7) goto LAB_00059444;" if (parenthesized_expression "(local_44 != 7)" ( (binary_expression "local_44 != 7" identifier != number_literal) )) (goto_statement "goto LAB_00059444;" goto statement_identifier ;)) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650)" identifier = (cast_expression "(int *)(PTR_DAT_000ad2c8 + 0x5650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + 0x5650)" ( (binary_expression "PTR_DAT_000ad2c8 + 0x5650" identifier + number_literal) )))) ;) (expression_statement "iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7)" identifier = (call_expression "(*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7)" (parenthesized_expression "(*(code *)PTR_memcmp_000adcb8)" ( (pointer_expression "*(code *)PTR_memcmp_000adcb8" * (cast_expression "(code *)PTR_memcmp_000adcb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_48,param_2,7)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }" { (expression_statement "local_res8[0] = local_res8[0] + -4;" (assignment_expression "local_res8[0] = local_res8[0] + -4" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -4" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "local_4c = local_4c + 1;" (assignment_expression "local_4c = local_4c + 1" identifier = (binary_expression "local_4c + 1" identifier + number_literal)) ;) (if_statement "if (0x13 < local_res8[0]) goto LAB_00059158;" if (parenthesized_expression "(0x13 < local_res8[0])" ( (binary_expression "0x13 < local_res8[0]" number_literal < (subscript_expression "local_res8[0]" identifier [ number_literal ])) )) (goto_statement "goto LAB_00059158;" goto statement_identifier ;)) })) })) })) (labeled_statement "LAB_00059440:\n  local_58 = (int *)0x0;" statement_identifier : (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (labeled_statement "LAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar14)" ( (binary_expression "local_2c == *(int *)puVar14" identifier == (pointer_expression "*(int *)puVar14" * (cast_expression "(int *)puVar14" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return local_58;\n  }" { (return_statement "return local_58;" return identifier ;) }))) (expression_statement "pcVar15 = FUN_000594fc;" (assignment_expression "pcVar15 = FUN_000594fc" identifier = identifier) ;) (expression_statement "puVar14 = PTR___stack_chk_fail_000adca4;" (assignment_expression "puVar14 = PTR___stack_chk_fail_000adca4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "ppiVar11 = &piStack_84;" (assignment_expression "ppiVar11 = &piStack_84" identifier = (pointer_expression "&piStack_84" & identifier)) ;) (expression_statement "piVar1 = *(int **)(puVar14 + 0x547d8);" (assignment_expression "piVar1 = *(int **)(puVar14 + 0x547d8)" identifier = (pointer_expression "*(int **)(puVar14 + 0x547d8)" * (cast_expression "(int **)(puVar14 + 0x547d8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x547d8)" ( (binary_expression "puVar14 + 0x547d8" identifier + number_literal) ))))) ;) (expression_statement "iStack_7c = *piVar1;" (assignment_expression "iStack_7c = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "piStack_78 = param_1;" (assignment_expression "piStack_78 = param_1" identifier = identifier) ;) (expression_statement "pcStack_74 = pcVar15;" (assignment_expression "pcStack_74 = pcVar15" identifier = identifier) ;) (expression_statement "FUN_0005902c();" (call_expression "FUN_0005902c()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }" if (parenthesized_expression "(piStack_84 != (int *)0x0)" ( (binary_expression "piStack_84 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }" { (if_statement "if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" if (parenthesized_expression "(*(char *)piStack_84 < '\0')" ( (binary_expression "*(char *)piStack_84 < '\0'" (pointer_expression "*(char *)piStack_84" * (cast_expression "(char *)piStack_84" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piStack_84 = (int *)0x0;\n    }" { (expression_statement "piStack_84 = (int *)0x0;" (assignment_expression "piStack_84 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" else (compound_statement "{\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" { (expression_statement "piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);" (assignment_expression "piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80)" identifier = (cast_expression "(int *)bignum_from_bytes(piStack_84,piStack_80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bignum_from_bytes(piStack_84,piStack_80)" identifier (argument_list "(piStack_84,piStack_80)" ( identifier , identifier ))))) ;) (expression_statement "param_2 = piStack_80;" (assignment_expression "param_2 = piStack_80" identifier = identifier) ;) }))) })) (if_statement "if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }" if (parenthesized_expression "(iStack_7c != *piVar1)" ( (binary_expression "iStack_7c != *piVar1" identifier != (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }" { (expression_statement "pcVar15 = *(code **)(puVar14 + 0x547a8);" (assignment_expression "pcVar15 = *(code **)(puVar14 + 0x547a8)" identifier = (pointer_expression "*(code **)(puVar14 + 0x547a8)" * (cast_expression "(code **)(puVar14 + 0x547a8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x547a8)" ( (binary_expression "puVar14 + 0x547a8" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" ( (pointer_expression "*pcVar15" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);" (assignment_expression "piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14)" identifier = (cast_expression "(int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar15 + 0x53e80))(1,0x14)" (parenthesized_expression "(**(code **)(pcVar15 + 0x53e80))" ( (pointer_expression "**(code **)(pcVar15 + 0x53e80)" * (pointer_expression "*(code **)(pcVar15 + 0x53e80)" * (cast_expression "(code **)(pcVar15 + 0x53e80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x53e80)" ( (binary_expression "pcVar15 + 0x53e80" identifier + number_literal) ))))) )) (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "piVar1[2] = iVar2;" (assignment_expression "piVar1[2] = iVar2" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "piVar1[3] = iVar2;" (assignment_expression "piVar1[3] = iVar2" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "piVar1[4] = iVar2;" (assignment_expression "piVar1[4] = iVar2" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }" if (parenthesized_expression "((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))))))" ( (binary_expression "(((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))" (parenthesized_expression "(((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0))" ( (binary_expression "((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)" (parenthesized_expression "((*piVar1 == 0) || (piVar1[1] == 0))" ( (binary_expression "(*piVar1 == 0) || (piVar1[1] == 0)" (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) || (parenthesized_expression "(piVar1[1] == 0)" ( (binary_expression "piVar1[1] == 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) == number_literal) ))) )) || (parenthesized_expression "(piVar1[2] == 0)" ( (binary_expression "piVar1[2] == 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) == number_literal) ))) )) || (parenthesized_expression "(((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))" ( (parenthesized_expression "((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))))" ( (binary_expression "(piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))" (parenthesized_expression "(piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0))" ( (binary_expression "piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)" (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == number_literal) || (parenthesized_expression "(puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)" ( (comma_expression "puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0" (assignment_expression "puVar13 = *(undefined4 **)(pcVar15 + 0x542dc)" identifier = (pointer_expression "*(undefined4 **)(pcVar15 + 0x542dc)" * (cast_expression "(undefined4 **)(pcVar15 + 0x542dc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x542dc)" ( (binary_expression "pcVar15 + 0x542dc" identifier + number_literal) ))))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))" ( (parenthesized_expression "(iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))" ( (comma_expression "iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" (assignment_expression "iVar2 = bignum_cmp(piVar1[1],*puVar13)" identifier = (call_expression "bignum_cmp(piVar1[1],*puVar13)" identifier (argument_list "(piVar1[1],*puVar13)" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (pointer_expression "*puVar13" * identifier) )))) , (binary_expression "iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" (binary_expression "iVar2 == 0" identifier == number_literal) || (parenthesized_expression "(iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" ( (comma_expression "iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0" (assignment_expression "iVar2 = bignum_cmp(*piVar1,*puVar13)" identifier = (call_expression "bignum_cmp(*piVar1,*puVar13)" identifier (argument_list "(*piVar1,*puVar13)" ( (pointer_expression "*piVar1" * identifier) , (pointer_expression "*puVar13" * identifier) )))) , (comma_expression "piVar12 = piVar1, iVar2 == 0" (assignment_expression "piVar12 = piVar1" identifier = identifier) , (binary_expression "iVar2 == 0" identifier == number_literal))) )))) )) ))) )) ))) )) (compound_statement "{\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }" { (expression_statement "piVar12 = (int *)0x0;" (assignment_expression "piVar12 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_00058e40(piVar1);" (call_expression "FUN_00058e40(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) })) (return_statement "return piVar12;" return identifier ;) })) (return_statement "return piStack_84;" return identifier ;) })))
(translation_unit "int dss_verifysig(void *key,char *sig,int siglen,char *data,int datalen)\n\n{\n  Bignum_conflict pBVar1;\n  Bignum_conflict pBVar2;\n  int iVar3;\n  Bignum pvVar4;\n  char **data_00;\n  char **data_01;\n  Bignum_conflict *p_00;\n  int *piVar5;\n  int *piVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  char *local_res8 [2];\n  Bignum_conflict pBStack_84;\n  char **ppcStack_80;\n  int iStack_7c;\n  void *pvStack_78;\n  code *pcStack_74;\n  uchar *local_4c;\n  char *p;\n  int slen;\n  char hash [20];\n  \n  puVar8 = PTR___stack_chk_guard_000adcd4;\n                    /* WARNING: Load size is inaccurate */\n  data_00 = *(char ***)PTR___stack_chk_guard_000adcd4;\n  data_01 = (char **)sig;\n  local_res8[0] = (char *)siglen;\n  local_4c = (uchar *)sig;\n  if (*key == 0) goto LAB_00059444;\n  if (siglen != 0x28) {\n    data_01 = local_res8;\n    getstring((char **)&local_4c,(int *)data_01,&p,&slen);\n    if ((p == (char *)0x0) || (slen != 7)) goto LAB_00059444;\n    data_01 = (char **)(PTR_DAT_000ad2c8 + 0x5650);\n    iVar3 = (*(code *)PTR_memcmp_000adcb8)(p,data_01,7);\n    if (iVar3 != 0) goto LAB_00059444;\n    local_res8[0] = local_res8[0] + -4;\n    local_4c = local_4c + 4;\n    if ((int)local_res8[0] < 0x14) goto LAB_00059444;\n  }\n  data_01 = (char **)&DAT_00000014;\n  pBVar1 = bignum_from_bytes(local_4c,0x14);\n  local_res8[0] = local_res8[0] + -0x14;\n  local_4c = local_4c + 0x14;\n  if ((int)local_res8[0] < 0x14) {\n    if (pBVar1 != (Bignum_conflict)0x0) goto LAB_00059498;\n  }\n  else {\n    data_01 = (char **)&DAT_00000014;\n    pBVar2 = bignum_from_bytes(local_4c,0x14);\n    local_4c = local_4c + 0x14;\n    local_res8[0] = local_res8[0] + -0x14;\n    if (pBVar1 != (Bignum_conflict)0x0) {\n      if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }\nLAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);\n    }\n    if (pBVar2 != (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar2);\n    }\n  }\nLAB_00059444:\n  if (data_00 == *(char ***)puVar8) {\n    return 0;\n  }\n  pcVar9 = getmp;\n  puVar8 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  p_00 = &pBStack_84;\n  piVar5 = *(int **)(puVar8 + 0x547d8);\n  iStack_7c = *piVar5;\n  pvStack_78 = key;\n  pcStack_74 = pcVar9;\n  getstring(data_00,(int *)data_01,(char **)p_00,(int *)&ppcStack_80);\n  if (pBStack_84 != (Bignum_conflict)0x0) {\n    if (*(char *)pBStack_84 < '\0') {\n      pBStack_84 = (Bignum_conflict)0x0;\n    }\n    else {\n      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);\n      data_01 = ppcStack_80;\n    }\n  }\n  if (iStack_7c != *piVar5) {\n    pcVar9 = *(code **)(puVar8 + 0x547a8);\n    (*pcVar9)();\n    piVar5 = (int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14);\n    pvVar4 = getmp(data_01,(int *)p_00);\n    *piVar5 = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[1] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[2] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[3] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[4] = (int)pvVar4;\n    if ((((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)) ||\n       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))))) {\n      piVar6 = (int *)0x0;\n      dss_freekey(piVar5);\n    }\n    return (int)piVar6;\n  }\n  return (int)pBStack_84;\n}\n\n" (function_definition "int dss_verifysig(void *key,char *sig,int siglen,char *data,int datalen)\n\n{\n  Bignum_conflict pBVar1;\n  Bignum_conflict pBVar2;\n  int iVar3;\n  Bignum pvVar4;\n  char **data_00;\n  char **data_01;\n  Bignum_conflict *p_00;\n  int *piVar5;\n  int *piVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  char *local_res8 [2];\n  Bignum_conflict pBStack_84;\n  char **ppcStack_80;\n  int iStack_7c;\n  void *pvStack_78;\n  code *pcStack_74;\n  uchar *local_4c;\n  char *p;\n  int slen;\n  char hash [20];\n  \n  puVar8 = PTR___stack_chk_guard_000adcd4;\n                    /* WARNING: Load size is inaccurate */\n  data_00 = *(char ***)PTR___stack_chk_guard_000adcd4;\n  data_01 = (char **)sig;\n  local_res8[0] = (char *)siglen;\n  local_4c = (uchar *)sig;\n  if (*key == 0) goto LAB_00059444;\n  if (siglen != 0x28) {\n    data_01 = local_res8;\n    getstring((char **)&local_4c,(int *)data_01,&p,&slen);\n    if ((p == (char *)0x0) || (slen != 7)) goto LAB_00059444;\n    data_01 = (char **)(PTR_DAT_000ad2c8 + 0x5650);\n    iVar3 = (*(code *)PTR_memcmp_000adcb8)(p,data_01,7);\n    if (iVar3 != 0) goto LAB_00059444;\n    local_res8[0] = local_res8[0] + -4;\n    local_4c = local_4c + 4;\n    if ((int)local_res8[0] < 0x14) goto LAB_00059444;\n  }\n  data_01 = (char **)&DAT_00000014;\n  pBVar1 = bignum_from_bytes(local_4c,0x14);\n  local_res8[0] = local_res8[0] + -0x14;\n  local_4c = local_4c + 0x14;\n  if ((int)local_res8[0] < 0x14) {\n    if (pBVar1 != (Bignum_conflict)0x0) goto LAB_00059498;\n  }\n  else {\n    data_01 = (char **)&DAT_00000014;\n    pBVar2 = bignum_from_bytes(local_4c,0x14);\n    local_4c = local_4c + 0x14;\n    local_res8[0] = local_res8[0] + -0x14;\n    if (pBVar1 != (Bignum_conflict)0x0) {\n      if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }\nLAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);\n    }\n    if (pBVar2 != (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar2);\n    }\n  }\nLAB_00059444:\n  if (data_00 == *(char ***)puVar8) {\n    return 0;\n  }\n  pcVar9 = getmp;\n  puVar8 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  p_00 = &pBStack_84;\n  piVar5 = *(int **)(puVar8 + 0x547d8);\n  iStack_7c = *piVar5;\n  pvStack_78 = key;\n  pcStack_74 = pcVar9;\n  getstring(data_00,(int *)data_01,(char **)p_00,(int *)&ppcStack_80);\n  if (pBStack_84 != (Bignum_conflict)0x0) {\n    if (*(char *)pBStack_84 < '\0') {\n      pBStack_84 = (Bignum_conflict)0x0;\n    }\n    else {\n      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);\n      data_01 = ppcStack_80;\n    }\n  }\n  if (iStack_7c != *piVar5) {\n    pcVar9 = *(code **)(puVar8 + 0x547a8);\n    (*pcVar9)();\n    piVar5 = (int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14);\n    pvVar4 = getmp(data_01,(int *)p_00);\n    *piVar5 = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[1] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[2] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[3] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[4] = (int)pvVar4;\n    if ((((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)) ||\n       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))))) {\n      piVar6 = (int *)0x0;\n      dss_freekey(piVar5);\n    }\n    return (int)piVar6;\n  }\n  return (int)pBStack_84;\n}" primitive_type (function_declarator "dss_verifysig(void *key,char *sig,int siglen,char *data,int datalen)" identifier (parameter_list "(void *key,char *sig,int siglen,char *data,int datalen)" ( (parameter_declaration "void *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "char *sig" primitive_type (pointer_declarator "*sig" * identifier)) , (parameter_declaration "int siglen" primitive_type identifier) , (parameter_declaration "char *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int datalen" primitive_type identifier) ))) (compound_statement "{\n  Bignum_conflict pBVar1;\n  Bignum_conflict pBVar2;\n  int iVar3;\n  Bignum pvVar4;\n  char **data_00;\n  char **data_01;\n  Bignum_conflict *p_00;\n  int *piVar5;\n  int *piVar6;\n  undefined4 *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  char *local_res8 [2];\n  Bignum_conflict pBStack_84;\n  char **ppcStack_80;\n  int iStack_7c;\n  void *pvStack_78;\n  code *pcStack_74;\n  uchar *local_4c;\n  char *p;\n  int slen;\n  char hash [20];\n  \n  puVar8 = PTR___stack_chk_guard_000adcd4;\n                    /* WARNING: Load size is inaccurate */\n  data_00 = *(char ***)PTR___stack_chk_guard_000adcd4;\n  data_01 = (char **)sig;\n  local_res8[0] = (char *)siglen;\n  local_4c = (uchar *)sig;\n  if (*key == 0) goto LAB_00059444;\n  if (siglen != 0x28) {\n    data_01 = local_res8;\n    getstring((char **)&local_4c,(int *)data_01,&p,&slen);\n    if ((p == (char *)0x0) || (slen != 7)) goto LAB_00059444;\n    data_01 = (char **)(PTR_DAT_000ad2c8 + 0x5650);\n    iVar3 = (*(code *)PTR_memcmp_000adcb8)(p,data_01,7);\n    if (iVar3 != 0) goto LAB_00059444;\n    local_res8[0] = local_res8[0] + -4;\n    local_4c = local_4c + 4;\n    if ((int)local_res8[0] < 0x14) goto LAB_00059444;\n  }\n  data_01 = (char **)&DAT_00000014;\n  pBVar1 = bignum_from_bytes(local_4c,0x14);\n  local_res8[0] = local_res8[0] + -0x14;\n  local_4c = local_4c + 0x14;\n  if ((int)local_res8[0] < 0x14) {\n    if (pBVar1 != (Bignum_conflict)0x0) goto LAB_00059498;\n  }\n  else {\n    data_01 = (char **)&DAT_00000014;\n    pBVar2 = bignum_from_bytes(local_4c,0x14);\n    local_4c = local_4c + 0x14;\n    local_res8[0] = local_res8[0] + -0x14;\n    if (pBVar1 != (Bignum_conflict)0x0) {\n      if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }\nLAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);\n    }\n    if (pBVar2 != (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar2);\n    }\n  }\nLAB_00059444:\n  if (data_00 == *(char ***)puVar8) {\n    return 0;\n  }\n  pcVar9 = getmp;\n  puVar8 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  p_00 = &pBStack_84;\n  piVar5 = *(int **)(puVar8 + 0x547d8);\n  iStack_7c = *piVar5;\n  pvStack_78 = key;\n  pcStack_74 = pcVar9;\n  getstring(data_00,(int *)data_01,(char **)p_00,(int *)&ppcStack_80);\n  if (pBStack_84 != (Bignum_conflict)0x0) {\n    if (*(char *)pBStack_84 < '\0') {\n      pBStack_84 = (Bignum_conflict)0x0;\n    }\n    else {\n      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);\n      data_01 = ppcStack_80;\n    }\n  }\n  if (iStack_7c != *piVar5) {\n    pcVar9 = *(code **)(puVar8 + 0x547a8);\n    (*pcVar9)();\n    piVar5 = (int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14);\n    pvVar4 = getmp(data_01,(int *)p_00);\n    *piVar5 = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[1] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[2] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[3] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[4] = (int)pvVar4;\n    if ((((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)) ||\n       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))))) {\n      piVar6 = (int *)0x0;\n      dss_freekey(piVar5);\n    }\n    return (int)piVar6;\n  }\n  return (int)pBStack_84;\n}" { (declaration "Bignum_conflict pBVar1;" type_identifier identifier ;) (declaration "Bignum_conflict pBVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Bignum pvVar4;" type_identifier identifier ;) (declaration "char **data_00;" primitive_type (pointer_declarator "**data_00" * (pointer_declarator "*data_00" * identifier)) ;) (declaration "char **data_01;" primitive_type (pointer_declarator "**data_01" * (pointer_declarator "*data_01" * identifier)) ;) (declaration "Bignum_conflict *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char *local_res8 [2];" primitive_type (pointer_declarator "*local_res8 [2]" * (array_declarator "local_res8 [2]" identifier [ number_literal ])) ;) (declaration "Bignum_conflict pBStack_84;" type_identifier identifier ;) (declaration "char **ppcStack_80;" primitive_type (pointer_declarator "**ppcStack_80" * (pointer_declarator "*ppcStack_80" * identifier)) ;) (declaration "int iStack_7c;" primitive_type identifier ;) (declaration "void *pvStack_78;" primitive_type (pointer_declarator "*pvStack_78" * identifier) ;) (declaration "code *pcStack_74;" type_identifier (pointer_declarator "*pcStack_74" * identifier) ;) (declaration "uchar *local_4c;" type_identifier (pointer_declarator "*local_4c" * identifier) ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "int slen;" primitive_type identifier ;) (declaration "char hash [20];" primitive_type (array_declarator "hash [20]" identifier [ number_literal ]) ;) (expression_statement "puVar8 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar8 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) comment (expression_statement "data_00 = *(char ***)PTR___stack_chk_guard_000adcd4;" (assignment_expression "data_00 = *(char ***)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(char ***)PTR___stack_chk_guard_000adcd4" * (cast_expression "(char ***)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier))) ;) (expression_statement "data_01 = (char **)sig;" (assignment_expression "data_01 = (char **)sig" identifier = (cast_expression "(char **)sig" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ;) (expression_statement "local_res8[0] = (char *)siglen;" (assignment_expression "local_res8[0] = (char *)siglen" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (cast_expression "(char *)siglen" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_4c = (uchar *)sig;" (assignment_expression "local_4c = (uchar *)sig" identifier = (cast_expression "(uchar *)sig" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (*key == 0) goto LAB_00059444;" if (parenthesized_expression "(*key == 0)" ( (binary_expression "*key == 0" (pointer_expression "*key" * identifier) == number_literal) )) (goto_statement "goto LAB_00059444;" goto statement_identifier ;)) (if_statement "if (siglen != 0x28) {\n    data_01 = local_res8;\n    getstring((char **)&local_4c,(int *)data_01,&p,&slen);\n    if ((p == (char *)0x0) || (slen != 7)) goto LAB_00059444;\n    data_01 = (char **)(PTR_DAT_000ad2c8 + 0x5650);\n    iVar3 = (*(code *)PTR_memcmp_000adcb8)(p,data_01,7);\n    if (iVar3 != 0) goto LAB_00059444;\n    local_res8[0] = local_res8[0] + -4;\n    local_4c = local_4c + 4;\n    if ((int)local_res8[0] < 0x14) goto LAB_00059444;\n  }" if (parenthesized_expression "(siglen != 0x28)" ( (binary_expression "siglen != 0x28" identifier != number_literal) )) (compound_statement "{\n    data_01 = local_res8;\n    getstring((char **)&local_4c,(int *)data_01,&p,&slen);\n    if ((p == (char *)0x0) || (slen != 7)) goto LAB_00059444;\n    data_01 = (char **)(PTR_DAT_000ad2c8 + 0x5650);\n    iVar3 = (*(code *)PTR_memcmp_000adcb8)(p,data_01,7);\n    if (iVar3 != 0) goto LAB_00059444;\n    local_res8[0] = local_res8[0] + -4;\n    local_4c = local_4c + 4;\n    if ((int)local_res8[0] < 0x14) goto LAB_00059444;\n  }" { (expression_statement "data_01 = local_res8;" (assignment_expression "data_01 = local_res8" identifier = identifier) ;) (expression_statement "getstring((char **)&local_4c,(int *)data_01,&p,&slen);" (call_expression "getstring((char **)&local_4c,(int *)data_01,&p,&slen)" identifier (argument_list "((char **)&local_4c,(int *)data_01,&p,&slen)" ( (cast_expression "(char **)&local_4c" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&local_4c" & identifier)) , (cast_expression "(int *)data_01" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&p" & identifier) , (pointer_expression "&slen" & identifier) ))) ;) (if_statement "if ((p == (char *)0x0) || (slen != 7)) goto LAB_00059444;" if (parenthesized_expression "((p == (char *)0x0) || (slen != 7))" ( (binary_expression "(p == (char *)0x0) || (slen != 7)" (parenthesized_expression "(p == (char *)0x0)" ( (binary_expression "p == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(slen != 7)" ( (binary_expression "slen != 7" identifier != number_literal) ))) )) (goto_statement "goto LAB_00059444;" goto statement_identifier ;)) (expression_statement "data_01 = (char **)(PTR_DAT_000ad2c8 + 0x5650);" (assignment_expression "data_01 = (char **)(PTR_DAT_000ad2c8 + 0x5650)" identifier = (cast_expression "(char **)(PTR_DAT_000ad2c8 + 0x5650)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + 0x5650)" ( (binary_expression "PTR_DAT_000ad2c8 + 0x5650" identifier + number_literal) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_memcmp_000adcb8)(p,data_01,7);" (assignment_expression "iVar3 = (*(code *)PTR_memcmp_000adcb8)(p,data_01,7)" identifier = (call_expression "(*(code *)PTR_memcmp_000adcb8)(p,data_01,7)" (parenthesized_expression "(*(code *)PTR_memcmp_000adcb8)" ( (pointer_expression "*(code *)PTR_memcmp_000adcb8" * (cast_expression "(code *)PTR_memcmp_000adcb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p,data_01,7)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar3 != 0) goto LAB_00059444;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00059444;" goto statement_identifier ;)) (expression_statement "local_res8[0] = local_res8[0] + -4;" (assignment_expression "local_res8[0] = local_res8[0] + -4" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -4" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "local_4c = local_4c + 4;" (assignment_expression "local_4c = local_4c + 4" identifier = (binary_expression "local_4c + 4" identifier + number_literal)) ;) (if_statement "if ((int)local_res8[0] < 0x14) goto LAB_00059444;" if (parenthesized_expression "((int)local_res8[0] < 0x14)" ( (binary_expression "(int)local_res8[0] < 0x14" (cast_expression "(int)local_res8[0]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "local_res8[0]" identifier [ number_literal ])) < number_literal) )) (goto_statement "goto LAB_00059444;" goto statement_identifier ;)) })) (expression_statement "data_01 = (char **)&DAT_00000014;" (assignment_expression "data_01 = (char **)&DAT_00000014" identifier = (cast_expression "(char **)&DAT_00000014" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_00000014" & identifier))) ;) (expression_statement "pBVar1 = bignum_from_bytes(local_4c,0x14);" (assignment_expression "pBVar1 = bignum_from_bytes(local_4c,0x14)" identifier = (call_expression "bignum_from_bytes(local_4c,0x14)" identifier (argument_list "(local_4c,0x14)" ( identifier , number_literal )))) ;) (expression_statement "local_res8[0] = local_res8[0] + -0x14;" (assignment_expression "local_res8[0] = local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "local_4c = local_4c + 0x14;" (assignment_expression "local_4c = local_4c + 0x14" identifier = (binary_expression "local_4c + 0x14" identifier + number_literal)) ;) (if_statement "if ((int)local_res8[0] < 0x14) {\n    if (pBVar1 != (Bignum_conflict)0x0) goto LAB_00059498;\n  }\n  else {\n    data_01 = (char **)&DAT_00000014;\n    pBVar2 = bignum_from_bytes(local_4c,0x14);\n    local_4c = local_4c + 0x14;\n    local_res8[0] = local_res8[0] + -0x14;\n    if (pBVar1 != (Bignum_conflict)0x0) {\n      if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }\nLAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);\n    }\n    if (pBVar2 != (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar2);\n    }\n  }" if (parenthesized_expression "((int)local_res8[0] < 0x14)" ( (binary_expression "(int)local_res8[0] < 0x14" (cast_expression "(int)local_res8[0]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "local_res8[0]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n    if (pBVar1 != (Bignum_conflict)0x0) goto LAB_00059498;\n  }" { (if_statement "if (pBVar1 != (Bignum_conflict)0x0) goto LAB_00059498;" if (parenthesized_expression "(pBVar1 != (Bignum_conflict)0x0)" ( (binary_expression "pBVar1 != (Bignum_conflict)0x0" identifier != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_00059498;" goto statement_identifier ;)) }) (else_clause "else {\n    data_01 = (char **)&DAT_00000014;\n    pBVar2 = bignum_from_bytes(local_4c,0x14);\n    local_4c = local_4c + 0x14;\n    local_res8[0] = local_res8[0] + -0x14;\n    if (pBVar1 != (Bignum_conflict)0x0) {\n      if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }\nLAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);\n    }\n    if (pBVar2 != (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar2);\n    }\n  }" else (compound_statement "{\n    data_01 = (char **)&DAT_00000014;\n    pBVar2 = bignum_from_bytes(local_4c,0x14);\n    local_4c = local_4c + 0x14;\n    local_res8[0] = local_res8[0] + -0x14;\n    if (pBVar1 != (Bignum_conflict)0x0) {\n      if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }\nLAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);\n    }\n    if (pBVar2 != (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar2);\n    }\n  }" { (expression_statement "data_01 = (char **)&DAT_00000014;" (assignment_expression "data_01 = (char **)&DAT_00000014" identifier = (cast_expression "(char **)&DAT_00000014" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_00000014" & identifier))) ;) (expression_statement "pBVar2 = bignum_from_bytes(local_4c,0x14);" (assignment_expression "pBVar2 = bignum_from_bytes(local_4c,0x14)" identifier = (call_expression "bignum_from_bytes(local_4c,0x14)" identifier (argument_list "(local_4c,0x14)" ( identifier , number_literal )))) ;) (expression_statement "local_4c = local_4c + 0x14;" (assignment_expression "local_4c = local_4c + 0x14" identifier = (binary_expression "local_4c + 0x14" identifier + number_literal)) ;) (expression_statement "local_res8[0] = local_res8[0] + -0x14;" (assignment_expression "local_res8[0] = local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (pBVar1 != (Bignum_conflict)0x0) {\n      if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }\nLAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);\n    }" if (parenthesized_expression "(pBVar1 != (Bignum_conflict)0x0)" ( (binary_expression "pBVar1 != (Bignum_conflict)0x0" identifier != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n      if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }\nLAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);\n    }" { (if_statement "if (pBVar2 != (Bignum_conflict)0x0) {\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }" if (parenthesized_expression "(pBVar2 != (Bignum_conflict)0x0)" ( (binary_expression "pBVar2 != (Bignum_conflict)0x0" identifier != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n        iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);\n        if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }\n        pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));\n        if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }\n        SHA_Simple(data,datalen,(uchar *)hash);\n        slen = 0x14;\n        p = hash;\n        pBVar1 = bignum_from_bytes((uchar *)hash,0x14);\n        p = p + 0x14;\n        slen = slen + -0x14;\n                    /* WARNING: Subroutine does not return */\n        modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));\n      }" { (expression_statement "iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870);" (assignment_expression "iVar3 = bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870)" identifier = (call_expression "bignum_cmp(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870)" identifier (argument_list "(pBVar2,*(Bignum_conflict *)PTR_Zero_000ad870)" ( identifier , (pointer_expression "*(Bignum_conflict *)PTR_Zero_000ad870" * (cast_expression "(Bignum_conflict *)PTR_Zero_000ad870" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (iVar3 == 0) {\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar3 = FUN_000593a8(pBVar1);\n          return iVar3;\n        }" { (expression_statement "iVar3 = FUN_000593a8(pBVar1);" (assignment_expression "iVar3 = FUN_000593a8(pBVar1)" identifier = (call_expression "FUN_000593a8(pBVar1)" identifier (argument_list "(pBVar1)" ( identifier )))) ;) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4));" (assignment_expression "pBVar2 = modinv(pBVar2,*(Bignum_conflict *)((int)key + 4))" identifier = (call_expression "modinv(pBVar2,*(Bignum_conflict *)((int)key + 4))" identifier (argument_list "(pBVar2,*(Bignum_conflict *)((int)key + 4))" ( identifier , (pointer_expression "*(Bignum_conflict *)((int)key + 4)" * (cast_expression "(Bignum_conflict *)((int)key + 4)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 4)" ( (binary_expression "(int)key + 4" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (if_statement "if (pBVar2 == (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }" if (parenthesized_expression "(pBVar2 == (Bignum_conflict)0x0)" ( (binary_expression "pBVar2 == (Bignum_conflict)0x0" identifier == (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          freebn(pBVar1);\n        }" { comment (expression_statement "freebn(pBVar1);" (call_expression "freebn(pBVar1)" identifier (argument_list "(pBVar1)" ( identifier ))) ;) })) (expression_statement "SHA_Simple(data,datalen,(uchar *)hash);" (call_expression "SHA_Simple(data,datalen,(uchar *)hash)" identifier (argument_list "(data,datalen,(uchar *)hash)" ( identifier , identifier , (cast_expression "(uchar *)hash" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "slen = 0x14;" (assignment_expression "slen = 0x14" identifier = number_literal) ;) (expression_statement "p = hash;" (assignment_expression "p = hash" identifier = identifier) ;) (expression_statement "pBVar1 = bignum_from_bytes((uchar *)hash,0x14);" (assignment_expression "pBVar1 = bignum_from_bytes((uchar *)hash,0x14)" identifier = (call_expression "bignum_from_bytes((uchar *)hash,0x14)" identifier (argument_list "((uchar *)hash,0x14)" ( (cast_expression "(uchar *)hash" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (expression_statement "p = p + 0x14;" (assignment_expression "p = p + 0x14" identifier = (binary_expression "p + 0x14" identifier + number_literal)) ;) (expression_statement "slen = slen + -0x14;" (assignment_expression "slen = slen + -0x14" identifier = (binary_expression "slen + -0x14" identifier + number_literal)) ;) comment (expression_statement "modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4));" (call_expression "modmul(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4))" identifier (argument_list "(pBVar1,pBVar2,*(Bignum_conflict *)((int)key + 4))" ( identifier , identifier , (pointer_expression "*(Bignum_conflict *)((int)key + 4)" * (cast_expression "(Bignum_conflict *)((int)key + 4)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 4)" ( (binary_expression "(int)key + 4" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) (labeled_statement "LAB_00059498:\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar1);" statement_identifier : comment (expression_statement "freebn(pBVar1);" (call_expression "freebn(pBVar1)" identifier (argument_list "(pBVar1)" ( identifier ))) ;)) })) (if_statement "if (pBVar2 != (Bignum_conflict)0x0) {\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar2);\n    }" if (parenthesized_expression "(pBVar2 != (Bignum_conflict)0x0)" ( (binary_expression "pBVar2 != (Bignum_conflict)0x0" identifier != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      freebn(pBVar2);\n    }" { comment (expression_statement "freebn(pBVar2);" (call_expression "freebn(pBVar2)" identifier (argument_list "(pBVar2)" ( identifier ))) ;) })) }))) (labeled_statement "LAB_00059444:\n  if (data_00 == *(char ***)puVar8) {\n    return 0;\n  }" statement_identifier : (if_statement "if (data_00 == *(char ***)puVar8) {\n    return 0;\n  }" if (parenthesized_expression "(data_00 == *(char ***)puVar8)" ( (binary_expression "data_00 == *(char ***)puVar8" identifier == (pointer_expression "*(char ***)puVar8" * (cast_expression "(char ***)puVar8" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (expression_statement "pcVar9 = getmp;" (assignment_expression "pcVar9 = getmp" identifier = identifier) ;) (expression_statement "puVar8 = PTR___stack_chk_fail_000adca4;" (assignment_expression "puVar8 = PTR___stack_chk_fail_000adca4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "p_00 = &pBStack_84;" (assignment_expression "p_00 = &pBStack_84" identifier = (pointer_expression "&pBStack_84" & identifier)) ;) (expression_statement "piVar5 = *(int **)(puVar8 + 0x547d8);" (assignment_expression "piVar5 = *(int **)(puVar8 + 0x547d8)" identifier = (pointer_expression "*(int **)(puVar8 + 0x547d8)" * (cast_expression "(int **)(puVar8 + 0x547d8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x547d8)" ( (binary_expression "puVar8 + 0x547d8" identifier + number_literal) ))))) ;) (expression_statement "iStack_7c = *piVar5;" (assignment_expression "iStack_7c = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "pvStack_78 = key;" (assignment_expression "pvStack_78 = key" identifier = identifier) ;) (expression_statement "pcStack_74 = pcVar9;" (assignment_expression "pcStack_74 = pcVar9" identifier = identifier) ;) (expression_statement "getstring(data_00,(int *)data_01,(char **)p_00,(int *)&ppcStack_80);" (call_expression "getstring(data_00,(int *)data_01,(char **)p_00,(int *)&ppcStack_80)" identifier (argument_list "(data_00,(int *)data_01,(char **)p_00,(int *)&ppcStack_80)" ( identifier , (cast_expression "(int *)data_01" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char **)p_00" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , (cast_expression "(int *)&ppcStack_80" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ppcStack_80" & identifier)) ))) ;) (if_statement "if (pBStack_84 != (Bignum_conflict)0x0) {\n    if (*(char *)pBStack_84 < '\0') {\n      pBStack_84 = (Bignum_conflict)0x0;\n    }\n    else {\n      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);\n      data_01 = ppcStack_80;\n    }\n  }" if (parenthesized_expression "(pBStack_84 != (Bignum_conflict)0x0)" ( (binary_expression "pBStack_84 != (Bignum_conflict)0x0" identifier != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n    if (*(char *)pBStack_84 < '\0') {\n      pBStack_84 = (Bignum_conflict)0x0;\n    }\n    else {\n      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);\n      data_01 = ppcStack_80;\n    }\n  }" { (if_statement "if (*(char *)pBStack_84 < '\0') {\n      pBStack_84 = (Bignum_conflict)0x0;\n    }\n    else {\n      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);\n      data_01 = ppcStack_80;\n    }" if (parenthesized_expression "(*(char *)pBStack_84 < '\0')" ( (binary_expression "*(char *)pBStack_84 < '\0'" (pointer_expression "*(char *)pBStack_84" * (cast_expression "(char *)pBStack_84" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pBStack_84 = (Bignum_conflict)0x0;\n    }" { (expression_statement "pBStack_84 = (Bignum_conflict)0x0;" (assignment_expression "pBStack_84 = (Bignum_conflict)0x0" identifier = (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) ;) }) (else_clause "else {\n      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);\n      data_01 = ppcStack_80;\n    }" else (compound_statement "{\n      pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);\n      data_01 = ppcStack_80;\n    }" { (expression_statement "pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80);" (assignment_expression "pBStack_84 = bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80)" identifier = (call_expression "bignum_from_bytes((uchar *)pBStack_84,(int)ppcStack_80)" identifier (argument_list "((uchar *)pBStack_84,(int)ppcStack_80)" ( (cast_expression "(uchar *)pBStack_84" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(int)ppcStack_80" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "data_01 = ppcStack_80;" (assignment_expression "data_01 = ppcStack_80" identifier = identifier) ;) }))) })) (if_statement "if (iStack_7c != *piVar5) {\n    pcVar9 = *(code **)(puVar8 + 0x547a8);\n    (*pcVar9)();\n    piVar5 = (int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14);\n    pvVar4 = getmp(data_01,(int *)p_00);\n    *piVar5 = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[1] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[2] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[3] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[4] = (int)pvVar4;\n    if ((((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)) ||\n       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))))) {\n      piVar6 = (int *)0x0;\n      dss_freekey(piVar5);\n    }\n    return (int)piVar6;\n  }" if (parenthesized_expression "(iStack_7c != *piVar5)" ( (binary_expression "iStack_7c != *piVar5" identifier != (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n    pcVar9 = *(code **)(puVar8 + 0x547a8);\n    (*pcVar9)();\n    piVar5 = (int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14);\n    pvVar4 = getmp(data_01,(int *)p_00);\n    *piVar5 = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[1] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[2] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[3] = (int)pvVar4;\n    pvVar4 = getmp(data_01,(int *)p_00);\n    piVar5[4] = (int)pvVar4;\n    if ((((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)) ||\n       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))))) {\n      piVar6 = (int *)0x0;\n      dss_freekey(piVar5);\n    }\n    return (int)piVar6;\n  }" { (expression_statement "pcVar9 = *(code **)(puVar8 + 0x547a8);" (assignment_expression "pcVar9 = *(code **)(puVar8 + 0x547a8)" identifier = (pointer_expression "*(code **)(puVar8 + 0x547a8)" * (cast_expression "(code **)(puVar8 + 0x547a8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x547a8)" ( (binary_expression "puVar8 + 0x547a8" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar5 = (int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14);" (assignment_expression "piVar5 = (int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14)" identifier = (cast_expression "(int *)(**(code **)(pcVar9 + 0x53e80))(1,0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar9 + 0x53e80))(1,0x14)" (parenthesized_expression "(**(code **)(pcVar9 + 0x53e80))" ( (pointer_expression "**(code **)(pcVar9 + 0x53e80)" * (pointer_expression "*(code **)(pcVar9 + 0x53e80)" * (cast_expression "(code **)(pcVar9 + 0x53e80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x53e80)" ( (binary_expression "pcVar9 + 0x53e80" identifier + number_literal) ))))) )) (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "pvVar4 = getmp(data_01,(int *)p_00);" (assignment_expression "pvVar4 = getmp(data_01,(int *)p_00)" identifier = (call_expression "getmp(data_01,(int *)p_00)" identifier (argument_list "(data_01,(int *)p_00)" ( identifier , (cast_expression "(int *)p_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "*piVar5 = (int)pvVar4;" (assignment_expression "*piVar5 = (int)pvVar4" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pvVar4 = getmp(data_01,(int *)p_00);" (assignment_expression "pvVar4 = getmp(data_01,(int *)p_00)" identifier = (call_expression "getmp(data_01,(int *)p_00)" identifier (argument_list "(data_01,(int *)p_00)" ( identifier , (cast_expression "(int *)p_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "piVar5[1] = (int)pvVar4;" (assignment_expression "piVar5[1] = (int)pvVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pvVar4 = getmp(data_01,(int *)p_00);" (assignment_expression "pvVar4 = getmp(data_01,(int *)p_00)" identifier = (call_expression "getmp(data_01,(int *)p_00)" identifier (argument_list "(data_01,(int *)p_00)" ( identifier , (cast_expression "(int *)p_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "piVar5[2] = (int)pvVar4;" (assignment_expression "piVar5[2] = (int)pvVar4" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pvVar4 = getmp(data_01,(int *)p_00);" (assignment_expression "pvVar4 = getmp(data_01,(int *)p_00)" identifier = (call_expression "getmp(data_01,(int *)p_00)" identifier (argument_list "(data_01,(int *)p_00)" ( identifier , (cast_expression "(int *)p_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "piVar5[3] = (int)pvVar4;" (assignment_expression "piVar5[3] = (int)pvVar4" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pvVar4 = getmp(data_01,(int *)p_00);" (assignment_expression "pvVar4 = getmp(data_01,(int *)p_00)" identifier = (call_expression "getmp(data_01,(int *)p_00)" identifier (argument_list "(data_01,(int *)p_00)" ( identifier , (cast_expression "(int *)p_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "piVar5[4] = (int)pvVar4;" (assignment_expression "piVar5[4] = (int)pvVar4" (subscript_expression "piVar5[4]" identifier [ number_literal ]) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)) ||\n       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))))) {\n      piVar6 = (int *)0x0;\n      dss_freekey(piVar5);\n    }" if (parenthesized_expression "((((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)) ||\n       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0))))))" ( (binary_expression "(((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)) ||\n       (((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))))" (parenthesized_expression "(((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0))" ( (binary_expression "((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)) ||\n        (piVar5[2] == 0)" (parenthesized_expression "((*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0))" ( (binary_expression "(*piVar5 == 0) || ((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)" (parenthesized_expression "(*piVar5 == 0)" ( (binary_expression "*piVar5 == 0" (pointer_expression "*piVar5" * identifier) == number_literal) )) || (parenthesized_expression "((Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0)" ( (binary_expression "(Bignum_conflict)piVar5[1] == (Bignum_conflict)0x0" (cast_expression "(Bignum_conflict)piVar5[1]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "piVar5[1]" identifier [ number_literal ])) == (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) ))) )) || (parenthesized_expression "(piVar5[2] == 0)" ( (binary_expression "piVar5[2] == 0" (subscript_expression "piVar5[2]" identifier [ number_literal ]) == number_literal) ))) )) || (parenthesized_expression "(((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))))" ( (parenthesized_expression "((piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0))))" ( (binary_expression "(piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)) ||\n        ((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))" (parenthesized_expression "(piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0))" ( (binary_expression "piVar5[3] == 0 || (puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)" (binary_expression "piVar5[3] == 0" (subscript_expression "piVar5[3]" identifier [ number_literal ]) == number_literal) || (parenthesized_expression "(puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0)" ( (comma_expression "puVar7 = *(undefined4 **)(pcVar9 + 0x542dc), pvVar4 == (Bignum)0x0" (assignment_expression "puVar7 = *(undefined4 **)(pcVar9 + 0x542dc)" identifier = (pointer_expression "*(undefined4 **)(pcVar9 + 0x542dc)" * (cast_expression "(undefined4 **)(pcVar9 + 0x542dc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x542dc)" ( (binary_expression "pcVar9 + 0x542dc" identifier + number_literal) ))))) , (binary_expression "pvVar4 == (Bignum)0x0" identifier == (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal))) ))) )) || (parenthesized_expression "((iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)))" ( (parenthesized_expression "(iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0))" ( (comma_expression "iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7), iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)" (assignment_expression "iVar3 = bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7)" identifier = (call_expression "bignum_cmp((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7)" identifier (argument_list "((Bignum_conflict)piVar5[1],(Bignum_conflict)*puVar7)" ( (cast_expression "(Bignum_conflict)piVar5[1]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "piVar5[1]" identifier [ number_literal ])) , (binary_expression "(Bignum_conflict)*puVar7" (parenthesized_expression "(Bignum_conflict)" ( identifier )) * identifier) )))) , (binary_expression "iVar3 == 0 ||\n         (iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)" (binary_expression "iVar3 == 0" identifier == number_literal) || (parenthesized_expression "(iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0)" ( (comma_expression "iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7), piVar6 = piVar5,\n         iVar3 == 0" (assignment_expression "iVar3 = bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7)" identifier = (call_expression "bignum_cmp((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7)" identifier (argument_list "((Bignum_conflict)*piVar5,(Bignum_conflict)*puVar7)" ( (binary_expression "(Bignum_conflict)*piVar5" (parenthesized_expression "(Bignum_conflict)" ( identifier )) * identifier) , (binary_expression "(Bignum_conflict)*puVar7" (parenthesized_expression "(Bignum_conflict)" ( identifier )) * identifier) )))) , (comma_expression "piVar6 = piVar5,\n         iVar3 == 0" (assignment_expression "piVar6 = piVar5" identifier = identifier) , (binary_expression "iVar3 == 0" identifier == number_literal))) )))) )) ))) )) ))) )) (compound_statement "{\n      piVar6 = (int *)0x0;\n      dss_freekey(piVar5);\n    }" { (expression_statement "piVar6 = (int *)0x0;" (assignment_expression "piVar6 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "dss_freekey(piVar5);" (call_expression "dss_freekey(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) })) (return_statement "return (int)piVar6;" return (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier) ;) })) (return_statement "return (int)pBStack_84;" return (cast_expression "(int)pBStack_84" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit "int * FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int **ppiVar11;\n  int *piVar12;\n  undefined4 *puVar13;\n  undefined *puVar14;\n  code *pcVar15;\n  int local_res8 [2];\n  int *piStack_84;\n  int *piStack_80;\n  int iStack_7c;\n  int *piStack_78;\n  code *pcStack_74;\n  int *local_58;\n  int *local_4c;\n  undefined1 *local_48;\n  int local_44;\n  undefined1 auStack_40 [20];\n  int local_2c;\n  \n  puVar14 = PTR___stack_chk_guard_000adcd4;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  local_res8[0] = param_3;\n  local_4c = param_2;\n  if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }\nLAB_00059440:\n  local_58 = (int *)0x0;\nLAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }\n  pcVar15 = FUN_000594fc;\n  puVar14 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  ppiVar11 = &piStack_84;\n  piVar1 = *(int **)(puVar14 + 0x547d8);\n  iStack_7c = *piVar1;\n  piStack_78 = param_1;\n  pcStack_74 = pcVar15;\n  FUN_0005902c();\n  if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }\n  if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }\n  return piStack_84;\n}\n\n" (function_definition "int * FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int **ppiVar11;\n  int *piVar12;\n  undefined4 *puVar13;\n  undefined *puVar14;\n  code *pcVar15;\n  int local_res8 [2];\n  int *piStack_84;\n  int *piStack_80;\n  int iStack_7c;\n  int *piStack_78;\n  code *pcStack_74;\n  int *local_58;\n  int *local_4c;\n  undefined1 *local_48;\n  int local_44;\n  undefined1 auStack_40 [20];\n  int local_2c;\n  \n  puVar14 = PTR___stack_chk_guard_000adcd4;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  local_res8[0] = param_3;\n  local_4c = param_2;\n  if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }\nLAB_00059440:\n  local_58 = (int *)0x0;\nLAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }\n  pcVar15 = FUN_000594fc;\n  puVar14 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  ppiVar11 = &piStack_84;\n  piVar1 = *(int **)(puVar14 + 0x547d8);\n  iStack_7c = *piVar1;\n  piStack_78 = param_1;\n  pcStack_74 = pcVar15;\n  FUN_0005902c();\n  if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }\n  if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }\n  return piStack_84;\n}" primitive_type (pointer_declarator "* FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" * (function_declarator "FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int **ppiVar11;\n  int *piVar12;\n  undefined4 *puVar13;\n  undefined *puVar14;\n  code *pcVar15;\n  int local_res8 [2];\n  int *piStack_84;\n  int *piStack_80;\n  int iStack_7c;\n  int *piStack_78;\n  code *pcStack_74;\n  int *local_58;\n  int *local_4c;\n  undefined1 *local_48;\n  int local_44;\n  undefined1 auStack_40 [20];\n  int local_2c;\n  \n  puVar14 = PTR___stack_chk_guard_000adcd4;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  local_res8[0] = param_3;\n  local_4c = param_2;\n  if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }\nLAB_00059440:\n  local_58 = (int *)0x0;\nLAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }\n  pcVar15 = FUN_000594fc;\n  puVar14 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  ppiVar11 = &piStack_84;\n  piVar1 = *(int **)(puVar14 + 0x547d8);\n  iStack_7c = *piVar1;\n  piStack_78 = param_1;\n  pcStack_74 = pcVar15;\n  FUN_0005902c();\n  if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }\n  if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }\n  return piStack_84;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int **ppiVar11;" primitive_type (pointer_declarator "**ppiVar11" * (pointer_declarator "*ppiVar11" * identifier)) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "undefined4 *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "code *pcVar15;" type_identifier (pointer_declarator "*pcVar15" * identifier) ;) (declaration "int local_res8 [2];" primitive_type (array_declarator "local_res8 [2]" identifier [ number_literal ]) ;) (declaration "int *piStack_84;" primitive_type (pointer_declarator "*piStack_84" * identifier) ;) (declaration "int *piStack_80;" primitive_type (pointer_declarator "*piStack_80" * identifier) ;) (declaration "int iStack_7c;" primitive_type identifier ;) (declaration "int *piStack_78;" primitive_type (pointer_declarator "*piStack_78" * identifier) ;) (declaration "code *pcStack_74;" type_identifier (pointer_declarator "*pcStack_74" * identifier) ;) (declaration "int *local_58;" primitive_type (pointer_declarator "*local_58" * identifier) ;) (declaration "int *local_4c;" primitive_type (pointer_declarator "*local_4c" * identifier) ;) (declaration "undefined1 *local_48;" type_identifier (pointer_declarator "*local_48" * identifier) ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "undefined1 auStack_40 [20];" type_identifier (array_declarator "auStack_40 [20]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar14 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar14 = PTR___stack_chk_guard_000adcd4" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000adcd4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000adcd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000adcd4" * (cast_expression "(int *)PTR___stack_chk_guard_000adcd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_4c = param_2;" (assignment_expression "local_4c = param_2" identifier = identifier) ;) (if_statement "if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }" { (if_statement "if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }" if (parenthesized_expression "(param_3 == 0x28)" ( (binary_expression "param_3 == 0x28" identifier == number_literal) )) (compound_statement "{\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }" { (labeled_statement "LAB_00059158:\n      param_2 = (int *)&DAT_00000014;" statement_identifier : (expression_statement "param_2 = (int *)&DAT_00000014;" (assignment_expression "param_2 = (int *)&DAT_00000014" identifier = (cast_expression "(int *)&DAT_00000014" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000014" & identifier))) ;)) (expression_statement "piVar1 = (int *)bignum_from_bytes(local_4c,0x14);" (assignment_expression "piVar1 = (int *)bignum_from_bytes(local_4c,0x14)" identifier = (cast_expression "(int *)bignum_from_bytes(local_4c,0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bignum_from_bytes(local_4c,0x14)" identifier (argument_list "(local_4c,0x14)" ( identifier , number_literal ))))) ;) (expression_statement "local_res8[0] = local_res8[0] + -0x14;" (assignment_expression "local_res8[0] = local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "local_4c = local_4c + 5;" (assignment_expression "local_4c = local_4c + 5" identifier = (binary_expression "local_4c + 5" identifier + number_literal)) ;) (if_statement "if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" if (parenthesized_expression "(local_res8[0] < 0x14)" ( (binary_expression "local_res8[0] < 0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }" { (if_statement "if (piVar1 == (int *)0x0) goto LAB_00059440;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00059440;" goto statement_identifier ;)) }) (else_clause "else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" else (compound_statement "{\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" { (expression_statement "param_2 = (int *)&DAT_00000014;" (assignment_expression "param_2 = (int *)&DAT_00000014" identifier = (cast_expression "(int *)&DAT_00000014" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000014" & identifier))) ;) (expression_statement "iVar2 = bignum_from_bytes(local_4c,0x14);" (assignment_expression "iVar2 = bignum_from_bytes(local_4c,0x14)" identifier = (call_expression "bignum_from_bytes(local_4c,0x14)" identifier (argument_list "(local_4c,0x14)" ( identifier , number_literal )))) ;) (expression_statement "local_4c = local_4c + 5;" (assignment_expression "local_4c = local_4c + 5" identifier = (binary_expression "local_4c + 5" identifier + number_literal)) ;) (expression_statement "local_res8[0] = local_res8[0] + -0x14;" (assignment_expression "local_res8[0] = local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -0x14" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }" { (if_statement "if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }" { (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00059444;" goto statement_identifier ;) })) (goto_statement "goto LAB_00059440;" goto statement_identifier ;) })) (if_statement "if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }" { (expression_statement "param_2 = *(int **)PTR_Zero_000ad870;" (assignment_expression "param_2 = *(int **)PTR_Zero_000ad870" identifier = (pointer_expression "*(int **)PTR_Zero_000ad870" * (cast_expression "(int **)PTR_Zero_000ad870" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar3 = bignum_cmp(iVar2,param_2);" (assignment_expression "iVar3 = bignum_cmp(iVar2,param_2)" identifier = (call_expression "bignum_cmp(iVar2,param_2)" identifier (argument_list "(iVar2,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            local_58 = (int *)0x0;\n          }" { (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" else (compound_statement "{\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" { (expression_statement "param_2 = (int *)param_1[1];" (assignment_expression "param_2 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = modinv(iVar2,param_2);" (assignment_expression "iVar3 = modinv(iVar2,param_2)" identifier = (call_expression "modinv(iVar2,param_2)" identifier (argument_list "(iVar2,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }" { (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (goto_statement "goto LAB_00059440;" goto statement_identifier ;) })) (expression_statement "SHA_Simple(param_4,param_5,auStack_40);" (call_expression "SHA_Simple(param_4,param_5,auStack_40)" identifier (argument_list "(param_4,param_5,auStack_40)" ( identifier , identifier , identifier ))) ;) (expression_statement "local_44 = 0x14;" (assignment_expression "local_44 = 0x14" identifier = number_literal) ;) (expression_statement "local_48 = auStack_40;" (assignment_expression "local_48 = auStack_40" identifier = identifier) ;) (expression_statement "uVar4 = bignum_from_bytes(auStack_40,0x14);" (assignment_expression "uVar4 = bignum_from_bytes(auStack_40,0x14)" identifier = (call_expression "bignum_from_bytes(auStack_40,0x14)" identifier (argument_list "(auStack_40,0x14)" ( identifier , number_literal )))) ;) (expression_statement "local_48 = local_48 + 0x14;" (assignment_expression "local_48 = local_48 + 0x14" identifier = (binary_expression "local_48 + 0x14" identifier + number_literal)) ;) (expression_statement "local_44 = local_44 + -0x14;" (assignment_expression "local_44 = local_44 + -0x14" identifier = (binary_expression "local_44 + -0x14" identifier + number_literal)) ;) (expression_statement "uVar5 = modmul(uVar4,iVar3,param_1[1]);" (assignment_expression "uVar5 = modmul(uVar4,iVar3,param_1[1])" identifier = (call_expression "modmul(uVar4,iVar3,param_1[1])" identifier (argument_list "(uVar4,iVar3,param_1[1])" ( identifier , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar6 = modmul(piVar1,iVar3,param_1[1]);" (assignment_expression "uVar6 = modmul(piVar1,iVar3,param_1[1])" identifier = (call_expression "modmul(piVar1,iVar3,param_1[1])" identifier (argument_list "(piVar1,iVar3,param_1[1])" ( identifier , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar7 = modpow(param_1[2],uVar5,*param_1);" (assignment_expression "uVar7 = modpow(param_1[2],uVar5,*param_1)" identifier = (call_expression "modpow(param_1[2],uVar5,*param_1)" identifier (argument_list "(param_1[2],uVar5,*param_1)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "uVar8 = modpow(param_1[3],uVar6,*param_1);" (assignment_expression "uVar8 = modpow(param_1[3],uVar6,*param_1)" identifier = (call_expression "modpow(param_1[3],uVar6,*param_1)" identifier (argument_list "(param_1[3],uVar6,*param_1)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "uVar9 = modmul(uVar7,uVar8,*param_1);" (assignment_expression "uVar9 = modmul(uVar7,uVar8,*param_1)" identifier = (call_expression "modmul(uVar7,uVar8,*param_1)" identifier (argument_list "(uVar7,uVar8,*param_1)" ( identifier , identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);" (assignment_expression "param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" identifier = (cast_expression "(int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" identifier (argument_list "(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" ( identifier , (pointer_expression "*(undefined4 *)PTR_One_000ad888" * (cast_expression "(undefined4 *)PTR_One_000ad888" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (subscript_expression "param_1[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "param_2 = piVar1;" (assignment_expression "param_2 = piVar1" identifier = identifier) ;) (expression_statement "iVar10 = bignum_cmp(param_1,piVar1);" (assignment_expression "iVar10 = bignum_cmp(param_1,piVar1)" identifier = (call_expression "bignum_cmp(param_1,piVar1)" identifier (argument_list "(param_1,piVar1)" ( identifier , identifier )))) ;) (expression_statement "local_58 = (int *)(uint)(iVar10 == 0);" (assignment_expression "local_58 = (int *)(uint)(iVar10 == 0)" identifier = (cast_expression "(int *)(uint)(iVar10 == 0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(iVar10 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) ))))) ;) (expression_statement "freebn(iVar3);" (call_expression "freebn(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "freebn(uVar4);" (call_expression "freebn(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "freebn(uVar5);" (call_expression "freebn(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "freebn(uVar6);" (call_expression "freebn(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (expression_statement "freebn(uVar7);" (call_expression "freebn(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "freebn(uVar8);" (call_expression "freebn(uVar8)" identifier (argument_list "(uVar8)" ( identifier ))) ;) (expression_statement "freebn(uVar9);" (call_expression "freebn(uVar9)" identifier (argument_list "(uVar9)" ( identifier ))) ;) (expression_statement "freebn(param_1);" (call_expression "freebn(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (goto_statement "goto LAB_00059444;" goto statement_identifier ;) })) }))) (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00059444;" goto statement_identifier ;) })) (expression_statement "param_2 = local_res8;" (assignment_expression "param_2 = local_res8" identifier = identifier) ;) (expression_statement "FUN_0005902c(&local_4c,param_2,&local_48,&local_44);" (call_expression "FUN_0005902c(&local_4c,param_2,&local_48,&local_44)" identifier (argument_list "(&local_4c,param_2,&local_48,&local_44)" ( (pointer_expression "&local_4c" & identifier) , identifier , (pointer_expression "&local_48" & identifier) , (pointer_expression "&local_44" & identifier) ))) ;) (if_statement "if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }" if (parenthesized_expression "(local_48 != (undefined1 *)0x0)" ( (binary_expression "local_48 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }" { (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (local_44 != 7) goto LAB_00059444;" if (parenthesized_expression "(local_44 != 7)" ( (binary_expression "local_44 != 7" identifier != number_literal) )) (goto_statement "goto LAB_00059444;" goto statement_identifier ;)) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650)" identifier = (cast_expression "(int *)(PTR_DAT_000ad2c8 + 0x5650)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + 0x5650)" ( (binary_expression "PTR_DAT_000ad2c8 + 0x5650" identifier + number_literal) )))) ;) (expression_statement "iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7)" identifier = (call_expression "(*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7)" (parenthesized_expression "(*(code *)PTR_memcmp_000adcb8)" ( (pointer_expression "*(code *)PTR_memcmp_000adcb8" * (cast_expression "(code *)PTR_memcmp_000adcb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_48,param_2,7)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }" { (expression_statement "local_res8[0] = local_res8[0] + -4;" (assignment_expression "local_res8[0] = local_res8[0] + -4" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = (binary_expression "local_res8[0] + -4" (subscript_expression "local_res8[0]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "local_4c = local_4c + 1;" (assignment_expression "local_4c = local_4c + 1" identifier = (binary_expression "local_4c + 1" identifier + number_literal)) ;) (if_statement "if (0x13 < local_res8[0]) goto LAB_00059158;" if (parenthesized_expression "(0x13 < local_res8[0])" ( (binary_expression "0x13 < local_res8[0]" number_literal < (subscript_expression "local_res8[0]" identifier [ number_literal ])) )) (goto_statement "goto LAB_00059158;" goto statement_identifier ;)) })) })) })) (labeled_statement "LAB_00059440:\n  local_58 = (int *)0x0;" statement_identifier : (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (labeled_statement "LAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar14)" ( (binary_expression "local_2c == *(int *)puVar14" identifier == (pointer_expression "*(int *)puVar14" * (cast_expression "(int *)puVar14" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return local_58;\n  }" { (return_statement "return local_58;" return identifier ;) }))) (expression_statement "pcVar15 = FUN_000594fc;" (assignment_expression "pcVar15 = FUN_000594fc" identifier = identifier) ;) (expression_statement "puVar14 = PTR___stack_chk_fail_000adca4;" (assignment_expression "puVar14 = PTR___stack_chk_fail_000adca4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" * (cast_expression "(code *)PTR___stack_chk_fail_000adca4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "ppiVar11 = &piStack_84;" (assignment_expression "ppiVar11 = &piStack_84" identifier = (pointer_expression "&piStack_84" & identifier)) ;) (expression_statement "piVar1 = *(int **)(puVar14 + 0x547d8);" (assignment_expression "piVar1 = *(int **)(puVar14 + 0x547d8)" identifier = (pointer_expression "*(int **)(puVar14 + 0x547d8)" * (cast_expression "(int **)(puVar14 + 0x547d8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x547d8)" ( (binary_expression "puVar14 + 0x547d8" identifier + number_literal) ))))) ;) (expression_statement "iStack_7c = *piVar1;" (assignment_expression "iStack_7c = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "piStack_78 = param_1;" (assignment_expression "piStack_78 = param_1" identifier = identifier) ;) (expression_statement "pcStack_74 = pcVar15;" (assignment_expression "pcStack_74 = pcVar15" identifier = identifier) ;) (expression_statement "FUN_0005902c();" (call_expression "FUN_0005902c()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }" if (parenthesized_expression "(piStack_84 != (int *)0x0)" ( (binary_expression "piStack_84 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }" { (if_statement "if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" if (parenthesized_expression "(*(char *)piStack_84 < '\0')" ( (binary_expression "*(char *)piStack_84 < '\0'" (pointer_expression "*(char *)piStack_84" * (cast_expression "(char *)piStack_84" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piStack_84 = (int *)0x0;\n    }" { (expression_statement "piStack_84 = (int *)0x0;" (assignment_expression "piStack_84 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" else (compound_statement "{\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" { (expression_statement "piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);" (assignment_expression "piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80)" identifier = (cast_expression "(int *)bignum_from_bytes(piStack_84,piStack_80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bignum_from_bytes(piStack_84,piStack_80)" identifier (argument_list "(piStack_84,piStack_80)" ( identifier , identifier ))))) ;) (expression_statement "param_2 = piStack_80;" (assignment_expression "param_2 = piStack_80" identifier = identifier) ;) }))) })) (if_statement "if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }" if (parenthesized_expression "(iStack_7c != *piVar1)" ( (binary_expression "iStack_7c != *piVar1" identifier != (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }" { (expression_statement "pcVar15 = *(code **)(puVar14 + 0x547a8);" (assignment_expression "pcVar15 = *(code **)(puVar14 + 0x547a8)" identifier = (pointer_expression "*(code **)(puVar14 + 0x547a8)" * (cast_expression "(code **)(puVar14 + 0x547a8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x547a8)" ( (binary_expression "puVar14 + 0x547a8" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" ( (pointer_expression "*pcVar15" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);" (assignment_expression "piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14)" identifier = (cast_expression "(int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar15 + 0x53e80))(1,0x14)" (parenthesized_expression "(**(code **)(pcVar15 + 0x53e80))" ( (pointer_expression "**(code **)(pcVar15 + 0x53e80)" * (pointer_expression "*(code **)(pcVar15 + 0x53e80)" * (cast_expression "(code **)(pcVar15 + 0x53e80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x53e80)" ( (binary_expression "pcVar15 + 0x53e80" identifier + number_literal) ))))) )) (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "piVar1[2] = iVar2;" (assignment_expression "piVar1[2] = iVar2" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "piVar1[3] = iVar2;" (assignment_expression "piVar1[3] = iVar2" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" identifier = (call_expression "FUN_000594fc(param_2,ppiVar11)" identifier (argument_list "(param_2,ppiVar11)" ( identifier , identifier )))) ;) (expression_statement "piVar1[4] = iVar2;" (assignment_expression "piVar1[4] = iVar2" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }" if (parenthesized_expression "((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))))))" ( (binary_expression "(((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))" (parenthesized_expression "(((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0))" ( (binary_expression "((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)" (parenthesized_expression "((*piVar1 == 0) || (piVar1[1] == 0))" ( (binary_expression "(*piVar1 == 0) || (piVar1[1] == 0)" (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) || (parenthesized_expression "(piVar1[1] == 0)" ( (binary_expression "piVar1[1] == 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) == number_literal) ))) )) || (parenthesized_expression "(piVar1[2] == 0)" ( (binary_expression "piVar1[2] == 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) == number_literal) ))) )) || (parenthesized_expression "(((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))" ( (parenthesized_expression "((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))))" ( (binary_expression "(piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))" (parenthesized_expression "(piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0))" ( (binary_expression "piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)" (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == number_literal) || (parenthesized_expression "(puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)" ( (comma_expression "puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0" (assignment_expression "puVar13 = *(undefined4 **)(pcVar15 + 0x542dc)" identifier = (pointer_expression "*(undefined4 **)(pcVar15 + 0x542dc)" * (cast_expression "(undefined4 **)(pcVar15 + 0x542dc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x542dc)" ( (binary_expression "pcVar15 + 0x542dc" identifier + number_literal) ))))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))" ( (parenthesized_expression "(iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))" ( (comma_expression "iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" (assignment_expression "iVar2 = bignum_cmp(piVar1[1],*puVar13)" identifier = (call_expression "bignum_cmp(piVar1[1],*puVar13)" identifier (argument_list "(piVar1[1],*puVar13)" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (pointer_expression "*puVar13" * identifier) )))) , (binary_expression "iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" (binary_expression "iVar2 == 0" identifier == number_literal) || (parenthesized_expression "(iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" ( (comma_expression "iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0" (assignment_expression "iVar2 = bignum_cmp(*piVar1,*puVar13)" identifier = (call_expression "bignum_cmp(*piVar1,*puVar13)" identifier (argument_list "(*piVar1,*puVar13)" ( (pointer_expression "*piVar1" * identifier) , (pointer_expression "*puVar13" * identifier) )))) , (comma_expression "piVar12 = piVar1, iVar2 == 0" (assignment_expression "piVar12 = piVar1" identifier = identifier) , (binary_expression "iVar2 == 0" identifier == number_literal))) )))) )) ))) )) ))) )) (compound_statement "{\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }" { (expression_statement "piVar12 = (int *)0x0;" (assignment_expression "piVar12 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_00058e40(piVar1);" (call_expression "FUN_00058e40(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) })) (return_statement "return piVar12;" return identifier ;) })) (return_statement "return piStack_84;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (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 (array_declarator IDENT [ LIT ]) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (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 *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (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 ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (assignment_expression IDENT = 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 *)) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_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 (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 (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (goto_statement goto statement_identifier ;)) })) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (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 = (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 = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (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 (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (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 ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT == LIT)) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression * IDENT) )))) , (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression * IDENT) )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT))) )))) )) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int **ppiVar11;\n  int *piVar12;\n  undefined4 *puVar13;\n  undefined *puVar14;\n  code *pcVar15;\n  int local_res8 [2];\n  int *piStack_84;\n  int *piStack_80;\n  int iStack_7c;\n  int *piStack_78;\n  code *pcStack_74;\n  int *local_58;\n  int *local_4c;\n  undefined1 *local_48;\n  int local_44;\n  undefined1 auStack_40 [20];\n  int local_2c;\n  \n  puVar14 = PTR___stack_chk_guard_000adcd4;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  local_res8[0] = param_3;\n  local_4c = param_2;\n  if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }\nLAB_00059440:\n  local_58 = (int *)0x0;\nLAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }\n  pcVar15 = FUN_000594fc;\n  puVar14 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  ppiVar11 = &piStack_84;\n  piVar1 = *(int **)(puVar14 + 0x547d8);\n  iStack_7c = *piVar1;\n  piStack_78 = param_1;\n  pcStack_74 = pcVar15;\n  FUN_0005902c();\n  if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }\n  if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }\n  return piStack_84;\n}" (primitive_type "int") (pointer_declarator "* FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" (* "*") (function_declarator "FUN_000590ec(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" (identifier "FUN_000590ec") (parameter_list "(int *param_1,int *param_2,int param_3,undefined4 param_4,undefined4 param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  int iVar10;\n  int **ppiVar11;\n  int *piVar12;\n  undefined4 *puVar13;\n  undefined *puVar14;\n  code *pcVar15;\n  int local_res8 [2];\n  int *piStack_84;\n  int *piStack_80;\n  int iStack_7c;\n  int *piStack_78;\n  code *pcStack_74;\n  int *local_58;\n  int *local_4c;\n  undefined1 *local_48;\n  int local_44;\n  undefined1 auStack_40 [20];\n  int local_2c;\n  \n  puVar14 = PTR___stack_chk_guard_000adcd4;\n  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;\n  local_res8[0] = param_3;\n  local_4c = param_2;\n  if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }\nLAB_00059440:\n  local_58 = (int *)0x0;\nLAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }\n  pcVar15 = FUN_000594fc;\n  puVar14 = PTR___stack_chk_fail_000adca4;\n  (*(code *)PTR___stack_chk_fail_000adca4)();\n  ppiVar11 = &piStack_84;\n  piVar1 = *(int **)(puVar14 + 0x547d8);\n  iStack_7c = *piVar1;\n  piStack_78 = param_1;\n  pcStack_74 = pcVar15;\n  FUN_0005902c();\n  if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }\n  if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }\n  return piStack_84;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int **ppiVar11;" (primitive_type "int") (pointer_declarator "**ppiVar11" (* "*") (pointer_declarator "*ppiVar11" (* "*") (identifier "ppiVar11"))) (; ";")) (declaration "int *piVar12;" (primitive_type "int") (pointer_declarator "*piVar12" (* "*") (identifier "piVar12")) (; ";")) (declaration "undefined4 *puVar13;" (type_identifier "undefined4") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "undefined *puVar14;" (type_identifier "undefined") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (declaration "code *pcVar15;" (type_identifier "code") (pointer_declarator "*pcVar15" (* "*") (identifier "pcVar15")) (; ";")) (declaration "int local_res8 [2];" (primitive_type "int") (array_declarator "local_res8 [2]" (identifier "local_res8") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int *piStack_84;" (primitive_type "int") (pointer_declarator "*piStack_84" (* "*") (identifier "piStack_84")) (; ";")) (declaration "int *piStack_80;" (primitive_type "int") (pointer_declarator "*piStack_80" (* "*") (identifier "piStack_80")) (; ";")) (declaration "int iStack_7c;" (primitive_type "int") (identifier "iStack_7c") (; ";")) (declaration "int *piStack_78;" (primitive_type "int") (pointer_declarator "*piStack_78" (* "*") (identifier "piStack_78")) (; ";")) (declaration "code *pcStack_74;" (type_identifier "code") (pointer_declarator "*pcStack_74" (* "*") (identifier "pcStack_74")) (; ";")) (declaration "int *local_58;" (primitive_type "int") (pointer_declarator "*local_58" (* "*") (identifier "local_58")) (; ";")) (declaration "int *local_4c;" (primitive_type "int") (pointer_declarator "*local_4c" (* "*") (identifier "local_4c")) (; ";")) (declaration "undefined1 *local_48;" (type_identifier "undefined1") (pointer_declarator "*local_48" (* "*") (identifier "local_48")) (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "undefined1 auStack_40 [20];" (type_identifier "undefined1") (array_declarator "auStack_40 [20]" (identifier "auStack_40") ([ "[") (number_literal "20") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar14 = PTR___stack_chk_guard_000adcd4;" (assignment_expression "puVar14 = PTR___stack_chk_guard_000adcd4" (identifier "puVar14") (= "=") (identifier "PTR___stack_chk_guard_000adcd4")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000adcd4;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000adcd4" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000adcd4" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000adcd4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000adcd4")))) (; ";")) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_4c = param_2;" (assignment_expression "local_4c = param_2" (identifier "local_4c") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*param_1 != 0) {\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }\n    param_2 = local_res8;\n    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);\n    if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }\n  }" ({ "{") (if_statement "if (param_3 == 0x28) {\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }" (if "if") (parenthesized_expression "(param_3 == 0x28)" (( "(") (binary_expression "param_3 == 0x28" (identifier "param_3") (== "==") (number_literal "0x28")) () ")")) (compound_statement "{\nLAB_00059158:\n      param_2 = (int *)&DAT_00000014;\n      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);\n      local_res8[0] = local_res8[0] + -0x14;\n      local_4c = local_4c + 5;\n      if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }\n      freebn(piVar1);\n      local_58 = (int *)0x0;\n      goto LAB_00059444;\n    }" ({ "{") (labeled_statement "LAB_00059158:\n      param_2 = (int *)&DAT_00000014;" (statement_identifier "LAB_00059158") (: ":") (expression_statement "param_2 = (int *)&DAT_00000014;" (assignment_expression "param_2 = (int *)&DAT_00000014" (identifier "param_2") (= "=") (cast_expression "(int *)&DAT_00000014" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_00000014" (& "&") (identifier "DAT_00000014")))) (; ";"))) (expression_statement "piVar1 = (int *)bignum_from_bytes(local_4c,0x14);" (assignment_expression "piVar1 = (int *)bignum_from_bytes(local_4c,0x14)" (identifier "piVar1") (= "=") (cast_expression "(int *)bignum_from_bytes(local_4c,0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bignum_from_bytes(local_4c,0x14)" (identifier "bignum_from_bytes") (argument_list "(local_4c,0x14)" (( "(") (identifier "local_4c") (, ",") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "local_res8[0] = local_res8[0] + -0x14;" (assignment_expression "local_res8[0] = local_res8[0] + -0x14" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_res8[0] + -0x14" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0x14"))) (; ";")) (expression_statement "local_4c = local_4c + 5;" (assignment_expression "local_4c = local_4c + 5" (identifier "local_4c") (= "=") (binary_expression "local_4c + 5" (identifier "local_4c") (+ "+") (number_literal "5"))) (; ";")) (if_statement "if (local_res8[0] < 0x14) {\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }\n      else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" (if "if") (parenthesized_expression "(local_res8[0] < 0x14)" (( "(") (binary_expression "local_res8[0] < 0x14" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (< "<") (number_literal "0x14")) () ")")) (compound_statement "{\n        if (piVar1 == (int *)0x0) goto LAB_00059440;\n      }" ({ "{") (if_statement "if (piVar1 == (int *)0x0) goto LAB_00059440;" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00059440;" (goto "goto") (statement_identifier "LAB_00059440") (; ";"))) (} "}")) (else_clause "else {\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" (else "else") (compound_statement "{\n        param_2 = (int *)&DAT_00000014;\n        iVar2 = bignum_from_bytes(local_4c,0x14);\n        local_4c = local_4c + 5;\n        local_res8[0] = local_res8[0] + -0x14;\n        if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }\n        if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }\n      }" ({ "{") (expression_statement "param_2 = (int *)&DAT_00000014;" (assignment_expression "param_2 = (int *)&DAT_00000014" (identifier "param_2") (= "=") (cast_expression "(int *)&DAT_00000014" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_00000014" (& "&") (identifier "DAT_00000014")))) (; ";")) (expression_statement "iVar2 = bignum_from_bytes(local_4c,0x14);" (assignment_expression "iVar2 = bignum_from_bytes(local_4c,0x14)" (identifier "iVar2") (= "=") (call_expression "bignum_from_bytes(local_4c,0x14)" (identifier "bignum_from_bytes") (argument_list "(local_4c,0x14)" (( "(") (identifier "local_4c") (, ",") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "local_4c = local_4c + 5;" (assignment_expression "local_4c = local_4c + 5" (identifier "local_4c") (= "=") (binary_expression "local_4c + 5" (identifier "local_4c") (+ "+") (number_literal "5"))) (; ";")) (expression_statement "local_res8[0] = local_res8[0] + -0x14;" (assignment_expression "local_res8[0] = local_res8[0] + -0x14" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_res8[0] + -0x14" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0x14"))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }\n          goto LAB_00059440;\n        }" ({ "{") (if_statement "if (iVar2 != 0) {\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            freebn(iVar2);\n            local_58 = (int *)0x0;\n            goto LAB_00059444;\n          }" ({ "{") (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" (identifier "freebn") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" (identifier "local_58") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (goto_statement "goto LAB_00059444;" (goto "goto") (statement_identifier "LAB_00059444") (; ";")) (} "}"))) (goto_statement "goto LAB_00059440;" (goto "goto") (statement_identifier "LAB_00059440") (; ";")) (} "}"))) (if_statement "if (iVar2 != 0) {\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          param_2 = *(int **)PTR_Zero_000ad870;\n          iVar3 = bignum_cmp(iVar2,param_2);\n          if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }\n          freebn(piVar1);\n          freebn(iVar2);\n          goto LAB_00059444;\n        }" ({ "{") (expression_statement "param_2 = *(int **)PTR_Zero_000ad870;" (assignment_expression "param_2 = *(int **)PTR_Zero_000ad870" (identifier "param_2") (= "=") (pointer_expression "*(int **)PTR_Zero_000ad870" (* "*") (cast_expression "(int **)PTR_Zero_000ad870" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_Zero_000ad870")))) (; ";")) (expression_statement "iVar3 = bignum_cmp(iVar2,param_2);" (assignment_expression "iVar3 = bignum_cmp(iVar2,param_2)" (identifier "iVar3") (= "=") (call_expression "bignum_cmp(iVar2,param_2)" (identifier "bignum_cmp") (argument_list "(iVar2,param_2)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n            local_58 = (int *)0x0;\n          }\n          else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            local_58 = (int *)0x0;\n          }" ({ "{") (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" (identifier "local_58") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" (else "else") (compound_statement "{\n            param_2 = (int *)param_1[1];\n            iVar3 = modinv(iVar2,param_2);\n            if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }\n            SHA_Simple(param_4,param_5,auStack_40);\n            local_44 = 0x14;\n            local_48 = auStack_40;\n            uVar4 = bignum_from_bytes(auStack_40,0x14);\n            local_48 = local_48 + 0x14;\n            local_44 = local_44 + -0x14;\n            uVar5 = modmul(uVar4,iVar3,param_1[1]);\n            uVar6 = modmul(piVar1,iVar3,param_1[1]);\n            uVar7 = modpow(param_1[2],uVar5,*param_1);\n            uVar8 = modpow(param_1[3],uVar6,*param_1);\n            uVar9 = modmul(uVar7,uVar8,*param_1);\n            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);\n            param_2 = piVar1;\n            iVar10 = bignum_cmp(param_1,piVar1);\n            local_58 = (int *)(uint)(iVar10 == 0);\n            freebn(iVar3);\n            freebn(uVar4);\n            freebn(uVar5);\n            freebn(uVar6);\n            freebn(uVar7);\n            freebn(uVar8);\n            freebn(uVar9);\n            freebn(param_1);\n          }" ({ "{") (expression_statement "param_2 = (int *)param_1[1];" (assignment_expression "param_2 = (int *)param_1[1]" (identifier "param_2") (= "=") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar3 = modinv(iVar2,param_2);" (assignment_expression "iVar3 = modinv(iVar2,param_2)" (identifier "iVar3") (= "=") (call_expression "modinv(iVar2,param_2)" (identifier "modinv") (argument_list "(iVar2,param_2)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              freebn(piVar1);\n              freebn(iVar2);\n              goto LAB_00059440;\n            }" ({ "{") (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" (identifier "freebn") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" (identifier "freebn") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (goto_statement "goto LAB_00059440;" (goto "goto") (statement_identifier "LAB_00059440") (; ";")) (} "}"))) (expression_statement "SHA_Simple(param_4,param_5,auStack_40);" (call_expression "SHA_Simple(param_4,param_5,auStack_40)" (identifier "SHA_Simple") (argument_list "(param_4,param_5,auStack_40)" (( "(") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "auStack_40") () ")"))) (; ";")) (expression_statement "local_44 = 0x14;" (assignment_expression "local_44 = 0x14" (identifier "local_44") (= "=") (number_literal "0x14")) (; ";")) (expression_statement "local_48 = auStack_40;" (assignment_expression "local_48 = auStack_40" (identifier "local_48") (= "=") (identifier "auStack_40")) (; ";")) (expression_statement "uVar4 = bignum_from_bytes(auStack_40,0x14);" (assignment_expression "uVar4 = bignum_from_bytes(auStack_40,0x14)" (identifier "uVar4") (= "=") (call_expression "bignum_from_bytes(auStack_40,0x14)" (identifier "bignum_from_bytes") (argument_list "(auStack_40,0x14)" (( "(") (identifier "auStack_40") (, ",") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "local_48 = local_48 + 0x14;" (assignment_expression "local_48 = local_48 + 0x14" (identifier "local_48") (= "=") (binary_expression "local_48 + 0x14" (identifier "local_48") (+ "+") (number_literal "0x14"))) (; ";")) (expression_statement "local_44 = local_44 + -0x14;" (assignment_expression "local_44 = local_44 + -0x14" (identifier "local_44") (= "=") (binary_expression "local_44 + -0x14" (identifier "local_44") (+ "+") (number_literal "-0x14"))) (; ";")) (expression_statement "uVar5 = modmul(uVar4,iVar3,param_1[1]);" (assignment_expression "uVar5 = modmul(uVar4,iVar3,param_1[1])" (identifier "uVar5") (= "=") (call_expression "modmul(uVar4,iVar3,param_1[1])" (identifier "modmul") (argument_list "(uVar4,iVar3,param_1[1])" (( "(") (identifier "uVar4") (, ",") (identifier "iVar3") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "uVar6 = modmul(piVar1,iVar3,param_1[1]);" (assignment_expression "uVar6 = modmul(piVar1,iVar3,param_1[1])" (identifier "uVar6") (= "=") (call_expression "modmul(piVar1,iVar3,param_1[1])" (identifier "modmul") (argument_list "(piVar1,iVar3,param_1[1])" (( "(") (identifier "piVar1") (, ",") (identifier "iVar3") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "uVar7 = modpow(param_1[2],uVar5,*param_1);" (assignment_expression "uVar7 = modpow(param_1[2],uVar5,*param_1)" (identifier "uVar7") (= "=") (call_expression "modpow(param_1[2],uVar5,*param_1)" (identifier "modpow") (argument_list "(param_1[2],uVar5,*param_1)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "uVar5") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "uVar8 = modpow(param_1[3],uVar6,*param_1);" (assignment_expression "uVar8 = modpow(param_1[3],uVar6,*param_1)" (identifier "uVar8") (= "=") (call_expression "modpow(param_1[3],uVar6,*param_1)" (identifier "modpow") (argument_list "(param_1[3],uVar6,*param_1)" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (identifier "uVar6") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "uVar9 = modmul(uVar7,uVar8,*param_1);" (assignment_expression "uVar9 = modmul(uVar7,uVar8,*param_1)" (identifier "uVar9") (= "=") (call_expression "modmul(uVar7,uVar8,*param_1)" (identifier "modmul") (argument_list "(uVar7,uVar8,*param_1)" (( "(") (identifier "uVar7") (, ",") (identifier "uVar8") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);" (assignment_expression "param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" (identifier "param_1") (= "=") (cast_expression "(int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" (identifier "modmul") (argument_list "(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1])" (( "(") (identifier "uVar9") (, ",") (pointer_expression "*(undefined4 *)PTR_One_000ad888" (* "*") (cast_expression "(undefined4 *)PTR_One_000ad888" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_One_000ad888"))) (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (expression_statement "param_2 = piVar1;" (assignment_expression "param_2 = piVar1" (identifier "param_2") (= "=") (identifier "piVar1")) (; ";")) (expression_statement "iVar10 = bignum_cmp(param_1,piVar1);" (assignment_expression "iVar10 = bignum_cmp(param_1,piVar1)" (identifier "iVar10") (= "=") (call_expression "bignum_cmp(param_1,piVar1)" (identifier "bignum_cmp") (argument_list "(param_1,piVar1)" (( "(") (identifier "param_1") (, ",") (identifier "piVar1") () ")")))) (; ";")) (expression_statement "local_58 = (int *)(uint)(iVar10 == 0);" (assignment_expression "local_58 = (int *)(uint)(iVar10 == 0)" (identifier "local_58") (= "=") (cast_expression "(int *)(uint)(iVar10 == 0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(uint)(iVar10 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")"))))) (; ";")) (expression_statement "freebn(iVar3);" (call_expression "freebn(iVar3)" (identifier "freebn") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "freebn(uVar4);" (call_expression "freebn(uVar4)" (identifier "freebn") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "freebn(uVar5);" (call_expression "freebn(uVar5)" (identifier "freebn") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "freebn(uVar6);" (call_expression "freebn(uVar6)" (identifier "freebn") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "freebn(uVar7);" (call_expression "freebn(uVar7)" (identifier "freebn") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "freebn(uVar8);" (call_expression "freebn(uVar8)" (identifier "freebn") (argument_list "(uVar8)" (( "(") (identifier "uVar8") () ")"))) (; ";")) (expression_statement "freebn(uVar9);" (call_expression "freebn(uVar9)" (identifier "freebn") (argument_list "(uVar9)" (( "(") (identifier "uVar9") () ")"))) (; ";")) (expression_statement "freebn(param_1);" (call_expression "freebn(param_1)" (identifier "freebn") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" (identifier "freebn") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "freebn(iVar2);" (call_expression "freebn(iVar2)" (identifier "freebn") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (goto_statement "goto LAB_00059444;" (goto "goto") (statement_identifier "LAB_00059444") (; ";")) (} "}"))) (} "}")))) (expression_statement "freebn(piVar1);" (call_expression "freebn(piVar1)" (identifier "freebn") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" (identifier "local_58") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (goto_statement "goto LAB_00059444;" (goto "goto") (statement_identifier "LAB_00059444") (; ";")) (} "}"))) (expression_statement "param_2 = local_res8;" (assignment_expression "param_2 = local_res8" (identifier "param_2") (= "=") (identifier "local_res8")) (; ";")) (expression_statement "FUN_0005902c(&local_4c,param_2,&local_48,&local_44);" (call_expression "FUN_0005902c(&local_4c,param_2,&local_48,&local_44)" (identifier "FUN_0005902c") (argument_list "(&local_4c,param_2,&local_48,&local_44)" (( "(") (pointer_expression "&local_4c" (& "&") (identifier "local_4c")) (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (pointer_expression "&local_44" (& "&") (identifier "local_44")) () ")"))) (; ";")) (if_statement "if (local_48 != (undefined1 *)0x0) {\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }" (if "if") (parenthesized_expression "(local_48 != (undefined1 *)0x0)" (( "(") (binary_expression "local_48 != (undefined1 *)0x0" (identifier "local_48") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      local_58 = (int *)0x0;\n      if (local_44 != 7) goto LAB_00059444;\n      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);\n      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);\n      if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }\n    }" ({ "{") (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" (identifier "local_58") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (local_44 != 7) goto LAB_00059444;" (if "if") (parenthesized_expression "(local_44 != 7)" (( "(") (binary_expression "local_44 != 7" (identifier "local_44") (!= "!=") (number_literal "7")) () ")")) (goto_statement "goto LAB_00059444;" (goto "goto") (statement_identifier "LAB_00059444") (; ";"))) (expression_statement "param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);" (assignment_expression "param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650)" (identifier "param_2") (= "=") (cast_expression "(int *)(PTR_DAT_000ad2c8 + 0x5650)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000ad2c8 + 0x5650)" (( "(") (binary_expression "PTR_DAT_000ad2c8 + 0x5650" (identifier "PTR_DAT_000ad2c8") (+ "+") (number_literal "0x5650")) () ")")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7)" (parenthesized_expression "(*(code *)PTR_memcmp_000adcb8)" (( "(") (pointer_expression "*(code *)PTR_memcmp_000adcb8" (* "*") (cast_expression "(code *)PTR_memcmp_000adcb8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_000adcb8"))) () ")")) (argument_list "(local_48,param_2,7)" (( "(") (identifier "local_48") (, ",") (identifier "param_2") (, ",") (number_literal "7") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_res8[0] = local_res8[0] + -4;\n        local_4c = local_4c + 1;\n        if (0x13 < local_res8[0]) goto LAB_00059158;\n      }" ({ "{") (expression_statement "local_res8[0] = local_res8[0] + -4;" (assignment_expression "local_res8[0] = local_res8[0] + -4" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_res8[0] + -4" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "local_4c = local_4c + 1;" (assignment_expression "local_4c = local_4c + 1" (identifier "local_4c") (= "=") (binary_expression "local_4c + 1" (identifier "local_4c") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (0x13 < local_res8[0]) goto LAB_00059158;" (if "if") (parenthesized_expression "(0x13 < local_res8[0])" (( "(") (binary_expression "0x13 < local_res8[0]" (number_literal "0x13") (< "<") (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]"))) () ")")) (goto_statement "goto LAB_00059158;" (goto "goto") (statement_identifier "LAB_00059158") (; ";"))) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_00059440:\n  local_58 = (int *)0x0;" (statement_identifier "LAB_00059440") (: ":") (expression_statement "local_58 = (int *)0x0;" (assignment_expression "local_58 = (int *)0x0" (identifier "local_58") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (labeled_statement "LAB_00059444:\n  if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }" (statement_identifier "LAB_00059444") (: ":") (if_statement "if (local_2c == *(int *)puVar14) {\n    return local_58;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar14)" (( "(") (binary_expression "local_2c == *(int *)puVar14" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar14" (* "*") (cast_expression "(int *)puVar14" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar14")))) () ")")) (compound_statement "{\n    return local_58;\n  }" ({ "{") (return_statement "return local_58;" (return "return") (identifier "local_58") (; ";")) (} "}")))) (expression_statement "pcVar15 = FUN_000594fc;" (assignment_expression "pcVar15 = FUN_000594fc" (identifier "pcVar15") (= "=") (identifier "FUN_000594fc")) (; ";")) (expression_statement "puVar14 = PTR___stack_chk_fail_000adca4;" (assignment_expression "puVar14 = PTR___stack_chk_fail_000adca4" (identifier "puVar14") (= "=") (identifier "PTR___stack_chk_fail_000adca4")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000adca4)();" (call_expression "(*(code *)PTR___stack_chk_fail_000adca4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000adca4)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000adca4" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000adca4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000adca4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "ppiVar11 = &piStack_84;" (assignment_expression "ppiVar11 = &piStack_84" (identifier "ppiVar11") (= "=") (pointer_expression "&piStack_84" (& "&") (identifier "piStack_84"))) (; ";")) (expression_statement "piVar1 = *(int **)(puVar14 + 0x547d8);" (assignment_expression "piVar1 = *(int **)(puVar14 + 0x547d8)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(puVar14 + 0x547d8)" (* "*") (cast_expression "(int **)(puVar14 + 0x547d8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x547d8)" (( "(") (binary_expression "puVar14 + 0x547d8" (identifier "puVar14") (+ "+") (number_literal "0x547d8")) () ")"))))) (; ";")) (expression_statement "iStack_7c = *piVar1;" (assignment_expression "iStack_7c = *piVar1" (identifier "iStack_7c") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "piStack_78 = param_1;" (assignment_expression "piStack_78 = param_1" (identifier "piStack_78") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pcStack_74 = pcVar15;" (assignment_expression "pcStack_74 = pcVar15" (identifier "pcStack_74") (= "=") (identifier "pcVar15")) (; ";")) (expression_statement "FUN_0005902c();" (call_expression "FUN_0005902c()" (identifier "FUN_0005902c") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (piStack_84 != (int *)0x0) {\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }" (if "if") (parenthesized_expression "(piStack_84 != (int *)0x0)" (( "(") (binary_expression "piStack_84 != (int *)0x0" (identifier "piStack_84") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }\n  }" ({ "{") (if_statement "if (*(char *)piStack_84 < '\0') {\n      piStack_84 = (int *)0x0;\n    }\n    else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" (if "if") (parenthesized_expression "(*(char *)piStack_84 < '\0')" (( "(") (binary_expression "*(char *)piStack_84 < '\0'" (pointer_expression "*(char *)piStack_84" (* "*") (cast_expression "(char *)piStack_84" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piStack_84"))) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piStack_84 = (int *)0x0;\n    }" ({ "{") (expression_statement "piStack_84 = (int *)0x0;" (assignment_expression "piStack_84 = (int *)0x0" (identifier "piStack_84") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" (else "else") (compound_statement "{\n      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);\n      param_2 = piStack_80;\n    }" ({ "{") (expression_statement "piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);" (assignment_expression "piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80)" (identifier "piStack_84") (= "=") (cast_expression "(int *)bignum_from_bytes(piStack_84,piStack_80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bignum_from_bytes(piStack_84,piStack_80)" (identifier "bignum_from_bytes") (argument_list "(piStack_84,piStack_80)" (( "(") (identifier "piStack_84") (, ",") (identifier "piStack_80") () ")"))))) (; ";")) (expression_statement "param_2 = piStack_80;" (assignment_expression "param_2 = piStack_80" (identifier "param_2") (= "=") (identifier "piStack_80")) (; ";")) (} "}")))) (} "}"))) (if_statement "if (iStack_7c != *piVar1) {\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }" (if "if") (parenthesized_expression "(iStack_7c != *piVar1)" (( "(") (binary_expression "iStack_7c != *piVar1" (identifier "iStack_7c") (!= "!=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")")) (compound_statement "{\n    pcVar15 = *(code **)(puVar14 + 0x547a8);\n    (*pcVar15)();\n    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    *piVar1 = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[1] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[2] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[3] = iVar2;\n    iVar2 = FUN_000594fc(param_2,ppiVar11);\n    piVar1[4] = iVar2;\n    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }\n    return piVar12;\n  }" ({ "{") (expression_statement "pcVar15 = *(code **)(puVar14 + 0x547a8);" (assignment_expression "pcVar15 = *(code **)(puVar14 + 0x547a8)" (identifier "pcVar15") (= "=") (pointer_expression "*(code **)(puVar14 + 0x547a8)" (* "*") (cast_expression "(code **)(puVar14 + 0x547a8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x547a8)" (( "(") (binary_expression "puVar14 + 0x547a8" (identifier "puVar14") (+ "+") (number_literal "0x547a8")) () ")"))))) (; ";")) (expression_statement "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" (( "(") (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);" (assignment_expression "piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14)" (identifier "piVar1") (= "=") (cast_expression "(int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(pcVar15 + 0x53e80))(1,0x14)" (parenthesized_expression "(**(code **)(pcVar15 + 0x53e80))" (( "(") (pointer_expression "**(code **)(pcVar15 + 0x53e80)" (* "*") (pointer_expression "*(code **)(pcVar15 + 0x53e80)" (* "*") (cast_expression "(code **)(pcVar15 + 0x53e80)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar15 + 0x53e80)" (( "(") (binary_expression "pcVar15 + 0x53e80" (identifier "pcVar15") (+ "+") (number_literal "0x53e80")) () ")"))))) () ")")) (argument_list "(1,0x14)" (( "(") (number_literal "1") (, ",") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" (identifier "iVar2") (= "=") (call_expression "FUN_000594fc(param_2,ppiVar11)" (identifier "FUN_000594fc") (argument_list "(param_2,ppiVar11)" (( "(") (identifier "param_2") (, ",") (identifier "ppiVar11") () ")")))) (; ";")) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" (identifier "iVar2") (= "=") (call_expression "FUN_000594fc(param_2,ppiVar11)" (identifier "FUN_000594fc") (argument_list "(param_2,ppiVar11)" (( "(") (identifier "param_2") (, ",") (identifier "ppiVar11") () ")")))) (; ";")) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" (identifier "iVar2") (= "=") (call_expression "FUN_000594fc(param_2,ppiVar11)" (identifier "FUN_000594fc") (argument_list "(param_2,ppiVar11)" (( "(") (identifier "param_2") (, ",") (identifier "ppiVar11") () ")")))) (; ";")) (expression_statement "piVar1[2] = iVar2;" (assignment_expression "piVar1[2] = iVar2" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" (identifier "iVar2") (= "=") (call_expression "FUN_000594fc(param_2,ppiVar11)" (identifier "FUN_000594fc") (argument_list "(param_2,ppiVar11)" (( "(") (identifier "param_2") (, ",") (identifier "ppiVar11") () ")")))) (; ";")) (expression_statement "piVar1[3] = iVar2;" (assignment_expression "piVar1[3] = iVar2" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = FUN_000594fc(param_2,ppiVar11);" (assignment_expression "iVar2 = FUN_000594fc(param_2,ppiVar11)" (identifier "iVar2") (= "=") (call_expression "FUN_000594fc(param_2,ppiVar11)" (identifier "FUN_000594fc") (argument_list "(param_2,ppiVar11)" (( "(") (identifier "param_2") (, ",") (identifier "ppiVar11") () ")")))) (; ";")) (expression_statement "piVar1[4] = iVar2;" (assignment_expression "piVar1[4] = iVar2" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }" (if "if") (parenthesized_expression "((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))))))" (( "(") (binary_expression "(((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||\n       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))" (parenthesized_expression "(((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0))" (( "(") (binary_expression "((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)" (parenthesized_expression "((*piVar1 == 0) || (piVar1[1] == 0))" (( "(") (binary_expression "(*piVar1 == 0) || (piVar1[1] == 0)" (parenthesized_expression "(*piVar1 == 0)" (( "(") (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(piVar1[1] == 0)" (( "(") (binary_expression "piVar1[1] == 0" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(piVar1[2] == 0)" (( "(") (binary_expression "piVar1[2] == 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))" (( "(") (parenthesized_expression "((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))))" (( "(") (binary_expression "(piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||\n        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))" (parenthesized_expression "(piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0))" (( "(") (binary_expression "piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)" (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)" (( "(") (comma_expression "puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0" (assignment_expression "puVar13 = *(undefined4 **)(pcVar15 + 0x542dc)" (identifier "puVar13") (= "=") (pointer_expression "*(undefined4 **)(pcVar15 + 0x542dc)" (* "*") (cast_expression "(undefined4 **)(pcVar15 + 0x542dc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar15 + 0x542dc)" (( "(") (binary_expression "pcVar15 + 0x542dc" (identifier "pcVar15") (+ "+") (number_literal "0x542dc")) () ")"))))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))" (( "(") (parenthesized_expression "(iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0))" (( "(") (comma_expression "iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" (assignment_expression "iVar2 = bignum_cmp(piVar1[1],*puVar13)" (identifier "iVar2") (= "=") (call_expression "bignum_cmp(piVar1[1],*puVar13)" (identifier "bignum_cmp") (argument_list "(piVar1[1],*puVar13)" (( "(") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (pointer_expression "*puVar13" (* "*") (identifier "puVar13")) () ")")))) (, ",") (binary_expression "iVar2 == 0 ||\n         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)" (( "(") (comma_expression "iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0" (assignment_expression "iVar2 = bignum_cmp(*piVar1,*puVar13)" (identifier "iVar2") (= "=") (call_expression "bignum_cmp(*piVar1,*puVar13)" (identifier "bignum_cmp") (argument_list "(*piVar1,*puVar13)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (, ",") (pointer_expression "*puVar13" (* "*") (identifier "puVar13")) () ")")))) (, ",") (comma_expression "piVar12 = piVar1, iVar2 == 0" (assignment_expression "piVar12 = piVar1" (identifier "piVar12") (= "=") (identifier "piVar1")) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")))) () ")")))) () ")")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      piVar12 = (int *)0x0;\n      FUN_00058e40(piVar1);\n    }" ({ "{") (expression_statement "piVar12 = (int *)0x0;" (assignment_expression "piVar12 = (int *)0x0" (identifier "piVar12") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_00058e40(piVar1);" (call_expression "FUN_00058e40(piVar1)" (identifier "FUN_00058e40") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (} "}"))) (return_statement "return piVar12;" (return "return") (identifier "piVar12") (; ";")) (} "}"))) (return_statement "return piStack_84;" (return "return") (identifier "piStack_84") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) 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: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_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 (identifier) (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: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal)))))) (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: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))) (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (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 (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 (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (goto_statement label: (statement_identifier))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (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: (pointer_expression argument: (identifier)))) (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) 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: (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 (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) 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 (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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) (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 (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 (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 (identifier) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (parenthesized_expression (comma_expression left: (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)))))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (pointer_expression argument: (identifier))))) right: (binary_expression left: (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 (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement (identifier)))) (return_statement (identifier)))))

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

{
  int *piVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  int iVar10;
  int **ppiVar11;
  int *piVar12;
  undefined4 *puVar13;
  undefined *puVar14;
  code *pcVar15;
  int local_res8 [2];
  int *piStack_84;
  int *piStack_80;
  int iStack_7c;
  int *piStack_78;
  code *pcStack_74;
  int *local_58;
  int *local_4c;
  undefined1 *local_48;
  int local_44;
  undefined1 auStack_40 [20];
  int local_2c;
  
  puVar14 = PTR___stack_chk_guard_000adcd4;
  local_2c = *(int *)PTR___stack_chk_guard_000adcd4;
  local_res8[0] = param_3;
  local_4c = param_2;
  if (*param_1 != 0) {
    if (param_3 == 0x28) {
LAB_00059158:
      param_2 = (int *)&DAT_00000014;
      piVar1 = (int *)bignum_from_bytes(local_4c,0x14);
      local_res8[0] = local_res8[0] + -0x14;
      local_4c = local_4c + 5;
      if (local_res8[0] < 0x14) {
        if (piVar1 == (int *)0x0) goto LAB_00059440;
      }
      else {
        param_2 = (int *)&DAT_00000014;
        iVar2 = bignum_from_bytes(local_4c,0x14);
        local_4c = local_4c + 5;
        local_res8[0] = local_res8[0] + -0x14;
        if (piVar1 == (int *)0x0) {
          if (iVar2 != 0) {
            freebn(iVar2);
            local_58 = (int *)0x0;
            goto LAB_00059444;
          }
          goto LAB_00059440;
        }
        if (iVar2 != 0) {
          param_2 = *(int **)PTR_Zero_000ad870;
          iVar3 = bignum_cmp(iVar2,param_2);
          if (iVar3 == 0) {
            local_58 = (int *)0x0;
          }
          else {
            param_2 = (int *)param_1[1];
            iVar3 = modinv(iVar2,param_2);
            if (iVar3 == 0) {
              freebn(piVar1);
              freebn(iVar2);
              goto LAB_00059440;
            }
            SHA_Simple(param_4,param_5,auStack_40);
            local_44 = 0x14;
            local_48 = auStack_40;
            uVar4 = bignum_from_bytes(auStack_40,0x14);
            local_48 = local_48 + 0x14;
            local_44 = local_44 + -0x14;
            uVar5 = modmul(uVar4,iVar3,param_1[1]);
            uVar6 = modmul(piVar1,iVar3,param_1[1]);
            uVar7 = modpow(param_1[2],uVar5,*param_1);
            uVar8 = modpow(param_1[3],uVar6,*param_1);
            uVar9 = modmul(uVar7,uVar8,*param_1);
            param_1 = (int *)modmul(uVar9,*(undefined4 *)PTR_One_000ad888,param_1[1]);
            param_2 = piVar1;
            iVar10 = bignum_cmp(param_1,piVar1);
            local_58 = (int *)(uint)(iVar10 == 0);
            freebn(iVar3);
            freebn(uVar4);
            freebn(uVar5);
            freebn(uVar6);
            freebn(uVar7);
            freebn(uVar8);
            freebn(uVar9);
            freebn(param_1);
          }
          freebn(piVar1);
          freebn(iVar2);
          goto LAB_00059444;
        }
      }
      freebn(piVar1);
      local_58 = (int *)0x0;
      goto LAB_00059444;
    }
    param_2 = local_res8;
    FUN_0005902c(&local_4c,param_2,&local_48,&local_44);
    if (local_48 != (undefined1 *)0x0) {
      local_58 = (int *)0x0;
      if (local_44 != 7) goto LAB_00059444;
      param_2 = (int *)(PTR_DAT_000ad2c8 + 0x5650);
      iVar2 = (*(code *)PTR_memcmp_000adcb8)(local_48,param_2,7);
      if (iVar2 == 0) {
        local_res8[0] = local_res8[0] + -4;
        local_4c = local_4c + 1;
        if (0x13 < local_res8[0]) goto LAB_00059158;
      }
    }
  }
LAB_00059440:
  local_58 = (int *)0x0;
LAB_00059444:
  if (local_2c == *(int *)puVar14) {
    return local_58;
  }
  pcVar15 = FUN_000594fc;
  puVar14 = PTR___stack_chk_fail_000adca4;
  (*(code *)PTR___stack_chk_fail_000adca4)();
  ppiVar11 = &piStack_84;
  piVar1 = *(int **)(puVar14 + 0x547d8);
  iStack_7c = *piVar1;
  piStack_78 = param_1;
  pcStack_74 = pcVar15;
  FUN_0005902c();
  if (piStack_84 != (int *)0x0) {
    if (*(char *)piStack_84 < '\0') {
      piStack_84 = (int *)0x0;
    }
    else {
      piStack_84 = (int *)bignum_from_bytes(piStack_84,piStack_80);
      param_2 = piStack_80;
    }
  }
  if (iStack_7c != *piVar1) {
    pcVar15 = *(code **)(puVar14 + 0x547a8);
    (*pcVar15)();
    piVar1 = (int *)(**(code **)(pcVar15 + 0x53e80))(1,0x14);
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    *piVar1 = iVar2;
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    piVar1[1] = iVar2;
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    piVar1[2] = iVar2;
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    piVar1[3] = iVar2;
    iVar2 = FUN_000594fc(param_2,ppiVar11);
    piVar1[4] = iVar2;
    if ((((*piVar1 == 0) || (piVar1[1] == 0)) || (piVar1[2] == 0)) ||
       (((piVar1[3] == 0 || (puVar13 = *(undefined4 **)(pcVar15 + 0x542dc), iVar2 == 0)) ||
        ((iVar2 = bignum_cmp(piVar1[1],*puVar13), iVar2 == 0 ||
         (iVar2 = bignum_cmp(*piVar1,*puVar13), piVar12 = piVar1, iVar2 == 0)))))) {
      piVar12 = (int *)0x0;
      FUN_00058e40(piVar1);
    }
    return piVar12;
  }
  return piStack_84;
}

