//
// i2v_ASN1_BIT_STRING from 0xad91c8 to 0xad9244 (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x8522c
// > ??> @ 0xd19ce0
// > ??> @ 0xd19d18
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:09:30 +0000
//
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;
}