//
// X509v3_asid_is_canonical from 0x8528f0 to 0x85299c (172 bytes)
//
// 5 xrefs:
// > X509v3_asid_validate_path @ 0x8530c4
// > X509v3_asid_validate_path @ 0x853134
// > X509v3_asid_validate_resource_set @ 0x8535a0
// > X509v3_asid_validate_resource_set @ 0x853678
// > ??> @ 0x68aec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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_852030((int)v1);
if ( !result )
return result;
}
v4 = *(_DWORD **)(a1 + 4);
if ( v4 && *v4 )
{
if ( *v4 == 1 && OPENSSL_sk_num(v4[1]) )
return sub_852030((int)v4);
return 0;
}
return 1;
}