//
// i2v_ASN1_BIT_STRING from 0x10edf20 to 0x10edf98 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0xc4300
// > ??> @ 0x153f980
// > ??> @ 0x153f9e8
//
// 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:18:05 +0000
//
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;
}