//
// sub_D859B8 from 0xd859b8 to 0xd85a44 (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x11226d8
// > ??> @ 0x11227b0
//
// 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
//
bool __fastcall sub_D859B8(__int64 a1, __int64 a2)
{
_BOOL8 result; // x0
if ( (unsigned int)BN_cmp(*(__int64 **)(*(_QWORD *)(a1 + 32) + 8LL), *(__int64 **)(*(_QWORD *)(a2 + 32) + 8LL))
|| (unsigned int)BN_cmp(*(__int64 **)(*(_QWORD *)(a1 + 32) + 16LL), *(__int64 **)(*(_QWORD *)(a2 + 32) + 16LL)) )
{
return 0;
}
result = 1;
if ( *(_UNKNOWN **)(a1 + 16) == &dhx_asn1_meth )
return (unsigned int)BN_cmp(*(__int64 **)(*(_QWORD *)(a1 + 32) + 64LL), *(__int64 **)(*(_QWORD *)(a2 + 32) + 64LL)) == 0;
return result;
}