//
// X509v3_asid_canonize from 0xdf9d30 to 0xdf9df0 (192 bytes)
//
// 2 xrefs:
// > sub_DF9DF0 @ 0xdf9fb8
// > ??> @ 0x6bd78
//
// 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
//
__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_DF9674(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_DF9674(v4) != 0;
goto LABEL_5;
}
return 1;
}
return result;
}