//
// sub_140324C80 from 0x140324c80 to 0x140324d19 (153 bytes)
//
// 2 xrefs:
// > LevelTools::sortChannelOrderObjects @ 0x14032d877
// > ??> @ 0x1406d4da8
//
// 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_140324C80(__int64 *a1, __int64 *a2)
{
__int64 v2; // rsi
__int64 v3; // rbp
int v4; // ebx
int v5; // edi
cocos2d::CCPoint v7; // [rsp+30h] [rbp+8h] BYREF
v2 = *a1;
v3 = *a2;
v4 = *(_DWORD *)(*a1 + 1788);
v5 = *(_DWORD *)(*a2 + 1788);
if ( v4 == v5 )
{
cocos2d::CCPoint::CCPoint(&v7);
v4 = (int)(float)((float)v4 + v7.x);
cocos2d::CCPoint::CCPoint(&v7);
v5 = (int)(float)((float)v5 + v7.x);
if ( v4 == v5 )
{
v4 += *(_DWORD *)(v2 + 924);
v5 += *(_DWORD *)(v3 + 924);
}
}
return (unsigned int)(v4 - v5);
}