//
// RAND_add from 0x104dabc to 0x104db00 (68 bytes)
//
// 16 xrefs:
// > sub_E2DA90 @ 0xe2dbe8
// > sub_E2FB90 @ 0xe2fc54
// > sub_FC5998 @ 0xfc59e8
// > EVP_PKEY2PKCS8 @ 0x1029058
// > PEM_ASN1_write_bio @ 0x1045df8
// > RAND_load_file @ 0x104dc2c
// > RAND_load_file @ 0x104dcac
// > RSA_setup_blinding @ 0x1051e2c
// > BN_rand @ 0x1097fdc
// > BN_pseudo_rand @ 0x10981ec
// > BN_bntest_rand @ 0x1098404
// > RAND_poll @ 0x10e61a4
// > RAND_poll @ 0x10e61cc
// > RAND_poll @ 0x10e61e8
// > RAND_poll @ 0x10e6204
// > ??> @ 0xfe338
//
// 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_add(__int64 a1, __int64 a2, long double a3)
{
__int64 result; // x0
__int64 (__fastcall *v5)(__int64, __int64, long double); // x2
result = RAND_get_rand_method();
if ( result )
{
v5 = *(__int64 (__fastcall **)(__int64, __int64, long double))(result + 24);
if ( v5 )
return v5(a1, a2, a3);
}
return result;
}