//
// sub_A6BB68 from 0xa6bb68 to 0xa6bcb0 (328 bytes)
//
// 2 xrefs:
// > ??> @ 0xd18730
// > ??> @ 0xd18768
//
// 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:39 +0000
//
_DWORD *__fastcall sub_A6BB68(int a1, _DWORD *a2, int a3)
{
signed int v5; // r5
int v6; // r4
_DWORD *v7; // r0
unsigned int v8; // r1
int v9; // r6
size_t v10; // r4
void *v11; // r4
char *v12; // r0
char *v13; // r7
char v16[84]; // [sp+10h] [bp-54h] BYREF
v5 = 0;
while ( 1 )
{
if ( v5 >= OPENSSL_sk_num((int)a2) )
{
if ( a3 )
return (_DWORD *)a3;
return OPENSSL_sk_new_null();
}
v6 = OPENSSL_sk_value(a2, v5);
v7 = (_DWORD *)i2v_GENERAL_NAME(a1, *(int **)(v6 + 4), a3);
v8 = v5++;
a3 = (int)v7;
if ( !v7 )
return OPENSSL_sk_new_null();
v9 = OPENSSL_sk_value(v7, v8);
i2t_ASN1_OBJECT((int)v16, 80, *(_DWORD *)v6);
v10 = strlen(v16);
v11 = (void *)(v10 + strlen(*(const char **)(v9 + 4)) + 5);
v12 = (char *)CRYPTO_malloc(v11, (int)"crypto/x509v3/v3_info.c", 78);
v13 = v12;
if ( !v12 )
break;
OPENSSL_strlcpy(v12, v16, (unsigned int)v11);
OPENSSL_strlcat(v13, " - ", (unsigned int)v11);
OPENSSL_strlcat(v13, *(const char **)(v9 + 4), (unsigned int)v11);
CRYPTO_free(*(void **)(v9 + 4), (int)"crypto/x509v3/v3_info.c", 87);
*(_DWORD *)(v9 + 4) = v13;
}
ERR_put_error(34, 138, 65, (int)"crypto/x509v3/v3_info.c", 81);
return nullptr;
}