//
// sub_10772B4 from 0x10772b4 to 0x1077604 (848 bytes)
//
// 1 xrefs:
// > ??> @ 0x153c738
//
// 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
//
__int64 __fastcall sub_10772B4(__int64 a1, __int64 *a2, __int64 a3, int a4)
{
__int64 v4; // x19
int v8; // w23
__int64 v9; // x0
__int64 v10; // x25
char *v11; // x28
char *v12; // x25
__int64 v13; // x19
char *v15; // x25
int v16; // w23
__int64 v17; // x0
__int64 v18; // x24
char *v19; // x28
char *v20; // x24
char *v21; // x24
v4 = *a2;
if ( *a2 )
{
BIO_printf(a3, "%*s%s:\n", a4, &byte_11B8890, "Autonomous System Numbers");
if ( *(_DWORD *)v4 )
{
if ( *(_DWORD *)v4 != 1 )
return 0;
v8 = 0;
while ( v8 < (int)OPENSSL_sk_num(*(unsigned int **)(v4 + 8)) )
{
v9 = OPENSSL_sk_value(*(_QWORD *)(v4 + 8), v8);
v10 = v9;
if ( *(_DWORD *)v9 )
{
if ( *(_DWORD *)v9 != 1 )
return 0;
v11 = (char *)i2s_ASN1_INTEGER(0, **(_QWORD **)(v9 + 8));
if ( !v11 )
return 0;
BIO_printf(a3, "%*s%s-", a4 + 2, &byte_11B8890, v11);
CRYPTO_free(v11, (__int64)"crypto/x509v3/v3_asid.c", 88);
v12 = (char *)i2s_ASN1_INTEGER(0, *(_QWORD *)(*(_QWORD *)(v10 + 8) + 8LL));
if ( !v12 )
return 0;
BIO_printf(a3, "%s\n", v12);
++v8;
CRYPTO_free(v12, (__int64)"crypto/x509v3/v3_asid.c", 92);
}
else
{
v15 = (char *)i2s_ASN1_INTEGER(0, *(_QWORD *)(v9 + 8));
if ( !v15 )
return 0;
BIO_printf(a3, "%*s%s\n", a4 + 2, &byte_11B8890, v15);
++v8;
CRYPTO_free(v15, (__int64)"crypto/x509v3/v3_asid.c", 82);
}
}
}
else
{
BIO_printf(a3, "%*sinherit\n", a4 + 2, &byte_11B8890);
}
}
v13 = a2[1];
if ( v13 )
{
BIO_printf(a3, "%*s%s:\n", a4, &byte_11B8890, "Routing Domain Identifiers");
if ( *(_DWORD *)v13 )
{
if ( *(_DWORD *)v13 != 1 )
return 0;
v16 = 0;
while ( v16 < (int)OPENSSL_sk_num(*(unsigned int **)(v13 + 8)) )
{
v17 = OPENSSL_sk_value(*(_QWORD *)(v13 + 8), v16);
v18 = v17;
if ( *(_DWORD *)v17 )
{
if ( *(_DWORD *)v17 != 1 )
return 0;
v19 = (char *)i2s_ASN1_INTEGER(0, **(_QWORD **)(v17 + 8));
if ( !v19 )
return 0;
BIO_printf(a3, "%*s%s-", a4 + 2, &byte_11B8890, v19);
CRYPTO_free(v19, (__int64)"crypto/x509v3/v3_asid.c", 88);
v20 = (char *)i2s_ASN1_INTEGER(0, *(_QWORD *)(*(_QWORD *)(v18 + 8) + 8LL));
if ( !v20 )
return 0;
BIO_printf(a3, "%s\n", v20);
++v16;
CRYPTO_free(v20, (__int64)"crypto/x509v3/v3_asid.c", 92);
}
else
{
v21 = (char *)i2s_ASN1_INTEGER(0, *(_QWORD *)(v17 + 8));
if ( !v21 )
return 0;
BIO_printf(a3, "%*s%s\n", a4 + 2, &byte_11B8890, v21);
++v16;
CRYPTO_free(v21, (__int64)"crypto/x509v3/v3_asid.c", 82);
}
}
}
else
{
BIO_printf(a3, "%*sinherit\n", a4 + 2, &byte_11B8890);
}
}
return 1;
}