//
// RAND_add from 0xa3ec10 to 0xa3ec54 (68 bytes)
//
// 17 xrefs:
// > sub_8539B8 @ 0x853a5e
// > sub_85520C @ 0x855260
// > sub_9B3990 @ 0x9b39d0
// > EVP_PKEY2PKCS8 @ 0xa18ad8
// > PEM_ASN1_write_bio @ 0xa36cb8
// > RAND_load_file @ 0xa3ed78
// > RAND_load_file @ 0xa3edf4
// > RAND_load_file @ 0xa3ee58
// > RSA_setup_blinding @ 0xa42158
// > BN_rand @ 0xa852e0
// > BN_pseudo_rand @ 0xa854a8
// > BN_bntest_rand @ 0xa85674
// > RAND_poll @ 0xad2930
// > RAND_poll @ 0xad2958
// > RAND_poll @ 0xad2974
// > RAND_poll @ 0xad2994
// > ??> @ 0x6802c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:12 +0000
//
int __fastcall RAND_add(int a1, int a2, int a3, int a4)
{
int result; // r0
int (__fastcall *v9)(int, int, int, int); // r12
result = RAND_get_rand_method();
if ( result )
{
v9 = *(int (__fastcall **)(int, int, int, int))(result + 12);
if ( v9 )
return v9(a1, a2, a3, a4);
}
return result;
}