//
// RSA_set0_crt_params from 0x1052530 to 0x10525dc (172 bytes)
//
// 1 xrefs:
// > ??> @ 0xd93d8
//
// 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_crt_params(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // x0
v5 = a1[9];
if ( !a2 && !v5 || !a3 && !a1[10] || !a4 && !a1[11] )
return 0;
if ( a2 )
{
BN_free(v5);
a1[9] = a2;
}
if ( a3 )
{
BN_free(a1[10]);
a1[10] = a3;
}
if ( a4 )
{
BN_free(a1[11]);
a1[11] = a4;
}
return 1;
}