//
// X509v3_asid_canonize from 0xa6759c to 0xa67678 (220 bytes)
//
// 2 xrefs:
// > sub_A67680 @ 0xa67934
// > ??> @ 0x8257c
//
// 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:37 +0000
//
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_A66EB4(v1);
if ( result )
{
LABEL_9:
v4 = a1[1];
if ( !v4 || !*v4 )
return 1;
if ( *v4 == 1 && OPENSSL_sk_num(v4[1]) )
return sub_A66EB4(v4) != 0;
goto LABEL_5;
}
return result;
}