//
// ASN1_BIT_STRING_get_bit from 0xe07f6c to 0xe07fc8 (92 bytes)
//
// 4 xrefs:
// > sub_DFC6D8 @ 0xdfc818
// > sub_DFC98C @ 0xdfcb00
// > i2v_ASN1_BIT_STRING @ 0xe6ff60
// > ??> @ 0x9dd28
//
// 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 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;
}