//
// RSA_set0_factors from 0x10524a0 to 0x1052530 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0xf4018
//
// 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:39 +0000
//
__int64 __fastcall RSA_set0_factors(__int64 a1, __int64 a2, __int64 a3)
{
if ( !a2 && !*(_QWORD *)(a1 + 56) || !a3 && !*(_QWORD *)(a1 + 64) )
return 0;
if ( a2 )
{
BN_free(*(_QWORD *)(a1 + 56));
*(_QWORD *)(a1 + 56) = a2;
}
if ( a3 )
{
BN_free(*(_QWORD *)(a1 + 64));
*(_QWORD *)(a1 + 64) = a3;
}
return 1;
}