//
// sub_14045FEA0 from 0x14045fea0 to 0x14045ff39 (153 bytes)
//
// 2 xrefs:
// > LevelTools::sortChannelOrderObjects @ 0x1404683b5
// > ??> @ 0x140927e24
//
// This function is hookable on this platform (idp: pc, 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 11:32:33 +0000
//
__int64 __fastcall sub_14045FEA0(__int64 *a1, __int64 *a2)
{
__int64 v2; // rsi
__int64 v3; // rbp
int v4; // ebx
int v5; // edi
char v7; // [rsp+30h] [rbp+8h] BYREF
float v8; // [rsp+34h] [rbp+Ch]
v2 = *a1;
v3 = *a2;
v4 = *(_DWORD *)(*a1 + 1788);
v5 = *(_DWORD *)(*a2 + 1788);
if ( v4 == v5 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, (const struct cocos2d::CCPoint *)(v2 + 1800));
v4 = (int)(float)((float)v4 + v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, (const struct cocos2d::CCPoint *)(v3 + 1800));
v5 = (int)(float)((float)v5 + v8);
if ( v4 == v5 )
{
v4 += *(_DWORD *)(v2 + 924);
v5 += *(_DWORD *)(v3 + 924);
}
}
return (unsigned int)(v4 - v5);
}