//
// BN_is_word from 0xd7a9cc to 0xd7aa08 (60 bytes)
//
// 6 xrefs:
// > int_bn_mod_inverse @ 0xe18b2c
// > int_bn_mod_inverse @ 0xe18c44
// > DH_check @ 0xe298ec
// > DH_check @ 0xe29938
// > BN_is_prime_fasttest_ex @ 0xe770b0
// > ??> @ 0xc19f8
//
// 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
//
__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;
}