//
// LevelEditorLayer::sortBatchnodeChildren from 0x1000bd550 to 0x1000bd59b (75 bytes)
//
// 0 xrefs:
//
// 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 12:20:32 +0000
//
unsigned int *__fastcall LevelEditorLayer::sortBatchnodeChildren(__int64 a1)
{
unsigned int *result; // rax
_QWORD *v2; // rbx
unsigned __int64 v3; // r14
result = *(unsigned int **)(a1 + 3984);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v2 = *((_QWORD **)result + 2);
v3 = (unsigned __int64)&v2[*result - 1];
do
{
if ( !*v2 )
break;
result = (unsigned int *)cocos2d::CCSpriteBatchNode::manualSortAllChildren();
++v2;
}
while ( (unsigned __int64)v2 <= v3 );
}
}
return result;
}