//
// LevelEditorLayer::sortBatchnodeChildren from 0x78bb30 to 0x78bb8c (92 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateVisibility @ 0x78e720
// > ??> @ 0xad950
//
// 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 12:53:26 +0000
//
__int64 __fastcall LevelEditorLayer::sortBatchnodeChildren(LevelEditorLayer *this, float a2)
{
__int64 result; // x0
unsigned int *v3; // x1
__int64 *v4; // x19
__int64 *i; // x20
result = *((_QWORD *)this + 498);
if ( result )
{
v3 = *(unsigned int **)(result + 56);
result = *v3;
if ( (_DWORD)result )
{
v4 = *((__int64 **)v3 + 2);
for ( i = &v4[(unsigned int)result - 1];
i >= v4;
result = cocos2d::CCSpriteBatchNode::manualSortAllChildren((cocos2d::CCSpriteBatchNode *)result) )
{
result = *v4;
if ( !*v4 )
break;
++v4;
}
}
}
return result;
}