//
// compOrderXInv from 0x72bd40 to 0x72be08 (200 bytes)
//
// 3 xrefs:
// > ??> @ 0xaa728
// > LevelTools::sortChannelOrderObjects @ 0x72ca24
// > ??> @ 0x1544d10
//
// This function is hookable on this platform (idp: arm, 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 12:52:34 +0000
//
__int64 __fastcall compOrderXInv(__int64 *a1, __int64 *a2)
{
__int64 v2; // x22
__int64 v3; // x21
int v4; // w20
int v5; // w0
float v7; // s8
float v8; // [xsp+40h] [xbp+40h] BYREF
v2 = *a1;
v3 = *a2;
v4 = *(_DWORD *)(*a1 + 1772);
v5 = *(_DWORD *)(*a2 + 1772);
if ( v4 == v5 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, (const cocos2d::CCPoint *)(v2 + 1784));
v7 = (float)v4;
v4 = (int)(float)((float)v4 - v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, (const cocos2d::CCPoint *)(v3 + 1784));
v5 = (int)(float)(v7 - v8);
if ( v4 == v5 )
{
v4 += *(_DWORD *)(v2 + 916);
v5 += *(_DWORD *)(v3 + 916);
}
}
return (unsigned int)(v4 - v5);
}