//
// SRP_Calc_A from 0x105ccdc to 0x105cd80 (164 bytes)
//
// 2 xrefs:
// > SRP_Calc_A_param @ 0xfdaf24
// > ??> @ 0x47998
//
// 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:48 +0000
//
__int64 __fastcall SRP_Calc_A(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x23
__int64 v7; // x0
__int64 v8; // x19
__int64 v10; // x0
if ( a2 == 0 || a3 == 0 )
return 0;
if ( !a1 )
return 0;
v6 = BN_CTX_new(a1, a2, a3);
if ( !v6 )
return 0;
v7 = BN_new();
v8 = v7;
if ( v7 )
{
if ( !(unsigned int)BN_mod_exp(v7, a3, a1, a2, v6) )
{
v10 = v8;
v8 = 0;
BN_free(v10);
}
}
BN_CTX_free(v6);
return v8;
}