//
// cocos2d::CCNode::qsortAllChildrenWithIndex from 0x1800045f0 to 0x18000465b (107 bytes)
//
// 6 xrefs:
// > cocos2d::CCNode::sortAllChildren @ 0x18000525b
// > cocos2d::CCNode::sortAllChildrenWithIndex @ 0x180005390
// > ??> @ 0x180139c48
// > ??> @ 0x180139c58
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b74b0
//
// 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:21:17 +0000
//
void __fastcall cocos2d::CCNode::qsortAllChildrenWithIndex(cocos2d::CCNode *this)
{
char *v1; // rbx
if ( *((_BYTE *)this + 288) )
{
v1 = (char *)this + 208;
if ( *((_BYTE *)this + 312) )
sub_1800A1D70(*(_QWORD *)(*(_QWORD *)v1 + 56LL));
sub_1800023B0(
*(char **)(*(_QWORD *)(*(_QWORD *)v1 + 56LL) + 16LL),
(__int64 *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)v1 + 56LL) + 16LL) + 8LL
* **(unsigned int **)(*(_QWORD *)v1 + 56LL)),
**(unsigned int **)(*(_QWORD *)v1 + 56LL),
(unsigned __int8 (__fastcall *)(__int64, __int64))sub_1800041E0);
sub_1800A1980(*(_QWORD *)(*(_QWORD *)v1 + 56LL));
}
}