//
// X509v3_asid_canonize from 0x1078070 to 0x1078130 (192 bytes)
//
// 2 xrefs:
// > sub_1078130 @ 0x10782f8
// > ??> @ 0x91b58
//
// 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
//
__int64 __fastcall X509v3_asid_canonize(__int64 *a1)
{
__int64 v1; // x20
__int64 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)) )
{
LABEL_5:
ERR_put_error(34, 161, 116, (__int64)"crypto/x509v3/v3_asid.c", 366);
return 0;
}
result = sub_10779B4(v1);
if ( (_DWORD)result )
{
LABEL_9:
v4 = a1[1];
if ( v4 && *(_DWORD *)v4 )
{
if ( *(_DWORD *)v4 == 1 && (unsigned int)OPENSSL_sk_num(*(unsigned int **)(v4 + 8)) )
return (unsigned int)sub_10779B4(v4) != 0;
goto LABEL_5;
}
return 1;
}
return result;
}