//
// X509v3_asid_is_canonical from 0x1077fcc to 0x1078070 (164 bytes)
//
// 5 xrefs:
// > X509v3_asid_validate_path @ 0x1078640
// > X509v3_asid_validate_path @ 0x10786c0
// > X509v3_asid_validate_resource_set @ 0x1078a90
// > X509v3_asid_validate_resource_set @ 0x1078b28
// > ??> @ 0x9de40
//
// 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:05 +0000
//
bool __fastcall X509v3_asid_is_canonical(__int64 *a1)
{
__int64 v1; // x20
_BOOL8 result; // x0
__int64 v4; // x19
if ( !a1 )
return 1;
v1 = *a1;
if ( !*a1 || !*(_DWORD *)v1 )
goto LABEL_9;
if ( *(_DWORD *)v1 != 1 || !(unsigned int)OPENSSL_sk_num(*(unsigned int **)(v1 + 8)) )
return 0;
result = sub_107775C(v1);
if ( result )
{
LABEL_9:
v4 = a1[1];
if ( v4 && *(_DWORD *)v4 )
{
if ( *(_DWORD *)v4 == 1 && (unsigned int)OPENSSL_sk_num(*(unsigned int **)(v4 + 8)) )
return sub_107775C(v4);
return 0;
}
return 1;
}
return result;
}