//
// cocos2d::qChildSort from 0xd3e52c to 0xd3e5c4 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0xa59b8
//
// This function is hookable on this platform (idp: arm, 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 13:07:29 +0000
//
__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 **)(__int64))(*(_QWORD *)v3 + 104LL))(v3);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 104LL))(v4);
if ( v5 != v6 )
return (unsigned int)(v5 - v6);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 416LL))(v3) + v5;
return v8 - ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 416LL))(v4) + v6);
}