//
// sub_A6C5AC from 0xa6c5ac to 0xa6c7a0 (500 bytes)
//
// 2 xrefs:
// > sub_A6C7CC @ 0xa6c7f0
// > sub_A6C7CC @ 0xa6c808
//
// 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
//
int __fastcall sub_A6C5AC(_DWORD *a1, int a2, int a3, const char *a4)
{
signed int i; // r8
_DWORD **v9; // r4
_DWORD *v10; // r1
int *v11; // r3
int v12; // r5
unsigned __int8 *v13; // r4
unsigned __int8 *v14; // r4
int v15; // r7
int j; // r5
if ( OPENSSL_sk_num((int)a1) > 0 )
BIO_printf(a2, "%*s%s:\n", a3, &byte_BF4ECA, a4);
for ( i = 0; i < OPENSSL_sk_num((int)a1); ++i )
{
v9 = (_DWORD **)OPENSSL_sk_value(a1, i);
BIO_printf(a2, "%*s", a3 + 2, &byte_BF4ECA);
v10 = *v9;
if ( **v9 == 7 )
{
v11 = (int *)v10[1];
v12 = *v11;
v13 = (unsigned __int8 *)v11[2];
BIO_puts(a2, (int)"IP:");
if ( v12 == 8 )
{
BIO_printf(a2, "%d.%d.%d.%d/%d.%d.%d.%d", *v13, v13[1], v13[2], v13[3], v13[4], v13[5], v13[6], v13[7]);
}
else
{
if ( v12 == 32 )
{
v14 = v13 + 2;
v15 = 1;
for ( j = 0; ; ++j )
{
BIO_printf(a2, "%X", *(v14 - 1) | (*(v14 - 2) << 8));
if ( j == 7 )
{
BIO_puts(a2, (int)&word_BF54E4);
}
else
{
if ( j == 15 )
goto LABEL_5;
BIO_puts(a2, (int)":");
if ( v15 == 16 )
goto LABEL_5;
}
v14 += 2;
++v15;
}
}
BIO_printf(a2, "IP Address:");
}
}
else
{
GENERAL_NAME_print(a2, v10);
}
LABEL_5:
BIO_puts(a2, (int)"\n");
}
return 1;
}