//
// SRP_Calc_A from 0xdde99c to 0xddea40 (164 bytes)
//
// 2 xrefs:
// > SRP_Calc_A_param @ 0xd5cbd0
// > ??> @ 0x2fe68
//
// 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
//
__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;
}