//
// BN_is_one from 0xd7a998 to 0xd7a9cc (52 bytes)
//
// 31 xrefs:
// > sub_D87990 @ 0xd87a74
// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xd99820
// > ec_GFp_simple_point_get_affine_coordinates @ 0xd99944
// > ec_GFp_simple_point_get_affine_coordinates @ 0xd999b0
// > sub_DD6258 @ 0xdd63e0
// > sub_E162E0 @ 0xe16328
// > BN_mod_exp_mont_consttime @ 0xe16a7c
// > BN_mod_exp_mont @ 0xe17144
// > BN_mod_exp_mont_word @ 0xe178a4
// > BN_mod_exp_simple @ 0xe17b04
// > int_bn_mod_inverse @ 0xe18908
// > int_bn_mod_inverse @ 0xe18b1c
// > int_bn_mod_inverse @ 0xe18ebc
// > BN_kronecker @ 0xe196d8
// > BN_mod_sqrt @ 0xe1adc4
// > BN_mod_sqrt @ 0xe1ae1c
// > BN_mod_sqrt @ 0xe1ae5c
// > BN_mod_sqrt @ 0xe1b190
// > BN_mod_sqrt @ 0xe1b304
// > BN_mod_sqrt @ 0xe1b32c
// > DH_check @ 0xe2987c
// > DH_check @ 0xe29970
// > DH_check_pub_key @ 0xe29af0
// > dsa_builtin_paramgen @ 0xe2ab84
// > dsa_builtin_paramgen2 @ 0xe2b25c
// > sub_E34354 @ 0xe34408
// > RSA_generate_key_ex @ 0xe6aab8
// > RSA_generate_key_ex @ 0xe6ac24
// > BN_is_prime_fasttest_ex @ 0xe771a4
// > BN_is_prime_fasttest_ex @ 0xe771d0
// > ??> @ 0x603f0
//
// 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_one(__int64 a1)
{
__int64 result; // x0
result = BN_abs_is_word(a1, 1);
if ( (_DWORD)result )
return *(_DWORD *)(a1 + 16) == 0;
return result;
}