//
// v2i_GENERAL_NAMES from 0xa66534 to 0xa665f0 (188 bytes)
//
// 4 xrefs:
// > sub_A6AC70 @ 0xa6ae54
// > sub_A6AC70 @ 0xa6b0a0
// > sub_A6B2F0 @ 0xa6b458
// > ??> @ 0x823dc
//
// 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:08:36 +0000
//
int *__fastcall v2i_GENERAL_NAMES(int a1, int a2, _DWORD *a3)
{
int *v6; // r7
signed int v7; // r4
int v8; // r0
_DWORD *v9; // r6
v6 = OPENSSL_sk_new_null();
if ( v6 )
{
v7 = 0;
while ( v7 < OPENSSL_sk_num((int)a3) )
{
v8 = OPENSSL_sk_value(a3, v7++);
v9 = v2i_GENERAL_NAME(a1, a2, v8);
if ( !v9 )
{
OPENSSL_sk_pop_free((int)v6, (void (__fastcall *)(int))GENERAL_NAME_free);
return nullptr;
}
OPENSSL_sk_push(v6, (int)v9);
}
}
else
{
ERR_put_error(34, 118, 65, (int)"crypto/x509v3/v3_alt.c", 362);
}
return v6;
}