//
// sub_1400DA860 from 0x1400da860 to 0x1400da88a (42 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::sortMessagesByID @ 0x1400daa76
// > ThreadViewPopup::sortMessagesByID @ 0x1400dab20
//
// This function is hookable on this platform (idp: pc, 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 11:26:28 +0000
//
bool __fastcall sub_1400DA860(__int64 a1, __int64 a2)
{
__int64 v2; // rax
unsigned __int64 v3; // r8
unsigned __int64 v4; // rcx
v2 = *(_QWORD *)(a1 + 56);
v3 = 0x7FFFFFFFFFFFFFFFLL;
v4 = 0x7FFFFFFFFFFFFFFFLL;
if ( v2 > 0 )
v4 = v2;
if ( *(__int64 *)(a2 + 56) > 0 )
v3 = *(_QWORD *)(a2 + 56);
return v4 < v3;
}