//
// BN_mod_sub_quick from 0xe19860 to 0xe198b0 (80 bytes)
//
// 12 xrefs:
// > ec_GFp_simple_set_compressed_coordinates @ 0xd98864
// > ec_GFp_simple_dbl @ 0xd99df8
// > ec_GFp_simple_dbl @ 0xd99e40
// > ec_GFp_simple_dbl @ 0xd99e78
// > ec_GFp_simple_dbl @ 0xd99f28
// > ec_GFp_simple_add @ 0xd9a6ac
// > ec_GFp_simple_add @ 0xd9a6c4
// > ec_GFp_simple_add @ 0xd9a994
// > ec_GFp_simple_add @ 0xd9a9c0
// > ec_GFp_simple_add @ 0xd9aa38
// > ec_GFp_simple_is_on_curve @ 0xd9ad0c
// > ??> @ 0xa3998
//
// 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_sub_quick(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
unsigned __int64 *result; // x0
result = (unsigned __int64 *)BN_sub(a1, a2, a3);
if ( (_DWORD)result )
{
result = (_QWORD *)(dword_0 + 1);
if ( *(_DWORD *)(a1 + 16) )
return BN_add(a1, a1, a4);
}
return result;
}