//
// X509V3_EXT_val_prn from 0xa6e434 to 0xa6e5f8 (452 bytes)
//
// 2 xrefs:
// > X509V3_EXT_print @ 0xa6e750
// > ??> @ 0x82fcc
//
// 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:40 +0000
//
int __fastcall X509V3_EXT_val_prn(int result, _DWORD *a2, int a3, signed int a4)
{
signed int v4; // r4
int v6; // r5
bool v8; // cc
int v9; // r0
const char *v10; // r12
const char *v11; // r3
signed int i; // r4
int v13; // r3
const char *v14; // r12
const char *v15; // r3
if ( a2 )
{
v4 = a4;
v6 = result;
if ( !a4 || !OPENSSL_sk_num((int)a2) )
{
BIO_printf(v6, "%*s", a3, &byte_BF4ECA);
if ( !OPENSSL_sk_num((int)a2) )
BIO_puts(v6, (int)"\n");
}
if ( v4 )
{
for ( i = 0; ; ++i )
{
v8 = i < OPENSSL_sk_num((int)a2);
result = v6;
if ( !v8 )
break;
BIO_printf(v6, "%*s", a3, &byte_BF4ECA);
v13 = OPENSSL_sk_value(a2, i);
v14 = *(const char **)(v13 + 4);
if ( v14 )
{
v15 = *(const char **)(v13 + 8);
if ( v15 )
BIO_printf(v6, "%s:%s", v14, v15);
else
BIO_puts(v6, (int)v14);
}
else
{
BIO_puts(v6, *(_DWORD *)(v13 + 8));
}
BIO_puts(v6, (int)"\n");
}
}
else
{
while ( 1 )
{
v8 = v4 < OPENSSL_sk_num((int)a2);
result = v6;
if ( !v8 )
break;
if ( v4 > 0 )
BIO_printf(v6, ", ");
v9 = OPENSSL_sk_value(a2, v4);
v10 = *(const char **)(v9 + 4);
if ( v10 )
{
v11 = *(const char **)(v9 + 8);
if ( v11 )
BIO_printf(v6, "%s:%s", v10, v11);
else
BIO_puts(v6, (int)v10);
}
else
{
BIO_puts(v6, *(_DWORD *)(v9 + 8));
}
++v4;
}
}
}
return result;
}