//
// sub_A6A428 from 0xa6a428 to 0xa6a51c (244 bytes)
//
// 2 xrefs:
// > sub_A6AC70 @ 0xa6b05c
// > sub_A6B2F0 @ 0xa6b3dc
//
// 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:38 +0000
//
int __fastcall sub_A6A428(signed int *a1, int a2)
{
_DWORD *v3; // r7
signed int v4; // r6
int v5; // r4
int v7; // r0
int v8; // r8
const char *v9; // r5
char *v10; // r4
v3 = (_DWORD *)X509V3_parse_list(a2);
if ( !v3 )
return 0;
v4 = *a1;
if ( *a1 )
{
LABEL_3:
v5 = 0;
}
else
{
while ( v4 < OPENSSL_sk_num((int)v3) )
{
v7 = OPENSSL_sk_value(v3, v4);
v8 = *a1;
v9 = *(const char **)(v7 + 4);
if ( !*a1 )
{
v8 = ASN1_BIT_STRING_new();
*a1 = v8;
if ( !v8 )
goto LABEL_3;
}
v10 = (char *)&unk_C80700;
while ( strcmp(*((const char **)v10 + 2), v9) )
{
v10 += 12;
if ( !*((_DWORD *)v10 + 1) )
goto LABEL_3;
}
if ( !ASN1_BIT_STRING_set_bit(v8, *(_DWORD *)v10, 1) || !*((_DWORD *)v10 + 1) )
goto LABEL_3;
++v4;
}
v5 = 1;
}
OPENSSL_sk_pop_free((int)v3, (void (__fastcall *)(int))X509V3_conf_free);
return v5;
}