
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  size_t n;
  BignumInt *m;
  size_t sVar1;
  void *__s;
  void *__s_00;
  BignumInt *a;
  BignumInt *pBVar2;
  uint uVar3;
  BignumInt *quot;
  uint *__s_01;
  int iVar4;
  int iVar5;
  uint uVar6;
  BignumInt BVar7;
  BignumInt *in_stack_ffffffac;
  BignumInt *in_stack_ffffffb4;
  size_t local_40;
  BignumInt *local_30;
  size_t local_28;
  
  n = *mod;
  if (mod[n] == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");
  }
  m = (BignumInt *)safemalloc(n,4);
  sVar1 = 0;
  if (0 < (int)n) {
    do {
      m[sVar1] = mod[*mod - sVar1];
      sVar1 = sVar1 + 1;
    } while (n != sVar1);
  }
  local_30 = (BignumInt *)*p;
  if ((BignumInt *)*p <= (BignumInt *)*q) {
    local_30 = (BignumInt *)*q;
  }
  local_40 = (int)local_30 * 2;
  if ((int)local_40 <= (int)n) {
    local_30 = (BignumInt *)((int)n / 2 + 1);
    local_40 = (int)local_30 * 2;
  }
  __s = safemalloc((size_t)local_30,4);
  BVar7 = *p;
  iVar4 = (int)local_30 - BVar7;
  if (0 < iVar4) {
    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);
    memset(__s,0,(size_t)in_stack_ffffffac);
    BVar7 = *p;
  }
  iVar5 = 0;
  if (0 < (int)BVar7) {
    do {
      *(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];
      BVar7 = *p;
      iVar5 = iVar5 + 1;
    } while (iVar5 < (int)BVar7);
  }
  __s_00 = safemalloc((size_t)local_30,4);
  BVar7 = *q;
  iVar4 = (int)local_30 - BVar7;
  if (0 < iVar4) {
    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);
    memset(__s_00,0,(size_t)in_stack_ffffffac);
    BVar7 = *q;
  }
  iVar5 = 0;
  if (0 < (int)BVar7) {
    do {
      *(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];
      BVar7 = *q;
      iVar5 = iVar5 + 1;
    } while (iVar5 < (int)BVar7);
  }
  a = (BignumInt *)safemalloc(local_40,4);
  local_28 = 0;
  pBVar2 = local_30;
  if ((int)local_30 < 0x33) {
    local_28 = 0;
  }
  else {
    do {
      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));
      local_28 = local_28 + (int)pBVar2 * 4;
    } while (0x32 < (int)pBVar2);
  }
  pBVar2 = (BignumInt *)safemalloc(local_28,4);
  uVar3 = *m;
  if (uVar3 >> 0x10 == 0) {
    uVar6 = uVar3 << 0x10;
    BVar7 = 0x10;
  }
  else {
    BVar7 = 0;
    uVar6 = uVar3;
  }
  if (uVar6 >> 0x18 == 0) {
    uVar6 = uVar6 << 8;
    BVar7 = BVar7 + 8;
  }
  if (uVar6 >> 0x1c == 0) {
    uVar6 = uVar6 << 4;
    BVar7 = BVar7 + 4;
  }
  if (uVar6 >> 0x1e == 0) {
    BVar7 = BVar7 + 2;
    if ((uVar6 & 0x20000000) == 0) {
LAB_00056097:
      BVar7 = BVar7 + 1;
    }
  }
  else {
    if (-1 < (int)uVar6) goto LAB_00056097;
    if (BVar7 == 0) goto LAB_000560b9;
  }
  uVar3 = uVar3 << ((byte)BVar7 & 0x1f);
  if (1 < (int)n) {
    uVar3 = uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f);
  }
LAB_000560b9:
  iVar4 = 0x560be;
  quot = (BignumInt *)reciprocal_word(uVar3);
  internal_mul(local_30,pBVar2,in_stack_ffffffac,iVar4,in_stack_ffffffb4);
  internal_mod(a,local_40,m,n,quot,BVar7,iVar4);
  sVar1 = n;
  if ((int)local_40 < (int)n) {
    sVar1 = local_40;
  }
  if (0x3fffffe < sVar1) {
                    /* WARNING: Subroutine does not return */
    newbn((int)in_stack_ffffffb4);
  }
  __s_01 = (uint *)safemalloc(sVar1 + 1,4);
  memset(__s_01,0,(sVar1 + 1) * 4);
  *__s_01 = sVar1;
  if (sVar1 != 0) {
    __s_01[sVar1] = a[local_40 - sVar1];
    if (sVar1 != 1) {
      uVar3 = 1;
      do {
        iVar4 = (local_40 - sVar1) + uVar3;
        iVar5 = *__s_01 - uVar3;
        uVar3 = uVar3 + 1;
        __s_01[iVar5] = a[iVar4];
      } while (sVar1 != uVar3);
    }
    uVar3 = *__s_01;
    if (1 < uVar3) {
      uVar6 = __s_01[uVar3];
      while (uVar6 == 0) {
        uVar3 = uVar3 - 1;
        *__s_01 = uVar3;
        if (uVar3 == 1) break;
        uVar6 = __s_01[uVar3];
      }
    }
  }
  smemclr(pBVar2,local_28 << 2);
  safefree(pBVar2);
  smemclr(a,(int)local_30 * 8);
  safefree(a);
  smemclr(m,n * 4);
  safefree(m);
  smemclr(__s,(int)local_30 << 2);
  safefree(__s);
  smemclr(__s_00,(int)local_30 << 2);
  safefree(__s_00);
  return __s_01;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint * FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)

{
  uint uVar1;
  uint *puVar2;
  uint uVar3;
  void *__s;
  void *__s_00;
  undefined4 uVar4;
  undefined4 uVar5;
  uint *__s_01;
  uint uVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  uint local_40;
  uint local_30;
  int local_28;
  
  uVar1 = *param_3;
  if (param_3[uVar1] == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");
  }
  puVar2 = (uint *)FUN_0001db90(uVar1,4);
  uVar3 = 0;
  if (0 < (int)uVar1) {
    do {
      puVar2[uVar3] = param_3[*param_3 - uVar3];
      uVar3 = uVar3 + 1;
    } while (uVar1 != uVar3);
  }
  local_30 = *param_1;
  if (*param_1 <= *param_2) {
    local_30 = *param_2;
  }
  local_40 = local_30 * 2;
  if ((int)local_40 <= (int)uVar1) {
    local_30 = (int)uVar1 / 2 + 1;
    local_40 = local_30 * 2;
  }
  __s = (void *)FUN_0001db90(local_30,4);
  uVar3 = *param_1;
  iVar7 = local_30 - uVar3;
  if (0 < iVar7) {
    memset(__s,0,iVar7 * 4);
    uVar3 = *param_1;
  }
  iVar8 = 0;
  if (0 < (int)uVar3) {
    do {
      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];
      uVar3 = *param_1;
      iVar8 = iVar8 + 1;
    } while (iVar8 < (int)uVar3);
  }
  __s_00 = (void *)FUN_0001db90(local_30,4);
  uVar3 = *param_2;
  iVar7 = local_30 - uVar3;
  if (0 < iVar7) {
    memset(__s_00,0,iVar7 * 4);
    uVar3 = *param_2;
  }
  iVar8 = 0;
  if (0 < (int)uVar3) {
    do {
      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];
      uVar3 = *param_2;
      iVar8 = iVar8 + 1;
    } while (iVar8 < (int)uVar3);
  }
  iVar7 = FUN_0001db90(local_40,4);
  local_28 = 0;
  uVar3 = local_30;
  if ((int)local_30 < 0x33) {
    local_28 = 0;
  }
  else {
    do {
      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;
      local_28 = local_28 + uVar3 * 4;
    } while (0x32 < (int)uVar3);
  }
  uVar4 = FUN_0001db90(local_28,4);
  uVar3 = *puVar2;
  if (uVar3 >> 0x10 == 0) {
    uVar3 = uVar3 << 0x10;
    iVar8 = 0x10;
  }
  else {
    iVar8 = 0;
  }
  if (uVar3 >> 0x18 == 0) {
    uVar3 = uVar3 << 8;
    iVar8 = iVar8 + 8;
  }
  if (uVar3 >> 0x1c == 0) {
    uVar3 = uVar3 << 4;
    iVar8 = iVar8 + 4;
  }
  if (uVar3 >> 0x1e == 0) {
    iVar8 = iVar8 + 2;
    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;
  }
  else if ((int)uVar3 < 0) goto LAB_000560b9;
  iVar8 = iVar8 + 1;
LAB_000560b9:
  uVar5 = FUN_00053910();
  FUN_00053bc0(local_30,uVar4);
  FUN_000543d0(uVar1,uVar5,iVar8);
  uVar3 = uVar1;
  if ((int)local_40 < (int)uVar1) {
    uVar3 = local_40;
  }
  if (0x3fffffe < uVar3) {
                    /* WARNING: Subroutine does not return */
    FUN_00053b90();
  }
  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);
  memset(__s_01,0,(uVar3 + 1) * 4);
  *__s_01 = uVar3;
  if (uVar3 != 0) {
    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);
    if (uVar3 != 1) {
      uVar6 = 1;
      do {
        iVar8 = uVar6 * 4;
        iVar9 = *__s_01 - uVar6;
        uVar6 = uVar6 + 1;
        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);
      } while (uVar3 != uVar6);
    }
    uVar3 = *__s_01;
    if (1 < uVar3) {
      uVar6 = __s_01[uVar3];
      while (uVar6 == 0) {
        uVar3 = uVar3 - 1;
        *__s_01 = uVar3;
        if (uVar3 == 1) break;
        uVar6 = __s_01[uVar3];
      }
    }
  }
  FUN_0001de10(uVar4,local_28 << 2);
  FUN_0001dd30(uVar4);
  FUN_0001de10(iVar7,local_30 * 8);
  FUN_0001dd30(iVar7);
  FUN_0001de10(puVar2,uVar1 * 4);
  FUN_0001dd30(puVar2);
  FUN_0001de10(__s,local_30 << 2);
  FUN_0001dd30(__s);
  FUN_0001de10(__s_00,local_30 << 2);
  FUN_0001dd30(__s_00);
  return __s_01;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0x76ec7
SUB ESP,0x3c
MOV EDX,dword ptr [ESP + 0x58]
MOV EBP,dword ptr [ESP + 0x50]
MOV EDI,dword ptr [ESP + 0x54]
MOV ESI,dword ptr [EDX]
LEA EAX,[ESI*0x4 + 0x0]
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [EDX + ESI*0x4]
TEST EAX,EAX
JZ 0x0005628a
MOV dword ptr [ESP + 0x58],EDX
SUB ESP,0x8
PUSH 0x4
PUSH ESI
CALL 0x0001db90
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
XOR EAX,EAX
TEST ESI,ESI
MOV EDX,dword ptr [ESP + 0x58]
JLE 0x00055f16
MOV dword ptr [ESP + 0x50],EBP
MOV EBP,dword ptr [ESP + 0x10]
NOP
MOV ECX,dword ptr [EDX]
SUB ECX,EAX
MOV ECX,dword ptr [EDX + ECX*0x4]
MOV dword ptr [EBP + EAX*0x4],ECX
ADD EAX,0x1
CMP ESI,EAX
JNZ 0x00055f00
MOV EBP,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [EBP]
CMP dword ptr [EDI],EAX
CMOVNC EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0x1c],EAX
ADD EAX,EAX
MOV dword ptr [ESP + 0xc],EAX
CMP EAX,ESI
JLE 0x00056240
SUB ESP,0x8
PUSH 0x4
PUSH dword ptr [ESP + 0x14]
CALL 0x0001db90
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x28],EAX
MOV ECX,EAX
MOV EAX,dword ptr [EBP]
ADD ESP,0x10
SUB EDX,EAX
TEST EDX,EDX
JLE 0x00055f79
MOV dword ptr [ESP + 0x14],EDX
LEA EAX,[EDX*0x4 + 0x0]
SUB ESP,0x4
PUSH EAX
PUSH 0x0
PUSH ECX
CALL 0x000144f0
ADD ESP,0x10
MOV EAX,dword ptr [EBP]
MOV EDX,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESP + 0x18]
LEA ECX,[ECX + EDX*0x4]
XOR EDX,EDX
TEST EAX,EAX
JLE 0x00055fa3
LEA ESI,[ESI]
LEA ESI,[ESI]
SUB EAX,EDX
MOV EAX,dword ptr [EBP + EAX*0x4]
MOV dword ptr [ECX + EDX*0x4],EAX
MOV EAX,dword ptr [EBP]
ADD EDX,0x1
CMP EAX,EDX
JG 0x00055f90
SUB ESP,0x8
PUSH 0x4
MOV EBP,dword ptr [ESP + 0x14]
PUSH EBP
CALL 0x0001db90
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [EDI]
ADD ESP,0x10
SUB EBP,EAX
TEST EBP,EBP
JLE 0x00055fdc
SUB ESP,0x4
LEA EAX,[EBP*0x4 + 0x0]
PUSH EAX
PUSH 0x0
PUSH dword ptr [ESP + 0x20]
CALL 0x000144f0
MOV EAX,dword ptr [EDI]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x14]
XOR EDX,EDX
LEA ECX,[ECX + EBP*0x4]
TEST EAX,EAX
JLE 0x00056001
LEA ESI,[ESI]
SUB EAX,EDX
MOV EAX,dword ptr [EDI + EAX*0x4]
MOV dword ptr [ECX + EDX*0x4],EAX
MOV EAX,dword ptr [EDI]
ADD EDX,0x1
CMP EAX,EDX
JG 0x00055ff0
SUB ESP,0x8
PUSH 0x4
PUSH dword ptr [ESP + 0x18]
CALL 0x0001db90
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x1c]
XOR EDX,EDX
MOV EBP,EAX
MOV EAX,EDI
CMP EDI,0x32
JLE 0x00056278
LEA ESI,[ESI]
MOV ECX,EAX
SAR ECX,0x1
SUB EAX,ECX
ADD EAX,0x1
LEA EDX,[EDX + EAX*0x4]
CMP EAX,0x32
JG 0x00056028
MOV dword ptr [ESP + 0x24],EDX
SUB ESP,0x8
PUSH 0x4
PUSH dword ptr [ESP + 0x30]
CALL 0x0001db90
MOV dword ptr [ESP + 0x30],EAX
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0x10
MOV EAX,dword ptr [EAX]
MOV EDI,EAX
MOV EDX,EAX
SHR EDI,0x10
JZ 0x00056230
XOR EDI,EDI
MOV ECX,EDX
SHR ECX,0x18
JNZ 0x00056074
SHL EDX,0x8
ADD EDI,0x8
MOV ECX,EDX
SHR ECX,0x1c
JNZ 0x00056081
SHL EDX,0x4
ADD EDI,0x4
MOV ECX,EDX
SHR ECX,0x1e
JNZ 0x00056260
ADD EDI,0x2
AND EDX,0x20000000
JNZ 0x0005609a
ADD EDI,0x1
MOV ECX,EDI
SHL EAX,CL
CMP ESI,0x1
JLE 0x000560b9
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,0x20
SUB ECX,EDI
MOV EDX,dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0x28],EDX
SHR EDX,CL
OR EAX,EDX
CALL 0x00053910
SUB ESP,0x8
MOV ECX,EBP
MOV dword ptr [ESP + 0x30],EAX
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x28]
CALL 0x00053bc0
ADD ESP,0xc
MOV EAX,EBP
PUSH EDI
PUSH dword ptr [ESP + 0x30]
PUSH ESI
MOV EDI,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [ESP + 0x20]
MOV EDX,EDI
CALL 0x000543d0
ADD ESP,0x10
CMP ESI,EDI
CMOVG ESI,EDI
CMP ESI,0x3fffffe
JA 0x00056285
SUB ESP,0x8
LEA EDX,[ESI + 0x1]
PUSH 0x4
PUSH EDX
MOV dword ptr [ESP + 0x2c],EDX
CALL 0x0001db90
MOV EDX,dword ptr [ESP + 0x2c]
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EDX*0x4 + 0x0]
PUSH EAX
PUSH 0x0
PUSH EDI
CALL 0x000144f0
MOV dword ptr [EDI],ESI
ADD ESP,0x10
TEST ESI,ESI
JZ 0x000561a2
MOV EAX,dword ptr [ESP + 0xc]
SUB EAX,ESI
MOV EAX,dword ptr [EBP + EAX*0x4]
MOV dword ptr [EDI + ESI*0x4],EAX
CMP ESI,0x1
JZ 0x0005617d
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0xc],EBP
SUB EAX,ESI
LEA ECX,[EBP + EAX*0x4]
MOV EAX,0x1
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [EDI]
MOV EBP,dword ptr [ECX + EAX*0x4]
SUB EDX,EAX
ADD EAX,0x1
MOV dword ptr [EDI + EDX*0x4],EBP
CMP ESI,EAX
JNZ 0x00056168
MOV EBP,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EDI]
CMP EAX,0x1
JBE 0x000561a2
MOV ECX,dword ptr [EDI + EAX*0x4]
TEST ECX,ECX
JNZ 0x000561a2
SUB EAX,0x1
JMP 0x0005619b
SUB EAX,0x1
MOV EDX,dword ptr [EDI + EAX*0x4 + 0x4]
TEST EDX,EDX
JNZ 0x000561a2
MOV dword ptr [EDI],EAX
CMP EAX,0x1
JNZ 0x00056190
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x2c]
SHL EAX,0x2
PUSH EAX
MOV ESI,dword ptr [ESP + 0x2c]
PUSH ESI
CALL 0x0001de10
MOV dword ptr [ESP],ESI
CALL 0x0001dd30
POP EAX
POP EDX
MOV ESI,dword ptr [ESP + 0x10]
LEA EAX,[ESI*0x8 + 0x0]
SHL ESI,0x2
PUSH EAX
PUSH EBP
CALL 0x0001de10
MOV dword ptr [ESP],EBP
CALL 0x0001dd30
POP ECX
POP EBP
PUSH dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x1c]
PUSH EBP
CALL 0x0001de10
MOV dword ptr [ESP],EBP
CALL 0x0001dd30
POP EAX
POP EDX
PUSH ESI
MOV EBP,dword ptr [ESP + 0x24]
PUSH EBP
CALL 0x0001de10
MOV dword ptr [ESP],EBP
CALL 0x0001dd30
POP ECX
POP EBP
PUSH ESI
MOV ESI,dword ptr [ESP + 0x20]
PUSH ESI
CALL 0x0001de10
MOV dword ptr [ESP],ESI
CALL 0x0001dd30
ADD ESP,0x4c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SHL EDX,0x10
MOV EDI,0x10
JMP 0x00056067
MOV EAX,ESI
SHR EAX,0x1f
ADD EAX,ESI
SAR EAX,0x1
ADD EAX,0x1
MOV dword ptr [ESP + 0x1c],EAX
MOV dword ptr [ESP + 0x8],EAX
ADD EAX,EAX
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00055f34
TEST EDX,EDX
JNS 0x00056097
TEST EDI,EDI
JZ 0x000560b9
JMP 0x0005609a
MOV dword ptr [ESP + 0x24],0x0
JMP 0x0005603d
CALL 0x00053b90
LEA EAX,[EBX + 0xfffccca4]
PUSH EAX
LEA EAX,[EBX + 0xfffccaf8]
PUSH 0x4c1
PUSH EAX
LEA EAX,[EBX + 0xfffccb37]
PUSH EAX
CALL 0x00014880
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint * FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  void *__s;\n  void *__s_00;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  uint *__s_01;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  uint local_40;\n  uint local_30;\n  int local_28;\n  \n  uVar1 = *param_3;\n  if (param_3[uVar1] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  puVar2 = (uint *)FUN_0001db90(uVar1,4);\n  uVar3 = 0;\n  if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }\n  local_30 = *param_1;\n  if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }\n  local_40 = local_30 * 2;\n  if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }\n  __s = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_1;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  __s_00 = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_2;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  iVar7 = FUN_0001db90(local_40,4);\n  local_28 = 0;\n  uVar3 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }\n  uVar4 = FUN_0001db90(local_28,4);\n  uVar3 = *puVar2;\n  if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }\n  if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }\n  if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }\n  if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;\n  iVar8 = iVar8 + 1;\nLAB_000560b9:\n  uVar5 = FUN_00053910();\n  FUN_00053bc0(local_30,uVar4);\n  FUN_000543d0(uVar1,uVar5,iVar8);\n  uVar3 = uVar1;\n  if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }\n  if (0x3fffffe < uVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00053b90();\n  }\n  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);\n  memset(__s_01,0,(uVar3 + 1) * 4);\n  *__s_01 = uVar3;\n  if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  FUN_0001de10(uVar4,local_28 << 2);\n  FUN_0001dd30(uVar4);\n  FUN_0001de10(iVar7,local_30 * 8);\n  FUN_0001dd30(iVar7);\n  FUN_0001de10(puVar2,uVar1 * 4);\n  FUN_0001dd30(puVar2);\n  FUN_0001de10(__s,local_30 << 2);\n  FUN_0001dd30(__s);\n  FUN_0001de10(__s_00,local_30 << 2);\n  FUN_0001dd30(__s_00);\n  return __s_01;\n}\n\n" comment (function_definition "uint * FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  void *__s;\n  void *__s_00;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  uint *__s_01;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  uint local_40;\n  uint local_30;\n  int local_28;\n  \n  uVar1 = *param_3;\n  if (param_3[uVar1] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  puVar2 = (uint *)FUN_0001db90(uVar1,4);\n  uVar3 = 0;\n  if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }\n  local_30 = *param_1;\n  if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }\n  local_40 = local_30 * 2;\n  if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }\n  __s = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_1;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  __s_00 = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_2;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  iVar7 = FUN_0001db90(local_40,4);\n  local_28 = 0;\n  uVar3 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }\n  uVar4 = FUN_0001db90(local_28,4);\n  uVar3 = *puVar2;\n  if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }\n  if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }\n  if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }\n  if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;\n  iVar8 = iVar8 + 1;\nLAB_000560b9:\n  uVar5 = FUN_00053910();\n  FUN_00053bc0(local_30,uVar4);\n  FUN_000543d0(uVar1,uVar5,iVar8);\n  uVar3 = uVar1;\n  if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }\n  if (0x3fffffe < uVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00053b90();\n  }\n  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);\n  memset(__s_01,0,(uVar3 + 1) * 4);\n  *__s_01 = uVar3;\n  if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  FUN_0001de10(uVar4,local_28 << 2);\n  FUN_0001dd30(uVar4);\n  FUN_0001de10(iVar7,local_30 * 8);\n  FUN_0001dd30(iVar7);\n  FUN_0001de10(puVar2,uVar1 * 4);\n  FUN_0001dd30(puVar2);\n  FUN_0001de10(__s,local_30 << 2);\n  FUN_0001dd30(__s);\n  FUN_0001de10(__s_00,local_30 << 2);\n  FUN_0001dd30(__s_00);\n  return __s_01;\n}" type_identifier (pointer_declarator "* FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)" * (function_declarator "FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)" identifier (parameter_list "(uint *param_1,uint *param_2,uint *param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  void *__s;\n  void *__s_00;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  uint *__s_01;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  uint local_40;\n  uint local_30;\n  int local_28;\n  \n  uVar1 = *param_3;\n  if (param_3[uVar1] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  puVar2 = (uint *)FUN_0001db90(uVar1,4);\n  uVar3 = 0;\n  if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }\n  local_30 = *param_1;\n  if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }\n  local_40 = local_30 * 2;\n  if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }\n  __s = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_1;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  __s_00 = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_2;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  iVar7 = FUN_0001db90(local_40,4);\n  local_28 = 0;\n  uVar3 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }\n  uVar4 = FUN_0001db90(local_28,4);\n  uVar3 = *puVar2;\n  if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }\n  if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }\n  if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }\n  if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;\n  iVar8 = iVar8 + 1;\nLAB_000560b9:\n  uVar5 = FUN_00053910();\n  FUN_00053bc0(local_30,uVar4);\n  FUN_000543d0(uVar1,uVar5,iVar8);\n  uVar3 = uVar1;\n  if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }\n  if (0x3fffffe < uVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00053b90();\n  }\n  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);\n  memset(__s_01,0,(uVar3 + 1) * 4);\n  *__s_01 = uVar3;\n  if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  FUN_0001de10(uVar4,local_28 << 2);\n  FUN_0001dd30(uVar4);\n  FUN_0001de10(iVar7,local_30 * 8);\n  FUN_0001dd30(iVar7);\n  FUN_0001de10(puVar2,uVar1 * 4);\n  FUN_0001dd30(puVar2);\n  FUN_0001de10(__s,local_30 << 2);\n  FUN_0001dd30(__s);\n  FUN_0001de10(__s_00,local_30 << 2);\n  FUN_0001dd30(__s_00);\n  return __s_01;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "uint *__s_01;" type_identifier (pointer_declarator "*__s_01" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "uVar1 = *param_3;" (assignment_expression "uVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (param_3[uVar1] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }" if (parenthesized_expression "(param_3[uVar1] == 0)" ( (binary_expression "param_3[uVar1] == 0" (subscript_expression "param_3[uVar1]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }" { comment (expression_statement "__assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");" (call_expression "__assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul")" identifier (argument_list "("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul")" ( (string_literal ""mod[mod[0]] != 0"" " string_content ") , (string_literal ""sshbn.c"" " string_content ") , number_literal , (string_literal ""modmul"" " string_content ") ))) ;) })) (expression_statement "puVar2 = (uint *)FUN_0001db90(uVar1,4);" (assignment_expression "puVar2 = (uint *)FUN_0001db90(uVar1,4)" identifier = (cast_expression "(uint *)FUN_0001db90(uVar1,4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(uVar1,4)" identifier (argument_list "(uVar1,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }" if (parenthesized_expression "(0 < (int)uVar1)" ( (binary_expression "0 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }" { (do_statement "do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);" do (compound_statement "{\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    }" { (expression_statement "puVar2[uVar3] = param_3[*param_3 - uVar3];" (assignment_expression "puVar2[uVar3] = param_3[*param_3 - uVar3]" (subscript_expression "puVar2[uVar3]" identifier [ identifier ]) = (subscript_expression "param_3[*param_3 - uVar3]" identifier [ (binary_expression "*param_3 - uVar3" (pointer_expression "*param_3" * identifier) - identifier) ])) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 != uVar3)" ( (binary_expression "uVar1 != uVar3" identifier != identifier) )) ;) })) (expression_statement "local_30 = *param_1;" (assignment_expression "local_30 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }" if (parenthesized_expression "(*param_1 <= *param_2)" ( (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" * identifier) <= (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    local_30 = *param_2;\n  }" { (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "local_40 = local_30 * 2;" (assignment_expression "local_40 = local_30 * 2" identifier = (binary_expression "local_30 * 2" identifier * number_literal)) ;) (if_statement "if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }" if (parenthesized_expression "((int)local_40 <= (int)uVar1)" ( (binary_expression "(int)local_40 <= (int)uVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }" { (expression_statement "local_30 = (int)uVar1 / 2 + 1;" (assignment_expression "local_30 = (int)uVar1 / 2 + 1" identifier = (binary_expression "(int)uVar1 / 2 + 1" (binary_expression "(int)uVar1 / 2" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) + number_literal)) ;) (expression_statement "local_40 = local_30 * 2;" (assignment_expression "local_40 = local_30 * 2" identifier = (binary_expression "local_30 * 2" identifier * number_literal)) ;) })) (expression_statement "__s = (void *)FUN_0001db90(local_30,4);" (assignment_expression "__s = (void *)FUN_0001db90(local_30,4)" identifier = (cast_expression "(void *)FUN_0001db90(local_30,4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(local_30,4)" identifier (argument_list "(local_30,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar7 = local_30 - uVar3;" (assignment_expression "iVar7 = local_30 - uVar3" identifier = (binary_expression "local_30 - uVar3" identifier - identifier)) ;) (if_statement "if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }" { (expression_statement "memset(__s,0,iVar7 * 4);" (call_expression "memset(__s,0,iVar7 * 4)" identifier (argument_list "(__s,0,iVar7 * 4)" ( identifier , number_literal , (binary_expression "iVar7 * 4" identifier * number_literal) ))) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" if (parenthesized_expression "(0 < (int)uVar3)" ( (binary_expression "0 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" { (do_statement "do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);" do (compound_statement "{\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    }" { (expression_statement "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];" (assignment_expression "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8]" (pointer_expression "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4)" * (cast_expression "(uint *)((int)__s + iVar8 * 4 + iVar7 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s + iVar8 * 4 + iVar7 * 4)" ( (binary_expression "(int)__s + iVar8 * 4 + iVar7 * 4" (binary_expression "(int)__s + iVar8 * 4" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar8 * 4" identifier * number_literal)) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "param_1[uVar3 - iVar8]" identifier [ (binary_expression "uVar3 - iVar8" identifier - identifier) ])) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 < (int)uVar3)" ( (binary_expression "iVar8 < (int)uVar3" identifier < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "__s_00 = (void *)FUN_0001db90(local_30,4);" (assignment_expression "__s_00 = (void *)FUN_0001db90(local_30,4)" identifier = (cast_expression "(void *)FUN_0001db90(local_30,4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(local_30,4)" identifier (argument_list "(local_30,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar7 = local_30 - uVar3;" (assignment_expression "iVar7 = local_30 - uVar3" identifier = (binary_expression "local_30 - uVar3" identifier - identifier)) ;) (if_statement "if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }" { (expression_statement "memset(__s_00,0,iVar7 * 4);" (call_expression "memset(__s_00,0,iVar7 * 4)" identifier (argument_list "(__s_00,0,iVar7 * 4)" ( identifier , number_literal , (binary_expression "iVar7 * 4" identifier * number_literal) ))) ;) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" if (parenthesized_expression "(0 < (int)uVar3)" ( (binary_expression "0 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" { (do_statement "do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);" do (compound_statement "{\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    }" { (expression_statement "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];" (assignment_expression "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8]" (pointer_expression "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4)" * (cast_expression "(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s_00 + iVar8 * 4 + iVar7 * 4)" ( (binary_expression "(int)__s_00 + iVar8 * 4 + iVar7 * 4" (binary_expression "(int)__s_00 + iVar8 * 4" (cast_expression "(int)__s_00" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar8 * 4" identifier * number_literal)) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "param_2[uVar3 - iVar8]" identifier [ (binary_expression "uVar3 - iVar8" identifier - identifier) ])) ;) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 < (int)uVar3)" ( (binary_expression "iVar8 < (int)uVar3" identifier < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "iVar7 = FUN_0001db90(local_40,4);" (assignment_expression "iVar7 = FUN_0001db90(local_40,4)" identifier = (call_expression "FUN_0001db90(local_40,4)" identifier (argument_list "(local_40,4)" ( identifier , number_literal )))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = local_30;" (assignment_expression "uVar3 = local_30" identifier = identifier) ;) (if_statement "if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" if (parenthesized_expression "((int)local_30 < 0x33)" ( (binary_expression "(int)local_30 < 0x33" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_28 = 0;\n  }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" else (compound_statement "{\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" { (do_statement "do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);" do (compound_statement "{\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    }" { (expression_statement "uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;" (assignment_expression "uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1" identifier = (binary_expression "(uVar3 - ((int)uVar3 >> 1)) + 1" (parenthesized_expression "(uVar3 - ((int)uVar3 >> 1))" ( (binary_expression "uVar3 - ((int)uVar3 >> 1)" identifier - (parenthesized_expression "((int)uVar3 >> 1)" ( (binary_expression "(int)uVar3 >> 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )) + number_literal)) ;) (expression_statement "local_28 = local_28 + uVar3 * 4;" (assignment_expression "local_28 = local_28 + uVar3 * 4" identifier = (binary_expression "local_28 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal))) ;) }) while (parenthesized_expression "(0x32 < (int)uVar3)" ( (binary_expression "0x32 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) }))) (expression_statement "uVar4 = FUN_0001db90(local_28,4);" (assignment_expression "uVar4 = FUN_0001db90(local_28,4)" identifier = (call_expression "FUN_0001db90(local_28,4)" identifier (argument_list "(local_28,4)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }" if (parenthesized_expression "(uVar3 >> 0x10 == 0)" ( (binary_expression "uVar3 >> 0x10 == 0" (binary_expression "uVar3 >> 0x10" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }" { (expression_statement "uVar3 = uVar3 << 0x10;" (assignment_expression "uVar3 = uVar3 << 0x10" identifier = (binary_expression "uVar3 << 0x10" identifier << number_literal)) ;) (expression_statement "iVar8 = 0x10;" (assignment_expression "iVar8 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n    iVar8 = 0;\n  }" else (compound_statement "{\n    iVar8 = 0;\n  }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) }))) (if_statement "if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }" if (parenthesized_expression "(uVar3 >> 0x18 == 0)" ( (binary_expression "uVar3 >> 0x18 == 0" (binary_expression "uVar3 >> 0x18" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }" { (expression_statement "uVar3 = uVar3 << 8;" (assignment_expression "uVar3 = uVar3 << 8" identifier = (binary_expression "uVar3 << 8" identifier << number_literal)) ;) (expression_statement "iVar8 = iVar8 + 8;" (assignment_expression "iVar8 = iVar8 + 8" identifier = (binary_expression "iVar8 + 8" identifier + number_literal)) ;) })) (if_statement "if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }" if (parenthesized_expression "(uVar3 >> 0x1c == 0)" ( (binary_expression "uVar3 >> 0x1c == 0" (binary_expression "uVar3 >> 0x1c" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }" { (expression_statement "uVar3 = uVar3 << 4;" (assignment_expression "uVar3 = uVar3 << 4" identifier = (binary_expression "uVar3 << 4" identifier << number_literal)) ;) (expression_statement "iVar8 = iVar8 + 4;" (assignment_expression "iVar8 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) })) (if_statement "if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;" if (parenthesized_expression "(uVar3 >> 0x1e == 0)" ( (binary_expression "uVar3 >> 0x1e == 0" (binary_expression "uVar3 >> 0x1e" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }" { (expression_statement "iVar8 = iVar8 + 2;" (assignment_expression "iVar8 = iVar8 + 2" identifier = (binary_expression "iVar8 + 2" identifier + number_literal)) ;) (if_statement "if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;" if (parenthesized_expression "((uVar3 & 0x20000000) != 0)" ( (binary_expression "(uVar3 & 0x20000000) != 0" (parenthesized_expression "(uVar3 & 0x20000000)" ( (binary_expression "uVar3 & 0x20000000" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000560b9;" goto statement_identifier ;)) }) (else_clause "else if ((int)uVar3 < 0) goto LAB_000560b9;" else (if_statement "if ((int)uVar3 < 0) goto LAB_000560b9;" if (parenthesized_expression "((int)uVar3 < 0)" ( (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_000560b9;" goto statement_identifier ;)))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_000560b9:\n  uVar5 = FUN_00053910();" statement_identifier : (expression_statement "uVar5 = FUN_00053910();" (assignment_expression "uVar5 = FUN_00053910()" identifier = (call_expression "FUN_00053910()" identifier (argument_list "()" ( )))) ;)) (expression_statement "FUN_00053bc0(local_30,uVar4);" (call_expression "FUN_00053bc0(local_30,uVar4)" identifier (argument_list "(local_30,uVar4)" ( identifier , identifier ))) ;) (expression_statement "FUN_000543d0(uVar1,uVar5,iVar8);" (call_expression "FUN_000543d0(uVar1,uVar5,iVar8)" identifier (argument_list "(uVar1,uVar5,iVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" identifier = identifier) ;) (if_statement "if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }" if (parenthesized_expression "((int)local_40 < (int)uVar1)" ( (binary_expression "(int)local_40 < (int)uVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar3 = local_40;\n  }" { (expression_statement "uVar3 = local_40;" (assignment_expression "uVar3 = local_40" identifier = identifier) ;) })) (if_statement "if (0x3fffffe < uVar3) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00053b90();\n  }" if (parenthesized_expression "(0x3fffffe < uVar3)" ( (binary_expression "0x3fffffe < uVar3" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00053b90();\n  }" { comment (expression_statement "FUN_00053b90();" (call_expression "FUN_00053b90()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);" (assignment_expression "__s_01 = (uint *)FUN_0001db90(uVar3 + 1,4)" identifier = (cast_expression "(uint *)FUN_0001db90(uVar3 + 1,4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(uVar3 + 1,4)" identifier (argument_list "(uVar3 + 1,4)" ( (binary_expression "uVar3 + 1" identifier + number_literal) , number_literal ))))) ;) (expression_statement "memset(__s_01,0,(uVar3 + 1) * 4);" (call_expression "memset(__s_01,0,(uVar3 + 1) * 4)" identifier (argument_list "(__s_01,0,(uVar3 + 1) * 4)" ( identifier , number_literal , (binary_expression "(uVar3 + 1) * 4" (parenthesized_expression "(uVar3 + 1)" ( (binary_expression "uVar3 + 1" identifier + number_literal) )) * number_literal) ))) ;) (expression_statement "*__s_01 = uVar3;" (assignment_expression "*__s_01 = uVar3" (pointer_expression "*__s_01" * identifier) = identifier) ;) (if_statement "if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }" { (expression_statement "__s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);" (assignment_expression "__s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4)" (subscript_expression "__s_01[uVar3]" identifier [ identifier ]) = (pointer_expression "*(uint *)(iVar7 + (local_40 - uVar3) * 4)" * (cast_expression "(uint *)(iVar7 + (local_40 - uVar3) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (local_40 - uVar3) * 4)" ( (binary_expression "iVar7 + (local_40 - uVar3) * 4" identifier + (binary_expression "(local_40 - uVar3) * 4" (parenthesized_expression "(local_40 - uVar3)" ( (binary_expression "local_40 - uVar3" identifier - identifier) )) * number_literal)) ))))) ;) (if_statement "if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }" if (parenthesized_expression "(uVar3 != 1)" ( (binary_expression "uVar3 != 1" identifier != number_literal) )) (compound_statement "{\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (do_statement "do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);" do (compound_statement "{\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      }" { (expression_statement "iVar8 = uVar6 * 4;" (assignment_expression "iVar8 = uVar6 * 4" identifier = (binary_expression "uVar6 * 4" identifier * number_literal)) ;) (expression_statement "iVar9 = *__s_01 - uVar6;" (assignment_expression "iVar9 = *__s_01 - uVar6" identifier = (binary_expression "*__s_01 - uVar6" (pointer_expression "*__s_01" * identifier) - identifier)) ;) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "__s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);" (assignment_expression "__s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" (subscript_expression "__s_01[iVar9]" identifier [ identifier ]) = (pointer_expression "*(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" * (cast_expression "(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (local_40 - uVar3) * 4 + iVar8)" ( (binary_expression "iVar7 + (local_40 - uVar3) * 4 + iVar8" (binary_expression "iVar7 + (local_40 - uVar3) * 4" identifier + (binary_expression "(local_40 - uVar3) * 4" (parenthesized_expression "(local_40 - uVar3)" ( (binary_expression "local_40 - uVar3" identifier - identifier) )) * number_literal)) + identifier) ))))) ;) }) while (parenthesized_expression "(uVar3 != uVar6)" ( (binary_expression "uVar3 != uVar6" identifier != identifier) )) ;) })) (expression_statement "uVar3 = *__s_01;" (assignment_expression "uVar3 = *__s_01" identifier = (pointer_expression "*__s_01" * identifier)) ;) (if_statement "if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }" if (parenthesized_expression "(1 < uVar3)" ( (binary_expression "1 < uVar3" number_literal < identifier) )) (compound_statement "{\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }" { (expression_statement "uVar6 = __s_01[uVar3];" (assignment_expression "uVar6 = __s_01[uVar3]" identifier = (subscript_expression "__s_01[uVar3]" identifier [ identifier ])) ;) (while_statement "while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }" while (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }" { (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "*__s_01 = uVar3;" (assignment_expression "*__s_01 = uVar3" (pointer_expression "*__s_01" * identifier) = identifier) ;) (if_statement "if (uVar3 == 1) break;" if (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = __s_01[uVar3];" (assignment_expression "uVar6 = __s_01[uVar3]" identifier = (subscript_expression "__s_01[uVar3]" identifier [ identifier ])) ;) })) })) })) (expression_statement "FUN_0001de10(uVar4,local_28 << 2);" (call_expression "FUN_0001de10(uVar4,local_28 << 2)" identifier (argument_list "(uVar4,local_28 << 2)" ( identifier , (binary_expression "local_28 << 2" identifier << number_literal) ))) ;) (expression_statement "FUN_0001dd30(uVar4);" (call_expression "FUN_0001dd30(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "FUN_0001de10(iVar7,local_30 * 8);" (call_expression "FUN_0001de10(iVar7,local_30 * 8)" identifier (argument_list "(iVar7,local_30 * 8)" ( identifier , (binary_expression "local_30 * 8" identifier * number_literal) ))) ;) (expression_statement "FUN_0001dd30(iVar7);" (call_expression "FUN_0001dd30(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "FUN_0001de10(puVar2,uVar1 * 4);" (call_expression "FUN_0001de10(puVar2,uVar1 * 4)" identifier (argument_list "(puVar2,uVar1 * 4)" ( identifier , (binary_expression "uVar1 * 4" identifier * number_literal) ))) ;) (expression_statement "FUN_0001dd30(puVar2);" (call_expression "FUN_0001dd30(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "FUN_0001de10(__s,local_30 << 2);" (call_expression "FUN_0001de10(__s,local_30 << 2)" identifier (argument_list "(__s,local_30 << 2)" ( identifier , (binary_expression "local_30 << 2" identifier << number_literal) ))) ;) (expression_statement "FUN_0001dd30(__s);" (call_expression "FUN_0001dd30(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_0001de10(__s_00,local_30 << 2);" (call_expression "FUN_0001de10(__s_00,local_30 << 2)" identifier (argument_list "(__s_00,local_30 << 2)" ( identifier , (binary_expression "local_30 << 2" identifier << number_literal) ))) ;) (expression_statement "FUN_0001dd30(__s_00);" (call_expression "FUN_0001dd30(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (return_statement "return __s_01;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nBignum_conflict modmul(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)\n\n{\n  size_t n;\n  BignumInt *m;\n  size_t sVar1;\n  void *__s;\n  void *__s_00;\n  BignumInt *a;\n  BignumInt *pBVar2;\n  uint uVar3;\n  BignumInt *quot;\n  uint *__s_01;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  BignumInt BVar7;\n  BignumInt *in_stack_ffffffac;\n  BignumInt *in_stack_ffffffb4;\n  size_t local_40;\n  BignumInt *local_30;\n  size_t local_28;\n  \n  n = *mod;\n  if (mod[n] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  m = (BignumInt *)safemalloc(n,4);\n  sVar1 = 0;\n  if (0 < (int)n) {\n    do {\n      m[sVar1] = mod[*mod - sVar1];\n      sVar1 = sVar1 + 1;\n    } while (n != sVar1);\n  }\n  local_30 = (BignumInt *)*p;\n  if ((BignumInt *)*p <= (BignumInt *)*q) {\n    local_30 = (BignumInt *)*q;\n  }\n  local_40 = (int)local_30 * 2;\n  if ((int)local_40 <= (int)n) {\n    local_30 = (BignumInt *)((int)n / 2 + 1);\n    local_40 = (int)local_30 * 2;\n  }\n  __s = safemalloc((size_t)local_30,4);\n  BVar7 = *p;\n  iVar4 = (int)local_30 - BVar7;\n  if (0 < iVar4) {\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s,0,(size_t)in_stack_ffffffac);\n    BVar7 = *p;\n  }\n  iVar5 = 0;\n  if (0 < (int)BVar7) {\n    do {\n      *(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];\n      BVar7 = *p;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }\n  __s_00 = safemalloc((size_t)local_30,4);\n  BVar7 = *q;\n  iVar4 = (int)local_30 - BVar7;\n  if (0 < iVar4) {\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s_00,0,(size_t)in_stack_ffffffac);\n    BVar7 = *q;\n  }\n  iVar5 = 0;\n  if (0 < (int)BVar7) {\n    do {\n      *(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];\n      BVar7 = *q;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }\n  a = (BignumInt *)safemalloc(local_40,4);\n  local_28 = 0;\n  pBVar2 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));\n      local_28 = local_28 + (int)pBVar2 * 4;\n    } while (0x32 < (int)pBVar2);\n  }\n  pBVar2 = (BignumInt *)safemalloc(local_28,4);\n  uVar3 = *m;\n  if (uVar3 >> 0x10 == 0) {\n    uVar6 = uVar3 << 0x10;\n    BVar7 = 0x10;\n  }\n  else {\n    BVar7 = 0;\n    uVar6 = uVar3;\n  }\n  if (uVar6 >> 0x18 == 0) {\n    uVar6 = uVar6 << 8;\n    BVar7 = BVar7 + 8;\n  }\n  if (uVar6 >> 0x1c == 0) {\n    uVar6 = uVar6 << 4;\n    BVar7 = BVar7 + 4;\n  }\n  if (uVar6 >> 0x1e == 0) {\n    BVar7 = BVar7 + 2;\n    if ((uVar6 & 0x20000000) == 0) {\nLAB_00056097:\n      BVar7 = BVar7 + 1;\n    }\n  }\n  else {\n    if (-1 < (int)uVar6) goto LAB_00056097;\n    if (BVar7 == 0) goto LAB_000560b9;\n  }\n  uVar3 = uVar3 << ((byte)BVar7 & 0x1f);\n  if (1 < (int)n) {\n    uVar3 = uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f);\n  }\nLAB_000560b9:\n  iVar4 = 0x560be;\n  quot = (BignumInt *)reciprocal_word(uVar3);\n  internal_mul(local_30,pBVar2,in_stack_ffffffac,iVar4,in_stack_ffffffb4);\n  internal_mod(a,local_40,m,n,quot,BVar7,iVar4);\n  sVar1 = n;\n  if ((int)local_40 < (int)n) {\n    sVar1 = local_40;\n  }\n  if (0x3fffffe < sVar1) {\n                    /* WARNING: Subroutine does not return */\n    newbn((int)in_stack_ffffffb4);\n  }\n  __s_01 = (uint *)safemalloc(sVar1 + 1,4);\n  memset(__s_01,0,(sVar1 + 1) * 4);\n  *__s_01 = sVar1;\n  if (sVar1 != 0) {\n    __s_01[sVar1] = a[local_40 - sVar1];\n    if (sVar1 != 1) {\n      uVar3 = 1;\n      do {\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      } while (sVar1 != uVar3);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  smemclr(pBVar2,local_28 << 2);\n  safefree(pBVar2);\n  smemclr(a,(int)local_30 * 8);\n  safefree(a);\n  smemclr(m,n * 4);\n  safefree(m);\n  smemclr(__s,(int)local_30 << 2);\n  safefree(__s);\n  smemclr(__s_00,(int)local_30 << 2);\n  safefree(__s_00);\n  return __s_01;\n}\n\n" comment (function_definition "Bignum_conflict modmul(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)\n\n{\n  size_t n;\n  BignumInt *m;\n  size_t sVar1;\n  void *__s;\n  void *__s_00;\n  BignumInt *a;\n  BignumInt *pBVar2;\n  uint uVar3;\n  BignumInt *quot;\n  uint *__s_01;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  BignumInt BVar7;\n  BignumInt *in_stack_ffffffac;\n  BignumInt *in_stack_ffffffb4;\n  size_t local_40;\n  BignumInt *local_30;\n  size_t local_28;\n  \n  n = *mod;\n  if (mod[n] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  m = (BignumInt *)safemalloc(n,4);\n  sVar1 = 0;\n  if (0 < (int)n) {\n    do {\n      m[sVar1] = mod[*mod - sVar1];\n      sVar1 = sVar1 + 1;\n    } while (n != sVar1);\n  }\n  local_30 = (BignumInt *)*p;\n  if ((BignumInt *)*p <= (BignumInt *)*q) {\n    local_30 = (BignumInt *)*q;\n  }\n  local_40 = (int)local_30 * 2;\n  if ((int)local_40 <= (int)n) {\n    local_30 = (BignumInt *)((int)n / 2 + 1);\n    local_40 = (int)local_30 * 2;\n  }\n  __s = safemalloc((size_t)local_30,4);\n  BVar7 = *p;\n  iVar4 = (int)local_30 - BVar7;\n  if (0 < iVar4) {\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s,0,(size_t)in_stack_ffffffac);\n    BVar7 = *p;\n  }\n  iVar5 = 0;\n  if (0 < (int)BVar7) {\n    do {\n      *(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];\n      BVar7 = *p;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }\n  __s_00 = safemalloc((size_t)local_30,4);\n  BVar7 = *q;\n  iVar4 = (int)local_30 - BVar7;\n  if (0 < iVar4) {\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s_00,0,(size_t)in_stack_ffffffac);\n    BVar7 = *q;\n  }\n  iVar5 = 0;\n  if (0 < (int)BVar7) {\n    do {\n      *(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];\n      BVar7 = *q;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }\n  a = (BignumInt *)safemalloc(local_40,4);\n  local_28 = 0;\n  pBVar2 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));\n      local_28 = local_28 + (int)pBVar2 * 4;\n    } while (0x32 < (int)pBVar2);\n  }\n  pBVar2 = (BignumInt *)safemalloc(local_28,4);\n  uVar3 = *m;\n  if (uVar3 >> 0x10 == 0) {\n    uVar6 = uVar3 << 0x10;\n    BVar7 = 0x10;\n  }\n  else {\n    BVar7 = 0;\n    uVar6 = uVar3;\n  }\n  if (uVar6 >> 0x18 == 0) {\n    uVar6 = uVar6 << 8;\n    BVar7 = BVar7 + 8;\n  }\n  if (uVar6 >> 0x1c == 0) {\n    uVar6 = uVar6 << 4;\n    BVar7 = BVar7 + 4;\n  }\n  if (uVar6 >> 0x1e == 0) {\n    BVar7 = BVar7 + 2;\n    if ((uVar6 & 0x20000000) == 0) {\nLAB_00056097:\n      BVar7 = BVar7 + 1;\n    }\n  }\n  else {\n    if (-1 < (int)uVar6) goto LAB_00056097;\n    if (BVar7 == 0) goto LAB_000560b9;\n  }\n  uVar3 = uVar3 << ((byte)BVar7 & 0x1f);\n  if (1 < (int)n) {\n    uVar3 = uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f);\n  }\nLAB_000560b9:\n  iVar4 = 0x560be;\n  quot = (BignumInt *)reciprocal_word(uVar3);\n  internal_mul(local_30,pBVar2,in_stack_ffffffac,iVar4,in_stack_ffffffb4);\n  internal_mod(a,local_40,m,n,quot,BVar7,iVar4);\n  sVar1 = n;\n  if ((int)local_40 < (int)n) {\n    sVar1 = local_40;\n  }\n  if (0x3fffffe < sVar1) {\n                    /* WARNING: Subroutine does not return */\n    newbn((int)in_stack_ffffffb4);\n  }\n  __s_01 = (uint *)safemalloc(sVar1 + 1,4);\n  memset(__s_01,0,(sVar1 + 1) * 4);\n  *__s_01 = sVar1;\n  if (sVar1 != 0) {\n    __s_01[sVar1] = a[local_40 - sVar1];\n    if (sVar1 != 1) {\n      uVar3 = 1;\n      do {\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      } while (sVar1 != uVar3);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  smemclr(pBVar2,local_28 << 2);\n  safefree(pBVar2);\n  smemclr(a,(int)local_30 * 8);\n  safefree(a);\n  smemclr(m,n * 4);\n  safefree(m);\n  smemclr(__s,(int)local_30 << 2);\n  safefree(__s);\n  smemclr(__s_00,(int)local_30 << 2);\n  safefree(__s_00);\n  return __s_01;\n}" type_identifier (function_declarator "modmul(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)" identifier (parameter_list "(Bignum_conflict p,Bignum_conflict q,Bignum_conflict mod)" ( (parameter_declaration "Bignum_conflict p" type_identifier identifier) , (parameter_declaration "Bignum_conflict q" type_identifier identifier) , (parameter_declaration "Bignum_conflict mod" type_identifier identifier) ))) (compound_statement "{\n  size_t n;\n  BignumInt *m;\n  size_t sVar1;\n  void *__s;\n  void *__s_00;\n  BignumInt *a;\n  BignumInt *pBVar2;\n  uint uVar3;\n  BignumInt *quot;\n  uint *__s_01;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  BignumInt BVar7;\n  BignumInt *in_stack_ffffffac;\n  BignumInt *in_stack_ffffffb4;\n  size_t local_40;\n  BignumInt *local_30;\n  size_t local_28;\n  \n  n = *mod;\n  if (mod[n] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  m = (BignumInt *)safemalloc(n,4);\n  sVar1 = 0;\n  if (0 < (int)n) {\n    do {\n      m[sVar1] = mod[*mod - sVar1];\n      sVar1 = sVar1 + 1;\n    } while (n != sVar1);\n  }\n  local_30 = (BignumInt *)*p;\n  if ((BignumInt *)*p <= (BignumInt *)*q) {\n    local_30 = (BignumInt *)*q;\n  }\n  local_40 = (int)local_30 * 2;\n  if ((int)local_40 <= (int)n) {\n    local_30 = (BignumInt *)((int)n / 2 + 1);\n    local_40 = (int)local_30 * 2;\n  }\n  __s = safemalloc((size_t)local_30,4);\n  BVar7 = *p;\n  iVar4 = (int)local_30 - BVar7;\n  if (0 < iVar4) {\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s,0,(size_t)in_stack_ffffffac);\n    BVar7 = *p;\n  }\n  iVar5 = 0;\n  if (0 < (int)BVar7) {\n    do {\n      *(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];\n      BVar7 = *p;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }\n  __s_00 = safemalloc((size_t)local_30,4);\n  BVar7 = *q;\n  iVar4 = (int)local_30 - BVar7;\n  if (0 < iVar4) {\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s_00,0,(size_t)in_stack_ffffffac);\n    BVar7 = *q;\n  }\n  iVar5 = 0;\n  if (0 < (int)BVar7) {\n    do {\n      *(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];\n      BVar7 = *q;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }\n  a = (BignumInt *)safemalloc(local_40,4);\n  local_28 = 0;\n  pBVar2 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));\n      local_28 = local_28 + (int)pBVar2 * 4;\n    } while (0x32 < (int)pBVar2);\n  }\n  pBVar2 = (BignumInt *)safemalloc(local_28,4);\n  uVar3 = *m;\n  if (uVar3 >> 0x10 == 0) {\n    uVar6 = uVar3 << 0x10;\n    BVar7 = 0x10;\n  }\n  else {\n    BVar7 = 0;\n    uVar6 = uVar3;\n  }\n  if (uVar6 >> 0x18 == 0) {\n    uVar6 = uVar6 << 8;\n    BVar7 = BVar7 + 8;\n  }\n  if (uVar6 >> 0x1c == 0) {\n    uVar6 = uVar6 << 4;\n    BVar7 = BVar7 + 4;\n  }\n  if (uVar6 >> 0x1e == 0) {\n    BVar7 = BVar7 + 2;\n    if ((uVar6 & 0x20000000) == 0) {\nLAB_00056097:\n      BVar7 = BVar7 + 1;\n    }\n  }\n  else {\n    if (-1 < (int)uVar6) goto LAB_00056097;\n    if (BVar7 == 0) goto LAB_000560b9;\n  }\n  uVar3 = uVar3 << ((byte)BVar7 & 0x1f);\n  if (1 < (int)n) {\n    uVar3 = uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f);\n  }\nLAB_000560b9:\n  iVar4 = 0x560be;\n  quot = (BignumInt *)reciprocal_word(uVar3);\n  internal_mul(local_30,pBVar2,in_stack_ffffffac,iVar4,in_stack_ffffffb4);\n  internal_mod(a,local_40,m,n,quot,BVar7,iVar4);\n  sVar1 = n;\n  if ((int)local_40 < (int)n) {\n    sVar1 = local_40;\n  }\n  if (0x3fffffe < sVar1) {\n                    /* WARNING: Subroutine does not return */\n    newbn((int)in_stack_ffffffb4);\n  }\n  __s_01 = (uint *)safemalloc(sVar1 + 1,4);\n  memset(__s_01,0,(sVar1 + 1) * 4);\n  *__s_01 = sVar1;\n  if (sVar1 != 0) {\n    __s_01[sVar1] = a[local_40 - sVar1];\n    if (sVar1 != 1) {\n      uVar3 = 1;\n      do {\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      } while (sVar1 != uVar3);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  smemclr(pBVar2,local_28 << 2);\n  safefree(pBVar2);\n  smemclr(a,(int)local_30 * 8);\n  safefree(a);\n  smemclr(m,n * 4);\n  safefree(m);\n  smemclr(__s,(int)local_30 << 2);\n  safefree(__s);\n  smemclr(__s_00,(int)local_30 << 2);\n  safefree(__s_00);\n  return __s_01;\n}" { (declaration "size_t n;" primitive_type identifier ;) (declaration "BignumInt *m;" type_identifier (pointer_declarator "*m" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "BignumInt *a;" type_identifier (pointer_declarator "*a" * identifier) ;) (declaration "BignumInt *pBVar2;" type_identifier (pointer_declarator "*pBVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "BignumInt *quot;" type_identifier (pointer_declarator "*quot" * identifier) ;) (declaration "uint *__s_01;" type_identifier (pointer_declarator "*__s_01" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "BignumInt BVar7;" type_identifier identifier ;) (declaration "BignumInt *in_stack_ffffffac;" type_identifier (pointer_declarator "*in_stack_ffffffac" * identifier) ;) (declaration "BignumInt *in_stack_ffffffb4;" type_identifier (pointer_declarator "*in_stack_ffffffb4" * identifier) ;) (declaration "size_t local_40;" primitive_type identifier ;) (declaration "BignumInt *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "size_t local_28;" primitive_type identifier ;) (expression_statement "n = *mod;" (assignment_expression "n = *mod" identifier = (pointer_expression "*mod" * identifier)) ;) (if_statement "if (mod[n] == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }" if (parenthesized_expression "(mod[n] == 0)" ( (binary_expression "mod[n] == 0" (subscript_expression "mod[n]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }" { comment (expression_statement "__assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");" (call_expression "__assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul")" identifier (argument_list "("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul")" ( (string_literal ""mod[mod[0]] != 0"" " string_content ") , (string_literal ""sshbn.c"" " string_content ") , number_literal , (string_literal ""modmul"" " string_content ") ))) ;) })) (expression_statement "m = (BignumInt *)safemalloc(n,4);" (assignment_expression "m = (BignumInt *)safemalloc(n,4)" identifier = (cast_expression "(BignumInt *)safemalloc(n,4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(n,4)" identifier (argument_list "(n,4)" ( identifier , number_literal ))))) ;) (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)n) {\n    do {\n      m[sVar1] = mod[*mod - sVar1];\n      sVar1 = sVar1 + 1;\n    } while (n != sVar1);\n  }" if (parenthesized_expression "(0 < (int)n)" ( (binary_expression "0 < (int)n" number_literal < (cast_expression "(int)n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      m[sVar1] = mod[*mod - sVar1];\n      sVar1 = sVar1 + 1;\n    } while (n != sVar1);\n  }" { (do_statement "do {\n      m[sVar1] = mod[*mod - sVar1];\n      sVar1 = sVar1 + 1;\n    } while (n != sVar1);" do (compound_statement "{\n      m[sVar1] = mod[*mod - sVar1];\n      sVar1 = sVar1 + 1;\n    }" { (expression_statement "m[sVar1] = mod[*mod - sVar1];" (assignment_expression "m[sVar1] = mod[*mod - sVar1]" (subscript_expression "m[sVar1]" identifier [ identifier ]) = (subscript_expression "mod[*mod - sVar1]" identifier [ (binary_expression "*mod - sVar1" (pointer_expression "*mod" * identifier) - identifier) ])) ;) (expression_statement "sVar1 = sVar1 + 1;" (assignment_expression "sVar1 = sVar1 + 1" identifier = (binary_expression "sVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(n != sVar1)" ( (binary_expression "n != sVar1" identifier != identifier) )) ;) })) (expression_statement "local_30 = (BignumInt *)*p;" (assignment_expression "local_30 = (BignumInt *)*p" identifier = (cast_expression "(BignumInt *)*p" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*p" * identifier))) ;) (if_statement "if ((BignumInt *)*p <= (BignumInt *)*q) {\n    local_30 = (BignumInt *)*q;\n  }" if (parenthesized_expression "((BignumInt *)*p <= (BignumInt *)*q)" ( (binary_expression "(BignumInt *)*p <= (BignumInt *)*q" (cast_expression "(BignumInt *)*p" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*p" * identifier)) <= (cast_expression "(BignumInt *)*q" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*q" * identifier))) )) (compound_statement "{\n    local_30 = (BignumInt *)*q;\n  }" { (expression_statement "local_30 = (BignumInt *)*q;" (assignment_expression "local_30 = (BignumInt *)*q" identifier = (cast_expression "(BignumInt *)*q" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*q" * identifier))) ;) })) (expression_statement "local_40 = (int)local_30 * 2;" (assignment_expression "local_40 = (int)local_30 * 2" identifier = (binary_expression "(int)local_30 * 2" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ;) (if_statement "if ((int)local_40 <= (int)n) {\n    local_30 = (BignumInt *)((int)n / 2 + 1);\n    local_40 = (int)local_30 * 2;\n  }" if (parenthesized_expression "((int)local_40 <= (int)n)" ( (binary_expression "(int)local_40 <= (int)n" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    local_30 = (BignumInt *)((int)n / 2 + 1);\n    local_40 = (int)local_30 * 2;\n  }" { (expression_statement "local_30 = (BignumInt *)((int)n / 2 + 1);" (assignment_expression "local_30 = (BignumInt *)((int)n / 2 + 1)" identifier = (cast_expression "(BignumInt *)((int)n / 2 + 1)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)n / 2 + 1)" ( (binary_expression "(int)n / 2 + 1" (binary_expression "(int)n / 2" (cast_expression "(int)n" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) + number_literal) )))) ;) (expression_statement "local_40 = (int)local_30 * 2;" (assignment_expression "local_40 = (int)local_30 * 2" identifier = (binary_expression "(int)local_30 * 2" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ;) })) (expression_statement "__s = safemalloc((size_t)local_30,4);" (assignment_expression "__s = safemalloc((size_t)local_30,4)" identifier = (call_expression "safemalloc((size_t)local_30,4)" identifier (argument_list "((size_t)local_30,4)" ( (cast_expression "(size_t)local_30" ( (type_descriptor "size_t" primitive_type) ) identifier) , number_literal )))) ;) (expression_statement "BVar7 = *p;" (assignment_expression "BVar7 = *p" identifier = (pointer_expression "*p" * identifier)) ;) (expression_statement "iVar4 = (int)local_30 - BVar7;" (assignment_expression "iVar4 = (int)local_30 - BVar7" identifier = (binary_expression "(int)local_30 - BVar7" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (0 < iVar4) {\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s,0,(size_t)in_stack_ffffffac);\n    BVar7 = *p;\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s,0,(size_t)in_stack_ffffffac);\n    BVar7 = *p;\n  }" { (expression_statement "in_stack_ffffffac = (BignumInt *)(iVar4 * 4);" (assignment_expression "in_stack_ffffffac = (BignumInt *)(iVar4 * 4)" identifier = (cast_expression "(BignumInt *)(iVar4 * 4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 * 4)" ( (binary_expression "iVar4 * 4" identifier * number_literal) )))) ;) (expression_statement "memset(__s,0,(size_t)in_stack_ffffffac);" (call_expression "memset(__s,0,(size_t)in_stack_ffffffac)" identifier (argument_list "(__s,0,(size_t)in_stack_ffffffac)" ( identifier , number_literal , (cast_expression "(size_t)in_stack_ffffffac" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (expression_statement "BVar7 = *p;" (assignment_expression "BVar7 = *p" identifier = (pointer_expression "*p" * identifier)) ;) })) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)BVar7) {\n    do {\n      *(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];\n      BVar7 = *p;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }" if (parenthesized_expression "(0 < (int)BVar7)" ( (binary_expression "0 < (int)BVar7" number_literal < (cast_expression "(int)BVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      *(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];\n      BVar7 = *p;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }" { (do_statement "do {\n      *(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];\n      BVar7 = *p;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);" do (compound_statement "{\n      *(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];\n      BVar7 = *p;\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "*(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5];" (assignment_expression "*(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4) = p[BVar7 - iVar5]" (pointer_expression "*(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4)" * (cast_expression "(BignumInt *)((int)__s + iVar5 * 4 + iVar4 * 4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s + iVar5 * 4 + iVar4 * 4)" ( (binary_expression "(int)__s + iVar5 * 4 + iVar4 * 4" (binary_expression "(int)__s + iVar5 * 4" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar5 * 4" identifier * number_literal)) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = (subscript_expression "p[BVar7 - iVar5]" identifier [ (binary_expression "BVar7 - iVar5" identifier - identifier) ])) ;) (expression_statement "BVar7 = *p;" (assignment_expression "BVar7 = *p" identifier = (pointer_expression "*p" * identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < (int)BVar7)" ( (binary_expression "iVar5 < (int)BVar7" identifier < (cast_expression "(int)BVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "__s_00 = safemalloc((size_t)local_30,4);" (assignment_expression "__s_00 = safemalloc((size_t)local_30,4)" identifier = (call_expression "safemalloc((size_t)local_30,4)" identifier (argument_list "((size_t)local_30,4)" ( (cast_expression "(size_t)local_30" ( (type_descriptor "size_t" primitive_type) ) identifier) , number_literal )))) ;) (expression_statement "BVar7 = *q;" (assignment_expression "BVar7 = *q" identifier = (pointer_expression "*q" * identifier)) ;) (expression_statement "iVar4 = (int)local_30 - BVar7;" (assignment_expression "iVar4 = (int)local_30 - BVar7" identifier = (binary_expression "(int)local_30 - BVar7" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (0 < iVar4) {\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s_00,0,(size_t)in_stack_ffffffac);\n    BVar7 = *q;\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    in_stack_ffffffac = (BignumInt *)(iVar4 * 4);\n    memset(__s_00,0,(size_t)in_stack_ffffffac);\n    BVar7 = *q;\n  }" { (expression_statement "in_stack_ffffffac = (BignumInt *)(iVar4 * 4);" (assignment_expression "in_stack_ffffffac = (BignumInt *)(iVar4 * 4)" identifier = (cast_expression "(BignumInt *)(iVar4 * 4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 * 4)" ( (binary_expression "iVar4 * 4" identifier * number_literal) )))) ;) (expression_statement "memset(__s_00,0,(size_t)in_stack_ffffffac);" (call_expression "memset(__s_00,0,(size_t)in_stack_ffffffac)" identifier (argument_list "(__s_00,0,(size_t)in_stack_ffffffac)" ( identifier , number_literal , (cast_expression "(size_t)in_stack_ffffffac" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (expression_statement "BVar7 = *q;" (assignment_expression "BVar7 = *q" identifier = (pointer_expression "*q" * identifier)) ;) })) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)BVar7) {\n    do {\n      *(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];\n      BVar7 = *q;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }" if (parenthesized_expression "(0 < (int)BVar7)" ( (binary_expression "0 < (int)BVar7" number_literal < (cast_expression "(int)BVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      *(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];\n      BVar7 = *q;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);\n  }" { (do_statement "do {\n      *(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];\n      BVar7 = *q;\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < (int)BVar7);" do (compound_statement "{\n      *(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];\n      BVar7 = *q;\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "*(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5];" (assignment_expression "*(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4) = q[BVar7 - iVar5]" (pointer_expression "*(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4)" * (cast_expression "(BignumInt *)((int)__s_00 + iVar5 * 4 + iVar4 * 4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s_00 + iVar5 * 4 + iVar4 * 4)" ( (binary_expression "(int)__s_00 + iVar5 * 4 + iVar4 * 4" (binary_expression "(int)__s_00 + iVar5 * 4" (cast_expression "(int)__s_00" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar5 * 4" identifier * number_literal)) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = (subscript_expression "q[BVar7 - iVar5]" identifier [ (binary_expression "BVar7 - iVar5" identifier - identifier) ])) ;) (expression_statement "BVar7 = *q;" (assignment_expression "BVar7 = *q" identifier = (pointer_expression "*q" * identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < (int)BVar7)" ( (binary_expression "iVar5 < (int)BVar7" identifier < (cast_expression "(int)BVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "a = (BignumInt *)safemalloc(local_40,4);" (assignment_expression "a = (BignumInt *)safemalloc(local_40,4)" identifier = (cast_expression "(BignumInt *)safemalloc(local_40,4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(local_40,4)" identifier (argument_list "(local_40,4)" ( identifier , number_literal ))))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "pBVar2 = local_30;" (assignment_expression "pBVar2 = local_30" identifier = identifier) ;) (if_statement "if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));\n      local_28 = local_28 + (int)pBVar2 * 4;\n    } while (0x32 < (int)pBVar2);\n  }" if (parenthesized_expression "((int)local_30 < 0x33)" ( (binary_expression "(int)local_30 < 0x33" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_28 = 0;\n  }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    do {\n      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));\n      local_28 = local_28 + (int)pBVar2 * 4;\n    } while (0x32 < (int)pBVar2);\n  }" else (compound_statement "{\n    do {\n      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));\n      local_28 = local_28 + (int)pBVar2 * 4;\n    } while (0x32 < (int)pBVar2);\n  }" { (do_statement "do {\n      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));\n      local_28 = local_28 + (int)pBVar2 * 4;\n    } while (0x32 < (int)pBVar2);" do (compound_statement "{\n      pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));\n      local_28 = local_28 + (int)pBVar2 * 4;\n    }" { (expression_statement "pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));" (assignment_expression "pBVar2 = (BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)))" identifier = (cast_expression "(BignumInt *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)))" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pBVar2 + (1 - ((int)pBVar2 >> 1)))" ( (binary_expression "(int)pBVar2 + (1 - ((int)pBVar2 >> 1))" (cast_expression "(int)pBVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(1 - ((int)pBVar2 >> 1))" ( (binary_expression "1 - ((int)pBVar2 >> 1)" number_literal - (parenthesized_expression "((int)pBVar2 >> 1)" ( (binary_expression "(int)pBVar2 >> 1" (cast_expression "(int)pBVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) ))) )))) ;) (expression_statement "local_28 = local_28 + (int)pBVar2 * 4;" (assignment_expression "local_28 = local_28 + (int)pBVar2 * 4" identifier = (binary_expression "local_28 + (int)pBVar2 * 4" identifier + (binary_expression "(int)pBVar2 * 4" (cast_expression "(int)pBVar2" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal))) ;) }) while (parenthesized_expression "(0x32 < (int)pBVar2)" ( (binary_expression "0x32 < (int)pBVar2" number_literal < (cast_expression "(int)pBVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) }))) (expression_statement "pBVar2 = (BignumInt *)safemalloc(local_28,4);" (assignment_expression "pBVar2 = (BignumInt *)safemalloc(local_28,4)" identifier = (cast_expression "(BignumInt *)safemalloc(local_28,4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(local_28,4)" identifier (argument_list "(local_28,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar3 = *m;" (assignment_expression "uVar3 = *m" identifier = (pointer_expression "*m" * identifier)) ;) (if_statement "if (uVar3 >> 0x10 == 0) {\n    uVar6 = uVar3 << 0x10;\n    BVar7 = 0x10;\n  }\n  else {\n    BVar7 = 0;\n    uVar6 = uVar3;\n  }" if (parenthesized_expression "(uVar3 >> 0x10 == 0)" ( (binary_expression "uVar3 >> 0x10 == 0" (binary_expression "uVar3 >> 0x10" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar6 = uVar3 << 0x10;\n    BVar7 = 0x10;\n  }" { (expression_statement "uVar6 = uVar3 << 0x10;" (assignment_expression "uVar6 = uVar3 << 0x10" identifier = (binary_expression "uVar3 << 0x10" identifier << number_literal)) ;) (expression_statement "BVar7 = 0x10;" (assignment_expression "BVar7 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n    BVar7 = 0;\n    uVar6 = uVar3;\n  }" else (compound_statement "{\n    BVar7 = 0;\n    uVar6 = uVar3;\n  }" { (expression_statement "BVar7 = 0;" (assignment_expression "BVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = uVar3;" (assignment_expression "uVar6 = uVar3" identifier = identifier) ;) }))) (if_statement "if (uVar6 >> 0x18 == 0) {\n    uVar6 = uVar6 << 8;\n    BVar7 = BVar7 + 8;\n  }" if (parenthesized_expression "(uVar6 >> 0x18 == 0)" ( (binary_expression "uVar6 >> 0x18 == 0" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar6 = uVar6 << 8;\n    BVar7 = BVar7 + 8;\n  }" { (expression_statement "uVar6 = uVar6 << 8;" (assignment_expression "uVar6 = uVar6 << 8" identifier = (binary_expression "uVar6 << 8" identifier << number_literal)) ;) (expression_statement "BVar7 = BVar7 + 8;" (assignment_expression "BVar7 = BVar7 + 8" identifier = (binary_expression "BVar7 + 8" identifier + number_literal)) ;) })) (if_statement "if (uVar6 >> 0x1c == 0) {\n    uVar6 = uVar6 << 4;\n    BVar7 = BVar7 + 4;\n  }" if (parenthesized_expression "(uVar6 >> 0x1c == 0)" ( (binary_expression "uVar6 >> 0x1c == 0" (binary_expression "uVar6 >> 0x1c" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar6 = uVar6 << 4;\n    BVar7 = BVar7 + 4;\n  }" { (expression_statement "uVar6 = uVar6 << 4;" (assignment_expression "uVar6 = uVar6 << 4" identifier = (binary_expression "uVar6 << 4" identifier << number_literal)) ;) (expression_statement "BVar7 = BVar7 + 4;" (assignment_expression "BVar7 = BVar7 + 4" identifier = (binary_expression "BVar7 + 4" identifier + number_literal)) ;) })) (if_statement "if (uVar6 >> 0x1e == 0) {\n    BVar7 = BVar7 + 2;\n    if ((uVar6 & 0x20000000) == 0) {\nLAB_00056097:\n      BVar7 = BVar7 + 1;\n    }\n  }\n  else {\n    if (-1 < (int)uVar6) goto LAB_00056097;\n    if (BVar7 == 0) goto LAB_000560b9;\n  }" if (parenthesized_expression "(uVar6 >> 0x1e == 0)" ( (binary_expression "uVar6 >> 0x1e == 0" (binary_expression "uVar6 >> 0x1e" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    BVar7 = BVar7 + 2;\n    if ((uVar6 & 0x20000000) == 0) {\nLAB_00056097:\n      BVar7 = BVar7 + 1;\n    }\n  }" { (expression_statement "BVar7 = BVar7 + 2;" (assignment_expression "BVar7 = BVar7 + 2" identifier = (binary_expression "BVar7 + 2" identifier + number_literal)) ;) (if_statement "if ((uVar6 & 0x20000000) == 0) {\nLAB_00056097:\n      BVar7 = BVar7 + 1;\n    }" if (parenthesized_expression "((uVar6 & 0x20000000) == 0)" ( (binary_expression "(uVar6 & 0x20000000) == 0" (parenthesized_expression "(uVar6 & 0x20000000)" ( (binary_expression "uVar6 & 0x20000000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\nLAB_00056097:\n      BVar7 = BVar7 + 1;\n    }" { (labeled_statement "LAB_00056097:\n      BVar7 = BVar7 + 1;" statement_identifier : (expression_statement "BVar7 = BVar7 + 1;" (assignment_expression "BVar7 = BVar7 + 1" identifier = (binary_expression "BVar7 + 1" identifier + number_literal)) ;)) })) }) (else_clause "else {\n    if (-1 < (int)uVar6) goto LAB_00056097;\n    if (BVar7 == 0) goto LAB_000560b9;\n  }" else (compound_statement "{\n    if (-1 < (int)uVar6) goto LAB_00056097;\n    if (BVar7 == 0) goto LAB_000560b9;\n  }" { (if_statement "if (-1 < (int)uVar6) goto LAB_00056097;" if (parenthesized_expression "(-1 < (int)uVar6)" ( (binary_expression "-1 < (int)uVar6" number_literal < (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_00056097;" goto statement_identifier ;)) (if_statement "if (BVar7 == 0) goto LAB_000560b9;" if (parenthesized_expression "(BVar7 == 0)" ( (binary_expression "BVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000560b9;" goto statement_identifier ;)) }))) (expression_statement "uVar3 = uVar3 << ((byte)BVar7 & 0x1f);" (assignment_expression "uVar3 = uVar3 << ((byte)BVar7 & 0x1f)" identifier = (binary_expression "uVar3 << ((byte)BVar7 & 0x1f)" identifier << (parenthesized_expression "((byte)BVar7 & 0x1f)" ( (binary_expression "(byte)BVar7 & 0x1f" (cast_expression "(byte)BVar7" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (if_statement "if (1 < (int)n) {\n    uVar3 = uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f);\n  }" if (parenthesized_expression "(1 < (int)n)" ( (binary_expression "1 < (int)n" number_literal < (cast_expression "(int)n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar3 = uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f);\n  }" { (expression_statement "uVar3 = uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f);" (assignment_expression "uVar3 = uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f)" identifier = (binary_expression "uVar3 | m[1] >> (0x20 - (byte)BVar7 & 0x1f)" identifier | (binary_expression "m[1] >> (0x20 - (byte)BVar7 & 0x1f)" (subscript_expression "m[1]" identifier [ number_literal ]) >> (parenthesized_expression "(0x20 - (byte)BVar7 & 0x1f)" ( (binary_expression "0x20 - (byte)BVar7 & 0x1f" (binary_expression "0x20 - (byte)BVar7" number_literal - (cast_expression "(byte)BVar7" ( (type_descriptor "byte" type_identifier) ) identifier)) & number_literal) ))))) ;) })) (labeled_statement "LAB_000560b9:\n  iVar4 = 0x560be;" statement_identifier : (expression_statement "iVar4 = 0x560be;" (assignment_expression "iVar4 = 0x560be" identifier = number_literal) ;)) (expression_statement "quot = (BignumInt *)reciprocal_word(uVar3);" (assignment_expression "quot = (BignumInt *)reciprocal_word(uVar3)" identifier = (cast_expression "(BignumInt *)reciprocal_word(uVar3)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "reciprocal_word(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))))) ;) (expression_statement "internal_mul(local_30,pBVar2,in_stack_ffffffac,iVar4,in_stack_ffffffb4);" (call_expression "internal_mul(local_30,pBVar2,in_stack_ffffffac,iVar4,in_stack_ffffffb4)" identifier (argument_list "(local_30,pBVar2,in_stack_ffffffac,iVar4,in_stack_ffffffb4)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "internal_mod(a,local_40,m,n,quot,BVar7,iVar4);" (call_expression "internal_mod(a,local_40,m,n,quot,BVar7,iVar4)" identifier (argument_list "(a,local_40,m,n,quot,BVar7,iVar4)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "sVar1 = n;" (assignment_expression "sVar1 = n" identifier = identifier) ;) (if_statement "if ((int)local_40 < (int)n) {\n    sVar1 = local_40;\n  }" if (parenthesized_expression "((int)local_40 < (int)n)" ( (binary_expression "(int)local_40 < (int)n" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    sVar1 = local_40;\n  }" { (expression_statement "sVar1 = local_40;" (assignment_expression "sVar1 = local_40" identifier = identifier) ;) })) (if_statement "if (0x3fffffe < sVar1) {\n                    /* WARNING: Subroutine does not return */\n    newbn((int)in_stack_ffffffb4);\n  }" if (parenthesized_expression "(0x3fffffe < sVar1)" ( (binary_expression "0x3fffffe < sVar1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    newbn((int)in_stack_ffffffb4);\n  }" { comment (expression_statement "newbn((int)in_stack_ffffffb4);" (call_expression "newbn((int)in_stack_ffffffb4)" identifier (argument_list "((int)in_stack_ffffffb4)" ( (cast_expression "(int)in_stack_ffffffb4" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })) (expression_statement "__s_01 = (uint *)safemalloc(sVar1 + 1,4);" (assignment_expression "__s_01 = (uint *)safemalloc(sVar1 + 1,4)" identifier = (cast_expression "(uint *)safemalloc(sVar1 + 1,4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(sVar1 + 1,4)" identifier (argument_list "(sVar1 + 1,4)" ( (binary_expression "sVar1 + 1" identifier + number_literal) , number_literal ))))) ;) (expression_statement "memset(__s_01,0,(sVar1 + 1) * 4);" (call_expression "memset(__s_01,0,(sVar1 + 1) * 4)" identifier (argument_list "(__s_01,0,(sVar1 + 1) * 4)" ( identifier , number_literal , (binary_expression "(sVar1 + 1) * 4" (parenthesized_expression "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) )) * number_literal) ))) ;) (expression_statement "*__s_01 = sVar1;" (assignment_expression "*__s_01 = sVar1" (pointer_expression "*__s_01" * identifier) = identifier) ;) (if_statement "if (sVar1 != 0) {\n    __s_01[sVar1] = a[local_40 - sVar1];\n    if (sVar1 != 1) {\n      uVar3 = 1;\n      do {\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      } while (sVar1 != uVar3);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    __s_01[sVar1] = a[local_40 - sVar1];\n    if (sVar1 != 1) {\n      uVar3 = 1;\n      do {\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      } while (sVar1 != uVar3);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }" { (expression_statement "__s_01[sVar1] = a[local_40 - sVar1];" (assignment_expression "__s_01[sVar1] = a[local_40 - sVar1]" (subscript_expression "__s_01[sVar1]" identifier [ identifier ]) = (subscript_expression "a[local_40 - sVar1]" identifier [ (binary_expression "local_40 - sVar1" identifier - identifier) ])) ;) (if_statement "if (sVar1 != 1) {\n      uVar3 = 1;\n      do {\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      } while (sVar1 != uVar3);\n    }" if (parenthesized_expression "(sVar1 != 1)" ( (binary_expression "sVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      uVar3 = 1;\n      do {\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      } while (sVar1 != uVar3);\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (do_statement "do {\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      } while (sVar1 != uVar3);" do (compound_statement "{\n        iVar4 = (local_40 - sVar1) + uVar3;\n        iVar5 = *__s_01 - uVar3;\n        uVar3 = uVar3 + 1;\n        __s_01[iVar5] = a[iVar4];\n      }" { (expression_statement "iVar4 = (local_40 - sVar1) + uVar3;" (assignment_expression "iVar4 = (local_40 - sVar1) + uVar3" identifier = (binary_expression "(local_40 - sVar1) + uVar3" (parenthesized_expression "(local_40 - sVar1)" ( (binary_expression "local_40 - sVar1" identifier - identifier) )) + identifier)) ;) (expression_statement "iVar5 = *__s_01 - uVar3;" (assignment_expression "iVar5 = *__s_01 - uVar3" identifier = (binary_expression "*__s_01 - uVar3" (pointer_expression "*__s_01" * identifier) - identifier)) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "__s_01[iVar5] = a[iVar4];" (assignment_expression "__s_01[iVar5] = a[iVar4]" (subscript_expression "__s_01[iVar5]" identifier [ identifier ]) = (subscript_expression "a[iVar4]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(sVar1 != uVar3)" ( (binary_expression "sVar1 != uVar3" identifier != identifier) )) ;) })) (expression_statement "uVar3 = *__s_01;" (assignment_expression "uVar3 = *__s_01" identifier = (pointer_expression "*__s_01" * identifier)) ;) (if_statement "if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }" if (parenthesized_expression "(1 < uVar3)" ( (binary_expression "1 < uVar3" number_literal < identifier) )) (compound_statement "{\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }" { (expression_statement "uVar6 = __s_01[uVar3];" (assignment_expression "uVar6 = __s_01[uVar3]" identifier = (subscript_expression "__s_01[uVar3]" identifier [ identifier ])) ;) (while_statement "while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }" while (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }" { (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "*__s_01 = uVar3;" (assignment_expression "*__s_01 = uVar3" (pointer_expression "*__s_01" * identifier) = identifier) ;) (if_statement "if (uVar3 == 1) break;" if (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = __s_01[uVar3];" (assignment_expression "uVar6 = __s_01[uVar3]" identifier = (subscript_expression "__s_01[uVar3]" identifier [ identifier ])) ;) })) })) })) (expression_statement "smemclr(pBVar2,local_28 << 2);" (call_expression "smemclr(pBVar2,local_28 << 2)" identifier (argument_list "(pBVar2,local_28 << 2)" ( identifier , (binary_expression "local_28 << 2" identifier << number_literal) ))) ;) (expression_statement "safefree(pBVar2);" (call_expression "safefree(pBVar2)" identifier (argument_list "(pBVar2)" ( identifier ))) ;) (expression_statement "smemclr(a,(int)local_30 * 8);" (call_expression "smemclr(a,(int)local_30 * 8)" identifier (argument_list "(a,(int)local_30 * 8)" ( identifier , (binary_expression "(int)local_30 * 8" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal) ))) ;) (expression_statement "safefree(a);" (call_expression "safefree(a)" identifier (argument_list "(a)" ( identifier ))) ;) (expression_statement "smemclr(m,n * 4);" (call_expression "smemclr(m,n * 4)" identifier (argument_list "(m,n * 4)" ( identifier , (binary_expression "n * 4" identifier * number_literal) ))) ;) (expression_statement "safefree(m);" (call_expression "safefree(m)" identifier (argument_list "(m)" ( identifier ))) ;) (expression_statement "smemclr(__s,(int)local_30 << 2);" (call_expression "smemclr(__s,(int)local_30 << 2)" identifier (argument_list "(__s,(int)local_30 << 2)" ( identifier , (binary_expression "(int)local_30 << 2" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) << number_literal) ))) ;) (expression_statement "safefree(__s);" (call_expression "safefree(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "smemclr(__s_00,(int)local_30 << 2);" (call_expression "smemclr(__s_00,(int)local_30 << 2)" identifier (argument_list "(__s_00,(int)local_30 << 2)" ( identifier , (binary_expression "(int)local_30 << 2" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) << number_literal) ))) ;) (expression_statement "safefree(__s_00);" (call_expression "safefree(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (return_statement "return __s_01;" return identifier ;) })))
(translation_unit "uint * FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  void *__s;\n  void *__s_00;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  uint *__s_01;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  uint local_40;\n  uint local_30;\n  int local_28;\n  \n  uVar1 = *param_3;\n  if (param_3[uVar1] == 0) {\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  puVar2 = (uint *)FUN_0001db90(uVar1,4);\n  uVar3 = 0;\n  if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }\n  local_30 = *param_1;\n  if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }\n  local_40 = local_30 * 2;\n  if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }\n  __s = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_1;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  __s_00 = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_2;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  iVar7 = FUN_0001db90(local_40,4);\n  local_28 = 0;\n  uVar3 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }\n  uVar4 = FUN_0001db90(local_28,4);\n  uVar3 = *puVar2;\n  if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }\n  if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }\n  if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }\n  if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;\n  iVar8 = iVar8 + 1;\nLAB_000560b9:\n  uVar5 = FUN_00053910();\n  FUN_00053bc0(local_30,uVar4);\n  FUN_000543d0(uVar1,uVar5,iVar8);\n  uVar3 = uVar1;\n  if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }\n  if (0x3fffffe < uVar3) {\n                    \n    FUN_00053b90();\n  }\n  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);\n  memset(__s_01,0,(uVar3 + 1) * 4);\n  *__s_01 = uVar3;\n  if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  FUN_0001de10(uVar4,local_28 << 2);\n  FUN_0001dd30(uVar4);\n  FUN_0001de10(iVar7,local_30 * 8);\n  FUN_0001dd30(iVar7);\n  FUN_0001de10(puVar2,uVar1 * 4);\n  FUN_0001dd30(puVar2);\n  FUN_0001de10(__s,local_30 << 2);\n  FUN_0001dd30(__s);\n  FUN_0001de10(__s_00,local_30 << 2);\n  FUN_0001dd30(__s_00);\n  return __s_01;\n}\n\n" (function_definition "uint * FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  void *__s;\n  void *__s_00;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  uint *__s_01;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  uint local_40;\n  uint local_30;\n  int local_28;\n  \n  uVar1 = *param_3;\n  if (param_3[uVar1] == 0) {\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  puVar2 = (uint *)FUN_0001db90(uVar1,4);\n  uVar3 = 0;\n  if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }\n  local_30 = *param_1;\n  if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }\n  local_40 = local_30 * 2;\n  if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }\n  __s = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_1;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  __s_00 = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_2;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  iVar7 = FUN_0001db90(local_40,4);\n  local_28 = 0;\n  uVar3 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }\n  uVar4 = FUN_0001db90(local_28,4);\n  uVar3 = *puVar2;\n  if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }\n  if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }\n  if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }\n  if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;\n  iVar8 = iVar8 + 1;\nLAB_000560b9:\n  uVar5 = FUN_00053910();\n  FUN_00053bc0(local_30,uVar4);\n  FUN_000543d0(uVar1,uVar5,iVar8);\n  uVar3 = uVar1;\n  if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }\n  if (0x3fffffe < uVar3) {\n                    \n    FUN_00053b90();\n  }\n  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);\n  memset(__s_01,0,(uVar3 + 1) * 4);\n  *__s_01 = uVar3;\n  if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  FUN_0001de10(uVar4,local_28 << 2);\n  FUN_0001dd30(uVar4);\n  FUN_0001de10(iVar7,local_30 * 8);\n  FUN_0001dd30(iVar7);\n  FUN_0001de10(puVar2,uVar1 * 4);\n  FUN_0001dd30(puVar2);\n  FUN_0001de10(__s,local_30 << 2);\n  FUN_0001dd30(__s);\n  FUN_0001de10(__s_00,local_30 << 2);\n  FUN_0001dd30(__s_00);\n  return __s_01;\n}" type_identifier (pointer_declarator "* FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)" * (function_declarator "FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)" identifier (parameter_list "(uint *param_1,uint *param_2,uint *param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  void *__s;\n  void *__s_00;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  uint *__s_01;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  uint local_40;\n  uint local_30;\n  int local_28;\n  \n  uVar1 = *param_3;\n  if (param_3[uVar1] == 0) {\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  puVar2 = (uint *)FUN_0001db90(uVar1,4);\n  uVar3 = 0;\n  if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }\n  local_30 = *param_1;\n  if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }\n  local_40 = local_30 * 2;\n  if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }\n  __s = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_1;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  __s_00 = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_2;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  iVar7 = FUN_0001db90(local_40,4);\n  local_28 = 0;\n  uVar3 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }\n  uVar4 = FUN_0001db90(local_28,4);\n  uVar3 = *puVar2;\n  if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }\n  if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }\n  if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }\n  if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;\n  iVar8 = iVar8 + 1;\nLAB_000560b9:\n  uVar5 = FUN_00053910();\n  FUN_00053bc0(local_30,uVar4);\n  FUN_000543d0(uVar1,uVar5,iVar8);\n  uVar3 = uVar1;\n  if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }\n  if (0x3fffffe < uVar3) {\n                    \n    FUN_00053b90();\n  }\n  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);\n  memset(__s_01,0,(uVar3 + 1) * 4);\n  *__s_01 = uVar3;\n  if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  FUN_0001de10(uVar4,local_28 << 2);\n  FUN_0001dd30(uVar4);\n  FUN_0001de10(iVar7,local_30 * 8);\n  FUN_0001dd30(iVar7);\n  FUN_0001de10(puVar2,uVar1 * 4);\n  FUN_0001dd30(puVar2);\n  FUN_0001de10(__s,local_30 << 2);\n  FUN_0001dd30(__s);\n  FUN_0001de10(__s_00,local_30 << 2);\n  FUN_0001dd30(__s_00);\n  return __s_01;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "uint *__s_01;" type_identifier (pointer_declarator "*__s_01" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "uVar1 = *param_3;" (assignment_expression "uVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (param_3[uVar1] == 0) {\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }" if (parenthesized_expression "(param_3[uVar1] == 0)" ( (binary_expression "param_3[uVar1] == 0" (subscript_expression "param_3[uVar1]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }" { (expression_statement "__assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");" (call_expression "__assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul")" identifier (argument_list "("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul")" ( (string_literal ""mod[mod[0]] != 0"" " string_content ") , (string_literal ""sshbn.c"" " string_content ") , number_literal , (string_literal ""modmul"" " string_content ") ))) ;) })) (expression_statement "puVar2 = (uint *)FUN_0001db90(uVar1,4);" (assignment_expression "puVar2 = (uint *)FUN_0001db90(uVar1,4)" identifier = (cast_expression "(uint *)FUN_0001db90(uVar1,4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(uVar1,4)" identifier (argument_list "(uVar1,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }" if (parenthesized_expression "(0 < (int)uVar1)" ( (binary_expression "0 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }" { (do_statement "do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);" do (compound_statement "{\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    }" { (expression_statement "puVar2[uVar3] = param_3[*param_3 - uVar3];" (assignment_expression "puVar2[uVar3] = param_3[*param_3 - uVar3]" (subscript_expression "puVar2[uVar3]" identifier [ identifier ]) = (subscript_expression "param_3[*param_3 - uVar3]" identifier [ (binary_expression "*param_3 - uVar3" (pointer_expression "*param_3" * identifier) - identifier) ])) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 != uVar3)" ( (binary_expression "uVar1 != uVar3" identifier != identifier) )) ;) })) (expression_statement "local_30 = *param_1;" (assignment_expression "local_30 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }" if (parenthesized_expression "(*param_1 <= *param_2)" ( (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" * identifier) <= (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    local_30 = *param_2;\n  }" { (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "local_40 = local_30 * 2;" (assignment_expression "local_40 = local_30 * 2" identifier = (binary_expression "local_30 * 2" identifier * number_literal)) ;) (if_statement "if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }" if (parenthesized_expression "((int)local_40 <= (int)uVar1)" ( (binary_expression "(int)local_40 <= (int)uVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }" { (expression_statement "local_30 = (int)uVar1 / 2 + 1;" (assignment_expression "local_30 = (int)uVar1 / 2 + 1" identifier = (binary_expression "(int)uVar1 / 2 + 1" (binary_expression "(int)uVar1 / 2" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) + number_literal)) ;) (expression_statement "local_40 = local_30 * 2;" (assignment_expression "local_40 = local_30 * 2" identifier = (binary_expression "local_30 * 2" identifier * number_literal)) ;) })) (expression_statement "__s = (void *)FUN_0001db90(local_30,4);" (assignment_expression "__s = (void *)FUN_0001db90(local_30,4)" identifier = (cast_expression "(void *)FUN_0001db90(local_30,4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(local_30,4)" identifier (argument_list "(local_30,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar7 = local_30 - uVar3;" (assignment_expression "iVar7 = local_30 - uVar3" identifier = (binary_expression "local_30 - uVar3" identifier - identifier)) ;) (if_statement "if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }" { (expression_statement "memset(__s,0,iVar7 * 4);" (call_expression "memset(__s,0,iVar7 * 4)" identifier (argument_list "(__s,0,iVar7 * 4)" ( identifier , number_literal , (binary_expression "iVar7 * 4" identifier * number_literal) ))) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" if (parenthesized_expression "(0 < (int)uVar3)" ( (binary_expression "0 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" { (do_statement "do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);" do (compound_statement "{\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    }" { (expression_statement "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];" (assignment_expression "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8]" (pointer_expression "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4)" * (cast_expression "(uint *)((int)__s + iVar8 * 4 + iVar7 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s + iVar8 * 4 + iVar7 * 4)" ( (binary_expression "(int)__s + iVar8 * 4 + iVar7 * 4" (binary_expression "(int)__s + iVar8 * 4" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar8 * 4" identifier * number_literal)) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "param_1[uVar3 - iVar8]" identifier [ (binary_expression "uVar3 - iVar8" identifier - identifier) ])) ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 < (int)uVar3)" ( (binary_expression "iVar8 < (int)uVar3" identifier < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "__s_00 = (void *)FUN_0001db90(local_30,4);" (assignment_expression "__s_00 = (void *)FUN_0001db90(local_30,4)" identifier = (cast_expression "(void *)FUN_0001db90(local_30,4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(local_30,4)" identifier (argument_list "(local_30,4)" ( identifier , number_literal ))))) ;) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar7 = local_30 - uVar3;" (assignment_expression "iVar7 = local_30 - uVar3" identifier = (binary_expression "local_30 - uVar3" identifier - identifier)) ;) (if_statement "if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }" { (expression_statement "memset(__s_00,0,iVar7 * 4);" (call_expression "memset(__s_00,0,iVar7 * 4)" identifier (argument_list "(__s_00,0,iVar7 * 4)" ( identifier , number_literal , (binary_expression "iVar7 * 4" identifier * number_literal) ))) ;) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (if_statement "if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" if (parenthesized_expression "(0 < (int)uVar3)" ( (binary_expression "0 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" { (do_statement "do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);" do (compound_statement "{\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    }" { (expression_statement "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];" (assignment_expression "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8]" (pointer_expression "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4)" * (cast_expression "(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s_00 + iVar8 * 4 + iVar7 * 4)" ( (binary_expression "(int)__s_00 + iVar8 * 4 + iVar7 * 4" (binary_expression "(int)__s_00 + iVar8 * 4" (cast_expression "(int)__s_00" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar8 * 4" identifier * number_literal)) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "param_2[uVar3 - iVar8]" identifier [ (binary_expression "uVar3 - iVar8" identifier - identifier) ])) ;) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 < (int)uVar3)" ( (binary_expression "iVar8 < (int)uVar3" identifier < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "iVar7 = FUN_0001db90(local_40,4);" (assignment_expression "iVar7 = FUN_0001db90(local_40,4)" identifier = (call_expression "FUN_0001db90(local_40,4)" identifier (argument_list "(local_40,4)" ( identifier , number_literal )))) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = local_30;" (assignment_expression "uVar3 = local_30" identifier = identifier) ;) (if_statement "if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" if (parenthesized_expression "((int)local_30 < 0x33)" ( (binary_expression "(int)local_30 < 0x33" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    local_28 = 0;\n  }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" else (compound_statement "{\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" { (do_statement "do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);" do (compound_statement "{\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    }" { (expression_statement "uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;" (assignment_expression "uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1" identifier = (binary_expression "(uVar3 - ((int)uVar3 >> 1)) + 1" (parenthesized_expression "(uVar3 - ((int)uVar3 >> 1))" ( (binary_expression "uVar3 - ((int)uVar3 >> 1)" identifier - (parenthesized_expression "((int)uVar3 >> 1)" ( (binary_expression "(int)uVar3 >> 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )) + number_literal)) ;) (expression_statement "local_28 = local_28 + uVar3 * 4;" (assignment_expression "local_28 = local_28 + uVar3 * 4" identifier = (binary_expression "local_28 + uVar3 * 4" identifier + (binary_expression "uVar3 * 4" identifier * number_literal))) ;) }) while (parenthesized_expression "(0x32 < (int)uVar3)" ( (binary_expression "0x32 < (int)uVar3" number_literal < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) }))) (expression_statement "uVar4 = FUN_0001db90(local_28,4);" (assignment_expression "uVar4 = FUN_0001db90(local_28,4)" identifier = (call_expression "FUN_0001db90(local_28,4)" identifier (argument_list "(local_28,4)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }" if (parenthesized_expression "(uVar3 >> 0x10 == 0)" ( (binary_expression "uVar3 >> 0x10 == 0" (binary_expression "uVar3 >> 0x10" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }" { (expression_statement "uVar3 = uVar3 << 0x10;" (assignment_expression "uVar3 = uVar3 << 0x10" identifier = (binary_expression "uVar3 << 0x10" identifier << number_literal)) ;) (expression_statement "iVar8 = 0x10;" (assignment_expression "iVar8 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n    iVar8 = 0;\n  }" else (compound_statement "{\n    iVar8 = 0;\n  }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) }))) (if_statement "if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }" if (parenthesized_expression "(uVar3 >> 0x18 == 0)" ( (binary_expression "uVar3 >> 0x18 == 0" (binary_expression "uVar3 >> 0x18" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }" { (expression_statement "uVar3 = uVar3 << 8;" (assignment_expression "uVar3 = uVar3 << 8" identifier = (binary_expression "uVar3 << 8" identifier << number_literal)) ;) (expression_statement "iVar8 = iVar8 + 8;" (assignment_expression "iVar8 = iVar8 + 8" identifier = (binary_expression "iVar8 + 8" identifier + number_literal)) ;) })) (if_statement "if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }" if (parenthesized_expression "(uVar3 >> 0x1c == 0)" ( (binary_expression "uVar3 >> 0x1c == 0" (binary_expression "uVar3 >> 0x1c" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }" { (expression_statement "uVar3 = uVar3 << 4;" (assignment_expression "uVar3 = uVar3 << 4" identifier = (binary_expression "uVar3 << 4" identifier << number_literal)) ;) (expression_statement "iVar8 = iVar8 + 4;" (assignment_expression "iVar8 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) })) (if_statement "if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;" if (parenthesized_expression "(uVar3 >> 0x1e == 0)" ( (binary_expression "uVar3 >> 0x1e == 0" (binary_expression "uVar3 >> 0x1e" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }" { (expression_statement "iVar8 = iVar8 + 2;" (assignment_expression "iVar8 = iVar8 + 2" identifier = (binary_expression "iVar8 + 2" identifier + number_literal)) ;) (if_statement "if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;" if (parenthesized_expression "((uVar3 & 0x20000000) != 0)" ( (binary_expression "(uVar3 & 0x20000000) != 0" (parenthesized_expression "(uVar3 & 0x20000000)" ( (binary_expression "uVar3 & 0x20000000" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000560b9;" goto statement_identifier ;)) }) (else_clause "else if ((int)uVar3 < 0) goto LAB_000560b9;" else (if_statement "if ((int)uVar3 < 0) goto LAB_000560b9;" if (parenthesized_expression "((int)uVar3 < 0)" ( (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_000560b9;" goto statement_identifier ;)))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_000560b9:\n  uVar5 = FUN_00053910();" statement_identifier : (expression_statement "uVar5 = FUN_00053910();" (assignment_expression "uVar5 = FUN_00053910()" identifier = (call_expression "FUN_00053910()" identifier (argument_list "()" ( )))) ;)) (expression_statement "FUN_00053bc0(local_30,uVar4);" (call_expression "FUN_00053bc0(local_30,uVar4)" identifier (argument_list "(local_30,uVar4)" ( identifier , identifier ))) ;) (expression_statement "FUN_000543d0(uVar1,uVar5,iVar8);" (call_expression "FUN_000543d0(uVar1,uVar5,iVar8)" identifier (argument_list "(uVar1,uVar5,iVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" identifier = identifier) ;) (if_statement "if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }" if (parenthesized_expression "((int)local_40 < (int)uVar1)" ( (binary_expression "(int)local_40 < (int)uVar1" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar3 = local_40;\n  }" { (expression_statement "uVar3 = local_40;" (assignment_expression "uVar3 = local_40" identifier = identifier) ;) })) (if_statement "if (0x3fffffe < uVar3) {\n                    \n    FUN_00053b90();\n  }" if (parenthesized_expression "(0x3fffffe < uVar3)" ( (binary_expression "0x3fffffe < uVar3" number_literal < identifier) )) (compound_statement "{\n                    \n    FUN_00053b90();\n  }" { (expression_statement "FUN_00053b90();" (call_expression "FUN_00053b90()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);" (assignment_expression "__s_01 = (uint *)FUN_0001db90(uVar3 + 1,4)" identifier = (cast_expression "(uint *)FUN_0001db90(uVar3 + 1,4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001db90(uVar3 + 1,4)" identifier (argument_list "(uVar3 + 1,4)" ( (binary_expression "uVar3 + 1" identifier + number_literal) , number_literal ))))) ;) (expression_statement "memset(__s_01,0,(uVar3 + 1) * 4);" (call_expression "memset(__s_01,0,(uVar3 + 1) * 4)" identifier (argument_list "(__s_01,0,(uVar3 + 1) * 4)" ( identifier , number_literal , (binary_expression "(uVar3 + 1) * 4" (parenthesized_expression "(uVar3 + 1)" ( (binary_expression "uVar3 + 1" identifier + number_literal) )) * number_literal) ))) ;) (expression_statement "*__s_01 = uVar3;" (assignment_expression "*__s_01 = uVar3" (pointer_expression "*__s_01" * identifier) = identifier) ;) (if_statement "if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }" { (expression_statement "__s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);" (assignment_expression "__s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4)" (subscript_expression "__s_01[uVar3]" identifier [ identifier ]) = (pointer_expression "*(uint *)(iVar7 + (local_40 - uVar3) * 4)" * (cast_expression "(uint *)(iVar7 + (local_40 - uVar3) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (local_40 - uVar3) * 4)" ( (binary_expression "iVar7 + (local_40 - uVar3) * 4" identifier + (binary_expression "(local_40 - uVar3) * 4" (parenthesized_expression "(local_40 - uVar3)" ( (binary_expression "local_40 - uVar3" identifier - identifier) )) * number_literal)) ))))) ;) (if_statement "if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }" if (parenthesized_expression "(uVar3 != 1)" ( (binary_expression "uVar3 != 1" identifier != number_literal) )) (compound_statement "{\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (do_statement "do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);" do (compound_statement "{\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      }" { (expression_statement "iVar8 = uVar6 * 4;" (assignment_expression "iVar8 = uVar6 * 4" identifier = (binary_expression "uVar6 * 4" identifier * number_literal)) ;) (expression_statement "iVar9 = *__s_01 - uVar6;" (assignment_expression "iVar9 = *__s_01 - uVar6" identifier = (binary_expression "*__s_01 - uVar6" (pointer_expression "*__s_01" * identifier) - identifier)) ;) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "__s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);" (assignment_expression "__s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" (subscript_expression "__s_01[iVar9]" identifier [ identifier ]) = (pointer_expression "*(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" * (cast_expression "(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (local_40 - uVar3) * 4 + iVar8)" ( (binary_expression "iVar7 + (local_40 - uVar3) * 4 + iVar8" (binary_expression "iVar7 + (local_40 - uVar3) * 4" identifier + (binary_expression "(local_40 - uVar3) * 4" (parenthesized_expression "(local_40 - uVar3)" ( (binary_expression "local_40 - uVar3" identifier - identifier) )) * number_literal)) + identifier) ))))) ;) }) while (parenthesized_expression "(uVar3 != uVar6)" ( (binary_expression "uVar3 != uVar6" identifier != identifier) )) ;) })) (expression_statement "uVar3 = *__s_01;" (assignment_expression "uVar3 = *__s_01" identifier = (pointer_expression "*__s_01" * identifier)) ;) (if_statement "if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }" if (parenthesized_expression "(1 < uVar3)" ( (binary_expression "1 < uVar3" number_literal < identifier) )) (compound_statement "{\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }" { (expression_statement "uVar6 = __s_01[uVar3];" (assignment_expression "uVar6 = __s_01[uVar3]" identifier = (subscript_expression "__s_01[uVar3]" identifier [ identifier ])) ;) (while_statement "while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }" while (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }" { (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "*__s_01 = uVar3;" (assignment_expression "*__s_01 = uVar3" (pointer_expression "*__s_01" * identifier) = identifier) ;) (if_statement "if (uVar3 == 1) break;" if (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = __s_01[uVar3];" (assignment_expression "uVar6 = __s_01[uVar3]" identifier = (subscript_expression "__s_01[uVar3]" identifier [ identifier ])) ;) })) })) })) (expression_statement "FUN_0001de10(uVar4,local_28 << 2);" (call_expression "FUN_0001de10(uVar4,local_28 << 2)" identifier (argument_list "(uVar4,local_28 << 2)" ( identifier , (binary_expression "local_28 << 2" identifier << number_literal) ))) ;) (expression_statement "FUN_0001dd30(uVar4);" (call_expression "FUN_0001dd30(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "FUN_0001de10(iVar7,local_30 * 8);" (call_expression "FUN_0001de10(iVar7,local_30 * 8)" identifier (argument_list "(iVar7,local_30 * 8)" ( identifier , (binary_expression "local_30 * 8" identifier * number_literal) ))) ;) (expression_statement "FUN_0001dd30(iVar7);" (call_expression "FUN_0001dd30(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "FUN_0001de10(puVar2,uVar1 * 4);" (call_expression "FUN_0001de10(puVar2,uVar1 * 4)" identifier (argument_list "(puVar2,uVar1 * 4)" ( identifier , (binary_expression "uVar1 * 4" identifier * number_literal) ))) ;) (expression_statement "FUN_0001dd30(puVar2);" (call_expression "FUN_0001dd30(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "FUN_0001de10(__s,local_30 << 2);" (call_expression "FUN_0001de10(__s,local_30 << 2)" identifier (argument_list "(__s,local_30 << 2)" ( identifier , (binary_expression "local_30 << 2" identifier << number_literal) ))) ;) (expression_statement "FUN_0001dd30(__s);" (call_expression "FUN_0001dd30(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_0001de10(__s_00,local_30 << 2);" (call_expression "FUN_0001de10(__s_00,local_30 << 2)" identifier (argument_list "(__s_00,local_30 << 2)" ( identifier , (binary_expression "local_30 << 2" identifier << number_literal) ))) ;) (expression_statement "FUN_0001dd30(__s_00);" (call_expression "FUN_0001dd30(__s_00)" identifier (argument_list "(__s_00)" ( identifier ))) ;) (return_statement "return __s_01;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (subscript_expression IDENT [ (binary_expression (pointer_expression * IDENT) - IDENT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT * LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + (binary_expression IDENT * LIT)) )))) = (subscript_expression IDENT [ (binary_expression IDENT - IDENT) ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) 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 IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT * LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + (binary_expression IDENT * LIT)) )))) = (subscript_expression IDENT [ (binary_expression IDENT - IDENT) ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }) while (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT)) + IDENT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "uint * FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  void *__s;\n  void *__s_00;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  uint *__s_01;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  uint local_40;\n  uint local_30;\n  int local_28;\n  \n  uVar1 = *param_3;\n  if (param_3[uVar1] == 0) {\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  puVar2 = (uint *)FUN_0001db90(uVar1,4);\n  uVar3 = 0;\n  if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }\n  local_30 = *param_1;\n  if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }\n  local_40 = local_30 * 2;\n  if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }\n  __s = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_1;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  __s_00 = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_2;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  iVar7 = FUN_0001db90(local_40,4);\n  local_28 = 0;\n  uVar3 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }\n  uVar4 = FUN_0001db90(local_28,4);\n  uVar3 = *puVar2;\n  if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }\n  if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }\n  if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }\n  if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;\n  iVar8 = iVar8 + 1;\nLAB_000560b9:\n  uVar5 = FUN_00053910();\n  FUN_00053bc0(local_30,uVar4);\n  FUN_000543d0(uVar1,uVar5,iVar8);\n  uVar3 = uVar1;\n  if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }\n  if (0x3fffffe < uVar3) {\n                    \n    FUN_00053b90();\n  }\n  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);\n  memset(__s_01,0,(uVar3 + 1) * 4);\n  *__s_01 = uVar3;\n  if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  FUN_0001de10(uVar4,local_28 << 2);\n  FUN_0001dd30(uVar4);\n  FUN_0001de10(iVar7,local_30 * 8);\n  FUN_0001dd30(iVar7);\n  FUN_0001de10(puVar2,uVar1 * 4);\n  FUN_0001dd30(puVar2);\n  FUN_0001de10(__s,local_30 << 2);\n  FUN_0001dd30(__s);\n  FUN_0001de10(__s_00,local_30 << 2);\n  FUN_0001dd30(__s_00);\n  return __s_01;\n}" (type_identifier "uint") (pointer_declarator "* FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)" (* "*") (function_declarator "FUN_00055ea0(uint *param_1,uint *param_2,uint *param_3)" (identifier "FUN_00055ea0") (parameter_list "(uint *param_1,uint *param_2,uint *param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  void *__s;\n  void *__s_00;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  uint *__s_01;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  uint local_40;\n  uint local_30;\n  int local_28;\n  \n  uVar1 = *param_3;\n  if (param_3[uVar1] == 0) {\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }\n  puVar2 = (uint *)FUN_0001db90(uVar1,4);\n  uVar3 = 0;\n  if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }\n  local_30 = *param_1;\n  if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }\n  local_40 = local_30 * 2;\n  if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }\n  __s = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_1;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  __s_00 = (void *)FUN_0001db90(local_30,4);\n  uVar3 = *param_2;\n  iVar7 = local_30 - uVar3;\n  if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }\n  iVar8 = 0;\n  if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }\n  iVar7 = FUN_0001db90(local_40,4);\n  local_28 = 0;\n  uVar3 = local_30;\n  if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }\n  uVar4 = FUN_0001db90(local_28,4);\n  uVar3 = *puVar2;\n  if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }\n  if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }\n  if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }\n  if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;\n  iVar8 = iVar8 + 1;\nLAB_000560b9:\n  uVar5 = FUN_00053910();\n  FUN_00053bc0(local_30,uVar4);\n  FUN_000543d0(uVar1,uVar5,iVar8);\n  uVar3 = uVar1;\n  if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }\n  if (0x3fffffe < uVar3) {\n                    \n    FUN_00053b90();\n  }\n  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);\n  memset(__s_01,0,(uVar3 + 1) * 4);\n  *__s_01 = uVar3;\n  if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }\n  FUN_0001de10(uVar4,local_28 << 2);\n  FUN_0001dd30(uVar4);\n  FUN_0001de10(iVar7,local_30 * 8);\n  FUN_0001dd30(iVar7);\n  FUN_0001de10(puVar2,uVar1 * 4);\n  FUN_0001dd30(puVar2);\n  FUN_0001de10(__s,local_30 << 2);\n  FUN_0001dd30(__s);\n  FUN_0001de10(__s_00,local_30 << 2);\n  FUN_0001dd30(__s_00);\n  return __s_01;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "void *__s_00;" (primitive_type "void") (pointer_declarator "*__s_00" (* "*") (identifier "__s_00")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "uint *__s_01;" (type_identifier "uint") (pointer_declarator "*__s_01" (* "*") (identifier "__s_01")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint local_40;" (type_identifier "uint") (identifier "local_40") (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (expression_statement "uVar1 = *param_3;" (assignment_expression "uVar1 = *param_3" (identifier "uVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if (param_3[uVar1] == 0) {\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }" (if "if") (parenthesized_expression "(param_3[uVar1] == 0)" (( "(") (binary_expression "param_3[uVar1] == 0" (subscript_expression "param_3[uVar1]" (identifier "param_3") ([ "[") (identifier "uVar1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");\n  }" ({ "{") (expression_statement "__assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");" (call_expression "__assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul")" (identifier "__assert_fail") (argument_list "("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul")" (( "(") (string_literal ""mod[mod[0]] != 0"" (" """) (string_content "mod[mod[0]] != 0") (" """)) (, ",") (string_literal ""sshbn.c"" (" """) (string_content "sshbn.c") (" """)) (, ",") (number_literal "0x4c1") (, ",") (string_literal ""modmul"" (" """) (string_content "modmul") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = (uint *)FUN_0001db90(uVar1,4);" (assignment_expression "puVar2 = (uint *)FUN_0001db90(uVar1,4)" (identifier "puVar2") (= "=") (cast_expression "(uint *)FUN_0001db90(uVar1,4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001db90(uVar1,4)" (identifier "FUN_0001db90") (argument_list "(uVar1,4)" (( "(") (identifier "uVar1") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < (int)uVar1) {\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar1)" (( "(") (binary_expression "0 < (int)uVar1" (number_literal "0") (< "<") (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1"))) () ")")) (compound_statement "{\n    do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);\n  }" ({ "{") (do_statement "do {\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    } while (uVar1 != uVar3);" (do "do") (compound_statement "{\n      puVar2[uVar3] = param_3[*param_3 - uVar3];\n      uVar3 = uVar3 + 1;\n    }" ({ "{") (expression_statement "puVar2[uVar3] = param_3[*param_3 - uVar3];" (assignment_expression "puVar2[uVar3] = param_3[*param_3 - uVar3]" (subscript_expression "puVar2[uVar3]" (identifier "puVar2") ([ "[") (identifier "uVar3") (] "]")) (= "=") (subscript_expression "param_3[*param_3 - uVar3]" (identifier "param_3") ([ "[") (binary_expression "*param_3 - uVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (- "-") (identifier "uVar3")) (] "]"))) (; ";")) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 != uVar3)" (( "(") (binary_expression "uVar1 != uVar3" (identifier "uVar1") (!= "!=") (identifier "uVar3")) () ")")) (; ";")) (} "}"))) (expression_statement "local_30 = *param_1;" (assignment_expression "local_30 = *param_1" (identifier "local_30") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*param_1 <= *param_2) {\n    local_30 = *param_2;\n  }" (if "if") (parenthesized_expression "(*param_1 <= *param_2)" (( "(") (binary_expression "*param_1 <= *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<= "<=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n    local_30 = *param_2;\n  }" ({ "{") (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" (identifier "local_30") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "local_40 = local_30 * 2;" (assignment_expression "local_40 = local_30 * 2" (identifier "local_40") (= "=") (binary_expression "local_30 * 2" (identifier "local_30") (* "*") (number_literal "2"))) (; ";")) (if_statement "if ((int)local_40 <= (int)uVar1) {\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }" (if "if") (parenthesized_expression "((int)local_40 <= (int)uVar1)" (( "(") (binary_expression "(int)local_40 <= (int)uVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (<= "<=") (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1"))) () ")")) (compound_statement "{\n    local_30 = (int)uVar1 / 2 + 1;\n    local_40 = local_30 * 2;\n  }" ({ "{") (expression_statement "local_30 = (int)uVar1 / 2 + 1;" (assignment_expression "local_30 = (int)uVar1 / 2 + 1" (identifier "local_30") (= "=") (binary_expression "(int)uVar1 / 2 + 1" (binary_expression "(int)uVar1 / 2" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (/ "/") (number_literal "2")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_40 = local_30 * 2;" (assignment_expression "local_40 = local_30 * 2" (identifier "local_40") (= "=") (binary_expression "local_30 * 2" (identifier "local_30") (* "*") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "__s = (void *)FUN_0001db90(local_30,4);" (assignment_expression "__s = (void *)FUN_0001db90(local_30,4)" (identifier "__s") (= "=") (cast_expression "(void *)FUN_0001db90(local_30,4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001db90(local_30,4)" (identifier "FUN_0001db90") (argument_list "(local_30,4)" (( "(") (identifier "local_30") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar7 = local_30 - uVar3;" (assignment_expression "iVar7 = local_30 - uVar3" (identifier "iVar7") (= "=") (binary_expression "local_30 - uVar3" (identifier "local_30") (- "-") (identifier "uVar3"))) (; ";")) (if_statement "if (0 < iVar7) {\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }" (if "if") (parenthesized_expression "(0 < iVar7)" (( "(") (binary_expression "0 < iVar7" (number_literal "0") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n    memset(__s,0,iVar7 * 4);\n    uVar3 = *param_1;\n  }" ({ "{") (expression_statement "memset(__s,0,iVar7 * 4);" (call_expression "memset(__s,0,iVar7 * 4)" (identifier "memset") (argument_list "(__s,0,iVar7 * 4)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4")) () ")"))) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar3)" (( "(") (binary_expression "0 < (int)uVar3" (number_literal "0") (< "<") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) () ")")) (compound_statement "{\n    do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" ({ "{") (do_statement "do {\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);" (do "do") (compound_statement "{\n      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];\n      uVar3 = *param_1;\n      iVar8 = iVar8 + 1;\n    }" ({ "{") (expression_statement "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];" (assignment_expression "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8]" (pointer_expression "*(uint *)((int)__s + iVar8 * 4 + iVar7 * 4)" (* "*") (cast_expression "(uint *)((int)__s + iVar8 * 4 + iVar7 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__s + iVar8 * 4 + iVar7 * 4)" (( "(") (binary_expression "(int)__s + iVar8 * 4 + iVar7 * 4" (binary_expression "(int)__s + iVar8 * 4" (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s")) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")")))) (= "=") (subscript_expression "param_1[uVar3 - iVar8]" (identifier "param_1") ([ "[") (binary_expression "uVar3 - iVar8" (identifier "uVar3") (- "-") (identifier "iVar8")) (] "]"))) (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 < (int)uVar3)" (( "(") (binary_expression "iVar8 < (int)uVar3" (identifier "iVar8") (< "<") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) () ")")) (; ";")) (} "}"))) (expression_statement "__s_00 = (void *)FUN_0001db90(local_30,4);" (assignment_expression "__s_00 = (void *)FUN_0001db90(local_30,4)" (identifier "__s_00") (= "=") (cast_expression "(void *)FUN_0001db90(local_30,4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001db90(local_30,4)" (identifier "FUN_0001db90") (argument_list "(local_30,4)" (( "(") (identifier "local_30") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" (identifier "uVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar7 = local_30 - uVar3;" (assignment_expression "iVar7 = local_30 - uVar3" (identifier "iVar7") (= "=") (binary_expression "local_30 - uVar3" (identifier "local_30") (- "-") (identifier "uVar3"))) (; ";")) (if_statement "if (0 < iVar7) {\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }" (if "if") (parenthesized_expression "(0 < iVar7)" (( "(") (binary_expression "0 < iVar7" (number_literal "0") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n    memset(__s_00,0,iVar7 * 4);\n    uVar3 = *param_2;\n  }" ({ "{") (expression_statement "memset(__s_00,0,iVar7 * 4);" (call_expression "memset(__s_00,0,iVar7 * 4)" (identifier "memset") (argument_list "(__s_00,0,iVar7 * 4)" (( "(") (identifier "__s_00") (, ",") (number_literal "0") (, ",") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4")) () ")"))) (; ";")) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" (identifier "uVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < (int)uVar3) {\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar3)" (( "(") (binary_expression "0 < (int)uVar3" (number_literal "0") (< "<") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) () ")")) (compound_statement "{\n    do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);\n  }" ({ "{") (do_statement "do {\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    } while (iVar8 < (int)uVar3);" (do "do") (compound_statement "{\n      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];\n      uVar3 = *param_2;\n      iVar8 = iVar8 + 1;\n    }" ({ "{") (expression_statement "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];" (assignment_expression "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8]" (pointer_expression "*(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4)" (* "*") (cast_expression "(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__s_00 + iVar8 * 4 + iVar7 * 4)" (( "(") (binary_expression "(int)__s_00 + iVar8 * 4 + iVar7 * 4" (binary_expression "(int)__s_00 + iVar8 * 4" (cast_expression "(int)__s_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s_00")) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")")))) (= "=") (subscript_expression "param_2[uVar3 - iVar8]" (identifier "param_2") ([ "[") (binary_expression "uVar3 - iVar8" (identifier "uVar3") (- "-") (identifier "iVar8")) (] "]"))) (; ";")) (expression_statement "uVar3 = *param_2;" (assignment_expression "uVar3 = *param_2" (identifier "uVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 < (int)uVar3)" (( "(") (binary_expression "iVar8 < (int)uVar3" (identifier "iVar8") (< "<") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar7 = FUN_0001db90(local_40,4);" (assignment_expression "iVar7 = FUN_0001db90(local_40,4)" (identifier "iVar7") (= "=") (call_expression "FUN_0001db90(local_40,4)" (identifier "FUN_0001db90") (argument_list "(local_40,4)" (( "(") (identifier "local_40") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = local_30;" (assignment_expression "uVar3 = local_30" (identifier "uVar3") (= "=") (identifier "local_30")) (; ";")) (if_statement "if ((int)local_30 < 0x33) {\n    local_28 = 0;\n  }\n  else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" (if "if") (parenthesized_expression "((int)local_30 < 0x33)" (( "(") (binary_expression "(int)local_30 < 0x33" (cast_expression "(int)local_30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_30")) (< "<") (number_literal "0x33")) () ")")) (compound_statement "{\n    local_28 = 0;\n  }" ({ "{") (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" (else "else") (compound_statement "{\n    do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);\n  }" ({ "{") (do_statement "do {\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    } while (0x32 < (int)uVar3);" (do "do") (compound_statement "{\n      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;\n      local_28 = local_28 + uVar3 * 4;\n    }" ({ "{") (expression_statement "uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;" (assignment_expression "uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1" (identifier "uVar3") (= "=") (binary_expression "(uVar3 - ((int)uVar3 >> 1)) + 1" (parenthesized_expression "(uVar3 - ((int)uVar3 >> 1))" (( "(") (binary_expression "uVar3 - ((int)uVar3 >> 1)" (identifier "uVar3") (- "-") (parenthesized_expression "((int)uVar3 >> 1)" (( "(") (binary_expression "(int)uVar3 >> 1" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "1")) () ")"))) () ")")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_28 = local_28 + uVar3 * 4;" (assignment_expression "local_28 = local_28 + uVar3 * 4" (identifier "local_28") (= "=") (binary_expression "local_28 + uVar3 * 4" (identifier "local_28") (+ "+") (binary_expression "uVar3 * 4" (identifier "uVar3") (* "*") (number_literal "4")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0x32 < (int)uVar3)" (( "(") (binary_expression "0x32 < (int)uVar3" (number_literal "0x32") (< "<") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) () ")")) (; ";")) (} "}")))) (expression_statement "uVar4 = FUN_0001db90(local_28,4);" (assignment_expression "uVar4 = FUN_0001db90(local_28,4)" (identifier "uVar4") (= "=") (call_expression "FUN_0001db90(local_28,4)" (identifier "FUN_0001db90") (argument_list "(local_28,4)" (( "(") (identifier "local_28") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" (identifier "uVar3") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (if_statement "if (uVar3 >> 0x10 == 0) {\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }\n  else {\n    iVar8 = 0;\n  }" (if "if") (parenthesized_expression "(uVar3 >> 0x10 == 0)" (( "(") (binary_expression "uVar3 >> 0x10 == 0" (binary_expression "uVar3 >> 0x10" (identifier "uVar3") (>> ">>") (number_literal "0x10")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = uVar3 << 0x10;\n    iVar8 = 0x10;\n  }" ({ "{") (expression_statement "uVar3 = uVar3 << 0x10;" (assignment_expression "uVar3 = uVar3 << 0x10" (identifier "uVar3") (= "=") (binary_expression "uVar3 << 0x10" (identifier "uVar3") (<< "<<") (number_literal "0x10"))) (; ";")) (expression_statement "iVar8 = 0x10;" (assignment_expression "iVar8 = 0x10" (identifier "iVar8") (= "=") (number_literal "0x10")) (; ";")) (} "}")) (else_clause "else {\n    iVar8 = 0;\n  }" (else "else") (compound_statement "{\n    iVar8 = 0;\n  }" ({ "{") (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (uVar3 >> 0x18 == 0) {\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }" (if "if") (parenthesized_expression "(uVar3 >> 0x18 == 0)" (( "(") (binary_expression "uVar3 >> 0x18 == 0" (binary_expression "uVar3 >> 0x18" (identifier "uVar3") (>> ">>") (number_literal "0x18")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = uVar3 << 8;\n    iVar8 = iVar8 + 8;\n  }" ({ "{") (expression_statement "uVar3 = uVar3 << 8;" (assignment_expression "uVar3 = uVar3 << 8" (identifier "uVar3") (= "=") (binary_expression "uVar3 << 8" (identifier "uVar3") (<< "<<") (number_literal "8"))) (; ";")) (expression_statement "iVar8 = iVar8 + 8;" (assignment_expression "iVar8 = iVar8 + 8" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 8" (identifier "iVar8") (+ "+") (number_literal "8"))) (; ";")) (} "}"))) (if_statement "if (uVar3 >> 0x1c == 0) {\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }" (if "if") (parenthesized_expression "(uVar3 >> 0x1c == 0)" (( "(") (binary_expression "uVar3 >> 0x1c == 0" (binary_expression "uVar3 >> 0x1c" (identifier "uVar3") (>> ">>") (number_literal "0x1c")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = uVar3 << 4;\n    iVar8 = iVar8 + 4;\n  }" ({ "{") (expression_statement "uVar3 = uVar3 << 4;" (assignment_expression "uVar3 = uVar3 << 4" (identifier "uVar3") (= "=") (binary_expression "uVar3 << 4" (identifier "uVar3") (<< "<<") (number_literal "4"))) (; ";")) (expression_statement "iVar8 = iVar8 + 4;" (assignment_expression "iVar8 = iVar8 + 4" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (if_statement "if (uVar3 >> 0x1e == 0) {\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }\n  else if ((int)uVar3 < 0) goto LAB_000560b9;" (if "if") (parenthesized_expression "(uVar3 >> 0x1e == 0)" (( "(") (binary_expression "uVar3 >> 0x1e == 0" (binary_expression "uVar3 >> 0x1e" (identifier "uVar3") (>> ">>") (number_literal "0x1e")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar8 = iVar8 + 2;\n    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;\n  }" ({ "{") (expression_statement "iVar8 = iVar8 + 2;" (assignment_expression "iVar8 = iVar8 + 2" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 2" (identifier "iVar8") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;" (if "if") (parenthesized_expression "((uVar3 & 0x20000000) != 0)" (( "(") (binary_expression "(uVar3 & 0x20000000) != 0" (parenthesized_expression "(uVar3 & 0x20000000)" (( "(") (binary_expression "uVar3 & 0x20000000" (identifier "uVar3") (& "&") (number_literal "0x20000000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000560b9;" (goto "goto") (statement_identifier "LAB_000560b9") (; ";"))) (} "}")) (else_clause "else if ((int)uVar3 < 0) goto LAB_000560b9;" (else "else") (if_statement "if ((int)uVar3 < 0) goto LAB_000560b9;" (if "if") (parenthesized_expression "((int)uVar3 < 0)" (( "(") (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_000560b9;" (goto "goto") (statement_identifier "LAB_000560b9") (; ";"))))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (labeled_statement "LAB_000560b9:\n  uVar5 = FUN_00053910();" (statement_identifier "LAB_000560b9") (: ":") (expression_statement "uVar5 = FUN_00053910();" (assignment_expression "uVar5 = FUN_00053910()" (identifier "uVar5") (= "=") (call_expression "FUN_00053910()" (identifier "FUN_00053910") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "FUN_00053bc0(local_30,uVar4);" (call_expression "FUN_00053bc0(local_30,uVar4)" (identifier "FUN_00053bc0") (argument_list "(local_30,uVar4)" (( "(") (identifier "local_30") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "FUN_000543d0(uVar1,uVar5,iVar8);" (call_expression "FUN_000543d0(uVar1,uVar5,iVar8)" (identifier "FUN_000543d0") (argument_list "(uVar1,uVar5,iVar8)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar5") (, ",") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" (identifier "uVar3") (= "=") (identifier "uVar1")) (; ";")) (if_statement "if ((int)local_40 < (int)uVar1) {\n    uVar3 = local_40;\n  }" (if "if") (parenthesized_expression "((int)local_40 < (int)uVar1)" (( "(") (binary_expression "(int)local_40 < (int)uVar1" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (< "<") (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1"))) () ")")) (compound_statement "{\n    uVar3 = local_40;\n  }" ({ "{") (expression_statement "uVar3 = local_40;" (assignment_expression "uVar3 = local_40" (identifier "uVar3") (= "=") (identifier "local_40")) (; ";")) (} "}"))) (if_statement "if (0x3fffffe < uVar3) {\n                    \n    FUN_00053b90();\n  }" (if "if") (parenthesized_expression "(0x3fffffe < uVar3)" (( "(") (binary_expression "0x3fffffe < uVar3" (number_literal "0x3fffffe") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n                    \n    FUN_00053b90();\n  }" ({ "{") (expression_statement "FUN_00053b90();" (call_expression "FUN_00053b90()" (identifier "FUN_00053b90") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "__s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);" (assignment_expression "__s_01 = (uint *)FUN_0001db90(uVar3 + 1,4)" (identifier "__s_01") (= "=") (cast_expression "(uint *)FUN_0001db90(uVar3 + 1,4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001db90(uVar3 + 1,4)" (identifier "FUN_0001db90") (argument_list "(uVar3 + 1,4)" (( "(") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1")) (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "memset(__s_01,0,(uVar3 + 1) * 4);" (call_expression "memset(__s_01,0,(uVar3 + 1) * 4)" (identifier "memset") (argument_list "(__s_01,0,(uVar3 + 1) * 4)" (( "(") (identifier "__s_01") (, ",") (number_literal "0") (, ",") (binary_expression "(uVar3 + 1) * 4" (parenthesized_expression "(uVar3 + 1)" (( "(") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "4")) () ")"))) (; ";")) (expression_statement "*__s_01 = uVar3;" (assignment_expression "*__s_01 = uVar3" (pointer_expression "*__s_01" (* "*") (identifier "__s_01")) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (uVar3 != 0) {\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);\n    if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }\n    uVar3 = *__s_01;\n    if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }\n  }" ({ "{") (expression_statement "__s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);" (assignment_expression "__s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4)" (subscript_expression "__s_01[uVar3]" (identifier "__s_01") ([ "[") (identifier "uVar3") (] "]")) (= "=") (pointer_expression "*(uint *)(iVar7 + (local_40 - uVar3) * 4)" (* "*") (cast_expression "(uint *)(iVar7 + (local_40 - uVar3) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + (local_40 - uVar3) * 4)" (( "(") (binary_expression "iVar7 + (local_40 - uVar3) * 4" (identifier "iVar7") (+ "+") (binary_expression "(local_40 - uVar3) * 4" (parenthesized_expression "(local_40 - uVar3)" (( "(") (binary_expression "local_40 - uVar3" (identifier "local_40") (- "-") (identifier "uVar3")) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (uVar3 != 1) {\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }" (if "if") (parenthesized_expression "(uVar3 != 1)" (( "(") (binary_expression "uVar3 != 1" (identifier "uVar3") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      uVar6 = 1;\n      do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);\n    }" ({ "{") (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      } while (uVar3 != uVar6);" (do "do") (compound_statement "{\n        iVar8 = uVar6 * 4;\n        iVar9 = *__s_01 - uVar6;\n        uVar6 = uVar6 + 1;\n        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);\n      }" ({ "{") (expression_statement "iVar8 = uVar6 * 4;" (assignment_expression "iVar8 = uVar6 * 4" (identifier "iVar8") (= "=") (binary_expression "uVar6 * 4" (identifier "uVar6") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar9 = *__s_01 - uVar6;" (assignment_expression "iVar9 = *__s_01 - uVar6" (identifier "iVar9") (= "=") (binary_expression "*__s_01 - uVar6" (pointer_expression "*__s_01" (* "*") (identifier "__s_01")) (- "-") (identifier "uVar6"))) (; ";")) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);" (assignment_expression "__s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" (subscript_expression "__s_01[iVar9]" (identifier "__s_01") ([ "[") (identifier "iVar9") (] "]")) (= "=") (pointer_expression "*(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" (* "*") (cast_expression "(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + (local_40 - uVar3) * 4 + iVar8)" (( "(") (binary_expression "iVar7 + (local_40 - uVar3) * 4 + iVar8" (binary_expression "iVar7 + (local_40 - uVar3) * 4" (identifier "iVar7") (+ "+") (binary_expression "(local_40 - uVar3) * 4" (parenthesized_expression "(local_40 - uVar3)" (( "(") (binary_expression "local_40 - uVar3" (identifier "local_40") (- "-") (identifier "uVar3")) () ")")) (* "*") (number_literal "4"))) (+ "+") (identifier "iVar8")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 != uVar6)" (( "(") (binary_expression "uVar3 != uVar6" (identifier "uVar3") (!= "!=") (identifier "uVar6")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar3 = *__s_01;" (assignment_expression "uVar3 = *__s_01" (identifier "uVar3") (= "=") (pointer_expression "*__s_01" (* "*") (identifier "__s_01"))) (; ";")) (if_statement "if (1 < uVar3) {\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }" (if "if") (parenthesized_expression "(1 < uVar3)" (( "(") (binary_expression "1 < uVar3" (number_literal "1") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n      uVar6 = __s_01[uVar3];\n      while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }\n    }" ({ "{") (expression_statement "uVar6 = __s_01[uVar3];" (assignment_expression "uVar6 = __s_01[uVar3]" (identifier "uVar6") (= "=") (subscript_expression "__s_01[uVar3]" (identifier "__s_01") ([ "[") (identifier "uVar3") (] "]"))) (; ";")) (while_statement "while (uVar6 == 0) {\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }" (while "while") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = uVar3 - 1;\n        *__s_01 = uVar3;\n        if (uVar3 == 1) break;\n        uVar6 = __s_01[uVar3];\n      }" ({ "{") (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) (; ";")) (expression_statement "*__s_01 = uVar3;" (assignment_expression "*__s_01 = uVar3" (pointer_expression "*__s_01" (* "*") (identifier "__s_01")) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (uVar3 == 1) break;" (if "if") (parenthesized_expression "(uVar3 == 1)" (( "(") (binary_expression "uVar3 == 1" (identifier "uVar3") (== "==") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar6 = __s_01[uVar3];" (assignment_expression "uVar6 = __s_01[uVar3]" (identifier "uVar6") (= "=") (subscript_expression "__s_01[uVar3]" (identifier "__s_01") ([ "[") (identifier "uVar3") (] "]"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "FUN_0001de10(uVar4,local_28 << 2);" (call_expression "FUN_0001de10(uVar4,local_28 << 2)" (identifier "FUN_0001de10") (argument_list "(uVar4,local_28 << 2)" (( "(") (identifier "uVar4") (, ",") (binary_expression "local_28 << 2" (identifier "local_28") (<< "<<") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(uVar4);" (call_expression "FUN_0001dd30(uVar4)" (identifier "FUN_0001dd30") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "FUN_0001de10(iVar7,local_30 * 8);" (call_expression "FUN_0001de10(iVar7,local_30 * 8)" (identifier "FUN_0001de10") (argument_list "(iVar7,local_30 * 8)" (( "(") (identifier "iVar7") (, ",") (binary_expression "local_30 * 8" (identifier "local_30") (* "*") (number_literal "8")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(iVar7);" (call_expression "FUN_0001dd30(iVar7)" (identifier "FUN_0001dd30") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "FUN_0001de10(puVar2,uVar1 * 4);" (call_expression "FUN_0001de10(puVar2,uVar1 * 4)" (identifier "FUN_0001de10") (argument_list "(puVar2,uVar1 * 4)" (( "(") (identifier "puVar2") (, ",") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(puVar2);" (call_expression "FUN_0001dd30(puVar2)" (identifier "FUN_0001dd30") (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "FUN_0001de10(__s,local_30 << 2);" (call_expression "FUN_0001de10(__s,local_30 << 2)" (identifier "FUN_0001de10") (argument_list "(__s,local_30 << 2)" (( "(") (identifier "__s") (, ",") (binary_expression "local_30 << 2" (identifier "local_30") (<< "<<") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(__s);" (call_expression "FUN_0001dd30(__s)" (identifier "FUN_0001dd30") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "FUN_0001de10(__s_00,local_30 << 2);" (call_expression "FUN_0001de10(__s_00,local_30 << 2)" (identifier "FUN_0001de10") (argument_list "(__s_00,local_30 << 2)" (( "(") (identifier "__s_00") (, ",") (binary_expression "local_30 << 2" (identifier "local_30") (<< "<<") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(__s_00);" (call_expression "FUN_0001dd30(__s_00)" (identifier "FUN_0001dd30") (argument_list "(__s_00)" (( "(") (identifier "__s_00") () ")"))) (; ";")) (return_statement "return __s_01;" (return "return") (identifier "__s_01") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 function_1(type_1 p,type_1 q,type_1 mod)

{
  size_t var_4;
  type_2 *m;
  size_t var_3;
  void *__s;
  void *__s_00;
  type_2 *a;
  type_2 *pBVar2;
  type_3 var_10;
  type_2 *quot;
  type_3 *__s_01;
  int var_6;
  int var_8;
  type_3 var_11;
  type_2 var_5;
  type_2 *in_stack_ffffffac;
  type_2 *in_stack_ffffffb4;
  size_t var_16;
  type_2 *local_30;
  size_t var_9;
  
  var_4 = *mod;
  if (mod[var_4] == 0) {
                    /* WARNING: Subroutine does not return */
    var_1("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");
  }
  m = (type_2 *)var_2(var_4,4);
  var_3 = 0;
  if (0 < (int)var_4) {
    do {
      m[var_3] = mod[*mod - var_3];
      var_3 = var_3 + 1;
    } while (var_4 != var_3);
  }
  local_30 = (type_2 *)*p;
  if ((type_2 *)*p <= (type_2 *)*q) {
    local_30 = (type_2 *)*q;
  }
  var_16 = (int)local_30 * 2;
  if ((int)var_16 <= (int)var_4) {
    local_30 = (type_2 *)((int)var_4 / 2 + 1);
    var_16 = (int)local_30 * 2;
  }
  __s = var_2((size_t)local_30,4);
  var_5 = *p;
  var_6 = (int)local_30 - var_5;
  if (0 < var_6) {
    in_stack_ffffffac = (type_2 *)(var_6 * 4);
    var_7(__s,0,(size_t)in_stack_ffffffac);
    var_5 = *p;
  }
  var_8 = 0;
  if (0 < (int)var_5) {
    do {
      *(type_2 *)((int)__s + var_8 * 4 + var_6 * 4) = p[var_5 - var_8];
      var_5 = *p;
      var_8 = var_8 + 1;
    } while (var_8 < (int)var_5);
  }
  __s_00 = var_2((size_t)local_30,4);
  var_5 = *q;
  var_6 = (int)local_30 - var_5;
  if (0 < var_6) {
    in_stack_ffffffac = (type_2 *)(var_6 * 4);
    var_7(__s_00,0,(size_t)in_stack_ffffffac);
    var_5 = *q;
  }
  var_8 = 0;
  if (0 < (int)var_5) {
    do {
      *(type_2 *)((int)__s_00 + var_8 * 4 + var_6 * 4) = q[var_5 - var_8];
      var_5 = *q;
      var_8 = var_8 + 1;
    } while (var_8 < (int)var_5);
  }
  a = (type_2 *)var_2(var_16,4);
  var_9 = 0;
  pBVar2 = local_30;
  if ((int)local_30 < 0x33) {
    var_9 = 0;
  }
  else {
    do {
      pBVar2 = (type_2 *)((int)pBVar2 + (1 - ((int)pBVar2 >> 1)));
      var_9 = var_9 + (int)pBVar2 * 4;
    } while (0x32 < (int)pBVar2);
  }
  pBVar2 = (type_2 *)var_2(var_9,4);
  var_10 = *m;
  if (var_10 >> 0x10 == 0) {
    var_11 = var_10 << 0x10;
    var_5 = 0x10;
  }
  else {
    var_5 = 0;
    var_11 = var_10;
  }
  if (var_11 >> 0x18 == 0) {
    var_11 = var_11 << 8;
    var_5 = var_5 + 8;
  }
  if (var_11 >> 0x1c == 0) {
    var_11 = var_11 << 4;
    var_5 = var_5 + 4;
  }
  if (var_11 >> 0x1e == 0) {
    var_5 = var_5 + 2;
    if ((var_11 & 0x20000000) == 0) {
LAB_00056097:
      var_5 = var_5 + 1;
    }
  }
  else {
    if (-1 < (int)var_11) goto LAB_00056097;
    if (var_5 == 0) goto LAB_000560b9;
  }
  var_10 = var_10 << ((type_4)var_5 & 0x1f);
  if (1 < (int)var_4) {
    var_10 = var_10 | m[1] >> (0x20 - (type_4)var_5 & 0x1f);
  }
LAB_000560b9:
  var_6 = 0x560be;
  quot = (type_2 *)var_12(var_10);
  var_13(local_30,pBVar2,in_stack_ffffffac,var_6,in_stack_ffffffb4);
  var_14(a,var_16,m,var_4,quot,var_5,var_6);
  var_3 = var_4;
  if ((int)var_16 < (int)var_4) {
    var_3 = var_16;
  }
  if (0x3fffffe < var_3) {
                    /* WARNING: Subroutine does not return */
    var_15((int)in_stack_ffffffb4);
  }
  __s_01 = (type_3 *)var_2(var_3 + 1,4);
  var_7(__s_01,0,(var_3 + 1) * 4);
  *__s_01 = var_3;
  if (var_3 != 0) {
    __s_01[var_3] = a[var_16 - var_3];
    if (var_3 != 1) {
      var_10 = 1;
      do {
        var_6 = (var_16 - var_3) + var_10;
        var_8 = *__s_01 - var_10;
        var_10 = var_10 + 1;
        __s_01[var_8] = a[var_6];
      } while (var_3 != var_10);
    }
    var_10 = *__s_01;
    if (1 < var_10) {
      var_11 = __s_01[var_10];
      while (var_11 == 0) {
        var_10 = var_10 - 1;
        *__s_01 = var_10;
        if (var_10 == 1) break;
        var_11 = __s_01[var_10];
      }
    }
  }
  var_17(pBVar2,var_9 << 2);
  var_18(pBVar2);
  var_17(a,(int)local_30 * 8);
  var_18(a);
  var_17(m,var_4 * 4);
  var_18(m);
  var_17(__s,(int)local_30 << 2);
  var_18(__s);
  var_17(__s_00,(int)local_30 << 2);
  var_18(__s_00);
  return __s_01;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  uint uVar1;
  uint *puVar2;
  uint uVar3;
  void *__s;
  void *__s_00;
  undefined4 uVar4;
  undefined4 uVar5;
  uint *__s_01;
  uint uVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  uint local_40;
  uint local_30;
  int local_28;
  
  uVar1 = *param_3;
  if (param_3[uVar1] == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("mod[mod[0]] != 0","sshbn.c",0x4c1,"modmul");
  }
  puVar2 = (uint *)FUN_0001db90(uVar1,4);
  uVar3 = 0;
  if (0 < (int)uVar1) {
    do {
      puVar2[uVar3] = param_3[*param_3 - uVar3];
      uVar3 = uVar3 + 1;
    } while (uVar1 != uVar3);
  }
  local_30 = *param_1;
  if (*param_1 <= *param_2) {
    local_30 = *param_2;
  }
  local_40 = local_30 * 2;
  if ((int)local_40 <= (int)uVar1) {
    local_30 = (int)uVar1 / 2 + 1;
    local_40 = local_30 * 2;
  }
  __s = (void *)FUN_0001db90(local_30,4);
  uVar3 = *param_1;
  iVar7 = local_30 - uVar3;
  if (0 < iVar7) {
    memset(__s,0,iVar7 * 4);
    uVar3 = *param_1;
  }
  iVar8 = 0;
  if (0 < (int)uVar3) {
    do {
      *(uint *)((int)__s + iVar8 * 4 + iVar7 * 4) = param_1[uVar3 - iVar8];
      uVar3 = *param_1;
      iVar8 = iVar8 + 1;
    } while (iVar8 < (int)uVar3);
  }
  __s_00 = (void *)FUN_0001db90(local_30,4);
  uVar3 = *param_2;
  iVar7 = local_30 - uVar3;
  if (0 < iVar7) {
    memset(__s_00,0,iVar7 * 4);
    uVar3 = *param_2;
  }
  iVar8 = 0;
  if (0 < (int)uVar3) {
    do {
      *(uint *)((int)__s_00 + iVar8 * 4 + iVar7 * 4) = param_2[uVar3 - iVar8];
      uVar3 = *param_2;
      iVar8 = iVar8 + 1;
    } while (iVar8 < (int)uVar3);
  }
  iVar7 = FUN_0001db90(local_40,4);
  local_28 = 0;
  uVar3 = local_30;
  if ((int)local_30 < 0x33) {
    local_28 = 0;
  }
  else {
    do {
      uVar3 = (uVar3 - ((int)uVar3 >> 1)) + 1;
      local_28 = local_28 + uVar3 * 4;
    } while (0x32 < (int)uVar3);
  }
  uVar4 = FUN_0001db90(local_28,4);
  uVar3 = *puVar2;
  if (uVar3 >> 0x10 == 0) {
    uVar3 = uVar3 << 0x10;
    iVar8 = 0x10;
  }
  else {
    iVar8 = 0;
  }
  if (uVar3 >> 0x18 == 0) {
    uVar3 = uVar3 << 8;
    iVar8 = iVar8 + 8;
  }
  if (uVar3 >> 0x1c == 0) {
    uVar3 = uVar3 << 4;
    iVar8 = iVar8 + 4;
  }
  if (uVar3 >> 0x1e == 0) {
    iVar8 = iVar8 + 2;
    if ((uVar3 & 0x20000000) != 0) goto LAB_000560b9;
  }
  else if ((int)uVar3 < 0) goto LAB_000560b9;
  iVar8 = iVar8 + 1;
LAB_000560b9:
  uVar5 = FUN_00053910();
  FUN_00053bc0(local_30,uVar4);
  FUN_000543d0(uVar1,uVar5,iVar8);
  uVar3 = uVar1;
  if ((int)local_40 < (int)uVar1) {
    uVar3 = local_40;
  }
  if (0x3fffffe < uVar3) {
                    /* WARNING: Subroutine does not return */
    FUN_00053b90();
  }
  __s_01 = (uint *)FUN_0001db90(uVar3 + 1,4);
  memset(__s_01,0,(uVar3 + 1) * 4);
  *__s_01 = uVar3;
  if (uVar3 != 0) {
    __s_01[uVar3] = *(uint *)(iVar7 + (local_40 - uVar3) * 4);
    if (uVar3 != 1) {
      uVar6 = 1;
      do {
        iVar8 = uVar6 * 4;
        iVar9 = *__s_01 - uVar6;
        uVar6 = uVar6 + 1;
        __s_01[iVar9] = *(uint *)(iVar7 + (local_40 - uVar3) * 4 + iVar8);
      } while (uVar3 != uVar6);
    }
    uVar3 = *__s_01;
    if (1 < uVar3) {
      uVar6 = __s_01[uVar3];
      while (uVar6 == 0) {
        uVar3 = uVar3 - 1;
        *__s_01 = uVar3;
        if (uVar3 == 1) break;
        uVar6 = __s_01[uVar3];
      }
    }
  }
  FUN_0001de10(uVar4,local_28 << 2);
  FUN_0001dd30(uVar4);
  FUN_0001de10(iVar7,local_30 * 8);
  FUN_0001dd30(iVar7);
  FUN_0001de10(puVar2,uVar1 * 4);
  FUN_0001dd30(puVar2);
  FUN_0001de10(__s,local_30 << 2);
  FUN_0001dd30(__s);
  FUN_0001de10(__s_00,local_30 << 2);
  FUN_0001dd30(__s_00);
  return __s_01;
}

