//
// RSA_set0_key from 0xdd40a0 to 0xdd4140 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x3b7f0
//
// 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 __fastcall RSA_set0_key(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // x0
v5 = a1[4];
if ( !a2 && !v5 || !a3 && !a1[5] )
return 0;
if ( a2 )
{
BN_free(v5);
a1[4] = a2;
}
if ( a3 )
{
BN_free(a1[5]);
a1[5] = a3;
}
if ( a4 )
{
BN_free(a1[6]);
a1[6] = a4;
}
return 1;
}