//
// v2i_GENERAL_NAMES from 0x10770d0 to 0x10771ac (220 bytes)
//
// 4 xrefs:
// > sub_107B008 @ 0x107b21c
// > sub_107B008 @ 0x107b27c
// > sub_107B5D0 @ 0x107b740
// > ??> @ 0xf87e8
//
// 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:17:04 +0000
//
int *__fastcall v2i_GENERAL_NAMES(int a1, __int64 a2, unsigned int *a3)
{
int v6; // w19
int *v7; // x21
__int64 v8; // x0
char *v9; // x1
bool v10; // cc
int v11; // w1
v6 = 0;
v7 = (int *)OPENSSL_sk_new_null();
if ( v7 )
{
while ( 1 )
{
v10 = v6 < (int)OPENSSL_sk_num(a3);
v11 = v6++;
if ( !v10 )
break;
v8 = OPENSSL_sk_value((__int64)a3, v11);
v9 = v2i_GENERAL_NAME(a1, a2, v8);
if ( !v9 )
{
OPENSSL_sk_pop_free(v7, (void (__fastcall *)(__int64))GENERAL_NAME_free);
return nullptr;
}
OPENSSL_sk_push(v7, (__int64)v9);
}
}
else
{
ERR_put_error(34, 118, 65, (__int64)"crypto/x509v3/v3_alt.c", 362);
}
return v7;
}