//
// RSA_set0_crt_params from 0xa42830 to 0xa428d0 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x7fdfc
//
// 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_crt_params(int *a1, int a2, int a3, int a4)
{
bool v4; // zf
bool v5; // zf
bool v6; // zf
v4 = a2 == 0;
if ( !a2 )
v4 = a1[9] == 0;
if ( v4 )
return 0;
v5 = a3 == 0;
if ( !a3 )
v5 = a1[10] == 0;
if ( v5 )
return 0;
v6 = a4 == 0;
if ( !a4 )
v6 = a1[11] == 0;
if ( v6 )
return 0;
if ( a2 )
{
BN_free(a1[9]);
a1[9] = a2;
}
if ( a3 )
{
BN_free(a1[10]);
a1[10] = a3;
}
if ( a4 )
{
BN_free(a1[11]);
a1[11] = a4;
}
return 1;
}