//
// ASN1_STRING_cmp from 0xd69684 to 0xd696d8 (84 bytes)
//
// 8 xrefs:
// > OCSP_check_validity @ 0xdc3b64
// > OCSP_check_validity @ 0xdc3c38
// > sub_DF06FC @ 0xdf0704
// > GENERAL_NAME_cmp @ 0xdfd92c
// > ASN1_INTEGER_cmp @ 0xe09740
// > ASN1_OCTET_STRING_cmp @ 0xe0bcfc
// > ASN1_TYPE_cmp @ 0xe0ca44
// > ??> @ 0x4c410
//
// 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_STRING_cmp(const void **a1, __int64 a2)
{
int v3; // w2
__int64 result; // x0
const void **v6; // x20
v3 = *(_DWORD *)a1;
result = (unsigned int)(*(_DWORD *)a1 - *(_DWORD *)a2);
if ( v3 == *(_DWORD *)a2 )
{
v6 = a1;
result = memcmp(a1[1], *(const void **)(a2 + 8), v3);
if ( !(_DWORD)result )
return (unsigned int)(*((_DWORD *)v6 + 1) - *(_DWORD *)(a2 + 4));
}
return result;
}