//
// compOrderY from 0x41ed68 to 0x41edf6 (142 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:00 +0000
//
int __fastcall compOrderY(int *a1, int *a2)
{
int v2; // r7
int v3; // r6
int v4; // r4
int v5; // r0
float v6; // s16
_BYTE v8[4]; // [sp+4h] [bp-Ch] BYREF
float v9; // [sp+8h] [bp-8h]
v2 = *a1;
v3 = *a2;
v4 = *(_DWORD *)(*a1 + 1588);
v5 = *(_DWORD *)(*a2 + 1588);
if ( v4 == v5 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (const cocos2d::CCPoint *)(v2 + 1600));
v6 = (float)v4;
v4 = (int)(float)((float)v4 + v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (const cocos2d::CCPoint *)(v3 + 1600));
v5 = (int)(float)(v6 + v9);
if ( v4 == v5 )
{
v4 += *(_DWORD *)(v2 + 780);
v5 += *(_DWORD *)(v3 + 780);
}
}
return v4 - v5;
}