//
// BN_mod_add from 0xe19760 to 0xe197b0 (80 bytes)
//
// 3 xrefs:
// > ec_GFp_simple_group_check_discriminant @ 0xd996e8
// > SRP_Calc_B @ 0xdde7c4
// > ??> @ 0x5ef98
//
// 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
//
unsigned __int64 *__fastcall BN_mod_add(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int32x2_t *a5)
{
unsigned __int64 *result; // x0
result = BN_add(a1, a2, a3);
if ( (_DWORD)result )
return (unsigned __int64 *)BN_nnmod(a1, a1, a4, a5);
return result;
}