//
// i2v_ASN1_BIT_STRING from 0x8c41c8 to 0x8c4244 (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x6b7ac
// > ??> @ 0xab5604
// > ??> @ 0xab563c
//
// 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(int a1, int *a2, int *a3)
{
int v3; // r4
int v4; // r3
int v6; // r4
const char *v7; // r0
int *v9; // [sp+4h] [bp-4h] BYREF
v3 = *(_DWORD *)(a1 + 52);
v4 = *(_DWORD *)(v3 + 4);
v9 = a3;
if ( v4 )
{
v6 = v3 + 12;
do
{
while ( !ASN1_BIT_STRING_get_bit(a2, *(_DWORD *)(v6 - 12)) )
{
v6 += 12;
if ( !*(_DWORD *)(v6 - 8) )
return v9;
}
v7 = *(const char **)(v6 - 8);
v6 += 12;
X509V3_add_value(v7, nullptr, &v9);
}
while ( *(_DWORD *)(v6 - 8) );
}
return v9;
}