//
// SRP_Verify_B_mod_N from 0x105cf58 to 0x105cff4 (156 bytes)
//
// 3 xrefs:
// > srp_generate_client_master_secret @ 0xfdacac
// > SRP_Verify_A_mod_N @ 0x105cff4
// > ??> @ 0xd2ec8
//
// 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
//
bool __fastcall SRP_Verify_B_mod_N(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v5; // x21
__int64 v6; // x0
__int64 v7; // x22
_BOOL4 v8; // w19
if ( !a1 )
return 0;
if ( !a2 )
return 0;
v5 = BN_CTX_new(a1, a2, a3);
if ( !v5 )
return 0;
v6 = BN_new();
v7 = v6;
v8 = v6 && (unsigned int)BN_nnmod(v6, a1, a2, v5) && !BN_is_zero(v7);
BN_CTX_free(v5);
BN_free(v7);
return v8;
}