//
// ASN1_TYPE_cmp from 0xa79358 to 0xa793cc (116 bytes)
//
// 4 xrefs:
// > X509_ALGOR_cmp @ 0x9df570
// > OTHERNAME_cmp @ 0xa6b9ac
// > GENERAL_NAME_cmp @ 0xa6ba38
// > ??> @ 0x78c5c
//
// 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:45 +0000
//
int __fastcall ASN1_TYPE_cmp(int *a1, _DWORD *a2)
{
bool v2; // zf
int v3; // r2
int v4; // r3
v2 = a2 == nullptr;
if ( a2 )
v2 = a1 == nullptr;
v3 = v2;
if ( v2 )
return -1;
v4 = *a1;
if ( *a1 != *a2 )
return -1;
switch ( v4 )
{
case 5:
return v3;
case 6:
return OBJ_cmp(a1[1], a2[1]);
case 1:
return a1[1] - a2[1];
}
return ASN1_STRING_cmp(a1[1], a2[1]);
}