
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "gmp_randalg_t": Some values do not have unique names */

void __gmp_randinit_lc_2exp(__gmp_randstate_struct *rstate,mpz_srcptr a,ulong c,mp_bitcnt_t m2exp)

{
  mp_limb_t *__s;
  mpz_ptr x;
  uint uVar1;
  
  uVar1 = m2exp + 0x1f >> 5;
  if (m2exp != 0) {
    x = (mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24);
    rstate->_mp_seed[0]._mp_d = (mp_limb_t *)x;
    (rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator;
    __gmpz_init2(x,m2exp);
    __s = x->_mp_d;
    if (uVar1 != 0) {
      memset(__s,0,uVar1 * 4);
    }
    x->_mp_size = uVar1;
    *__s = 1;
    __gmpz_init(x + 1);
    __gmpz_fdiv_r_2exp(x + 1,a,m2exp);
    if (x[1]._mp_size == 0) {
      x[1]._mp_size = 1;
      *x[1]._mp_d = 0;
    }
    x[2]._mp_d = (mp_limb_t *)m2exp;
    x[2]._mp_size = c;
    x[2]._mp_alloc = (uint)(c != 0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __gmp_assert_fail("../../rand/randlc2x.c",0x12e,"m2exp != 0");
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void __regparm2
__gmp_randinit_lc_2exp
          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)

{
  undefined4 *__s;
  int iVar1;
  uint uVar2;
  int unaff_EBX;
  int unaff_retaddr;
  int *piVar3;
  
  entry(param_2,0x7e3a9);
  uVar2 = param_5 + 0x1fU >> 5;
  if (param_5 != 0) {
    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);
    *(int *)(unaff_retaddr + 8) = iVar1;
    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;
    __gmpz_init2(iVar1,param_5);
    __s = *(undefined4 **)(iVar1 + 8);
    if (uVar2 != 0) {
      memset(__s,0,uVar2 * 4);
    }
    *(uint *)(iVar1 + 4) = uVar2;
    *__s = 1;
    __gmpz_init(iVar1 + 0xc);
    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);
    if (*(int *)(iVar1 + 0x10) == 0) {
      *(undefined4 *)(iVar1 + 0x10) = 1;
      **(undefined4 **)(iVar1 + 0x14) = 0;
    }
    *(int *)(iVar1 + 0x20) = param_5;
    *(int *)(iVar1 + 0x1c) = param_4;
    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);
    return;
  }
  piVar3 = (int *)0x12e;
  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);
  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x1fc57
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [ESP + 0x30]
LEA EDX,[EDI + 0x1f]
SHR EDX,0x5
TEST EDI,EDI
JZ 0x0007e478
MOV EAX,dword ptr [EBX + 0xfffffd9c]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH 0x24
CALL dword ptr [EAX]
MOV dword ptr [EBP + 0x8],EAX
MOV ESI,EAX
LEA EAX,[EBX + 0xfffffbb8]
MOV dword ptr [EBP + 0x10],EAX
POP EDX
POP ECX
PUSH EDI
PUSH ESI
CALL 0x0001bfc0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV EBP,dword ptr [ESI + 0x8]
TEST EDX,EDX
JZ 0x0007e418
SUB ESP,0x4
LEA EAX,[EDX*0x4 + 0x0]
PUSH EAX
PUSH 0x0
PUSH EBP
CALL 0x0001bb20
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [ESI + 0x4],EDX
SUB ESP,0xc
MOV dword ptr [EBP],0x1
LEA EBP,[ESI + 0xc]
PUSH EBP
CALL 0x0001c0f0
ADD ESP,0xc
PUSH EDI
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
CALL 0x0001bf80
MOV EAX,dword ptr [ESI + 0x10]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0007e456
MOV EAX,dword ptr [ESI + 0x14]
MOV dword ptr [ESI + 0x10],0x1
MOV dword ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESI + 0x20],EDI
TEST EAX,EAX
MOV dword ptr [ESI + 0x1c],EAX
SETNZ AL
MOVZX EAX,AL
MOV dword ptr [ESI + 0x18],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe9e78]
PUSH EAX
LEA EAX,[EBX + 0xfffe9e83]
PUSH 0x12e
PUSH EAX
CALL 0x0001b740
NOP
NOP
NOP
NOP
NOP
NOP
NOP
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid __regparm2\n__gmp_randinit_lc_2exp\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *__s;\n  int iVar1;\n  uint uVar2;\n  int unaff_EBX;\n  int unaff_retaddr;\n  int *piVar3;\n  \n  entry(param_2,0x7e3a9);\n  uVar2 = param_5 + 0x1fU >> 5;\n  if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }\n  piVar3 = (int *)0x12e;\n  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);\n  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);\n  return;\n}\n\n" comment (function_definition "void __regparm2\n__gmp_randinit_lc_2exp\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *__s;\n  int iVar1;\n  uint uVar2;\n  int unaff_EBX;\n  int unaff_retaddr;\n  int *piVar3;\n  \n  entry(param_2,0x7e3a9);\n  uVar2 = param_5 + 0x1fU >> 5;\n  if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }\n  piVar3 = (int *)0x12e;\n  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);\n  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "__gmp_randinit_lc_2exp\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *__s;\n  int iVar1;\n  uint uVar2;\n  int unaff_EBX;\n  int unaff_retaddr;\n  int *piVar3;\n  \n  entry(param_2,0x7e3a9);\n  uVar2 = param_5 + 0x1fU >> 5;\n  if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }\n  piVar3 = (int *)0x12e;\n  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);\n  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);\n  return;\n}" { (declaration "undefined4 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "entry(param_2,0x7e3a9);" (call_expression "entry(param_2,0x7e3a9)" identifier (argument_list "(param_2,0x7e3a9)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = param_5 + 0x1fU >> 5;" (assignment_expression "uVar2 = param_5 + 0x1fU >> 5" identifier = (binary_expression "param_5 + 0x1fU >> 5" (binary_expression "param_5 + 0x1fU" identifier + number_literal) >> number_literal)) ;) (if_statement "if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }" { (expression_statement "iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);" (assignment_expression "iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24)" identifier = (call_expression "(*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24)" (parenthesized_expression "(*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))" ( (pointer_expression "*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3)" * (cast_expression "(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(unaff_EBX + 0x1f9f3)" * (pointer_expression "*(undefined4 **)(unaff_EBX + 0x1f9f3)" * (cast_expression "(undefined4 **)(unaff_EBX + 0x1f9f3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x1f9f3)" ( (binary_expression "unaff_EBX + 0x1f9f3" identifier + number_literal) ))))))) )) (argument_list "(0x24)" ( number_literal )))) ;) (expression_statement "*(int *)(unaff_retaddr + 8) = iVar1;" (assignment_expression "*(int *)(unaff_retaddr + 8) = iVar1" (pointer_expression "*(int *)(unaff_retaddr + 8)" * (cast_expression "(int *)(unaff_retaddr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 8)" ( (binary_expression "unaff_retaddr + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;" (assignment_expression "*(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f" (pointer_expression "*(int *)(unaff_retaddr + 0x10)" * (cast_expression "(int *)(unaff_retaddr + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x10)" ( (binary_expression "unaff_retaddr + 0x10" identifier + number_literal) )))) = (binary_expression "unaff_EBX + 0x1f80f" identifier + number_literal)) ;) (expression_statement "__gmpz_init2(iVar1,param_5);" (call_expression "__gmpz_init2(iVar1,param_5)" identifier (argument_list "(iVar1,param_5)" ( identifier , identifier ))) ;) (expression_statement "__s = *(undefined4 **)(iVar1 + 8);" (assignment_expression "__s = *(undefined4 **)(iVar1 + 8)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 8)" * (cast_expression "(undefined4 **)(iVar1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      memset(__s,0,uVar2 * 4);\n    }" { (expression_statement "memset(__s,0,uVar2 * 4);" (call_expression "memset(__s,0,uVar2 * 4)" identifier (argument_list "(__s,0,uVar2 * 4)" ( identifier , number_literal , (binary_expression "uVar2 * 4" identifier * number_literal) ))) ;) })) (expression_statement "*(uint *)(iVar1 + 4) = uVar2;" (assignment_expression "*(uint *)(iVar1 + 4) = uVar2" (pointer_expression "*(uint *)(iVar1 + 4)" * (cast_expression "(uint *)(iVar1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*__s = 1;" (assignment_expression "*__s = 1" (pointer_expression "*__s" * identifier) = number_literal) ;) (expression_statement "__gmpz_init(iVar1 + 0xc);" (call_expression "__gmpz_init(iVar1 + 0xc)" identifier (argument_list "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))) ;) (expression_statement "__gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);" (call_expression "__gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5)" identifier (argument_list "(iVar1 + 0xc,param_3,param_5)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (if_statement "if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x10) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x10) == 0" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)(iVar1 + 0x14) = 0;" (assignment_expression "**(undefined4 **)(iVar1 + 0x14) = 0" (pointer_expression "**(undefined4 **)(iVar1 + 0x14)" * (pointer_expression "*(undefined4 **)(iVar1 + 0x14)" * (cast_expression "(undefined4 **)(iVar1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) = number_literal) ;) })) (expression_statement "*(int *)(iVar1 + 0x20) = param_5;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_5" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x1c) = param_4;" (assignment_expression "*(int *)(iVar1 + 0x1c) = param_4" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);" (assignment_expression "*(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0)" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = (call_expression "(uint)(param_4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar3 = (int *)0x12e;" (assignment_expression "piVar3 = (int *)0x12e" identifier = (cast_expression "(int *)0x12e" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "__gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);" (call_expression "__gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf)" identifier (argument_list "(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf)" ( (binary_expression "unaff_EBX + 0x9ada" identifier + number_literal) , number_literal , (binary_expression "unaff_EBX + 0x9acf" identifier + number_literal) ))) ;) (expression_statement "(**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);" (call_expression "(**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_0009df80)" ( (pointer_expression "**(code **)PTR___gmp_free_func_0009df80" * (pointer_expression "*(code **)PTR___gmp_free_func_0009df80" * (cast_expression "(code **)PTR___gmp_free_func_0009df80" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(piVar3[2],*piVar3 << 2)" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) , (binary_expression "*piVar3 << 2" (pointer_expression "*piVar3" * identifier) << number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "gmp_randalg_t": Some values do not have unique names */\n\nvoid __gmp_randinit_lc_2exp(__gmp_randstate_struct *rstate,mpz_srcptr a,ulong c,mp_bitcnt_t m2exp)\n\n{\n  mp_limb_t *__s;\n  mpz_ptr x;\n  uint uVar1;\n  \n  uVar1 = m2exp + 0x1f >> 5;\n  if (m2exp != 0) {\n    x = (mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24);\n    rstate->_mp_seed[0]._mp_d = (mp_limb_t *)x;\n    (rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator;\n    __gmpz_init2(x,m2exp);\n    __s = x->_mp_d;\n    if (uVar1 != 0) {\n      memset(__s,0,uVar1 * 4);\n    }\n    x->_mp_size = uVar1;\n    *__s = 1;\n    __gmpz_init(x + 1);\n    __gmpz_fdiv_r_2exp(x + 1,a,m2exp);\n    if (x[1]._mp_size == 0) {\n      x[1]._mp_size = 1;\n      *x[1]._mp_d = 0;\n    }\n    x[2]._mp_d = (mp_limb_t *)m2exp;\n    x[2]._mp_size = c;\n    x[2]._mp_alloc = (uint)(c != 0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __gmp_assert_fail("../../rand/randlc2x.c",0x12e,"m2exp != 0");\n}\n\n" comment comment comment (function_definition "void __gmp_randinit_lc_2exp(__gmp_randstate_struct *rstate,mpz_srcptr a,ulong c,mp_bitcnt_t m2exp)\n\n{\n  mp_limb_t *__s;\n  mpz_ptr x;\n  uint uVar1;\n  \n  uVar1 = m2exp + 0x1f >> 5;\n  if (m2exp != 0) {\n    x = (mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24);\n    rstate->_mp_seed[0]._mp_d = (mp_limb_t *)x;\n    (rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator;\n    __gmpz_init2(x,m2exp);\n    __s = x->_mp_d;\n    if (uVar1 != 0) {\n      memset(__s,0,uVar1 * 4);\n    }\n    x->_mp_size = uVar1;\n    *__s = 1;\n    __gmpz_init(x + 1);\n    __gmpz_fdiv_r_2exp(x + 1,a,m2exp);\n    if (x[1]._mp_size == 0) {\n      x[1]._mp_size = 1;\n      *x[1]._mp_d = 0;\n    }\n    x[2]._mp_d = (mp_limb_t *)m2exp;\n    x[2]._mp_size = c;\n    x[2]._mp_alloc = (uint)(c != 0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __gmp_assert_fail("../../rand/randlc2x.c",0x12e,"m2exp != 0");\n}" primitive_type (function_declarator "__gmp_randinit_lc_2exp(__gmp_randstate_struct *rstate,mpz_srcptr a,ulong c,mp_bitcnt_t m2exp)" identifier (parameter_list "(__gmp_randstate_struct *rstate,mpz_srcptr a,ulong c,mp_bitcnt_t m2exp)" ( (parameter_declaration "__gmp_randstate_struct *rstate" type_identifier (pointer_declarator "*rstate" * identifier)) , (parameter_declaration "mpz_srcptr a" type_identifier identifier) , (parameter_declaration "ulong c" type_identifier identifier) , (parameter_declaration "mp_bitcnt_t m2exp" type_identifier identifier) ))) (compound_statement "{\n  mp_limb_t *__s;\n  mpz_ptr x;\n  uint uVar1;\n  \n  uVar1 = m2exp + 0x1f >> 5;\n  if (m2exp != 0) {\n    x = (mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24);\n    rstate->_mp_seed[0]._mp_d = (mp_limb_t *)x;\n    (rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator;\n    __gmpz_init2(x,m2exp);\n    __s = x->_mp_d;\n    if (uVar1 != 0) {\n      memset(__s,0,uVar1 * 4);\n    }\n    x->_mp_size = uVar1;\n    *__s = 1;\n    __gmpz_init(x + 1);\n    __gmpz_fdiv_r_2exp(x + 1,a,m2exp);\n    if (x[1]._mp_size == 0) {\n      x[1]._mp_size = 1;\n      *x[1]._mp_d = 0;\n    }\n    x[2]._mp_d = (mp_limb_t *)m2exp;\n    x[2]._mp_size = c;\n    x[2]._mp_alloc = (uint)(c != 0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __gmp_assert_fail("../../rand/randlc2x.c",0x12e,"m2exp != 0");\n}" { (declaration "mp_limb_t *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "mpz_ptr x;" type_identifier identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = m2exp + 0x1f >> 5;" (assignment_expression "uVar1 = m2exp + 0x1f >> 5" identifier = (binary_expression "m2exp + 0x1f >> 5" (binary_expression "m2exp + 0x1f" identifier + number_literal) >> number_literal)) ;) (if_statement "if (m2exp != 0) {\n    x = (mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24);\n    rstate->_mp_seed[0]._mp_d = (mp_limb_t *)x;\n    (rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator;\n    __gmpz_init2(x,m2exp);\n    __s = x->_mp_d;\n    if (uVar1 != 0) {\n      memset(__s,0,uVar1 * 4);\n    }\n    x->_mp_size = uVar1;\n    *__s = 1;\n    __gmpz_init(x + 1);\n    __gmpz_fdiv_r_2exp(x + 1,a,m2exp);\n    if (x[1]._mp_size == 0) {\n      x[1]._mp_size = 1;\n      *x[1]._mp_d = 0;\n    }\n    x[2]._mp_d = (mp_limb_t *)m2exp;\n    x[2]._mp_size = c;\n    x[2]._mp_alloc = (uint)(c != 0);\n    return;\n  }" if (parenthesized_expression "(m2exp != 0)" ( (binary_expression "m2exp != 0" identifier != number_literal) )) (compound_statement "{\n    x = (mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24);\n    rstate->_mp_seed[0]._mp_d = (mp_limb_t *)x;\n    (rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator;\n    __gmpz_init2(x,m2exp);\n    __s = x->_mp_d;\n    if (uVar1 != 0) {\n      memset(__s,0,uVar1 * 4);\n    }\n    x->_mp_size = uVar1;\n    *__s = 1;\n    __gmpz_init(x + 1);\n    __gmpz_fdiv_r_2exp(x + 1,a,m2exp);\n    if (x[1]._mp_size == 0) {\n      x[1]._mp_size = 1;\n      *x[1]._mp_d = 0;\n    }\n    x[2]._mp_d = (mp_limb_t *)m2exp;\n    x[2]._mp_size = c;\n    x[2]._mp_alloc = (uint)(c != 0);\n    return;\n  }" { (expression_statement "x = (mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24);" (assignment_expression "x = (mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24)" identifier = (call_expression "(mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)(0x24)" (call_expression "(mpz_ptr)(**(code **)PTR___gmp_allocate_func_0009dd9c)" (parenthesized_expression "(mpz_ptr)" ( identifier )) (argument_list "(**(code **)PTR___gmp_allocate_func_0009dd9c)" ( (pointer_expression "**(code **)PTR___gmp_allocate_func_0009dd9c" * (pointer_expression "*(code **)PTR___gmp_allocate_func_0009dd9c" * (cast_expression "(code **)PTR___gmp_allocate_func_0009dd9c" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ))) (argument_list "(0x24)" ( number_literal )))) ;) (expression_statement "rstate->_mp_seed[0]._mp_d = (mp_limb_t *)x;" (assignment_expression "rstate->_mp_seed[0]._mp_d = (mp_limb_t *)x" (field_expression "rstate->_mp_seed[0]._mp_d" (subscript_expression "rstate->_mp_seed[0]" (field_expression "rstate->_mp_seed" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(mp_limb_t *)x" ( (type_descriptor "mp_limb_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator;" (assignment_expression "(rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator" (field_expression "(rstate->_mp_algdata)._mp_lc" (parenthesized_expression "(rstate->_mp_algdata)" ( (field_expression "rstate->_mp_algdata" identifier -> field_identifier) )) . field_identifier) = (pointer_expression "&Linear_Congruential_Generator" & identifier)) ;) (expression_statement "__gmpz_init2(x,m2exp);" (call_expression "__gmpz_init2(x,m2exp)" identifier (argument_list "(x,m2exp)" ( identifier , identifier ))) ;) (expression_statement "__s = x->_mp_d;" (assignment_expression "__s = x->_mp_d" identifier = (field_expression "x->_mp_d" identifier -> field_identifier)) ;) (if_statement "if (uVar1 != 0) {\n      memset(__s,0,uVar1 * 4);\n    }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      memset(__s,0,uVar1 * 4);\n    }" { (expression_statement "memset(__s,0,uVar1 * 4);" (call_expression "memset(__s,0,uVar1 * 4)" identifier (argument_list "(__s,0,uVar1 * 4)" ( identifier , number_literal , (binary_expression "uVar1 * 4" identifier * number_literal) ))) ;) })) (expression_statement "x->_mp_size = uVar1;" (assignment_expression "x->_mp_size = uVar1" (field_expression "x->_mp_size" identifier -> field_identifier) = identifier) ;) (expression_statement "*__s = 1;" (assignment_expression "*__s = 1" (pointer_expression "*__s" * identifier) = number_literal) ;) (expression_statement "__gmpz_init(x + 1);" (call_expression "__gmpz_init(x + 1)" identifier (argument_list "(x + 1)" ( (binary_expression "x + 1" identifier + number_literal) ))) ;) (expression_statement "__gmpz_fdiv_r_2exp(x + 1,a,m2exp);" (call_expression "__gmpz_fdiv_r_2exp(x + 1,a,m2exp)" identifier (argument_list "(x + 1,a,m2exp)" ( (binary_expression "x + 1" identifier + number_literal) , identifier , identifier ))) ;) (if_statement "if (x[1]._mp_size == 0) {\n      x[1]._mp_size = 1;\n      *x[1]._mp_d = 0;\n    }" if (parenthesized_expression "(x[1]._mp_size == 0)" ( (binary_expression "x[1]._mp_size == 0" (field_expression "x[1]._mp_size" (subscript_expression "x[1]" identifier [ number_literal ]) . field_identifier) == number_literal) )) (compound_statement "{\n      x[1]._mp_size = 1;\n      *x[1]._mp_d = 0;\n    }" { (expression_statement "x[1]._mp_size = 1;" (assignment_expression "x[1]._mp_size = 1" (field_expression "x[1]._mp_size" (subscript_expression "x[1]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "*x[1]._mp_d = 0;" (assignment_expression "*x[1]._mp_d = 0" (pointer_expression "*x[1]._mp_d" * (field_expression "x[1]._mp_d" (subscript_expression "x[1]" identifier [ number_literal ]) . field_identifier)) = number_literal) ;) })) (expression_statement "x[2]._mp_d = (mp_limb_t *)m2exp;" (assignment_expression "x[2]._mp_d = (mp_limb_t *)m2exp" (field_expression "x[2]._mp_d" (subscript_expression "x[2]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(mp_limb_t *)m2exp" ( (type_descriptor "mp_limb_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "x[2]._mp_size = c;" (assignment_expression "x[2]._mp_size = c" (field_expression "x[2]._mp_size" (subscript_expression "x[2]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "x[2]._mp_alloc = (uint)(c != 0);" (assignment_expression "x[2]._mp_alloc = (uint)(c != 0)" (field_expression "x[2]._mp_alloc" (subscript_expression "x[2]" identifier [ number_literal ]) . field_identifier) = (call_expression "(uint)(c != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(c != 0)" ( (binary_expression "c != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__gmp_assert_fail("../../rand/randlc2x.c",0x12e,"m2exp != 0");" (call_expression "__gmp_assert_fail("../../rand/randlc2x.c",0x12e,"m2exp != 0")" identifier (argument_list "("../../rand/randlc2x.c",0x12e,"m2exp != 0")" ( (string_literal ""../../rand/randlc2x.c"" " string_content ") , number_literal , (string_literal ""m2exp != 0"" " string_content ") ))) ;) })))
(translation_unit "void __regparm2\n__gmp_randinit_lc_2exp\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *__s;\n  int iVar1;\n  uint uVar2;\n  int unaff_EBX;\n  int unaff_retaddr;\n  int *piVar3;\n  \n  entry(param_2,0x7e3a9);\n  uVar2 = param_5 + 0x1fU >> 5;\n  if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }\n  piVar3 = (int *)0x12e;\n  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);\n  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);\n  return;\n}\n\n" (function_definition "void __regparm2\n__gmp_randinit_lc_2exp\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *__s;\n  int iVar1;\n  uint uVar2;\n  int unaff_EBX;\n  int unaff_retaddr;\n  int *piVar3;\n  \n  entry(param_2,0x7e3a9);\n  uVar2 = param_5 + 0x1fU >> 5;\n  if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }\n  piVar3 = (int *)0x12e;\n  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);\n  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "__gmp_randinit_lc_2exp\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *__s;\n  int iVar1;\n  uint uVar2;\n  int unaff_EBX;\n  int unaff_retaddr;\n  int *piVar3;\n  \n  entry(param_2,0x7e3a9);\n  uVar2 = param_5 + 0x1fU >> 5;\n  if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }\n  piVar3 = (int *)0x12e;\n  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);\n  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);\n  return;\n}" { (declaration "undefined4 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "entry(param_2,0x7e3a9);" (call_expression "entry(param_2,0x7e3a9)" identifier (argument_list "(param_2,0x7e3a9)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = param_5 + 0x1fU >> 5;" (assignment_expression "uVar2 = param_5 + 0x1fU >> 5" identifier = (binary_expression "param_5 + 0x1fU >> 5" (binary_expression "param_5 + 0x1fU" identifier + number_literal) >> number_literal)) ;) (if_statement "if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }" { (expression_statement "iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);" (assignment_expression "iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24)" identifier = (call_expression "(*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24)" (parenthesized_expression "(*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))" ( (pointer_expression "*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3)" * (cast_expression "(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(unaff_EBX + 0x1f9f3)" * (pointer_expression "*(undefined4 **)(unaff_EBX + 0x1f9f3)" * (cast_expression "(undefined4 **)(unaff_EBX + 0x1f9f3)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x1f9f3)" ( (binary_expression "unaff_EBX + 0x1f9f3" identifier + number_literal) ))))))) )) (argument_list "(0x24)" ( number_literal )))) ;) (expression_statement "*(int *)(unaff_retaddr + 8) = iVar1;" (assignment_expression "*(int *)(unaff_retaddr + 8) = iVar1" (pointer_expression "*(int *)(unaff_retaddr + 8)" * (cast_expression "(int *)(unaff_retaddr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 8)" ( (binary_expression "unaff_retaddr + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;" (assignment_expression "*(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f" (pointer_expression "*(int *)(unaff_retaddr + 0x10)" * (cast_expression "(int *)(unaff_retaddr + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x10)" ( (binary_expression "unaff_retaddr + 0x10" identifier + number_literal) )))) = (binary_expression "unaff_EBX + 0x1f80f" identifier + number_literal)) ;) (expression_statement "__gmpz_init2(iVar1,param_5);" (call_expression "__gmpz_init2(iVar1,param_5)" identifier (argument_list "(iVar1,param_5)" ( identifier , identifier ))) ;) (expression_statement "__s = *(undefined4 **)(iVar1 + 8);" (assignment_expression "__s = *(undefined4 **)(iVar1 + 8)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 8)" * (cast_expression "(undefined4 **)(iVar1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      memset(__s,0,uVar2 * 4);\n    }" { (expression_statement "memset(__s,0,uVar2 * 4);" (call_expression "memset(__s,0,uVar2 * 4)" identifier (argument_list "(__s,0,uVar2 * 4)" ( identifier , number_literal , (binary_expression "uVar2 * 4" identifier * number_literal) ))) ;) })) (expression_statement "*(uint *)(iVar1 + 4) = uVar2;" (assignment_expression "*(uint *)(iVar1 + 4) = uVar2" (pointer_expression "*(uint *)(iVar1 + 4)" * (cast_expression "(uint *)(iVar1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*__s = 1;" (assignment_expression "*__s = 1" (pointer_expression "*__s" * identifier) = number_literal) ;) (expression_statement "__gmpz_init(iVar1 + 0xc);" (call_expression "__gmpz_init(iVar1 + 0xc)" identifier (argument_list "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))) ;) (expression_statement "__gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);" (call_expression "__gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5)" identifier (argument_list "(iVar1 + 0xc,param_3,param_5)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (if_statement "if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x10) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x10) == 0" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)(iVar1 + 0x14) = 0;" (assignment_expression "**(undefined4 **)(iVar1 + 0x14) = 0" (pointer_expression "**(undefined4 **)(iVar1 + 0x14)" * (pointer_expression "*(undefined4 **)(iVar1 + 0x14)" * (cast_expression "(undefined4 **)(iVar1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) = number_literal) ;) })) (expression_statement "*(int *)(iVar1 + 0x20) = param_5;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_5" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x1c) = param_4;" (assignment_expression "*(int *)(iVar1 + 0x1c) = param_4" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);" (assignment_expression "*(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0)" (pointer_expression "*(uint *)(iVar1 + 0x18)" * (cast_expression "(uint *)(iVar1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = (call_expression "(uint)(param_4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar3 = (int *)0x12e;" (assignment_expression "piVar3 = (int *)0x12e" identifier = (cast_expression "(int *)0x12e" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "__gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);" (call_expression "__gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf)" identifier (argument_list "(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf)" ( (binary_expression "unaff_EBX + 0x9ada" identifier + number_literal) , number_literal , (binary_expression "unaff_EBX + 0x9acf" identifier + number_literal) ))) ;) (expression_statement "(**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);" (call_expression "(**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_0009df80)" ( (pointer_expression "**(code **)PTR___gmp_free_func_0009df80" * (pointer_expression "*(code **)PTR___gmp_free_func_0009df80" * (cast_expression "(code **)PTR___gmp_free_func_0009df80" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(piVar3[2],*piVar3 << 2)" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) , (binary_expression "*piVar3 << 2" (pointer_expression "*piVar3" * identifier) << number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) )) (argument_list ( 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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( 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) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , 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) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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) )))) = 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) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression (pointer_expression * IDENT) << LIT) ))) ;) (return_statement return ;) })))
(function_definition "void __regparm2\n__gmp_randinit_lc_2exp\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  undefined4 *__s;\n  int iVar1;\n  uint uVar2;\n  int unaff_EBX;\n  int unaff_retaddr;\n  int *piVar3;\n  \n  entry(param_2,0x7e3a9);\n  uVar2 = param_5 + 0x1fU >> 5;\n  if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }\n  piVar3 = (int *)0x12e;\n  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);\n  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "__gmp_randinit_lc_2exp\n          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" (identifier "__gmp_randinit_lc_2exp") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined4 *__s;\n  int iVar1;\n  uint uVar2;\n  int unaff_EBX;\n  int unaff_retaddr;\n  int *piVar3;\n  \n  entry(param_2,0x7e3a9);\n  uVar2 = param_5 + 0x1fU >> 5;\n  if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }\n  piVar3 = (int *)0x12e;\n  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);\n  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);\n  return;\n}" ({ "{") (declaration "undefined4 *__s;" (type_identifier "undefined4") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "entry(param_2,0x7e3a9);" (call_expression "entry(param_2,0x7e3a9)" (identifier "entry") (argument_list "(param_2,0x7e3a9)" (( "(") (identifier "param_2") (, ",") (number_literal "0x7e3a9") () ")"))) (; ";")) (expression_statement "uVar2 = param_5 + 0x1fU >> 5;" (assignment_expression "uVar2 = param_5 + 0x1fU >> 5" (identifier "uVar2") (= "=") (binary_expression "param_5 + 0x1fU >> 5" (binary_expression "param_5 + 0x1fU" (identifier "param_5") (+ "+") (number_literal "0x1fU")) (>> ">>") (number_literal "5"))) (; ";")) (if_statement "if (param_5 != 0) {\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);\n    *(int *)(unaff_retaddr + 8) = iVar1;\n    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;\n    __gmpz_init2(iVar1,param_5);\n    __s = *(undefined4 **)(iVar1 + 8);\n    if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }\n    *(uint *)(iVar1 + 4) = uVar2;\n    *__s = 1;\n    __gmpz_init(iVar1 + 0xc);\n    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);\n    if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }\n    *(int *)(iVar1 + 0x20) = param_5;\n    *(int *)(iVar1 + 0x1c) = param_4;\n    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);\n    return;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);" (assignment_expression "iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24)" (identifier "iVar1") (= "=") (call_expression "(*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24)" (parenthesized_expression "(*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))" (( "(") (pointer_expression "*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3)" (* "*") (cast_expression "(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(unaff_EBX + 0x1f9f3)" (* "*") (pointer_expression "*(undefined4 **)(unaff_EBX + 0x1f9f3)" (* "*") (cast_expression "(undefined4 **)(unaff_EBX + 0x1f9f3)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x1f9f3)" (( "(") (binary_expression "unaff_EBX + 0x1f9f3" (identifier "unaff_EBX") (+ "+") (number_literal "0x1f9f3")) () ")"))))))) () ")")) (argument_list "(0x24)" (( "(") (number_literal "0x24") () ")")))) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 8) = iVar1;" (assignment_expression "*(int *)(unaff_retaddr + 8) = iVar1" (pointer_expression "*(int *)(unaff_retaddr + 8)" (* "*") (cast_expression "(int *)(unaff_retaddr + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 8)" (( "(") (binary_expression "unaff_retaddr + 8" (identifier "unaff_retaddr") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;" (assignment_expression "*(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f" (pointer_expression "*(int *)(unaff_retaddr + 0x10)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x10)" (( "(") (binary_expression "unaff_retaddr + 0x10" (identifier "unaff_retaddr") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "unaff_EBX + 0x1f80f" (identifier "unaff_EBX") (+ "+") (number_literal "0x1f80f"))) (; ";")) (expression_statement "__gmpz_init2(iVar1,param_5);" (call_expression "__gmpz_init2(iVar1,param_5)" (identifier "__gmpz_init2") (argument_list "(iVar1,param_5)" (( "(") (identifier "iVar1") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "__s = *(undefined4 **)(iVar1 + 8);" (assignment_expression "__s = *(undefined4 **)(iVar1 + 8)" (identifier "__s") (= "=") (pointer_expression "*(undefined4 **)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (uVar2 != 0) {\n      memset(__s,0,uVar2 * 4);\n    }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      memset(__s,0,uVar2 * 4);\n    }" ({ "{") (expression_statement "memset(__s,0,uVar2 * 4);" (call_expression "memset(__s,0,uVar2 * 4)" (identifier "memset") (argument_list "(__s,0,uVar2 * 4)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(iVar1 + 4) = uVar2;" (assignment_expression "*(uint *)(iVar1 + 4) = uVar2" (pointer_expression "*(uint *)(iVar1 + 4)" (* "*") (cast_expression "(uint *)(iVar1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*__s = 1;" (assignment_expression "*__s = 1" (pointer_expression "*__s" (* "*") (identifier "__s")) (= "=") (number_literal "1")) (; ";")) (expression_statement "__gmpz_init(iVar1 + 0xc);" (call_expression "__gmpz_init(iVar1 + 0xc)" (identifier "__gmpz_init") (argument_list "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))) (; ";")) (expression_statement "__gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);" (call_expression "__gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5)" (identifier "__gmpz_fdiv_r_2exp") (argument_list "(iVar1 + 0xc,param_3,param_5)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) (, ",") (identifier "param_3") (, ",") (identifier "param_5") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x10) == 0) {\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x10) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x10) == 0" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x10) = 1;\n      **(undefined4 **)(iVar1 + 0x14) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "**(undefined4 **)(iVar1 + 0x14) = 0;" (assignment_expression "**(undefined4 **)(iVar1 + 0x14) = 0" (pointer_expression "**(undefined4 **)(iVar1 + 0x14)" (* "*") (pointer_expression "*(undefined4 **)(iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*(int *)(iVar1 + 0x20) = param_5;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_5" (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(int *)(iVar1 + 0x1c) = param_4;" (assignment_expression "*(int *)(iVar1 + 0x1c) = param_4" (pointer_expression "*(int *)(iVar1 + 0x1c)" (* "*") (cast_expression "(int *)(iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);" (assignment_expression "*(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0)" (pointer_expression "*(uint *)(iVar1 + 0x18)" (* "*") (cast_expression "(uint *)(iVar1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (call_expression "(uint)(param_4 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)0x12e;" (assignment_expression "piVar3 = (int *)0x12e" (identifier "piVar3") (= "=") (cast_expression "(int *)0x12e" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x12e"))) (; ";")) (expression_statement "__gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);" (call_expression "__gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf)" (identifier "__gmp_assert_fail") (argument_list "(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf)" (( "(") (binary_expression "unaff_EBX + 0x9ada" (identifier "unaff_EBX") (+ "+") (number_literal "0x9ada")) (, ",") (number_literal "0x12e") (, ",") (binary_expression "unaff_EBX + 0x9acf" (identifier "unaff_EBX") (+ "+") (number_literal "0x9acf")) () ")"))) (; ";")) (expression_statement "(**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);" (call_expression "(**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_0009df80)" (( "(") (pointer_expression "**(code **)PTR___gmp_free_func_0009df80" (* "*") (pointer_expression "*(code **)PTR___gmp_free_func_0009df80" (* "*") (cast_expression "(code **)PTR___gmp_free_func_0009df80" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___gmp_free_func_0009df80")))) () ")")) (argument_list "(piVar3[2],*piVar3 << 2)" (( "(") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (, ",") (binary_expression "*piVar3 << 2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (<< "<<") (number_literal "2")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "gmp_randalg_t": Some values do not have unique names */

void function_1(type_1 *rstate,type_2 a,type_3 var_8,type_4 var_1)

{
  type_5 *__s;
  type_6 var_6;
  type_7 var_3;
  
  var_3 = var_1 + 0x1f >> 5;
  if (var_1 != 0) {
    var_6 = (type_6)(**(type_8 **)PTR___gmp_allocate_func_0009dd9c)(0x24);
    rstate->_mp_seed[0]._mp_d = (type_5 *)var_6;
    (rstate->_mp_algdata)._mp_lc = &Linear_Congruential_Generator;
    var_2(var_6,var_1);
    __s = var_6->_mp_d;
    if (var_3 != 0) {
      var_4(__s,0,var_3 * 4);
    }
    var_6->_mp_size = var_3;
    *__s = 1;
    var_5(var_6 + 1);
    var_7(var_6 + 1,a,var_1);
    if (var_6[1]._mp_size == 0) {
      var_6[1]._mp_size = 1;
      *var_6[1]._mp_d = 0;
    }
    var_6[2]._mp_d = (type_5 *)var_1;
    var_6[2]._mp_size = var_8;
    var_6[2]._mp_alloc = (type_7)(var_8 != 0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_9("../../rand/randlc2x.c",0x12e,"m2exp != 0");
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void __regparm2
MASKED
          (undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)

{
  undefined4 *__s;
  int iVar1;
  uint uVar2;
  int unaff_EBX;
  int unaff_retaddr;
  int *piVar3;
  
  entry(param_2,0x7e3a9);
  uVar2 = param_5 + 0x1fU >> 5;
  if (param_5 != 0) {
    iVar1 = (*(code *)**(undefined4 **)(unaff_EBX + 0x1f9f3))(0x24);
    *(int *)(unaff_retaddr + 8) = iVar1;
    *(int *)(unaff_retaddr + 0x10) = unaff_EBX + 0x1f80f;
    __gmpz_init2(iVar1,param_5);
    __s = *(undefined4 **)(iVar1 + 8);
    if (uVar2 != 0) {
      memset(__s,0,uVar2 * 4);
    }
    *(uint *)(iVar1 + 4) = uVar2;
    *__s = 1;
    __gmpz_init(iVar1 + 0xc);
    __gmpz_fdiv_r_2exp(iVar1 + 0xc,param_3,param_5);
    if (*(int *)(iVar1 + 0x10) == 0) {
      *(undefined4 *)(iVar1 + 0x10) = 1;
      **(undefined4 **)(iVar1 + 0x14) = 0;
    }
    *(int *)(iVar1 + 0x20) = param_5;
    *(int *)(iVar1 + 0x1c) = param_4;
    *(uint *)(iVar1 + 0x18) = (uint)(param_4 != 0);
    return;
  }
  piVar3 = (int *)0x12e;
  __gmp_assert_fail(unaff_EBX + 0x9ada,0x12e,unaff_EBX + 0x9acf);
  (**(code **)PTR___gmp_free_func_0009df80)(piVar3[2],*piVar3 << 2);
  return;
}

