//
// compOrderXInv from 0x600b34 to 0x600bfc (200 bytes)
//
// 3 xrefs:
// > ??> @ 0x7ff80
// > LevelTools::sortChannelOrderObjects @ 0x60653c
// > ??> @ 0x122c4f8
//
// 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 compOrderXInv(__int64 *a1, __int64 *a2)
{
__int64 v2; // x22
__int64 v3; // x21
int v4; // w20
int v5; // w0
float v7; // s8
cocos2d::CCPoint v8; // [xsp+40h] [xbp+40h] BYREF
v2 = *a1;
v3 = *a2;
v4 = *(_DWORD *)(*a1 + 1756);
v5 = *(_DWORD *)(*a2 + 1756);
if ( v4 == v5 )
{
cocos2d::CCPoint::CCPoint(&v8, (const cocos2d::CCPoint *)(v2 + 1768));
v7 = (float)v4;
v4 = (int)(float)((float)v4 - v8.x);
cocos2d::CCPoint::CCPoint(&v8, (const cocos2d::CCPoint *)(v3 + 1768));
v5 = (int)(float)(v7 - v8.x);
if ( v4 == v5 )
{
v4 += *(_DWORD *)(v2 + 900);
v5 += *(_DWORD *)(v3 + 900);
}
}
return (unsigned int)(v4 - v5);
}