//
// SRP_Verify_B_mod_N from 0xa4bbe4 to 0xa4bc6c (136 bytes)
//
// 3 xrefs:
// > srp_generate_client_master_secret @ 0x9ca7c4
// > SRP_Verify_A_mod_N @ 0xa4bc6c
// > ??> @ 0x775fc
//
// 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:20 +0000
//
bool __fastcall SRP_Verify_B_mod_N(int a1, int a2, int a3, int a4)
{
bool v4; // zf
int v8; // r0
int v9; // r6
int v10; // r0
int v11; // r7
_BOOL4 v12; // r4
v4 = a2 == 0;
if ( a2 )
v4 = a1 == 0;
if ( v4 )
return 0;
v8 = BN_CTX_new(a1);
v9 = v8;
if ( !v8 )
return 0;
v10 = BN_new();
v11 = v10;
v12 = v10 && BN_nnmod(v10, a1, a2, v9, a4) && !BN_is_zero(v11);
BN_CTX_free(v9);
BN_free(v11);
return v12;
}