//
// ASN1_STRING_cmp from 0xfe79e4 to 0xfe7a38 (84 bytes)
//
// 8 xrefs:
// > OCSP_check_validity @ 0x1041ec4
// > OCSP_check_validity @ 0x1041f98
// > sub_106EA3C @ 0x106ea44
// > GENERAL_NAME_cmp @ 0x107bc6c
// > ASN1_INTEGER_cmp @ 0x1087a40
// > ASN1_OCTET_STRING_cmp @ 0x1089ffc
// > ASN1_TYPE_cmp @ 0x108ad44
// > ??> @ 0x6b0c8
//
// 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:15:40 +0000
//
__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;
}