//
// BN_is_one from 0x7d4840 to 0x7d4864 (36 bytes)
//
// 30 xrefs:
// > sub_7E01E0 @ 0x7e02ec
// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x7f34e4
// > ec_GFp_simple_point_get_affine_coordinates @ 0x7f3618
// > sub_82FF1C @ 0x8300a4
// > BN_mod_exp_recp @ 0x86ce60
// > BN_mod_exp_mont_consttime @ 0x86d344
// > BN_mod_exp_mont @ 0x86d9a4
// > BN_mod_exp_mont_word @ 0x86e190
// > BN_mod_exp_simple @ 0x86e3fc
// > int_bn_mod_inverse @ 0x86f2ec
// > int_bn_mod_inverse @ 0x86f538
// > int_bn_mod_inverse @ 0x86f96c
// > BN_kronecker @ 0x8701c0
// > BN_mod_sqrt @ 0x8716f8
// > BN_mod_sqrt @ 0x871740
// > BN_mod_sqrt @ 0x871770
// > BN_mod_sqrt @ 0x871b18
// > BN_mod_sqrt @ 0x871cc0
// > BN_mod_sqrt @ 0x871cf0
// > DH_check @ 0x87f5e8
// > DH_check @ 0x87f6f0
// > DH_check_pub_key @ 0x87f868
// > dsa_builtin_paramgen @ 0x880a3c
// > dsa_builtin_paramgen2 @ 0x881000
// > sub_88AA9C @ 0x88ab50
// > RSA_generate_key_ex @ 0x8bfa80
// > RSA_generate_key_ex @ 0x8bfbfc
// > BN_is_prime_fasttest_ex @ 0x8cac9c
// > BN_is_prime_fasttest_ex @ 0x8cacd8
// > ??> @ 0x5fb7c
//
// 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
//
bool __fastcall BN_is_one(int a1)
{
_BOOL4 result; // r0
result = BN_abs_is_word(a1, 1);
if ( result )
return *(_DWORD *)(a1 + 12) == 0;
return result;
}