
/* 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_randseed_ui(__gmp_randstate_struct *rstate,ulong seed)

{
  int iVar1;
  int in_GS_OFFSET;
  mp_limb_t zlimbs [1];
  mpz_t zseed;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  zseed[0]._mp_d = zlimbs;
  zlimbs[0] = seed;
  zseed[0]._mp_size = (int)(seed != 0);
  __gmp_randseed(rstate,zseed);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void __gmp_randseed_ui(int param_1)

{
  int in_GS_OFFSET;
  undefined4 unaff_retaddr;
  int local_24;
  undefined1 local_20 [4];
  uint local_1c;
  int *local_18;
  int local_14;
  undefined4 uStack_8;
  
  uStack_8 = 0x79bc6;
  entry();
  local_14 = *(int *)(in_GS_OFFSET + 0x14);
  local_18 = &local_24;
  local_24 = param_1;
  local_1c = (uint)(param_1 != 0);
  __gmp_randseed(unaff_retaddr,local_20);
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00079d30();
}


PUSH EBX
CALL 0x0001c340
ADD EBX,0x1f43a
SUB ESP,0x28
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],ECX
XOR ECX,ECX
MOV EAX,dword ptr [ESP + 0x34]
LEA EDX,[ESP + 0xc]
MOV dword ptr [ESP + 0x18],EDX
TEST EAX,EAX
MOV dword ptr [ESP + 0xc],EAX
SETNZ AL
SUB ESP,0x8
MOVZX EAX,AL
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[ESP + 0x18]
PUSH EAX
PUSH dword ptr [ESP + 0x3c]
CALL 0x0001be80
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00079c1e
ADD ESP,0x28
POP EBX
RET
CALL 0x00079d30
(translation_unit "void __gmp_randseed_ui(int param_1)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_24;\n  undefined1 local_20 [4];\n  uint local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x79bc6;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = &local_24;\n  local_24 = param_1;\n  local_1c = (uint)(param_1 != 0);\n  __gmp_randseed(unaff_retaddr,local_20);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00079d30();\n}\n\n" (function_definition "void __gmp_randseed_ui(int param_1)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_24;\n  undefined1 local_20 [4];\n  uint local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x79bc6;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = &local_24;\n  local_24 = param_1;\n  local_1c = (uint)(param_1 != 0);\n  __gmp_randseed(unaff_retaddr,local_20);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00079d30();\n}" primitive_type (function_declarator "__gmp_randseed_ui(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_24;\n  undefined1 local_20 [4];\n  uint local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x79bc6;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = &local_24;\n  local_24 = param_1;\n  local_1c = (uint)(param_1 != 0);\n  __gmp_randseed(unaff_retaddr,local_20);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00079d30();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined1 local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (declaration "uint local_1c;" type_identifier identifier ;) (declaration "int *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x79bc6;" (assignment_expression "uStack_8 = 0x79bc6" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_18 = &local_24;" (assignment_expression "local_18 = &local_24" identifier = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "local_24 = param_1;" (assignment_expression "local_24 = param_1" identifier = identifier) ;) (expression_statement "local_1c = (uint)(param_1 != 0);" (assignment_expression "local_1c = (uint)(param_1 != 0)" identifier = (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )))) ;) (expression_statement "__gmp_randseed(unaff_retaddr,local_20);" (call_expression "__gmp_randseed(unaff_retaddr,local_20)" identifier (argument_list "(unaff_retaddr,local_20)" ( identifier , identifier ))) ;) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00079d30();" (call_expression "FUN_00079d30()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "gmp_randalg_t": Some values do not have unique names */\n\nvoid __gmp_randseed_ui(__gmp_randstate_struct *rstate,ulong seed)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  mp_limb_t zlimbs [1];\n  mpz_t zseed;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  zseed[0]._mp_d = zlimbs;\n  zlimbs[0] = seed;\n  zseed[0]._mp_size = (int)(seed != 0);\n  __gmp_randseed(rstate,zseed);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "void __gmp_randseed_ui(__gmp_randstate_struct *rstate,ulong seed)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  mp_limb_t zlimbs [1];\n  mpz_t zseed;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  zseed[0]._mp_d = zlimbs;\n  zlimbs[0] = seed;\n  zseed[0]._mp_size = (int)(seed != 0);\n  __gmp_randseed(rstate,zseed);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "__gmp_randseed_ui(__gmp_randstate_struct *rstate,ulong seed)" identifier (parameter_list "(__gmp_randstate_struct *rstate,ulong seed)" ( (parameter_declaration "__gmp_randstate_struct *rstate" type_identifier (pointer_declarator "*rstate" * identifier)) , (parameter_declaration "ulong seed" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  mp_limb_t zlimbs [1];\n  mpz_t zseed;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  zseed[0]._mp_d = zlimbs;\n  zlimbs[0] = seed;\n  zseed[0]._mp_size = (int)(seed != 0);\n  __gmp_randseed(rstate,zseed);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "mp_limb_t zlimbs [1];" type_identifier (array_declarator "zlimbs [1]" identifier [ number_literal ]) ;) (declaration "mpz_t zseed;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "zseed[0]._mp_d = zlimbs;" (assignment_expression "zseed[0]._mp_d = zlimbs" (field_expression "zseed[0]._mp_d" (subscript_expression "zseed[0]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "zlimbs[0] = seed;" (assignment_expression "zlimbs[0] = seed" (subscript_expression "zlimbs[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "zseed[0]._mp_size = (int)(seed != 0);" (assignment_expression "zseed[0]._mp_size = (int)(seed != 0)" (field_expression "zseed[0]._mp_size" (subscript_expression "zseed[0]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(int)(seed != 0)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(seed != 0)" ( (binary_expression "seed != 0" identifier != number_literal) )))) ;) (expression_statement "__gmp_randseed(rstate,zseed);" (call_expression "__gmp_randseed(rstate,zseed)" identifier (argument_list "(rstate,zseed)" ( identifier , identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __gmp_randseed_ui(int param_1)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_24;\n  undefined1 local_20 [4];\n  uint local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x79bc6;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = &local_24;\n  local_24 = param_1;\n  local_1c = (uint)(param_1 != 0);\n  __gmp_randseed(unaff_retaddr,local_20);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}\n\n" (function_definition "void __gmp_randseed_ui(int param_1)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_24;\n  undefined1 local_20 [4];\n  uint local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x79bc6;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = &local_24;\n  local_24 = param_1;\n  local_1c = (uint)(param_1 != 0);\n  __gmp_randseed(unaff_retaddr,local_20);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}" primitive_type (function_declarator "__gmp_randseed_ui(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_24;\n  undefined1 local_20 [4];\n  uint local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x79bc6;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = &local_24;\n  local_24 = param_1;\n  local_1c = (uint)(param_1 != 0);\n  __gmp_randseed(unaff_retaddr,local_20);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined1 local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (declaration "uint local_1c;" type_identifier identifier ;) (declaration "int *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x79bc6;" (assignment_expression "uStack_8 = 0x79bc6" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_18 = &local_24;" (assignment_expression "local_18 = &local_24" identifier = (pointer_expression "&local_24" & identifier)) ;) (expression_statement "local_24 = param_1;" (assignment_expression "local_24 = param_1" identifier = identifier) ;) (expression_statement "local_1c = (uint)(param_1 != 0);" (assignment_expression "local_1c = (uint)(param_1 != 0)" identifier = (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )))) ;) (expression_statement "__gmp_randseed(unaff_retaddr,local_20);" (call_expression "__gmp_randseed(unaff_retaddr,local_20)" identifier (argument_list "(unaff_retaddr,local_20)" ( identifier , identifier ))) ;) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00079d30();" (call_expression "FUN_00079d30()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __gmp_randseed_ui(int param_1)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_24;\n  undefined1 local_20 [4];\n  uint local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x79bc6;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = &local_24;\n  local_24 = param_1;\n  local_1c = (uint)(param_1 != 0);\n  __gmp_randseed(unaff_retaddr,local_20);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}" (primitive_type "void") (function_declarator "__gmp_randseed_ui(int param_1)" (identifier "__gmp_randseed_ui") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_24;\n  undefined1 local_20 [4];\n  uint local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x79bc6;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  local_18 = &local_24;\n  local_24 = param_1;\n  local_1c = (uint)(param_1 != 0);\n  __gmp_randseed(unaff_retaddr,local_20);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00079d30();\n}" ({ "{") (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined1 local_20 [4];" (type_identifier "undefined1") (array_declarator "local_20 [4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "uint local_1c;" (type_identifier "uint") (identifier "local_1c") (; ";")) (declaration "int *local_18;" (primitive_type "int") (pointer_declarator "*local_18" (* "*") (identifier "local_18")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x79bc6;" (assignment_expression "uStack_8 = 0x79bc6" (identifier "uStack_8") (= "=") (number_literal "0x79bc6")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_18 = &local_24;" (assignment_expression "local_18 = &local_24" (identifier "local_18") (= "=") (pointer_expression "&local_24" (& "&") (identifier "local_24"))) (; ";")) (expression_statement "local_24 = param_1;" (assignment_expression "local_24 = param_1" (identifier "local_24") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_1c = (uint)(param_1 != 0);" (assignment_expression "local_1c = (uint)(param_1 != 0)" (identifier "local_1c") (= "=") (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (expression_statement "__gmp_randseed(unaff_retaddr,local_20);" (call_expression "__gmp_randseed(unaff_retaddr,local_20)" (identifier "__gmp_randseed") (argument_list "(unaff_retaddr,local_20)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "local_20") () ")"))) (; ";")) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00079d30();" (call_expression "FUN_00079d30()" (identifier "FUN_00079d30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* 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 var_2)

{
  int var_4;
  int var_1;
  type_3 zlimbs [1];
  type_4 zseed;
  
  var_4 = *(int *)(var_1 + 0x14);
  zseed[0]._mp_d = zlimbs;
  zlimbs[0] = var_2;
  zseed[0]._mp_size = (int)(var_2 != 0);
  var_3(rstate,zseed);
  if (var_4 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(int param_1)

{
  int in_GS_OFFSET;
  undefined4 unaff_retaddr;
  int local_24;
  undefined1 local_20 [4];
  uint local_1c;
  int *local_18;
  int local_14;
  undefined4 uStack_8;
  
  uStack_8 = 0x79bc6;
  entry();
  local_14 = *(int *)(in_GS_OFFSET + 0x14);
  local_18 = &local_24;
  local_24 = param_1;
  local_1c = (uint)(param_1 != 0);
  __gmp_randseed(unaff_retaddr,local_20);
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00079d30();
}

