//
// compOrderYInv from 0x72bed0 to 0x72bf98 (200 bytes)
//
// 3 xrefs:
// > ??> @ 0x52618
// > LevelTools::sortChannelOrderObjects @ 0x72ca44
// > ??> @ 0x1541c80
//
// 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 compOrderYInv(__int64 *a1, __int64 *a2)
{
__int64 v2; // x22
__int64 v3; // x21
int v4; // w20
int v5; // w0
float v7; // s8
_BYTE v8[4]; // [xsp+40h] [xbp+40h] BYREF
float v9; // [xsp+44h] [xbp+44h]
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 - v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (const cocos2d::CCPoint *)(v3 + 1784));
v5 = (int)(float)(v7 - v9);
if ( v4 == v5 )
{
v4 += *(_DWORD *)(v2 + 916);
v5 += *(_DWORD *)(v3 + 916);
}
}
return (unsigned int)(v4 - v5);
}