//
// ASN1_BIT_STRING_get_bit from 0x108626c to 0x10862c8 (92 bytes)
//
// 4 xrefs:
// > sub_107AA18 @ 0x107ab58
// > sub_107ACCC @ 0x107ae40
// > i2v_ASN1_BIT_STRING @ 0x10edf60
// > ??> @ 0xcfc40
//
// 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:17:13 +0000
//
__int64 __fastcall ASN1_BIT_STRING_get_bit(__int64 a1, int a2)
{
int v2; // w3
unsigned int v3; // w2
__int64 v4; // x0
v2 = a2 / 8;
if ( !a1 )
return 0;
v3 = 0;
if ( v2 < *(_DWORD *)a1 )
{
v4 = *(_QWORD *)(a1 + 8);
if ( v4 )
return (*(unsigned __int8 *)(v4 + v2) & (1 << (~(_BYTE)a2 & 7))) != 0;
}
return v3;
}