//
// BN_is_bit_set from 0xff847c to 0xff84bc (64 bytes)
//
// 32 xrefs:
// > sub_10945E0 @ 0x109478c
// > sub_10945E0 @ 0x10947c8
// > BN_exp @ 0x1094ab0
// > BN_mod_exp_mont_consttime @ 0x1094fc4
// > BN_mod_exp_mont_consttime @ 0x109503c
// > BN_mod_exp_mont @ 0x109554c
// > BN_mod_exp_mont @ 0x109558c
// > BN_mod_exp_mont_word @ 0x10959dc
// > BN_mod_exp_simple @ 0x1095f5c
// > BN_mod_exp_simple @ 0x1095f98
// > BN_mod_exp2_mont @ 0x10966dc
// > BN_mod_exp2_mont @ 0x10966fc
// > BN_mod_exp2_mont @ 0x109672c
// > BN_mod_exp2_mont @ 0x10967b0
// > BN_mod_exp2_mont @ 0x10967d0
// > BN_mod_exp2_mont @ 0x1096800
// > int_bn_mod_inverse @ 0x10970d4
// > int_bn_mod_inverse @ 0x1097138
// > bn_compute_wNAF @ 0x10973e4
// > BN_kronecker @ 0x1097860
// > BN_kronecker @ 0x10978f0
// > BN_rand_range @ 0x1098648
// > BN_rand_range @ 0x1098694
// > BN_pseudo_rand_range @ 0x1098804
// > BN_pseudo_rand_range @ 0x1098850
// > BN_mod_sqrt @ 0x1099098
// > BN_mod_sqrt @ 0x10991ec
// > BN_mod_sqrt @ 0x10994e0
// > BN_GF2m_mod_exp_arr @ 0x10f3ba4
// > BN_is_prime_fasttest_ex @ 0x10f50ec
// > bn_probable_prime_dh_coprime @ 0x10f535c
// > ??> @ 0xaded8
//
// 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_bit_set(__int64 a1, int a2)
{
__int64 v2; // x2
if ( a2 < 0 )
return 0;
LODWORD(v2) = 0;
if ( a2 >> 6 < *(_DWORD *)(a1 + 8) )
return (*(_QWORD *)(*(_QWORD *)a1 + 8LL * (a2 >> 6)) >> (a2 & 0x3F)) & 1LL;
return (unsigned int)v2;
}