//
// cocos2d::qChildSort from 0xacc5bc to 0xacc654 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x7c0c8
//
// 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 cocos2d::qChildSort(cocos2d *this, __int64 *a2, const void *a3)
{
__int64 v3; // x22
__int64 v4; // x21
int v5; // w20
int v6; // w19
int v8; // w20
v3 = *(_QWORD *)this;
v4 = *a2;
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)this + 104LL))(*(_QWORD *)this);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 104LL))(v4);
if ( v5 != v6 )
return (unsigned int)(v5 - v6);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 400LL))(v3) + v5;
return v8 - ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 400LL))(v4) + v6);
}