//
// sub_100353A04 from 0x100353a04 to 0x100353a30 (44 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0x10023be80
//
// 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
//
unsigned int *__fastcall sub_100353A04(unsigned int *result)
{
__int64 v1; // x8
__int64 v2; // x9
__int64 v3; // x10
v1 = *result;
if ( (int)v1 >= 1 )
{
v2 = 0;
v3 = *((_QWORD *)result + 2);
do
{
*(_DWORD *)(*(_QWORD *)(v3 + 8 * v2) + 36LL) = v2;
++v2;
}
while ( v1 != v2 );
}
return result;
}