//
// RSA_set0_key from 0x82db2c to 0x82dbb0 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x6635c
//
// 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
//
int __fastcall RSA_set0_key(__int64 a1, int a2, int a3)
{
_DWORD *v3; // r4
bool v4; // zf
int v5; // r7
v3 = (_DWORD *)a1;
LODWORD(a1) = *(_DWORD *)(a1 + 16);
if ( !a1 )
return 0;
v4 = a2 == 0;
if ( !a2 )
v4 = v3[5] == 0;
if ( v4 )
return 0;
v5 = HIDWORD(a1);
if ( HIDWORD(a1) )
{
BN_free(a1);
v3[4] = v5;
}
if ( a2 )
{
BN_free(v3[5]);
v3[5] = a2;
}
if ( a3 )
{
BN_free(v3[6]);
v3[6] = a3;
}
return 1;
}