//
// X509v3_asid_canonize from 0x85299c to 0x852a78 (220 bytes)
//
// 2 xrefs:
// > sub_852A80 @ 0x852d34
// > ??> @ 0x68afc
//
// 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
//
int __fastcall X509v3_asid_canonize(int **a1)
{
int *v1; // r5
int result; // r0
int *v4; // r4
if ( !a1 )
return 1;
v1 = *a1;
if ( !*a1 || !*v1 )
goto LABEL_9;
if ( *v1 != 1 || !OPENSSL_sk_num(v1[1]) )
{
LABEL_5:
ERR_put_error(34, 161, 116, (int)"crypto/x509v3/v3_asid.c", 366);
return 0;
}
result = sub_8522B4(v1);
if ( result )
{
LABEL_9:
v4 = a1[1];
if ( !v4 || !*v4 )
return 1;
if ( *v4 == 1 && OPENSSL_sk_num(v4[1]) )
return sub_8522B4(v4) != 0;
goto LABEL_5;
}
return result;
}