//
// BN_clear_bit from 0xff985c to 0xff98dc (128 bytes)
//
// 1 xrefs:
// > ??> @ 0xd8400
//
// 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:50 +0000
//
__int64 __fastcall BN_clear_bit(__int64 a1, int a2)
{
if ( a2 < 0 )
return 0;
if ( a2 >> 6 >= *(_DWORD *)(a1 + 8) )
return 0;
*(_QWORD *)(*(_QWORD *)a1 + 8LL * (a2 >> 6)) &= ~(1LL << (a2 & 0x3F));
bn_correct_top(a1);
return 1;
}