//
// sub_1005FEE00 from 0x1005fee00 to 0x1005feea0 (160 bytes)
//
// 2 xrefs:
// > sub_100603094 @ 0x1006030bc
// > sub_1006036C0 @ 0x100603750
//
// 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 sub_1005FEE00(__int64 a1, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x20
size_t v4; // x2
int v5; // w8
v2 = *(_QWORD *)(*(_QWORD *)a1 + 16LL);
v3 = *(_QWORD *)(*(_QWORD *)a2 + 16LL);
if ( (!*(_QWORD *)(v2 + 24) || *(_DWORD *)(v2 + 8))
&& (sub_1005F3824(*(_QWORD *)(*(_QWORD *)a1 + 16LL), 0) & 0x80000000) != 0 )
{
return 4294967294LL;
}
if ( (!*(_QWORD *)(v3 + 24) || *(_DWORD *)(v3 + 8)) && (sub_1005F3824(v3, 0) & 0x80000000) != 0 )
return 4294967294LL;
v4 = *(int *)(v2 + 32);
v5 = *(_DWORD *)(v3 + 32);
if ( (_DWORD)v4 == v5 )
return memcmp(*(const void **)(v2 + 24), *(const void **)(v3 + 24), v4);
else
return (unsigned int)(v4 - v5);
}