//
// v2i_GENERAL_NAMES from 0xdf8d90 to 0xdf8e6c (220 bytes)
//
// 4 xrefs:
// > sub_DFCCC8 @ 0xdfcedc
// > sub_DFCCC8 @ 0xdfcf3c
// > sub_DFD290 @ 0xdfd400
// > ??> @ 0xbea10
//
// 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 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;
}