//
// sub_1005EF918 from 0x1005ef918 to 0x1005ef964 (76 bytes)
//
// 5 xrefs:
// > sub_1005F4568 @ 0x1005f4630
// > sub_1005F4568 @ 0x1005f46e4
// > sub_100601E9C @ 0x100602580
// > sub_100601E9C @ 0x100602594
// > sub_10060D120 @ 0x10060d170
//
// 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_1005EF918(__int64 a1, __int64 a2)
{
unsigned int v2; // w19
__int64 result; // x0
v2 = *(_DWORD *)(a1 + 4) & 0x100;
if ( v2 != (*(_DWORD *)(a2 + 4) & 0x100) )
return ((v2 >> 7) ^ 2) - 1;
LODWORD(result) = sub_1005FBBB8();
if ( v2 )
return (unsigned int)-(int)result;
else
return (unsigned int)result;
}