//
// ASN1_STRING_cmp from 0x9d79a0 to 0x9d79e4 (68 bytes)
//
// 7 xrefs:
// > OCSP_check_validity @ 0xa32ba4
// > sub_A5D8CC @ 0xa5d8d4
// > GENERAL_NAME_cmp @ 0xa6ba2c
// > ASN1_INTEGER_cmp @ 0xa76294
// > ASN1_OCTET_STRING_cmp @ 0xa78608
// > ASN1_TYPE_cmp @ 0xa7939c
// > ??> @ 0x7824c
//
// 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:07:15 +0000
//
int __fastcall ASN1_STRING_cmp(int a1, int a2)
{
int result; // r0
if ( *(_DWORD *)a1 != *(_DWORD *)a2 )
return *(_DWORD *)a1 - *(_DWORD *)a2;
result = memcmp(*(const void **)(a1 + 8), *(const void **)(a2 + 8), *(_DWORD *)a1);
if ( !result )
return *(_DWORD *)(a1 + 4) - *(_DWORD *)(a2 + 4);
return result;
}