//
// cocos2d::CCNode::qsortAllChildrenWithIndex from 0x7c567c to 0x7c56cc (80 bytes)
//
// 2 xrefs:
// > PlayLayer::resetLevel @ 0x412b32
// > cocos2d::CCNode::sortAllChildrenWithIndex @ 0x7c56d4
//
// 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 12:00:24 +0000
//
int __fastcall cocos2d::CCNode::qsortAllChildrenWithIndex(
int this,
int (__fastcall *a2)(_DWORD),
int (__fastcall *a3)(_DWORD))
{
int v3; // r5
_DWORD *v4; // r3
int v5; // r0
char *v6; // r1
int (__fastcall *v7[3])(_DWORD); // [sp+0h] [bp-Ch] BYREF
v7[0] = (int (__fastcall *)(_DWORD))this;
v7[1] = a2;
v7[2] = a3;
v3 = this;
if ( *(_BYTE *)(this + 240) )
{
cocos2d::CCNode::updateChildIndexes(this);
v4 = *(_DWORD **)(*(_DWORD *)(v3 + 192) + 52);
v5 = v4[3];
v6 = (char *)(v5 + 4 * *v4);
v7[0] = (int (__fastcall *)(_DWORD))sub_7C355C;
std::__sort(v5, v6, v7);
return cocos2d::ccArrayRecreateChildIndexes(*(_DWORD *)(*(_DWORD *)(v3 + 192) + 52));
}
return this;
}