
/* WARNING: Removing unreachable block (ram,0x00159350) */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
/* WARNING: Enum "gmp_randalg_t": Some values do not have unique names */

void __gmp_randinit(__gmp_randstate_struct *rstate,gmp_randalg_t alg,...)

{
  long lVar1;
  int iVar2;
  mp_bitcnt_t in_RDX;
  long in_FS_OFFSET;
  va_list ap;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (alg == GMP_RAND_ALG_DEFAULT) {
    iVar2 = __gmp_randinit_lc_2exp_size(rstate,in_RDX);
    if (iVar2 == 0) {
      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;
    }
  }
  else {
    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;
  }
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}



/* WARNING: Removing unreachable block (ram,0x00159350) */
/* WARNING: Restarted to delay deadcode elimination for space: stack */

void __gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)

{
  long lVar1;
  int iVar2;
  long in_FS_OFFSET;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_2 == 0) {
    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);
    if (iVar2 == 0) {
      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;
    }
  }
  else {
    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;
  }
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}


SUB RSP,0x58
MOV qword ptr [RSP + 0x30],RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
MOV dword ptr [RSP],0x10
LEA RAX,[RSP + 0x60]
MOV qword ptr [RSP + 0x8],RAX
LEA RAX,[RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
TEST ESI,ESI
JZ 0x00159321
MOV RAX,qword ptr [0x00172f30]
OR dword ptr [RAX],0x1
MOV RAX,qword ptr [RSP + 0x18]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x00159360
ADD RSP,0x58
RET
MOV EAX,0x10
CMP EAX,0x2f
JA 0x00159350
MOV EDX,EAX
ADD RDX,qword ptr [RSP + 0x10]
ADD EAX,0x8
MOV dword ptr [RSP],EAX
MOV RSI,qword ptr [RDX]
CALL 0x0010c260
TEST EAX,EAX
JNZ 0x0015930c
MOV RAX,qword ptr [0x00172f30]
OR dword ptr [RAX],0x8
JMP 0x0015930c
MOV RDX,qword ptr [RSP + 0x8]
LEA RAX,[RDX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00159338
CALL 0x0010b520
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00159350) */\n/* WARNING: Restarted to delay deadcode elimination for space: stack */\n\nvoid __gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" comment comment (function_definition "void __gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "__gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 param_1,int param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }" { (expression_statement "iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);" (assignment_expression "iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3)" identifier = (call_expression "__gmp_randinit_lc_2exp_size(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }" { (expression_statement "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;" (assignment_expression "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)PTR___gmp_errno_00172f30 | 8" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) | number_literal)) ;) })) }) (else_clause "else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" else (compound_statement "{\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" { (expression_statement "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;" (assignment_expression "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)PTR___gmp_errno_00172f30 | 1" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) | number_literal)) ;) }))) (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00159350) */\n/* WARNING: Restarted to delay deadcode elimination for space: stack */\n/* WARNING: Enum "gmp_randalg_t": Some values do not have unique names */\n\nvoid __gmp_randinit(__gmp_randstate_struct *rstate,gmp_randalg_t alg,...)\n\n{\n  long lVar1;\n  int iVar2;\n  mp_bitcnt_t in_RDX;\n  long in_FS_OFFSET;\n  va_list ap;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (alg == GMP_RAND_ALG_DEFAULT) {\n    iVar2 = __gmp_randinit_lc_2exp_size(rstate,in_RDX);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void __gmp_randinit(__gmp_randstate_struct *rstate,gmp_randalg_t alg,...)\n\n{\n  long lVar1;\n  int iVar2;\n  mp_bitcnt_t in_RDX;\n  long in_FS_OFFSET;\n  va_list ap;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (alg == GMP_RAND_ALG_DEFAULT) {\n    iVar2 = __gmp_randinit_lc_2exp_size(rstate,in_RDX);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "__gmp_randinit(__gmp_randstate_struct *rstate,gmp_randalg_t alg,...)" identifier (parameter_list "(__gmp_randstate_struct *rstate,gmp_randalg_t alg,...)" ( (parameter_declaration "__gmp_randstate_struct *rstate" type_identifier (pointer_declarator "*rstate" * identifier)) , (parameter_declaration "gmp_randalg_t alg" type_identifier identifier) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  mp_bitcnt_t in_RDX;\n  long in_FS_OFFSET;\n  va_list ap;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (alg == GMP_RAND_ALG_DEFAULT) {\n    iVar2 = __gmp_randinit_lc_2exp_size(rstate,in_RDX);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "mp_bitcnt_t in_RDX;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "va_list ap;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (alg == GMP_RAND_ALG_DEFAULT) {\n    iVar2 = __gmp_randinit_lc_2exp_size(rstate,in_RDX);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" if (parenthesized_expression "(alg == GMP_RAND_ALG_DEFAULT)" ( (binary_expression "alg == GMP_RAND_ALG_DEFAULT" identifier == identifier) )) (compound_statement "{\n    iVar2 = __gmp_randinit_lc_2exp_size(rstate,in_RDX);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }" { (expression_statement "iVar2 = __gmp_randinit_lc_2exp_size(rstate,in_RDX);" (assignment_expression "iVar2 = __gmp_randinit_lc_2exp_size(rstate,in_RDX)" identifier = (call_expression "__gmp_randinit_lc_2exp_size(rstate,in_RDX)" identifier (argument_list "(rstate,in_RDX)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }" { (expression_statement "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;" (assignment_expression "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)PTR___gmp_errno_00172f30 | 8" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) | number_literal)) ;) })) }) (else_clause "else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" else (compound_statement "{\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" { (expression_statement "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;" (assignment_expression "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)PTR___gmp_errno_00172f30 | 1" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) | number_literal)) ;) }))) (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void __gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "__gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 param_1,int param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }" { (expression_statement "iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);" (assignment_expression "iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3)" identifier = (call_expression "__gmp_randinit_lc_2exp_size(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }" { (expression_statement "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;" (assignment_expression "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)PTR___gmp_errno_00172f30 | 8" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) | number_literal)) ;) })) }) (else_clause "else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" else (compound_statement "{\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" { (expression_statement "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;" (assignment_expression "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)PTR___gmp_errno_00172f30 | 1" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" * (cast_expression "(uint *)PTR___gmp_errno_00172f30" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) | number_literal)) ;) }))) (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) | LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) | LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "__gmp_randinit(undefined8 param_1,int param_2,undefined8 param_3)" (identifier "__gmp_randinit") (parameter_list "(undefined8 param_1,int param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }\n  else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);\n    if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }\n  }" ({ "{") (expression_statement "iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3);" (assignment_expression "iVar2 = __gmp_randinit_lc_2exp_size(param_1,param_3)" (identifier "iVar2") (= "=") (call_expression "__gmp_randinit_lc_2exp_size(param_1,param_3)" (identifier "__gmp_randinit_lc_2exp_size") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;\n    }" ({ "{") (expression_statement "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;" (assignment_expression "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" (* "*") (cast_expression "(uint *)PTR___gmp_errno_00172f30" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_errno_00172f30"))) (= "=") (binary_expression "*(uint *)PTR___gmp_errno_00172f30 | 8" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" (* "*") (cast_expression "(uint *)PTR___gmp_errno_00172f30" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_errno_00172f30"))) (| "|") (number_literal "8"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" (else "else") (compound_statement "{\n    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;\n  }" ({ "{") (expression_statement "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;" (assignment_expression "*(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" (* "*") (cast_expression "(uint *)PTR___gmp_errno_00172f30" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_errno_00172f30"))) (= "=") (binary_expression "*(uint *)PTR___gmp_errno_00172f30 | 1" (pointer_expression "*(uint *)PTR___gmp_errno_00172f30" (* "*") (cast_expression "(uint *)PTR___gmp_errno_00172f30" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_errno_00172f30"))) (| "|") (number_literal "1"))) (; ";")) (} "}")))) (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "lVar1") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Removing unreachable block (ram,0x00159350) */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
/* WARNING: Enum "gmp_randalg_t": Some values do not have unique names */

void function_1(type_1 *rstate,type_2 var_2,...)

{
  long var_6;
  int var_5;
  type_3 in_RDX;
  long var_1;
  type_4 ap;
  
  var_6 = *(long *)(var_1 + 0x28);
  if (var_2 == var_3) {
    var_5 = var_4(rstate,in_RDX);
    if (var_5 == 0) {
      *(type_5 *)PTR___gmp_errno_00172f30 = *(type_5 *)PTR___gmp_errno_00172f30 | 8;
    }
  }
  else {
    *(type_5 *)PTR___gmp_errno_00172f30 = *(type_5 *)PTR___gmp_errno_00172f30 | 1;
  }
  if (var_6 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_7();
  }
  return;
}


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

/* WARNING: Removing unreachable block (ram,0x00159350) */
/* WARNING: Restarted to delay deadcode elimination for space: stack */

void MASKED(undefined8 param_1,int param_2,undefined8 param_3)

{
  long lVar1;
  int iVar2;
  long in_FS_OFFSET;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_2 == 0) {
    iVar2 = MASKED_lc_2exp_size(param_1,param_3);
    if (iVar2 == 0) {
      *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 8;
    }
  }
  else {
    *(uint *)PTR___gmp_errno_00172f30 = *(uint *)PTR___gmp_errno_00172f30 | 1;
  }
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}

