//
// RSA_set0_key from 0xa4272c to 0xa427b0 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x7fddc
//
// 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:14 +0000
//
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;
}