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

void __gmpf_sqrt_ui(mpf_ptr r,ulong u)

{
  uint size;
  int iVar1;
  void *pvVar2;
  int iVar3;
  int iVar4;
  undefined1 *puVar5;
  int in_GS_OFFSET;
  undefined1 auStack_3c [4];
  int local_38;
  int local_34;
  int local_30 [3];
  tmp_reentrant_t *__tmp_marker;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x21d9b;
  puVar5 = auStack_3c;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (u < 2) {
    r->_mp_exp = u;
    r->_mp_size = u;
    *r->_mp_d = u;
  }
  else {
    __tmp_marker = (tmp_reentrant_t *)0x0;
    iVar3 = r->_mp_prec * 2;
    iVar4 = iVar3 + -2;
    local_30[0] = r->_mp_prec;
    iVar3 = iVar3 + -1;
    size = iVar3 * 4;
    if (size < 0x7f01) {
      iVar1 = -(size + 0x1b & 0xfffffff0);
      puVar5 = auStack_3c + iVar1;
      pvVar2 = (void *)((int)local_30 + iVar1);
    }
    else {
      local_38 = iVar3;
      local_34 = iVar4;
      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);
      puVar5 = auStack_3c;
      iVar3 = local_38;
      iVar4 = local_34;
    }
    if (iVar4 != 0) {
      local_38 = iVar3;
      *(int *)(puVar5 + -8) = iVar4 * 4;
      *(undefined4 *)(puVar5 + -0xc) = 0;
      *(void **)(puVar5 + -0x10) = pvVar2;
      local_34 = iVar4;
      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;
      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));
      iVar3 = local_38;
      iVar4 = local_34;
    }
    *(ulong *)((int)pvVar2 + iVar4 * 4) = u;
    *(int *)(puVar5 + -4) = iVar3;
    *(void **)(puVar5 + -8) = pvVar2;
    *(undefined4 *)(puVar5 + -0xc) = 0;
    *(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d;
    *(undefined4 *)(puVar5 + -0x14) = 0x21e06;
    __gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),
                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4));
    r->_mp_exp = 1;
    r->_mp_size = local_30[0];
    if (__tmp_marker != (tmp_reentrant_t *)0x0) {
      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;
      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;
      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined4 *)(puVar5 + -4) = 0x21eb8;
  __stack_chk_fail_local();
}



void __gmpf_sqrt_ui(void)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  int iVar5;
  int iVar6;
  undefined1 *puVar7;
  undefined1 *puVar8;
  int in_GS_OFFSET;
  uint uVar9;
  undefined1 auStack_40 [44];
  undefined4 uStack_14;
  
  puVar8 = &stack0xfffffffc;
  uStack_14 = 0x21d9b;
  entry();
  puVar7 = auStack_40;
  piVar1 = *(int **)(puVar8 + 8);
  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);
  if (*(uint *)(puVar8 + 0xc) < 2) {
    iVar5 = *(int *)(puVar8 + 0xc);
    uVar3 = *(undefined4 *)(puVar8 + 0xc);
    piVar1[2] = iVar5;
    piVar1[1] = iVar5;
    *(undefined4 *)piVar1[3] = uVar3;
  }
  else {
    iVar2 = *piVar1;
    *(undefined4 *)(puVar8 + -0x20) = 0;
    iVar5 = iVar2 * 2;
    iVar6 = iVar5 + -2;
    *(int *)(puVar8 + -0x2c) = iVar2;
    iVar5 = iVar5 + -1;
    uVar9 = iVar5 * 4;
    if (uVar9 < 0x7f01) {
      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);
      puVar7 = auStack_40 + iVar2;
      puVar4 = auStack_40 + iVar2;
    }
    else {
      *(int *)(puVar8 + -0x34) = iVar5;
      puVar4 = puVar8 + -0x20;
      *(int *)(puVar8 + -0x30) = iVar6;
      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);
      puVar7 = auStack_40;
      iVar5 = *(int *)(puVar8 + -0x34);
      iVar6 = *(int *)(puVar8 + -0x30);
    }
    if (iVar6 != 0) {
      *(int *)(puVar8 + -0x34) = iVar5;
      *(int *)(puVar7 + -8) = iVar6 * 4;
      *(undefined4 *)(puVar7 + -0xc) = 0;
      *(undefined1 **)(puVar7 + -0x10) = puVar4;
      *(int *)(puVar8 + -0x30) = iVar6;
      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;
      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));
      iVar5 = *(int *)(puVar8 + -0x34);
      iVar6 = *(int *)(puVar8 + -0x30);
    }
    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);
    *(int *)(puVar7 + -4) = iVar5;
    *(undefined1 **)(puVar7 + -8) = puVar4;
    *(undefined4 *)(puVar7 + -0xc) = 0;
    *(int *)(puVar7 + -0x10) = piVar1[3];
    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;
    __gmpn_sqrtrem();
    iVar5 = *(int *)(puVar8 + -0x2c);
    piVar1[2] = 1;
    piVar1[1] = iVar5;
    if (*(int *)(puVar8 + -0x20) != 0) {
      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);
      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;
      __gmp_tmp_reentrant_free();
    }
  }
  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined4 *)(puVar7 + -4) = 0x21eb8;
  FUN_0007ebe0();
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x7c265
SUB ESP,0x2c
MOV ESI,dword ptr [EBP + 0x8]
MOV EAX,GS:[0x14]
MOV dword ptr [EBP + -0x1c],EAX
XOR EAX,EAX
CMP dword ptr [EBP + 0xc],0x1
JBE 0x00021e60
MOV EAX,dword ptr [ESI]
MOV dword ptr [EBP + -0x20],0x0
LEA EDX,[EAX + EAX*0x1 + -0x2]
MOV dword ptr [EBP + -0x2c],EAX
LEA ECX,[EDX + 0x1]
LEA EAX,[ECX*0x4 + 0x0]
CMP EAX,0x7f00
JA 0x00021e90
ADD EAX,0x1b
AND EAX,0xfffffff0
SUB ESP,EAX
LEA EDI,[ESP + 0xf]
AND EDI,0xfffffff0
TEST EDX,EDX
JNZ 0x00021e38
MOV EAX,dword ptr [EBP + 0xc]
MOV dword ptr [EDI + EDX*0x4],EAX
PUSH ECX
PUSH EDI
PUSH 0x0
PUSH dword ptr [ESI + 0xc]
CALL 0x0001c220
MOV EAX,dword ptr [EBP + -0x2c]
MOV dword ptr [ESI + 0x8],0x1
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EBP + -0x20]
TEST EAX,EAX
JNZ 0x00021e78
MOV EAX,dword ptr [EBP + -0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00021eb3
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EDX*0x4 + 0x0]
MOV dword ptr [EBP + -0x34],ECX
PUSH EAX
PUSH 0x0
PUSH EDI
MOV dword ptr [EBP + -0x30],EDX
CALL 0x0001bb20
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x34]
MOV EDX,dword ptr [EBP + -0x30]
JMP 0x00021df4
MOV EAX,dword ptr [EBP + 0xc]
MOV ECX,dword ptr [EBP + 0xc]
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [EAX],ECX
JMP 0x00021e1d
SUB ESP,0xc
PUSH EAX
CALL 0x0001b050
ADD ESP,0x10
JMP 0x00021e1d
SUB ESP,0x8
MOV dword ptr [EBP + -0x34],ECX
PUSH EAX
LEA EAX,[EBP + -0x20]
PUSH EAX
MOV dword ptr [EBP + -0x30],EDX
CALL 0x0001bb00
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x34]
MOV EDX,dword ptr [EBP + -0x30]
MOV EDI,EAX
JMP 0x00021df0
CALL 0x0007ebe0
(translation_unit "void __gmpf_sqrt_ui(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  uint uVar9;\n  undefined1 auStack_40 [44];\n  undefined4 uStack_14;\n  \n  puVar8 = &stack0xfffffffc;\n  uStack_14 = 0x21d9b;\n  entry();\n  puVar7 = auStack_40;\n  piVar1 = *(int **)(puVar8 + 8);\n  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }\n  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar7 + -4) = 0x21eb8;\n  FUN_0007ebe0();\n}\n\n" (function_definition "void __gmpf_sqrt_ui(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  uint uVar9;\n  undefined1 auStack_40 [44];\n  undefined4 uStack_14;\n  \n  puVar8 = &stack0xfffffffc;\n  uStack_14 = 0x21d9b;\n  entry();\n  puVar7 = auStack_40;\n  piVar1 = *(int **)(puVar8 + 8);\n  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }\n  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar7 + -4) = 0x21eb8;\n  FUN_0007ebe0();\n}" primitive_type (function_declarator "__gmpf_sqrt_ui(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  uint uVar9;\n  undefined1 auStack_40 [44];\n  undefined4 uStack_14;\n  \n  puVar8 = &stack0xfffffffc;\n  uStack_14 = 0x21d9b;\n  entry();\n  puVar7 = auStack_40;\n  piVar1 = *(int **)(puVar8 + 8);\n  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }\n  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar7 + -4) = 0x21eb8;\n  FUN_0007ebe0();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined1 auStack_40 [44];" type_identifier (array_declarator "auStack_40 [44]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar8 = &stack0xfffffffc;" (assignment_expression "puVar8 = &stack0xfffffffc" identifier = (pointer_expression "&stack0xfffffffc" & identifier)) ;) (expression_statement "uStack_14 = 0x21d9b;" (assignment_expression "uStack_14 = 0x21d9b" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar7 = auStack_40;" (assignment_expression "puVar7 = auStack_40" identifier = identifier) ;) (expression_statement "piVar1 = *(int **)(puVar8 + 8);" (assignment_expression "piVar1 = *(int **)(puVar8 + 8)" identifier = (pointer_expression "*(int **)(puVar8 + 8)" * (cast_expression "(int **)(puVar8 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 8)" ( (binary_expression "puVar8 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "*(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(undefined4 *)(puVar8 + -0x1c)" * (cast_expression "(undefined4 *)(puVar8 + -0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x1c)" ( (binary_expression "puVar8 + -0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" if (parenthesized_expression "(*(uint *)(puVar8 + 0xc) < 2)" ( (binary_expression "*(uint *)(puVar8 + 0xc) < 2" (pointer_expression "*(uint *)(puVar8 + 0xc)" * (cast_expression "(uint *)(puVar8 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xc)" ( (binary_expression "puVar8 + 0xc" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }" { (expression_statement "iVar5 = *(int *)(puVar8 + 0xc);" (assignment_expression "iVar5 = *(int *)(puVar8 + 0xc)" identifier = (pointer_expression "*(int *)(puVar8 + 0xc)" * (cast_expression "(int *)(puVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xc)" ( (binary_expression "puVar8 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(puVar8 + 0xc);" (assignment_expression "uVar3 = *(undefined4 *)(puVar8 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(puVar8 + 0xc)" * (cast_expression "(undefined4 *)(puVar8 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xc)" ( (binary_expression "puVar8 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar1[2] = iVar5;" (assignment_expression "piVar1[2] = iVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[1] = iVar5;" (assignment_expression "piVar1[1] = iVar5" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)piVar1[3] = uVar3;" (assignment_expression "*(undefined4 *)piVar1[3] = uVar3" (pointer_expression "*(undefined4 *)piVar1[3]" * (cast_expression "(undefined4 *)piVar1[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) = identifier) ;) }) (else_clause "else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" else (compound_statement "{\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" { (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x20) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + -0x20) = 0" (pointer_expression "*(undefined4 *)(puVar8 + -0x20)" * (cast_expression "(undefined4 *)(puVar8 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x20)" ( (binary_expression "puVar8 + -0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar5 = iVar2 * 2;" (assignment_expression "iVar5 = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "iVar6 = iVar5 + -2;" (assignment_expression "iVar6 = iVar5 + -2" identifier = (binary_expression "iVar5 + -2" identifier + number_literal)) ;) (expression_statement "*(int *)(puVar8 + -0x2c) = iVar2;" (assignment_expression "*(int *)(puVar8 + -0x2c) = iVar2" (pointer_expression "*(int *)(puVar8 + -0x2c)" * (cast_expression "(int *)(puVar8 + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x2c)" ( (binary_expression "puVar8 + -0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "uVar9 = iVar5 * 4;" (assignment_expression "uVar9 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (if_statement "if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" if (parenthesized_expression "(uVar9 < 0x7f01)" ( (binary_expression "uVar9 < 0x7f01" identifier < number_literal) )) (compound_statement "{\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }" { (expression_statement "iVar2 = -(uVar9 + 0x1b & 0xfffffff0);" (assignment_expression "iVar2 = -(uVar9 + 0x1b & 0xfffffff0)" identifier = (unary_expression "-(uVar9 + 0x1b & 0xfffffff0)" - (parenthesized_expression "(uVar9 + 0x1b & 0xfffffff0)" ( (binary_expression "uVar9 + 0x1b & 0xfffffff0" (binary_expression "uVar9 + 0x1b" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar7 = auStack_40 + iVar2;" (assignment_expression "puVar7 = auStack_40 + iVar2" identifier = (binary_expression "auStack_40 + iVar2" identifier + identifier)) ;) (expression_statement "puVar4 = auStack_40 + iVar2;" (assignment_expression "puVar4 = auStack_40 + iVar2" identifier = (binary_expression "auStack_40 + iVar2" identifier + identifier)) ;) }) (else_clause "else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" else (compound_statement "{\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" { (expression_statement "*(int *)(puVar8 + -0x34) = iVar5;" (assignment_expression "*(int *)(puVar8 + -0x34) = iVar5" (pointer_expression "*(int *)(puVar8 + -0x34)" * (cast_expression "(int *)(puVar8 + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x34)" ( (binary_expression "puVar8 + -0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = puVar8 + -0x20;" (assignment_expression "puVar4 = puVar8 + -0x20" identifier = (binary_expression "puVar8 + -0x20" identifier + number_literal)) ;) (expression_statement "*(int *)(puVar8 + -0x30) = iVar6;" (assignment_expression "*(int *)(puVar8 + -0x30) = iVar6" (pointer_expression "*(int *)(puVar8 + -0x30)" * (cast_expression "(int *)(puVar8 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x30)" ( (binary_expression "puVar8 + -0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);" (assignment_expression "puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9)" identifier = (cast_expression "(undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__gmp_tmp_reentrant_alloc(puVar4,uVar9)" identifier (argument_list "(puVar4,uVar9)" ( identifier , identifier ))))) ;) (expression_statement "puVar7 = auStack_40;" (assignment_expression "puVar7 = auStack_40" identifier = identifier) ;) (expression_statement "iVar5 = *(int *)(puVar8 + -0x34);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x34)" identifier = (pointer_expression "*(int *)(puVar8 + -0x34)" * (cast_expression "(int *)(puVar8 + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x34)" ( (binary_expression "puVar8 + -0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(puVar8 + -0x30);" (assignment_expression "iVar6 = *(int *)(puVar8 + -0x30)" identifier = (pointer_expression "*(int *)(puVar8 + -0x30)" * (cast_expression "(int *)(puVar8 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x30)" ( (binary_expression "puVar8 + -0x30" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" { (expression_statement "*(int *)(puVar8 + -0x34) = iVar5;" (assignment_expression "*(int *)(puVar8 + -0x34) = iVar5" (pointer_expression "*(int *)(puVar8 + -0x34)" * (cast_expression "(int *)(puVar8 + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x34)" ( (binary_expression "puVar8 + -0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar7 + -8) = iVar6 * 4;" (assignment_expression "*(int *)(puVar7 + -8) = iVar6 * 4" (pointer_expression "*(int *)(puVar7 + -8)" * (cast_expression "(int *)(puVar7 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -8)" ( (binary_expression "puVar7 + -8" identifier + number_literal) )))) = (binary_expression "iVar6 * 4" identifier * number_literal)) ;) (expression_statement "*(undefined4 *)(puVar7 + -0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -0xc) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -0xc)" * (cast_expression "(undefined4 *)(puVar7 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 **)(puVar7 + -0x10) = puVar4;" (assignment_expression "*(undefined1 **)(puVar7 + -0x10) = puVar4" (pointer_expression "*(undefined1 **)(puVar7 + -0x10)" * (cast_expression "(undefined1 **)(puVar7 + -0x10)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x10)" ( (binary_expression "puVar7 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar8 + -0x30) = iVar6;" (assignment_expression "*(int *)(puVar8 + -0x30) = iVar6" (pointer_expression "*(int *)(puVar8 + -0x30)" * (cast_expression "(int *)(puVar8 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x30)" ( (binary_expression "puVar8 + -0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e51;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e51" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" * (cast_expression "(undefined4 *)(puVar7 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x14)" ( (binary_expression "puVar7 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));" (call_expression "memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8))" identifier (argument_list "(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8))" ( (pointer_expression "*(void **)(puVar7 + -0x10)" * (cast_expression "(void **)(puVar7 + -0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x10)" ( (binary_expression "puVar7 + -0x10" identifier + number_literal) )))) , (pointer_expression "*(int *)(puVar7 + -0xc)" * (cast_expression "(int *)(puVar7 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) , (pointer_expression "*(size_t *)(puVar7 + -8)" * (cast_expression "(size_t *)(puVar7 + -8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -8)" ( (binary_expression "puVar7 + -8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar5 = *(int *)(puVar8 + -0x34);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x34)" identifier = (pointer_expression "*(int *)(puVar8 + -0x34)" * (cast_expression "(int *)(puVar8 + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x34)" ( (binary_expression "puVar8 + -0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(puVar8 + -0x30);" (assignment_expression "iVar6 = *(int *)(puVar8 + -0x30)" identifier = (pointer_expression "*(int *)(puVar8 + -0x30)" * (cast_expression "(int *)(puVar8 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x30)" ( (binary_expression "puVar8 + -0x30" identifier + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);" (assignment_expression "*(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc)" (pointer_expression "*(undefined4 *)(puVar4 + iVar6 * 4)" * (cast_expression "(undefined4 *)(puVar4 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + iVar6 * 4)" ( (binary_expression "puVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(puVar8 + 0xc)" * (cast_expression "(undefined4 *)(puVar8 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xc)" ( (binary_expression "puVar8 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(puVar7 + -4) = iVar5;" (assignment_expression "*(int *)(puVar7 + -4) = iVar5" (pointer_expression "*(int *)(puVar7 + -4)" * (cast_expression "(int *)(puVar7 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -4)" ( (binary_expression "puVar7 + -4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 **)(puVar7 + -8) = puVar4;" (assignment_expression "*(undefined1 **)(puVar7 + -8) = puVar4" (pointer_expression "*(undefined1 **)(puVar7 + -8)" * (cast_expression "(undefined1 **)(puVar7 + -8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -8)" ( (binary_expression "puVar7 + -8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar7 + -0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -0xc) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -0xc)" * (cast_expression "(undefined4 *)(puVar7 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(puVar7 + -0x10) = piVar1[3];" (assignment_expression "*(int *)(puVar7 + -0x10) = piVar1[3]" (pointer_expression "*(int *)(puVar7 + -0x10)" * (cast_expression "(int *)(puVar7 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x10)" ( (binary_expression "puVar7 + -0x10" identifier + number_literal) )))) = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e06;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e06" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" * (cast_expression "(undefined4 *)(puVar7 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x14)" ( (binary_expression "puVar7 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpn_sqrtrem();" (call_expression "__gmpn_sqrtrem()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(puVar8 + -0x2c);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x2c)" identifier = (pointer_expression "*(int *)(puVar8 + -0x2c)" * (cast_expression "(int *)(puVar8 + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x2c)" ( (binary_expression "puVar8 + -0x2c" identifier + number_literal) ))))) ;) (expression_statement "piVar1[2] = 1;" (assignment_expression "piVar1[2] = 1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[1] = iVar5;" (assignment_expression "piVar1[1] = iVar5" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }" if (parenthesized_expression "(*(int *)(puVar8 + -0x20) != 0)" ( (binary_expression "*(int *)(puVar8 + -0x20) != 0" (pointer_expression "*(int *)(puVar8 + -0x20)" * (cast_expression "(int *)(puVar8 + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x20)" ( (binary_expression "puVar8 + -0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }" { (expression_statement "*(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);" (assignment_expression "*(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20)" (pointer_expression "*(int *)(puVar7 + -0x10)" * (cast_expression "(int *)(puVar7 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x10)" ( (binary_expression "puVar7 + -0x10" identifier + number_literal) )))) = (pointer_expression "*(int *)(puVar8 + -0x20)" * (cast_expression "(int *)(puVar8 + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x20)" ( (binary_expression "puVar8 + -0x20" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e81;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e81" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" * (cast_expression "(undefined4 *)(puVar7 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x14)" ( (binary_expression "puVar7 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmp_tmp_reentrant_free();" (call_expression "__gmp_tmp_reentrant_free()" identifier (argument_list "()" ( ))) ;) })) }))) (if_statement "if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar8 + -0x1c)" * (cast_expression "(int *)(puVar8 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x1c)" ( (binary_expression "puVar8 + -0x1c" identifier + number_literal) )))) == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "*(undefined4 *)(puVar7 + -4) = 0x21eb8;" (assignment_expression "*(undefined4 *)(puVar7 + -4) = 0x21eb8" (pointer_expression "*(undefined4 *)(puVar7 + -4)" * (cast_expression "(undefined4 *)(puVar7 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -4)" ( (binary_expression "puVar7 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0007ebe0();" (call_expression "FUN_0007ebe0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid __gmpf_sqrt_ui(mpf_ptr r,ulong u)\n\n{\n  uint size;\n  int iVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 auStack_3c [4];\n  int local_38;\n  int local_34;\n  int local_30 [3];\n  tmp_reentrant_t *__tmp_marker;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21d9b;\n  puVar5 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (u < 2) {\n    r->_mp_exp = u;\n    r->_mp_size = u;\n    *r->_mp_d = u;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    iVar3 = r->_mp_prec * 2;\n    iVar4 = iVar3 + -2;\n    local_30[0] = r->_mp_prec;\n    iVar3 = iVar3 + -1;\n    size = iVar3 * 4;\n    if (size < 0x7f01) {\n      iVar1 = -(size + 0x1b & 0xfffffff0);\n      puVar5 = auStack_3c + iVar1;\n      pvVar2 = (void *)((int)local_30 + iVar1);\n    }\n    else {\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    if (iVar4 != 0) {\n      local_38 = iVar3;\n      *(int *)(puVar5 + -8) = iVar4 * 4;\n      *(undefined4 *)(puVar5 + -0xc) = 0;\n      *(void **)(puVar5 + -0x10) = pvVar2;\n      local_34 = iVar4;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    *(ulong *)((int)pvVar2 + iVar4 * 4) = u;\n    *(int *)(puVar5 + -4) = iVar3;\n    *(void **)(puVar5 + -8) = pvVar2;\n    *(undefined4 *)(puVar5 + -0xc) = 0;\n    *(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d;\n    *(undefined4 *)(puVar5 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4));\n    r->_mp_exp = 1;\n    r->_mp_size = local_30[0];\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar5 + -4) = 0x21eb8;\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void __gmpf_sqrt_ui(mpf_ptr r,ulong u)\n\n{\n  uint size;\n  int iVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 auStack_3c [4];\n  int local_38;\n  int local_34;\n  int local_30 [3];\n  tmp_reentrant_t *__tmp_marker;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21d9b;\n  puVar5 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (u < 2) {\n    r->_mp_exp = u;\n    r->_mp_size = u;\n    *r->_mp_d = u;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    iVar3 = r->_mp_prec * 2;\n    iVar4 = iVar3 + -2;\n    local_30[0] = r->_mp_prec;\n    iVar3 = iVar3 + -1;\n    size = iVar3 * 4;\n    if (size < 0x7f01) {\n      iVar1 = -(size + 0x1b & 0xfffffff0);\n      puVar5 = auStack_3c + iVar1;\n      pvVar2 = (void *)((int)local_30 + iVar1);\n    }\n    else {\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    if (iVar4 != 0) {\n      local_38 = iVar3;\n      *(int *)(puVar5 + -8) = iVar4 * 4;\n      *(undefined4 *)(puVar5 + -0xc) = 0;\n      *(void **)(puVar5 + -0x10) = pvVar2;\n      local_34 = iVar4;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    *(ulong *)((int)pvVar2 + iVar4 * 4) = u;\n    *(int *)(puVar5 + -4) = iVar3;\n    *(void **)(puVar5 + -8) = pvVar2;\n    *(undefined4 *)(puVar5 + -0xc) = 0;\n    *(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d;\n    *(undefined4 *)(puVar5 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4));\n    r->_mp_exp = 1;\n    r->_mp_size = local_30[0];\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar5 + -4) = 0x21eb8;\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "__gmpf_sqrt_ui(mpf_ptr r,ulong u)" identifier (parameter_list "(mpf_ptr r,ulong u)" ( (parameter_declaration "mpf_ptr r" type_identifier identifier) , (parameter_declaration "ulong u" type_identifier identifier) ))) (compound_statement "{\n  uint size;\n  int iVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  int in_GS_OFFSET;\n  undefined1 auStack_3c [4];\n  int local_38;\n  int local_34;\n  int local_30 [3];\n  tmp_reentrant_t *__tmp_marker;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x21d9b;\n  puVar5 = auStack_3c;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (u < 2) {\n    r->_mp_exp = u;\n    r->_mp_size = u;\n    *r->_mp_d = u;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    iVar3 = r->_mp_prec * 2;\n    iVar4 = iVar3 + -2;\n    local_30[0] = r->_mp_prec;\n    iVar3 = iVar3 + -1;\n    size = iVar3 * 4;\n    if (size < 0x7f01) {\n      iVar1 = -(size + 0x1b & 0xfffffff0);\n      puVar5 = auStack_3c + iVar1;\n      pvVar2 = (void *)((int)local_30 + iVar1);\n    }\n    else {\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    if (iVar4 != 0) {\n      local_38 = iVar3;\n      *(int *)(puVar5 + -8) = iVar4 * 4;\n      *(undefined4 *)(puVar5 + -0xc) = 0;\n      *(void **)(puVar5 + -0x10) = pvVar2;\n      local_34 = iVar4;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    *(ulong *)((int)pvVar2 + iVar4 * 4) = u;\n    *(int *)(puVar5 + -4) = iVar3;\n    *(void **)(puVar5 + -8) = pvVar2;\n    *(undefined4 *)(puVar5 + -0xc) = 0;\n    *(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d;\n    *(undefined4 *)(puVar5 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4));\n    r->_mp_exp = 1;\n    r->_mp_size = local_30[0];\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar5 + -4) = 0x21eb8;\n  __stack_chk_fail_local();\n}" { (declaration "uint size;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 auStack_3c [4];" type_identifier (array_declarator "auStack_3c [4]" identifier [ number_literal ]) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30 [3];" primitive_type (array_declarator "local_30 [3]" identifier [ number_literal ]) ;) (declaration "tmp_reentrant_t *__tmp_marker;" type_identifier (pointer_declarator "*__tmp_marker" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x21d9b;" (assignment_expression "uStack_14 = 0x21d9b" identifier = number_literal) ;) (expression_statement "puVar5 = auStack_3c;" (assignment_expression "puVar5 = auStack_3c" identifier = identifier) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (u < 2) {\n    r->_mp_exp = u;\n    r->_mp_size = u;\n    *r->_mp_d = u;\n  }\n  else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    iVar3 = r->_mp_prec * 2;\n    iVar4 = iVar3 + -2;\n    local_30[0] = r->_mp_prec;\n    iVar3 = iVar3 + -1;\n    size = iVar3 * 4;\n    if (size < 0x7f01) {\n      iVar1 = -(size + 0x1b & 0xfffffff0);\n      puVar5 = auStack_3c + iVar1;\n      pvVar2 = (void *)((int)local_30 + iVar1);\n    }\n    else {\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    if (iVar4 != 0) {\n      local_38 = iVar3;\n      *(int *)(puVar5 + -8) = iVar4 * 4;\n      *(undefined4 *)(puVar5 + -0xc) = 0;\n      *(void **)(puVar5 + -0x10) = pvVar2;\n      local_34 = iVar4;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    *(ulong *)((int)pvVar2 + iVar4 * 4) = u;\n    *(int *)(puVar5 + -4) = iVar3;\n    *(void **)(puVar5 + -8) = pvVar2;\n    *(undefined4 *)(puVar5 + -0xc) = 0;\n    *(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d;\n    *(undefined4 *)(puVar5 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4));\n    r->_mp_exp = 1;\n    r->_mp_size = local_30[0];\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));\n    }\n  }" if (parenthesized_expression "(u < 2)" ( (binary_expression "u < 2" identifier < number_literal) )) (compound_statement "{\n    r->_mp_exp = u;\n    r->_mp_size = u;\n    *r->_mp_d = u;\n  }" { (expression_statement "r->_mp_exp = u;" (assignment_expression "r->_mp_exp = u" (field_expression "r->_mp_exp" identifier -> field_identifier) = identifier) ;) (expression_statement "r->_mp_size = u;" (assignment_expression "r->_mp_size = u" (field_expression "r->_mp_size" identifier -> field_identifier) = identifier) ;) (expression_statement "*r->_mp_d = u;" (assignment_expression "*r->_mp_d = u" (pointer_expression "*r->_mp_d" * (field_expression "r->_mp_d" identifier -> field_identifier)) = identifier) ;) }) (else_clause "else {\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    iVar3 = r->_mp_prec * 2;\n    iVar4 = iVar3 + -2;\n    local_30[0] = r->_mp_prec;\n    iVar3 = iVar3 + -1;\n    size = iVar3 * 4;\n    if (size < 0x7f01) {\n      iVar1 = -(size + 0x1b & 0xfffffff0);\n      puVar5 = auStack_3c + iVar1;\n      pvVar2 = (void *)((int)local_30 + iVar1);\n    }\n    else {\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    if (iVar4 != 0) {\n      local_38 = iVar3;\n      *(int *)(puVar5 + -8) = iVar4 * 4;\n      *(undefined4 *)(puVar5 + -0xc) = 0;\n      *(void **)(puVar5 + -0x10) = pvVar2;\n      local_34 = iVar4;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    *(ulong *)((int)pvVar2 + iVar4 * 4) = u;\n    *(int *)(puVar5 + -4) = iVar3;\n    *(void **)(puVar5 + -8) = pvVar2;\n    *(undefined4 *)(puVar5 + -0xc) = 0;\n    *(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d;\n    *(undefined4 *)(puVar5 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4));\n    r->_mp_exp = 1;\n    r->_mp_size = local_30[0];\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));\n    }\n  }" else (compound_statement "{\n    __tmp_marker = (tmp_reentrant_t *)0x0;\n    iVar3 = r->_mp_prec * 2;\n    iVar4 = iVar3 + -2;\n    local_30[0] = r->_mp_prec;\n    iVar3 = iVar3 + -1;\n    size = iVar3 * 4;\n    if (size < 0x7f01) {\n      iVar1 = -(size + 0x1b & 0xfffffff0);\n      puVar5 = auStack_3c + iVar1;\n      pvVar2 = (void *)((int)local_30 + iVar1);\n    }\n    else {\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    if (iVar4 != 0) {\n      local_38 = iVar3;\n      *(int *)(puVar5 + -8) = iVar4 * 4;\n      *(undefined4 *)(puVar5 + -0xc) = 0;\n      *(void **)(puVar5 + -0x10) = pvVar2;\n      local_34 = iVar4;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }\n    *(ulong *)((int)pvVar2 + iVar4 * 4) = u;\n    *(int *)(puVar5 + -4) = iVar3;\n    *(void **)(puVar5 + -8) = pvVar2;\n    *(undefined4 *)(puVar5 + -0xc) = 0;\n    *(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d;\n    *(undefined4 *)(puVar5 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4));\n    r->_mp_exp = 1;\n    r->_mp_size = local_30[0];\n    if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));\n    }\n  }" { (expression_statement "__tmp_marker = (tmp_reentrant_t *)0x0;" (assignment_expression "__tmp_marker = (tmp_reentrant_t *)0x0" identifier = (cast_expression "(tmp_reentrant_t *)0x0" ( (type_descriptor "tmp_reentrant_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar3 = r->_mp_prec * 2;" (assignment_expression "iVar3 = r->_mp_prec * 2" identifier = (binary_expression "r->_mp_prec * 2" (field_expression "r->_mp_prec" identifier -> field_identifier) * number_literal)) ;) (expression_statement "iVar4 = iVar3 + -2;" (assignment_expression "iVar4 = iVar3 + -2" identifier = (binary_expression "iVar3 + -2" identifier + number_literal)) ;) (expression_statement "local_30[0] = r->_mp_prec;" (assignment_expression "local_30[0] = r->_mp_prec" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (field_expression "r->_mp_prec" identifier -> field_identifier)) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "size = iVar3 * 4;" (assignment_expression "size = iVar3 * 4" identifier = (binary_expression "iVar3 * 4" identifier * number_literal)) ;) (if_statement "if (size < 0x7f01) {\n      iVar1 = -(size + 0x1b & 0xfffffff0);\n      puVar5 = auStack_3c + iVar1;\n      pvVar2 = (void *)((int)local_30 + iVar1);\n    }\n    else {\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }" if (parenthesized_expression "(size < 0x7f01)" ( (binary_expression "size < 0x7f01" identifier < number_literal) )) (compound_statement "{\n      iVar1 = -(size + 0x1b & 0xfffffff0);\n      puVar5 = auStack_3c + iVar1;\n      pvVar2 = (void *)((int)local_30 + iVar1);\n    }" { (expression_statement "iVar1 = -(size + 0x1b & 0xfffffff0);" (assignment_expression "iVar1 = -(size + 0x1b & 0xfffffff0)" identifier = (unary_expression "-(size + 0x1b & 0xfffffff0)" - (parenthesized_expression "(size + 0x1b & 0xfffffff0)" ( (binary_expression "size + 0x1b & 0xfffffff0" (binary_expression "size + 0x1b" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar5 = auStack_3c + iVar1;" (assignment_expression "puVar5 = auStack_3c + iVar1" identifier = (binary_expression "auStack_3c + iVar1" identifier + identifier)) ;) (expression_statement "pvVar2 = (void *)((int)local_30 + iVar1);" (assignment_expression "pvVar2 = (void *)((int)local_30 + iVar1)" identifier = (cast_expression "(void *)((int)local_30 + iVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_30 + iVar1)" ( (binary_expression "(int)local_30 + iVar1" (cast_expression "(int)local_30" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) }) (else_clause "else {\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }" else (compound_statement "{\n      local_38 = iVar3;\n      local_34 = iVar4;\n      pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      puVar5 = auStack_3c;\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }" { (expression_statement "local_38 = iVar3;" (assignment_expression "local_38 = iVar3" identifier = identifier) ;) (expression_statement "local_34 = iVar4;" (assignment_expression "local_34 = iVar4" identifier = identifier) ;) (expression_statement "pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size);" (assignment_expression "pvVar2 = __gmp_tmp_reentrant_alloc(&__tmp_marker,size)" identifier = (call_expression "__gmp_tmp_reentrant_alloc(&__tmp_marker,size)" identifier (argument_list "(&__tmp_marker,size)" ( (pointer_expression "&__tmp_marker" & identifier) , identifier )))) ;) (expression_statement "puVar5 = auStack_3c;" (assignment_expression "puVar5 = auStack_3c" identifier = identifier) ;) (expression_statement "iVar3 = local_38;" (assignment_expression "iVar3 = local_38" identifier = identifier) ;) (expression_statement "iVar4 = local_34;" (assignment_expression "iVar4 = local_34" identifier = identifier) ;) }))) (if_statement "if (iVar4 != 0) {\n      local_38 = iVar3;\n      *(int *)(puVar5 + -8) = iVar4 * 4;\n      *(undefined4 *)(puVar5 + -0xc) = 0;\n      *(void **)(puVar5 + -0x10) = pvVar2;\n      local_34 = iVar4;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      local_38 = iVar3;\n      *(int *)(puVar5 + -8) = iVar4 * 4;\n      *(undefined4 *)(puVar5 + -0xc) = 0;\n      *(void **)(puVar5 + -0x10) = pvVar2;\n      local_34 = iVar4;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));\n      iVar3 = local_38;\n      iVar4 = local_34;\n    }" { (expression_statement "local_38 = iVar3;" (assignment_expression "local_38 = iVar3" identifier = identifier) ;) (expression_statement "*(int *)(puVar5 + -8) = iVar4 * 4;" (assignment_expression "*(int *)(puVar5 + -8) = iVar4 * 4" (pointer_expression "*(int *)(puVar5 + -8)" * (cast_expression "(int *)(puVar5 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -8)" ( (binary_expression "puVar5 + -8" identifier + number_literal) )))) = (binary_expression "iVar4 * 4" identifier * number_literal)) ;) (expression_statement "*(undefined4 *)(puVar5 + -0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar5 + -0xc) = 0" (pointer_expression "*(undefined4 *)(puVar5 + -0xc)" * (cast_expression "(undefined4 *)(puVar5 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0xc)" ( (binary_expression "puVar5 + -0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(void **)(puVar5 + -0x10) = pvVar2;" (assignment_expression "*(void **)(puVar5 + -0x10) = pvVar2" (pointer_expression "*(void **)(puVar5 + -0x10)" * (cast_expression "(void **)(puVar5 + -0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_34 = iVar4;" (assignment_expression "local_34 = iVar4" identifier = identifier) ;) (expression_statement "*(undefined4 *)(puVar5 + -0x14) = 0x21e51;" (assignment_expression "*(undefined4 *)(puVar5 + -0x14) = 0x21e51" (pointer_expression "*(undefined4 *)(puVar5 + -0x14)" * (cast_expression "(undefined4 *)(puVar5 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x14)" ( (binary_expression "puVar5 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8));" (call_expression "memset(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8))" identifier (argument_list "(*(void **)(puVar5 + -0x10),*(int *)(puVar5 + -0xc),*(size_t *)(puVar5 + -8))" ( (pointer_expression "*(void **)(puVar5 + -0x10)" * (cast_expression "(void **)(puVar5 + -0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) , (pointer_expression "*(int *)(puVar5 + -0xc)" * (cast_expression "(int *)(puVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0xc)" ( (binary_expression "puVar5 + -0xc" identifier + number_literal) )))) , (pointer_expression "*(size_t *)(puVar5 + -8)" * (cast_expression "(size_t *)(puVar5 + -8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -8)" ( (binary_expression "puVar5 + -8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar3 = local_38;" (assignment_expression "iVar3 = local_38" identifier = identifier) ;) (expression_statement "iVar4 = local_34;" (assignment_expression "iVar4 = local_34" identifier = identifier) ;) })) (expression_statement "*(ulong *)((int)pvVar2 + iVar4 * 4) = u;" (assignment_expression "*(ulong *)((int)pvVar2 + iVar4 * 4) = u" (pointer_expression "*(ulong *)((int)pvVar2 + iVar4 * 4)" * (cast_expression "(ulong *)((int)pvVar2 + iVar4 * 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + iVar4 * 4)" ( (binary_expression "(int)pvVar2 + iVar4 * 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)(puVar5 + -4) = iVar3;" (assignment_expression "*(int *)(puVar5 + -4) = iVar3" (pointer_expression "*(int *)(puVar5 + -4)" * (cast_expression "(int *)(puVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -4)" ( (binary_expression "puVar5 + -4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(void **)(puVar5 + -8) = pvVar2;" (assignment_expression "*(void **)(puVar5 + -8) = pvVar2" (pointer_expression "*(void **)(puVar5 + -8)" * (cast_expression "(void **)(puVar5 + -8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -8)" ( (binary_expression "puVar5 + -8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar5 + -0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar5 + -0xc) = 0" (pointer_expression "*(undefined4 *)(puVar5 + -0xc)" * (cast_expression "(undefined4 *)(puVar5 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0xc)" ( (binary_expression "puVar5 + -0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d;" (assignment_expression "*(mp_limb_t **)(puVar5 + -0x10) = r->_mp_d" (pointer_expression "*(mp_limb_t **)(puVar5 + -0x10)" * (cast_expression "(mp_limb_t **)(puVar5 + -0x10)" ( (type_descriptor "mp_limb_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) = (field_expression "r->_mp_d" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)(puVar5 + -0x14) = 0x21e06;" (assignment_expression "*(undefined4 *)(puVar5 + -0x14) = 0x21e06" (pointer_expression "*(undefined4 *)(puVar5 + -0x14)" * (cast_expression "(undefined4 *)(puVar5 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x14)" ( (binary_expression "puVar5 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4));" (call_expression "__gmpn_sqrtrem(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4))" identifier (argument_list "(*(mp_ptr *)(puVar5 + -0x10),*(mp_ptr *)(puVar5 + -0xc),\n                   *(mp_srcptr *)(puVar5 + -8),*(mp_size_t *)(puVar5 + -4))" ( (pointer_expression "*(mp_ptr *)(puVar5 + -0x10)" * (cast_expression "(mp_ptr *)(puVar5 + -0x10)" ( (type_descriptor "mp_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) , (pointer_expression "*(mp_ptr *)(puVar5 + -0xc)" * (cast_expression "(mp_ptr *)(puVar5 + -0xc)" ( (type_descriptor "mp_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0xc)" ( (binary_expression "puVar5 + -0xc" identifier + number_literal) )))) , (pointer_expression "*(mp_srcptr *)(puVar5 + -8)" * (cast_expression "(mp_srcptr *)(puVar5 + -8)" ( (type_descriptor "mp_srcptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -8)" ( (binary_expression "puVar5 + -8" identifier + number_literal) )))) , (pointer_expression "*(mp_size_t *)(puVar5 + -4)" * (cast_expression "(mp_size_t *)(puVar5 + -4)" ( (type_descriptor "mp_size_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -4)" ( (binary_expression "puVar5 + -4" identifier + number_literal) )))) ))) ;) (expression_statement "r->_mp_exp = 1;" (assignment_expression "r->_mp_exp = 1" (field_expression "r->_mp_exp" identifier -> field_identifier) = number_literal) ;) (expression_statement "r->_mp_size = local_30[0];" (assignment_expression "r->_mp_size = local_30[0]" (field_expression "r->_mp_size" identifier -> field_identifier) = (subscript_expression "local_30[0]" identifier [ number_literal ])) ;) (if_statement "if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));\n    }" if (parenthesized_expression "(__tmp_marker != (tmp_reentrant_t *)0x0)" ( (binary_expression "__tmp_marker != (tmp_reentrant_t *)0x0" identifier != (cast_expression "(tmp_reentrant_t *)0x0" ( (type_descriptor "tmp_reentrant_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;\n      *(undefined4 *)(puVar5 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));\n    }" { (expression_statement "*(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker;" (assignment_expression "*(tmp_reentrant_t **)(puVar5 + -0x10) = __tmp_marker" (pointer_expression "*(tmp_reentrant_t **)(puVar5 + -0x10)" * (cast_expression "(tmp_reentrant_t **)(puVar5 + -0x10)" ( (type_descriptor "tmp_reentrant_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar5 + -0x14) = 0x21e81;" (assignment_expression "*(undefined4 *)(puVar5 + -0x14) = 0x21e81" (pointer_expression "*(undefined4 *)(puVar5 + -0x14)" * (cast_expression "(undefined4 *)(puVar5 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x14)" ( (binary_expression "puVar5 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10));" (call_expression "__gmp_tmp_reentrant_free(*(tmp_reentrant_t **)(puVar5 + -0x10))" identifier (argument_list "(*(tmp_reentrant_t **)(puVar5 + -0x10))" ( (pointer_expression "*(tmp_reentrant_t **)(puVar5 + -0x10)" * (cast_expression "(tmp_reentrant_t **)(puVar5 + -0x10)" ( (type_descriptor "tmp_reentrant_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) ))) ;) })) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "*(undefined4 *)(puVar5 + -4) = 0x21eb8;" (assignment_expression "*(undefined4 *)(puVar5 + -4) = 0x21eb8" (pointer_expression "*(undefined4 *)(puVar5 + -4)" * (cast_expression "(undefined4 *)(puVar5 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -4)" ( (binary_expression "puVar5 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __gmpf_sqrt_ui(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  uint uVar9;\n  undefined1 auStack_40 [44];\n  undefined4 uStack_14;\n  \n  puVar8 = &stack0xfffffffc;\n  uStack_14 = 0x21d9b;\n  entry();\n  puVar7 = auStack_40;\n  piVar1 = *(int **)(puVar8 + 8);\n  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }\n  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined4 *)(puVar7 + -4) = 0x21eb8;\n  FUN_0007ebe0();\n}\n\n" (function_definition "void __gmpf_sqrt_ui(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  uint uVar9;\n  undefined1 auStack_40 [44];\n  undefined4 uStack_14;\n  \n  puVar8 = &stack0xfffffffc;\n  uStack_14 = 0x21d9b;\n  entry();\n  puVar7 = auStack_40;\n  piVar1 = *(int **)(puVar8 + 8);\n  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }\n  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined4 *)(puVar7 + -4) = 0x21eb8;\n  FUN_0007ebe0();\n}" primitive_type (function_declarator "__gmpf_sqrt_ui(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  uint uVar9;\n  undefined1 auStack_40 [44];\n  undefined4 uStack_14;\n  \n  puVar8 = &stack0xfffffffc;\n  uStack_14 = 0x21d9b;\n  entry();\n  puVar7 = auStack_40;\n  piVar1 = *(int **)(puVar8 + 8);\n  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }\n  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined4 *)(puVar7 + -4) = 0x21eb8;\n  FUN_0007ebe0();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined1 auStack_40 [44];" type_identifier (array_declarator "auStack_40 [44]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar8 = &stack0xfffffffc;" (assignment_expression "puVar8 = &stack0xfffffffc" identifier = (pointer_expression "&stack0xfffffffc" & identifier)) ;) (expression_statement "uStack_14 = 0x21d9b;" (assignment_expression "uStack_14 = 0x21d9b" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar7 = auStack_40;" (assignment_expression "puVar7 = auStack_40" identifier = identifier) ;) (expression_statement "piVar1 = *(int **)(puVar8 + 8);" (assignment_expression "piVar1 = *(int **)(puVar8 + 8)" identifier = (pointer_expression "*(int **)(puVar8 + 8)" * (cast_expression "(int **)(puVar8 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 8)" ( (binary_expression "puVar8 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "*(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(undefined4 *)(puVar8 + -0x1c)" * (cast_expression "(undefined4 *)(puVar8 + -0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x1c)" ( (binary_expression "puVar8 + -0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" if (parenthesized_expression "(*(uint *)(puVar8 + 0xc) < 2)" ( (binary_expression "*(uint *)(puVar8 + 0xc) < 2" (pointer_expression "*(uint *)(puVar8 + 0xc)" * (cast_expression "(uint *)(puVar8 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xc)" ( (binary_expression "puVar8 + 0xc" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }" { (expression_statement "iVar5 = *(int *)(puVar8 + 0xc);" (assignment_expression "iVar5 = *(int *)(puVar8 + 0xc)" identifier = (pointer_expression "*(int *)(puVar8 + 0xc)" * (cast_expression "(int *)(puVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xc)" ( (binary_expression "puVar8 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(puVar8 + 0xc);" (assignment_expression "uVar3 = *(undefined4 *)(puVar8 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(puVar8 + 0xc)" * (cast_expression "(undefined4 *)(puVar8 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xc)" ( (binary_expression "puVar8 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar1[2] = iVar5;" (assignment_expression "piVar1[2] = iVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[1] = iVar5;" (assignment_expression "piVar1[1] = iVar5" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)piVar1[3] = uVar3;" (assignment_expression "*(undefined4 *)piVar1[3] = uVar3" (pointer_expression "*(undefined4 *)piVar1[3]" * (cast_expression "(undefined4 *)piVar1[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) = identifier) ;) }) (else_clause "else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" else (compound_statement "{\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" { (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar8 + -0x20) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + -0x20) = 0" (pointer_expression "*(undefined4 *)(puVar8 + -0x20)" * (cast_expression "(undefined4 *)(puVar8 + -0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x20)" ( (binary_expression "puVar8 + -0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar5 = iVar2 * 2;" (assignment_expression "iVar5 = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) (expression_statement "iVar6 = iVar5 + -2;" (assignment_expression "iVar6 = iVar5 + -2" identifier = (binary_expression "iVar5 + -2" identifier + number_literal)) ;) (expression_statement "*(int *)(puVar8 + -0x2c) = iVar2;" (assignment_expression "*(int *)(puVar8 + -0x2c) = iVar2" (pointer_expression "*(int *)(puVar8 + -0x2c)" * (cast_expression "(int *)(puVar8 + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x2c)" ( (binary_expression "puVar8 + -0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "uVar9 = iVar5 * 4;" (assignment_expression "uVar9 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (if_statement "if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" if (parenthesized_expression "(uVar9 < 0x7f01)" ( (binary_expression "uVar9 < 0x7f01" identifier < number_literal) )) (compound_statement "{\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }" { (expression_statement "iVar2 = -(uVar9 + 0x1b & 0xfffffff0);" (assignment_expression "iVar2 = -(uVar9 + 0x1b & 0xfffffff0)" identifier = (unary_expression "-(uVar9 + 0x1b & 0xfffffff0)" - (parenthesized_expression "(uVar9 + 0x1b & 0xfffffff0)" ( (binary_expression "uVar9 + 0x1b & 0xfffffff0" (binary_expression "uVar9 + 0x1b" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar7 = auStack_40 + iVar2;" (assignment_expression "puVar7 = auStack_40 + iVar2" identifier = (binary_expression "auStack_40 + iVar2" identifier + identifier)) ;) (expression_statement "puVar4 = auStack_40 + iVar2;" (assignment_expression "puVar4 = auStack_40 + iVar2" identifier = (binary_expression "auStack_40 + iVar2" identifier + identifier)) ;) }) (else_clause "else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" else (compound_statement "{\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" { (expression_statement "*(int *)(puVar8 + -0x34) = iVar5;" (assignment_expression "*(int *)(puVar8 + -0x34) = iVar5" (pointer_expression "*(int *)(puVar8 + -0x34)" * (cast_expression "(int *)(puVar8 + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x34)" ( (binary_expression "puVar8 + -0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = puVar8 + -0x20;" (assignment_expression "puVar4 = puVar8 + -0x20" identifier = (binary_expression "puVar8 + -0x20" identifier + number_literal)) ;) (expression_statement "*(int *)(puVar8 + -0x30) = iVar6;" (assignment_expression "*(int *)(puVar8 + -0x30) = iVar6" (pointer_expression "*(int *)(puVar8 + -0x30)" * (cast_expression "(int *)(puVar8 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x30)" ( (binary_expression "puVar8 + -0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);" (assignment_expression "puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9)" identifier = (cast_expression "(undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__gmp_tmp_reentrant_alloc(puVar4,uVar9)" identifier (argument_list "(puVar4,uVar9)" ( identifier , identifier ))))) ;) (expression_statement "puVar7 = auStack_40;" (assignment_expression "puVar7 = auStack_40" identifier = identifier) ;) (expression_statement "iVar5 = *(int *)(puVar8 + -0x34);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x34)" identifier = (pointer_expression "*(int *)(puVar8 + -0x34)" * (cast_expression "(int *)(puVar8 + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x34)" ( (binary_expression "puVar8 + -0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(puVar8 + -0x30);" (assignment_expression "iVar6 = *(int *)(puVar8 + -0x30)" identifier = (pointer_expression "*(int *)(puVar8 + -0x30)" * (cast_expression "(int *)(puVar8 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x30)" ( (binary_expression "puVar8 + -0x30" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" { (expression_statement "*(int *)(puVar8 + -0x34) = iVar5;" (assignment_expression "*(int *)(puVar8 + -0x34) = iVar5" (pointer_expression "*(int *)(puVar8 + -0x34)" * (cast_expression "(int *)(puVar8 + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x34)" ( (binary_expression "puVar8 + -0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar7 + -8) = iVar6 * 4;" (assignment_expression "*(int *)(puVar7 + -8) = iVar6 * 4" (pointer_expression "*(int *)(puVar7 + -8)" * (cast_expression "(int *)(puVar7 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -8)" ( (binary_expression "puVar7 + -8" identifier + number_literal) )))) = (binary_expression "iVar6 * 4" identifier * number_literal)) ;) (expression_statement "*(undefined4 *)(puVar7 + -0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -0xc) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -0xc)" * (cast_expression "(undefined4 *)(puVar7 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 **)(puVar7 + -0x10) = puVar4;" (assignment_expression "*(undefined1 **)(puVar7 + -0x10) = puVar4" (pointer_expression "*(undefined1 **)(puVar7 + -0x10)" * (cast_expression "(undefined1 **)(puVar7 + -0x10)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x10)" ( (binary_expression "puVar7 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar8 + -0x30) = iVar6;" (assignment_expression "*(int *)(puVar8 + -0x30) = iVar6" (pointer_expression "*(int *)(puVar8 + -0x30)" * (cast_expression "(int *)(puVar8 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x30)" ( (binary_expression "puVar8 + -0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e51;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e51" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" * (cast_expression "(undefined4 *)(puVar7 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x14)" ( (binary_expression "puVar7 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));" (call_expression "memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8))" identifier (argument_list "(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8))" ( (pointer_expression "*(void **)(puVar7 + -0x10)" * (cast_expression "(void **)(puVar7 + -0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -0x10)" ( (binary_expression "puVar7 + -0x10" identifier + number_literal) )))) , (pointer_expression "*(int *)(puVar7 + -0xc)" * (cast_expression "(int *)(puVar7 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) , (pointer_expression "*(size_t *)(puVar7 + -8)" * (cast_expression "(size_t *)(puVar7 + -8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -8)" ( (binary_expression "puVar7 + -8" identifier + number_literal) )))) ))) ;) (expression_statement "iVar5 = *(int *)(puVar8 + -0x34);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x34)" identifier = (pointer_expression "*(int *)(puVar8 + -0x34)" * (cast_expression "(int *)(puVar8 + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x34)" ( (binary_expression "puVar8 + -0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(puVar8 + -0x30);" (assignment_expression "iVar6 = *(int *)(puVar8 + -0x30)" identifier = (pointer_expression "*(int *)(puVar8 + -0x30)" * (cast_expression "(int *)(puVar8 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x30)" ( (binary_expression "puVar8 + -0x30" identifier + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);" (assignment_expression "*(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc)" (pointer_expression "*(undefined4 *)(puVar4 + iVar6 * 4)" * (cast_expression "(undefined4 *)(puVar4 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + iVar6 * 4)" ( (binary_expression "puVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined4 *)(puVar8 + 0xc)" * (cast_expression "(undefined4 *)(puVar8 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xc)" ( (binary_expression "puVar8 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(puVar7 + -4) = iVar5;" (assignment_expression "*(int *)(puVar7 + -4) = iVar5" (pointer_expression "*(int *)(puVar7 + -4)" * (cast_expression "(int *)(puVar7 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -4)" ( (binary_expression "puVar7 + -4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 **)(puVar7 + -8) = puVar4;" (assignment_expression "*(undefined1 **)(puVar7 + -8) = puVar4" (pointer_expression "*(undefined1 **)(puVar7 + -8)" * (cast_expression "(undefined1 **)(puVar7 + -8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + -8)" ( (binary_expression "puVar7 + -8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar7 + -0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -0xc) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -0xc)" * (cast_expression "(undefined4 *)(puVar7 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(puVar7 + -0x10) = piVar1[3];" (assignment_expression "*(int *)(puVar7 + -0x10) = piVar1[3]" (pointer_expression "*(int *)(puVar7 + -0x10)" * (cast_expression "(int *)(puVar7 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x10)" ( (binary_expression "puVar7 + -0x10" identifier + number_literal) )))) = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e06;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e06" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" * (cast_expression "(undefined4 *)(puVar7 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x14)" ( (binary_expression "puVar7 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpn_sqrtrem();" (call_expression "__gmpn_sqrtrem()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *(int *)(puVar8 + -0x2c);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x2c)" identifier = (pointer_expression "*(int *)(puVar8 + -0x2c)" * (cast_expression "(int *)(puVar8 + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x2c)" ( (binary_expression "puVar8 + -0x2c" identifier + number_literal) ))))) ;) (expression_statement "piVar1[2] = 1;" (assignment_expression "piVar1[2] = 1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[1] = iVar5;" (assignment_expression "piVar1[1] = iVar5" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }" if (parenthesized_expression "(*(int *)(puVar8 + -0x20) != 0)" ( (binary_expression "*(int *)(puVar8 + -0x20) != 0" (pointer_expression "*(int *)(puVar8 + -0x20)" * (cast_expression "(int *)(puVar8 + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x20)" ( (binary_expression "puVar8 + -0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }" { (expression_statement "*(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);" (assignment_expression "*(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20)" (pointer_expression "*(int *)(puVar7 + -0x10)" * (cast_expression "(int *)(puVar7 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x10)" ( (binary_expression "puVar7 + -0x10" identifier + number_literal) )))) = (pointer_expression "*(int *)(puVar8 + -0x20)" * (cast_expression "(int *)(puVar8 + -0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x20)" ( (binary_expression "puVar8 + -0x20" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e81;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e81" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" * (cast_expression "(undefined4 *)(puVar7 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0x14)" ( (binary_expression "puVar7 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmp_tmp_reentrant_free();" (call_expression "__gmp_tmp_reentrant_free()" identifier (argument_list "()" ( ))) ;) })) }))) (if_statement "if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar8 + -0x1c)" * (cast_expression "(int *)(puVar8 + -0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + -0x1c)" ( (binary_expression "puVar8 + -0x1c" identifier + number_literal) )))) == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(puVar7 + -4) = 0x21eb8;" (assignment_expression "*(undefined4 *)(puVar7 + -4) = 0x21eb8" (pointer_expression "*(undefined4 *)(puVar7 + -4)" * (cast_expression "(undefined4 *)(puVar7 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -4)" ( (binary_expression "puVar7 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0007ebe0();" (call_expression "FUN_0007ebe0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __gmpf_sqrt_ui(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  uint uVar9;\n  undefined1 auStack_40 [44];\n  undefined4 uStack_14;\n  \n  puVar8 = &stack0xfffffffc;\n  uStack_14 = 0x21d9b;\n  entry();\n  puVar7 = auStack_40;\n  piVar1 = *(int **)(puVar8 + 8);\n  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }\n  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined4 *)(puVar7 + -4) = 0x21eb8;\n  FUN_0007ebe0();\n}" (primitive_type "void") (function_declarator "__gmpf_sqrt_ui(void)" (identifier "__gmpf_sqrt_ui") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  undefined1 *puVar7;\n  undefined1 *puVar8;\n  int in_GS_OFFSET;\n  uint uVar9;\n  undefined1 auStack_40 [44];\n  undefined4 uStack_14;\n  \n  puVar8 = &stack0xfffffffc;\n  uStack_14 = 0x21d9b;\n  entry();\n  puVar7 = auStack_40;\n  piVar1 = *(int **)(puVar8 + 8);\n  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }\n  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  *(undefined4 *)(puVar7 + -4) = 0x21eb8;\n  FUN_0007ebe0();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined1 *puVar7;" (type_identifier "undefined1") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined1 *puVar8;" (type_identifier "undefined1") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "undefined1 auStack_40 [44];" (type_identifier "undefined1") (array_declarator "auStack_40 [44]" (identifier "auStack_40") ([ "[") (number_literal "44") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "puVar8 = &stack0xfffffffc;" (assignment_expression "puVar8 = &stack0xfffffffc" (identifier "puVar8") (= "=") (pointer_expression "&stack0xfffffffc" (& "&") (identifier "stack0xfffffffc"))) (; ";")) (expression_statement "uStack_14 = 0x21d9b;" (assignment_expression "uStack_14 = 0x21d9b" (identifier "uStack_14") (= "=") (number_literal "0x21d9b")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar7 = auStack_40;" (assignment_expression "puVar7 = auStack_40" (identifier "puVar7") (= "=") (identifier "auStack_40")) (; ";")) (expression_statement "piVar1 = *(int **)(puVar8 + 8);" (assignment_expression "piVar1 = *(int **)(puVar8 + 8)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(puVar8 + 8)" (* "*") (cast_expression "(int **)(puVar8 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar8 + 8)" (( "(") (binary_expression "puVar8 + 8" (identifier "puVar8") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "*(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(undefined4 *)(puVar8 + -0x1c)" (* "*") (cast_expression "(undefined4 *)(puVar8 + -0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x1c)" (( "(") (binary_expression "puVar8 + -0x1c" (identifier "puVar8") (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(uint *)(puVar8 + 0xc) < 2) {\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }\n  else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" (if "if") (parenthesized_expression "(*(uint *)(puVar8 + 0xc) < 2)" (( "(") (binary_expression "*(uint *)(puVar8 + 0xc) < 2" (pointer_expression "*(uint *)(puVar8 + 0xc)" (* "*") (cast_expression "(uint *)(puVar8 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0xc)" (( "(") (binary_expression "puVar8 + 0xc" (identifier "puVar8") (+ "+") (number_literal "0xc")) () ")")))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    iVar5 = *(int *)(puVar8 + 0xc);\n    uVar3 = *(undefined4 *)(puVar8 + 0xc);\n    piVar1[2] = iVar5;\n    piVar1[1] = iVar5;\n    *(undefined4 *)piVar1[3] = uVar3;\n  }" ({ "{") (expression_statement "iVar5 = *(int *)(puVar8 + 0xc);" (assignment_expression "iVar5 = *(int *)(puVar8 + 0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(puVar8 + 0xc)" (* "*") (cast_expression "(int *)(puVar8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0xc)" (( "(") (binary_expression "puVar8 + 0xc" (identifier "puVar8") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(puVar8 + 0xc);" (assignment_expression "uVar3 = *(undefined4 *)(puVar8 + 0xc)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(puVar8 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar8 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0xc)" (( "(") (binary_expression "puVar8 + 0xc" (identifier "puVar8") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "piVar1[2] = iVar5;" (assignment_expression "piVar1[2] = iVar5" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "piVar1[1] = iVar5;" (assignment_expression "piVar1[1] = iVar5" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 *)piVar1[3] = uVar3;" (assignment_expression "*(undefined4 *)piVar1[3] = uVar3" (pointer_expression "*(undefined4 *)piVar1[3]" (* "*") (cast_expression "(undefined4 *)piVar1[3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = *piVar1;\n    *(undefined4 *)(puVar8 + -0x20) = 0;\n    iVar5 = iVar2 * 2;\n    iVar6 = iVar5 + -2;\n    *(int *)(puVar8 + -0x2c) = iVar2;\n    iVar5 = iVar5 + -1;\n    uVar9 = iVar5 * 4;\n    if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }\n    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);\n    *(int *)(puVar7 + -4) = iVar5;\n    *(undefined1 **)(puVar7 + -8) = puVar4;\n    *(undefined4 *)(puVar7 + -0xc) = 0;\n    *(int *)(puVar7 + -0x10) = piVar1[3];\n    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;\n    __gmpn_sqrtrem();\n    iVar5 = *(int *)(puVar8 + -0x2c);\n    piVar1[2] = 1;\n    piVar1[1] = iVar5;\n    if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }\n  }" ({ "{") (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*(undefined4 *)(puVar8 + -0x20) = 0;" (assignment_expression "*(undefined4 *)(puVar8 + -0x20) = 0" (pointer_expression "*(undefined4 *)(puVar8 + -0x20)" (* "*") (cast_expression "(undefined4 *)(puVar8 + -0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x20)" (( "(") (binary_expression "puVar8 + -0x20" (identifier "puVar8") (+ "+") (number_literal "-0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = iVar2 * 2;" (assignment_expression "iVar5 = iVar2 * 2" (identifier "iVar5") (= "=") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar6 = iVar5 + -2;" (assignment_expression "iVar6 = iVar5 + -2" (identifier "iVar6") (= "=") (binary_expression "iVar5 + -2" (identifier "iVar5") (+ "+") (number_literal "-2"))) (; ";")) (expression_statement "*(int *)(puVar8 + -0x2c) = iVar2;" (assignment_expression "*(int *)(puVar8 + -0x2c) = iVar2" (pointer_expression "*(int *)(puVar8 + -0x2c)" (* "*") (cast_expression "(int *)(puVar8 + -0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x2c)" (( "(") (binary_expression "puVar8 + -0x2c" (identifier "puVar8") (+ "+") (number_literal "-0x2c")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar9 = iVar5 * 4;" (assignment_expression "uVar9 = iVar5 * 4" (identifier "uVar9") (= "=") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) (; ";")) (if_statement "if (uVar9 < 0x7f01) {\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }\n    else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" (if "if") (parenthesized_expression "(uVar9 < 0x7f01)" (( "(") (binary_expression "uVar9 < 0x7f01" (identifier "uVar9") (< "<") (number_literal "0x7f01")) () ")")) (compound_statement "{\n      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);\n      puVar7 = auStack_40 + iVar2;\n      puVar4 = auStack_40 + iVar2;\n    }" ({ "{") (expression_statement "iVar2 = -(uVar9 + 0x1b & 0xfffffff0);" (assignment_expression "iVar2 = -(uVar9 + 0x1b & 0xfffffff0)" (identifier "iVar2") (= "=") (unary_expression "-(uVar9 + 0x1b & 0xfffffff0)" (- "-") (parenthesized_expression "(uVar9 + 0x1b & 0xfffffff0)" (( "(") (binary_expression "uVar9 + 0x1b & 0xfffffff0" (binary_expression "uVar9 + 0x1b" (identifier "uVar9") (+ "+") (number_literal "0x1b")) (& "&") (number_literal "0xfffffff0")) () ")")))) (; ";")) (expression_statement "puVar7 = auStack_40 + iVar2;" (assignment_expression "puVar7 = auStack_40 + iVar2" (identifier "puVar7") (= "=") (binary_expression "auStack_40 + iVar2" (identifier "auStack_40") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "puVar4 = auStack_40 + iVar2;" (assignment_expression "puVar4 = auStack_40 + iVar2" (identifier "puVar4") (= "=") (binary_expression "auStack_40 + iVar2" (identifier "auStack_40") (+ "+") (identifier "iVar2"))) (; ";")) (} "}")) (else_clause "else {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" (else "else") (compound_statement "{\n      *(int *)(puVar8 + -0x34) = iVar5;\n      puVar4 = puVar8 + -0x20;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);\n      puVar7 = auStack_40;\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" ({ "{") (expression_statement "*(int *)(puVar8 + -0x34) = iVar5;" (assignment_expression "*(int *)(puVar8 + -0x34) = iVar5" (pointer_expression "*(int *)(puVar8 + -0x34)" (* "*") (cast_expression "(int *)(puVar8 + -0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x34)" (( "(") (binary_expression "puVar8 + -0x34" (identifier "puVar8") (+ "+") (number_literal "-0x34")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "puVar4 = puVar8 + -0x20;" (assignment_expression "puVar4 = puVar8 + -0x20" (identifier "puVar4") (= "=") (binary_expression "puVar8 + -0x20" (identifier "puVar8") (+ "+") (number_literal "-0x20"))) (; ";")) (expression_statement "*(int *)(puVar8 + -0x30) = iVar6;" (assignment_expression "*(int *)(puVar8 + -0x30) = iVar6" (pointer_expression "*(int *)(puVar8 + -0x30)" (* "*") (cast_expression "(int *)(puVar8 + -0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x30)" (( "(") (binary_expression "puVar8 + -0x30" (identifier "puVar8") (+ "+") (number_literal "-0x30")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);" (assignment_expression "puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "__gmp_tmp_reentrant_alloc(puVar4,uVar9)" (identifier "__gmp_tmp_reentrant_alloc") (argument_list "(puVar4,uVar9)" (( "(") (identifier "puVar4") (, ",") (identifier "uVar9") () ")"))))) (; ";")) (expression_statement "puVar7 = auStack_40;" (assignment_expression "puVar7 = auStack_40" (identifier "puVar7") (= "=") (identifier "auStack_40")) (; ";")) (expression_statement "iVar5 = *(int *)(puVar8 + -0x34);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x34)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(puVar8 + -0x34)" (* "*") (cast_expression "(int *)(puVar8 + -0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x34)" (( "(") (binary_expression "puVar8 + -0x34" (identifier "puVar8") (+ "+") (number_literal "-0x34")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(puVar8 + -0x30);" (assignment_expression "iVar6 = *(int *)(puVar8 + -0x30)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(puVar8 + -0x30)" (* "*") (cast_expression "(int *)(puVar8 + -0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x30)" (( "(") (binary_expression "puVar8 + -0x30" (identifier "puVar8") (+ "+") (number_literal "-0x30")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar6 != 0) {\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(puVar8 + -0x34) = iVar5;\n      *(int *)(puVar7 + -8) = iVar6 * 4;\n      *(undefined4 *)(puVar7 + -0xc) = 0;\n      *(undefined1 **)(puVar7 + -0x10) = puVar4;\n      *(int *)(puVar8 + -0x30) = iVar6;\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;\n      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));\n      iVar5 = *(int *)(puVar8 + -0x34);\n      iVar6 = *(int *)(puVar8 + -0x30);\n    }" ({ "{") (expression_statement "*(int *)(puVar8 + -0x34) = iVar5;" (assignment_expression "*(int *)(puVar8 + -0x34) = iVar5" (pointer_expression "*(int *)(puVar8 + -0x34)" (* "*") (cast_expression "(int *)(puVar8 + -0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x34)" (( "(") (binary_expression "puVar8 + -0x34" (identifier "puVar8") (+ "+") (number_literal "-0x34")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(int *)(puVar7 + -8) = iVar6 * 4;" (assignment_expression "*(int *)(puVar7 + -8) = iVar6 * 4" (pointer_expression "*(int *)(puVar7 + -8)" (* "*") (cast_expression "(int *)(puVar7 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -8)" (( "(") (binary_expression "puVar7 + -8" (identifier "puVar7") (+ "+") (number_literal "-8")) () ")")))) (= "=") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) (; ";")) (expression_statement "*(undefined4 *)(puVar7 + -0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -0xc) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -0xc)" (* "*") (cast_expression "(undefined4 *)(puVar7 + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0xc)" (( "(") (binary_expression "puVar7 + -0xc" (identifier "puVar7") (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 **)(puVar7 + -0x10) = puVar4;" (assignment_expression "*(undefined1 **)(puVar7 + -0x10) = puVar4" (pointer_expression "*(undefined1 **)(puVar7 + -0x10)" (* "*") (cast_expression "(undefined1 **)(puVar7 + -0x10)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + -0x10)" (( "(") (binary_expression "puVar7 + -0x10" (identifier "puVar7") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "*(int *)(puVar8 + -0x30) = iVar6;" (assignment_expression "*(int *)(puVar8 + -0x30) = iVar6" (pointer_expression "*(int *)(puVar8 + -0x30)" (* "*") (cast_expression "(int *)(puVar8 + -0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x30)" (( "(") (binary_expression "puVar8 + -0x30" (identifier "puVar8") (+ "+") (number_literal "-0x30")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e51;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e51" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" (* "*") (cast_expression "(undefined4 *)(puVar7 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0x14)" (( "(") (binary_expression "puVar7 + -0x14" (identifier "puVar7") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x21e51")) (; ";")) (expression_statement "memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));" (call_expression "memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8))" (identifier "memset") (argument_list "(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8))" (( "(") (pointer_expression "*(void **)(puVar7 + -0x10)" (* "*") (cast_expression "(void **)(puVar7 + -0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + -0x10)" (( "(") (binary_expression "puVar7 + -0x10" (identifier "puVar7") (+ "+") (number_literal "-0x10")) () ")")))) (, ",") (pointer_expression "*(int *)(puVar7 + -0xc)" (* "*") (cast_expression "(int *)(puVar7 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0xc)" (( "(") (binary_expression "puVar7 + -0xc" (identifier "puVar7") (+ "+") (number_literal "-0xc")) () ")")))) (, ",") (pointer_expression "*(size_t *)(puVar7 + -8)" (* "*") (cast_expression "(size_t *)(puVar7 + -8)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -8)" (( "(") (binary_expression "puVar7 + -8" (identifier "puVar7") (+ "+") (number_literal "-8")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(puVar8 + -0x34);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x34)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(puVar8 + -0x34)" (* "*") (cast_expression "(int *)(puVar8 + -0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x34)" (( "(") (binary_expression "puVar8 + -0x34" (identifier "puVar8") (+ "+") (number_literal "-0x34")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(puVar8 + -0x30);" (assignment_expression "iVar6 = *(int *)(puVar8 + -0x30)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(puVar8 + -0x30)" (* "*") (cast_expression "(int *)(puVar8 + -0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x30)" (( "(") (binary_expression "puVar8 + -0x30" (identifier "puVar8") (+ "+") (number_literal "-0x30")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);" (assignment_expression "*(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc)" (pointer_expression "*(undefined4 *)(puVar4 + iVar6 * 4)" (* "*") (cast_expression "(undefined4 *)(puVar4 + iVar6 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + iVar6 * 4)" (( "(") (binary_expression "puVar4 + iVar6 * 4" (identifier "puVar4") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(puVar8 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar8 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0xc)" (( "(") (binary_expression "puVar8 + 0xc" (identifier "puVar8") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(int *)(puVar7 + -4) = iVar5;" (assignment_expression "*(int *)(puVar7 + -4) = iVar5" (pointer_expression "*(int *)(puVar7 + -4)" (* "*") (cast_expression "(int *)(puVar7 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -4)" (( "(") (binary_expression "puVar7 + -4" (identifier "puVar7") (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined1 **)(puVar7 + -8) = puVar4;" (assignment_expression "*(undefined1 **)(puVar7 + -8) = puVar4" (pointer_expression "*(undefined1 **)(puVar7 + -8)" (* "*") (cast_expression "(undefined1 **)(puVar7 + -8)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + -8)" (( "(") (binary_expression "puVar7 + -8" (identifier "puVar7") (+ "+") (number_literal "-8")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "*(undefined4 *)(puVar7 + -0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -0xc) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -0xc)" (* "*") (cast_expression "(undefined4 *)(puVar7 + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0xc)" (( "(") (binary_expression "puVar7 + -0xc" (identifier "puVar7") (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(puVar7 + -0x10) = piVar1[3];" (assignment_expression "*(int *)(puVar7 + -0x10) = piVar1[3]" (pointer_expression "*(int *)(puVar7 + -0x10)" (* "*") (cast_expression "(int *)(puVar7 + -0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0x10)" (( "(") (binary_expression "puVar7 + -0x10" (identifier "puVar7") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e06;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e06" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" (* "*") (cast_expression "(undefined4 *)(puVar7 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0x14)" (( "(") (binary_expression "puVar7 + -0x14" (identifier "puVar7") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x21e06")) (; ";")) (expression_statement "__gmpn_sqrtrem();" (call_expression "__gmpn_sqrtrem()" (identifier "__gmpn_sqrtrem") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(puVar8 + -0x2c);" (assignment_expression "iVar5 = *(int *)(puVar8 + -0x2c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(puVar8 + -0x2c)" (* "*") (cast_expression "(int *)(puVar8 + -0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x2c)" (( "(") (binary_expression "puVar8 + -0x2c" (identifier "puVar8") (+ "+") (number_literal "-0x2c")) () ")"))))) (; ";")) (expression_statement "piVar1[2] = 1;" (assignment_expression "piVar1[2] = 1" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar1[1] = iVar5;" (assignment_expression "piVar1[1] = iVar5" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (*(int *)(puVar8 + -0x20) != 0) {\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }" (if "if") (parenthesized_expression "(*(int *)(puVar8 + -0x20) != 0)" (( "(") (binary_expression "*(int *)(puVar8 + -0x20) != 0" (pointer_expression "*(int *)(puVar8 + -0x20)" (* "*") (cast_expression "(int *)(puVar8 + -0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x20)" (( "(") (binary_expression "puVar8 + -0x20" (identifier "puVar8") (+ "+") (number_literal "-0x20")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);\n      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;\n      __gmp_tmp_reentrant_free();\n    }" ({ "{") (expression_statement "*(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);" (assignment_expression "*(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20)" (pointer_expression "*(int *)(puVar7 + -0x10)" (* "*") (cast_expression "(int *)(puVar7 + -0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0x10)" (( "(") (binary_expression "puVar7 + -0x10" (identifier "puVar7") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (pointer_expression "*(int *)(puVar8 + -0x20)" (* "*") (cast_expression "(int *)(puVar8 + -0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x20)" (( "(") (binary_expression "puVar8 + -0x20" (identifier "puVar8") (+ "+") (number_literal "-0x20")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(puVar7 + -0x14) = 0x21e81;" (assignment_expression "*(undefined4 *)(puVar7 + -0x14) = 0x21e81" (pointer_expression "*(undefined4 *)(puVar7 + -0x14)" (* "*") (cast_expression "(undefined4 *)(puVar7 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0x14)" (( "(") (binary_expression "puVar7 + -0x14" (identifier "puVar7") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x21e81")) (; ";")) (expression_statement "__gmp_tmp_reentrant_free();" (call_expression "__gmp_tmp_reentrant_free()" (identifier "__gmp_tmp_reentrant_free") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar8 + -0x1c)" (* "*") (cast_expression "(int *)(puVar8 + -0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + -0x1c)" (( "(") (binary_expression "puVar8 + -0x1c" (identifier "puVar8") (+ "+") (number_literal "-0x1c")) () ")")))) (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar7 + -4) = 0x21eb8;" (assignment_expression "*(undefined4 *)(puVar7 + -4) = 0x21eb8" (pointer_expression "*(undefined4 *)(puVar7 + -4)" (* "*") (cast_expression "(undefined4 *)(puVar7 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -4)" (( "(") (binary_expression "puVar7 + -4" (identifier "puVar7") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0x21eb8")) (; ";")) (expression_statement "FUN_0007ebe0();" (call_expression "FUN_0007ebe0()" (identifier "FUN_0007ebe0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 r,type_2 var_2)

{
  type_3 var_4;
  int var_6;
  void *pvVar2;
  int var_3;
  int var_8;
  type_4 *var_9;
  int var_1;
  type_4 var_5 [4];
  int local_38;
  int local_34;
  int local_30 [3];
  type_5 *var_12;
  int var_14;
  type_6 uStack_14;
  
  uStack_14 = 0x21d9b;
  var_9 = var_5;
  var_14 = *(int *)(var_1 + 0x14);
  if (var_2 < 2) {
    r->_mp_exp = var_2;
    r->_mp_size = var_2;
    *r->_mp_d = var_2;
  }
  else {
    var_12 = (type_5 *)0x0;
    var_3 = r->_mp_prec * 2;
    var_8 = var_3 + -2;
    local_30[0] = r->_mp_prec;
    var_3 = var_3 + -1;
    var_4 = var_3 * 4;
    if (var_4 < 0x7f01) {
      var_6 = -(var_4 + 0x1b & 0xfffffff0);
      var_9 = var_5 + var_6;
      pvVar2 = (void *)((int)local_30 + var_6);
    }
    else {
      local_38 = var_3;
      local_34 = var_8;
      pvVar2 = var_7(&var_12,var_4);
      var_9 = var_5;
      var_3 = local_38;
      var_8 = local_34;
    }
    if (var_8 != 0) {
      local_38 = var_3;
      *(int *)(var_9 + -8) = var_8 * 4;
      *(type_6 *)(var_9 + -0xc) = 0;
      *(void **)(var_9 + -0x10) = pvVar2;
      local_34 = var_8;
      *(type_6 *)(var_9 + -0x14) = 0x21e51;
      var_10(*(void **)(var_9 + -0x10),*(int *)(var_9 + -0xc),*(size_t *)(var_9 + -8));
      var_3 = local_38;
      var_8 = local_34;
    }
    *(type_2 *)((int)pvVar2 + var_8 * 4) = var_2;
    *(int *)(var_9 + -4) = var_3;
    *(void **)(var_9 + -8) = pvVar2;
    *(type_6 *)(var_9 + -0xc) = 0;
    *(type_7 **)(var_9 + -0x10) = r->_mp_d;
    *(type_6 *)(var_9 + -0x14) = 0x21e06;
    var_11(*(type_8 *)(var_9 + -0x10),*(type_8 *)(var_9 + -0xc),
                   *(type_9 *)(var_9 + -8),*(type_10 *)(var_9 + -4));
    r->_mp_exp = 1;
    r->_mp_size = local_30[0];
    if (var_12 != (type_5 *)0x0) {
      *(type_5 **)(var_9 + -0x10) = var_12;
      *(type_6 *)(var_9 + -0x14) = 0x21e81;
      var_13(*(type_5 **)(var_9 + -0x10));
    }
  }
  if (var_14 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(type_6 *)(var_9 + -4) = 0x21eb8;
  var_15();
}


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

void MASKED(void)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  int iVar5;
  int iVar6;
  undefined1 *puVar7;
  undefined1 *puVar8;
  int in_GS_OFFSET;
  uint uVar9;
  undefined1 auStack_40 [44];
  undefined4 uStack_14;
  
  puVar8 = &stack0xfffffffc;
  uStack_14 = 0x21d9b;
  entry();
  puVar7 = auStack_40;
  piVar1 = *(int **)(puVar8 + 8);
  *(undefined4 *)(puVar8 + -0x1c) = *(undefined4 *)(in_GS_OFFSET + 0x14);
  if (*(uint *)(puVar8 + 0xc) < 2) {
    iVar5 = *(int *)(puVar8 + 0xc);
    uVar3 = *(undefined4 *)(puVar8 + 0xc);
    piVar1[2] = iVar5;
    piVar1[1] = iVar5;
    *(undefined4 *)piVar1[3] = uVar3;
  }
  else {
    iVar2 = *piVar1;
    *(undefined4 *)(puVar8 + -0x20) = 0;
    iVar5 = iVar2 * 2;
    iVar6 = iVar5 + -2;
    *(int *)(puVar8 + -0x2c) = iVar2;
    iVar5 = iVar5 + -1;
    uVar9 = iVar5 * 4;
    if (uVar9 < 0x7f01) {
      iVar2 = -(uVar9 + 0x1b & 0xfffffff0);
      puVar7 = auStack_40 + iVar2;
      puVar4 = auStack_40 + iVar2;
    }
    else {
      *(int *)(puVar8 + -0x34) = iVar5;
      puVar4 = puVar8 + -0x20;
      *(int *)(puVar8 + -0x30) = iVar6;
      puVar4 = (undefined1 *)__gmp_tmp_reentrant_alloc(puVar4,uVar9);
      puVar7 = auStack_40;
      iVar5 = *(int *)(puVar8 + -0x34);
      iVar6 = *(int *)(puVar8 + -0x30);
    }
    if (iVar6 != 0) {
      *(int *)(puVar8 + -0x34) = iVar5;
      *(int *)(puVar7 + -8) = iVar6 * 4;
      *(undefined4 *)(puVar7 + -0xc) = 0;
      *(undefined1 **)(puVar7 + -0x10) = puVar4;
      *(int *)(puVar8 + -0x30) = iVar6;
      *(undefined4 *)(puVar7 + -0x14) = 0x21e51;
      memset(*(void **)(puVar7 + -0x10),*(int *)(puVar7 + -0xc),*(size_t *)(puVar7 + -8));
      iVar5 = *(int *)(puVar8 + -0x34);
      iVar6 = *(int *)(puVar8 + -0x30);
    }
    *(undefined4 *)(puVar4 + iVar6 * 4) = *(undefined4 *)(puVar8 + 0xc);
    *(int *)(puVar7 + -4) = iVar5;
    *(undefined1 **)(puVar7 + -8) = puVar4;
    *(undefined4 *)(puVar7 + -0xc) = 0;
    *(int *)(puVar7 + -0x10) = piVar1[3];
    *(undefined4 *)(puVar7 + -0x14) = 0x21e06;
    __gmpn_sqrtrem();
    iVar5 = *(int *)(puVar8 + -0x2c);
    piVar1[2] = 1;
    piVar1[1] = iVar5;
    if (*(int *)(puVar8 + -0x20) != 0) {
      *(int *)(puVar7 + -0x10) = *(int *)(puVar8 + -0x20);
      *(undefined4 *)(puVar7 + -0x14) = 0x21e81;
      __gmp_tmp_reentrant_free();
    }
  }
  if (*(int *)(puVar8 + -0x1c) == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined4 *)(puVar7 + -4) = 0x21eb8;
  FUN_0007ebe0();
}

