//
// cocos2d::qChildSort from 0x5bdc3c to 0x5bdc76 (58 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall cocos2d::qChildSort(cocos2d *this, int *a2, const void *a3)
{
int v3; // r7
int v4; // r6
int v5; // r5
int v6; // r4
v3 = *(_DWORD *)this;
v4 = *a2;
v5 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)this + 52))(*(_DWORD *)this);
v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 52))(v4);
if ( v5 == v6 )
{
v5 += (*(int (__fastcall **)(int))(*(_DWORD *)v3 + 200))(v3);
v6 += (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 200))(v4);
}
return v5 - v6;
}