//
// RAND_set_rand_engine from 0x104d9e8 to 0x104da58 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0xfdae0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:37 +0000
//
__int64 __fastcall RAND_set_rand_engine(__int64 a1)
{
__int64 result; // x0
__int64 RAND; // x19
if ( !a1 )
{
RAND = 0;
LABEL_4:
RAND_set_rand_method(RAND);
qword_1567FB0 = a1;
return 1;
}
result = ENGINE_init(a1);
if ( !(_DWORD)result )
return result;
RAND = ENGINE_get_RAND(a1);
if ( RAND )
goto LABEL_4;
ENGINE_finish(a1);
return 0;
}