//
// RAND_get_rand_method from 0xdcf61c to 0xdcf688 (108 bytes)
//
// 7 xrefs:
// > rand_cleanup_int @ 0xdcf700
// > RAND_seed @ 0xdcf734
// > RAND_add @ 0xdcf774
// > RAND_bytes @ 0xdcf7b4
// > RAND_pseudo_bytes @ 0xdcf7f8
// > RAND_status @ 0xdcf830
// > ??> @ 0x8c028
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 RAND_get_rand_method()
{
__int64 result; // x0
__int64 default_RAND; // x0
__int64 v2; // x21
result = qword_125F1B8;
if ( !qword_125F1B8 )
{
default_RAND = ENGINE_get_default_RAND();
v2 = default_RAND;
if ( default_RAND )
{
result = ENGINE_get_RAND(default_RAND);
qword_125F1B8 = result;
if ( result )
{
qword_125F1B0 = v2;
return result;
}
default_RAND = ENGINE_finish(v2);
}
result = RAND_OpenSSL(default_RAND);
qword_125F1B8 = result;
}
return result;
}