//
// ASN1_TYPE_cmp from 0xe0ca04 to 0xe0ca74 (112 bytes)
//
// 4 xrefs:
// > X509_ALGOR_cmp @ 0xd70974
// > OTHERNAME_cmp @ 0xdfd8b4
// > GENERAL_NAME_cmp @ 0xdfd920
// > ??> @ 0xbe680
//
// 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 ASN1_TYPE_cmp(int *a1, __int64 a2)
{
int v2; // w2
if ( !a1 )
return 0xFFFFFFFFLL;
if ( !a2 )
return 0xFFFFFFFFLL;
v2 = *a1;
if ( *a1 != *(_DWORD *)a2 )
return 0xFFFFFFFFLL;
switch ( v2 )
{
case 5:
return 0;
case 6:
return OBJ_cmp(*((_QWORD *)a1 + 1), *(_QWORD *)(a2 + 8));
case 1:
return (unsigned int)(a1[2] - *(_DWORD *)(a2 + 8));
}
return ASN1_STRING_cmp(*((const void ***)a1 + 1), *(_QWORD *)(a2 + 8));
}