//
// X509v3_asid_is_canonical from 0xa674f0 to 0xa6759c (172 bytes)
//
// 5 xrefs:
// > X509v3_asid_validate_path @ 0xa67cc4
// > X509v3_asid_validate_path @ 0xa67d34
// > X509v3_asid_validate_resource_set @ 0xa681a0
// > X509v3_asid_validate_resource_set @ 0xa68278
// > ??> @ 0x8256c
//
// 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:36 +0000
//
bool __fastcall X509v3_asid_is_canonical(int a1)
{
_DWORD *v1; // r5
_BOOL4 result; // r0
_DWORD *v4; // r4
if ( !a1 )
return 1;
v1 = *(_DWORD **)a1;
if ( *(_DWORD *)a1 && *v1 )
{
if ( *v1 != 1 || !OPENSSL_sk_num(v1[1]) )
return 0;
result = sub_A66C30((int)v1);
if ( !result )
return result;
}
v4 = *(_DWORD **)(a1 + 4);
if ( v4 && *v4 )
{
if ( *v4 == 1 && OPENSSL_sk_num(v4[1]) )
return sub_A66C30((int)v4);
return 0;
}
return 1;
}