//
// BN_is_word from 0xff8d2c to 0xff8d68 (60 bytes)
//
// 6 xrefs:
// > int_bn_mod_inverse @ 0x1096e2c
// > int_bn_mod_inverse @ 0x1096f44
// > DH_check @ 0x10a7bec
// > DH_check @ 0x10a7c38
// > BN_is_prime_fasttest_ex @ 0x10f50b0
// > ??> @ 0xfc328
//
// 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:15:49 +0000
//
__int64 __fastcall BN_is_word(__int64 a1, __int64 a2)
{
__int64 result; // x0
result = BN_abs_is_word(a1, a2);
if ( (_DWORD)result )
{
result = 1;
if ( a2 )
return *(_DWORD *)(a1 + 16) == 0;
}
return result;
}