//
// i2v_ASN1_BIT_STRING from 0xe6ff20 to 0xe6ff98 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x94830
// > ??> @ 0x1227bf8
// > ??> @ 0x1227c60
//
// 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
//
int *__fastcall i2v_ASN1_BIT_STRING(__int64 a1, __int64 a2, int *a3)
{
__int64 v3; // x19
const char *v5; // x0
int *v7; // [xsp+38h] [xbp+38h] BYREF
v3 = *(_QWORD *)(a1 + 96);
v7 = a3;
while ( *(_QWORD *)(v3 + 8) )
{
while ( !(unsigned int)ASN1_BIT_STRING_get_bit(a2, *(_DWORD *)v3) )
{
v3 += 24;
if ( !*(_QWORD *)(v3 + 8) )
return v7;
}
v5 = *(const char **)(v3 + 8);
v3 += 24;
X509V3_add_value(v5, nullptr, &v7);
}
return v7;
}