//
// LevelEditorLayer::sortBatchnodeChildren from 0x4613e4 to 0x461410 (44 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateVisibility @ 0x462f36
//
// 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 11:48:53 +0000
//
cocos2d::CCSpriteBatchNode *__fastcall LevelEditorLayer::sortBatchnodeChildren(
cocos2d::CCSpriteBatchNode *this,
float a2)
{
int v2; // r3
_DWORD *v3; // r2
cocos2d::CCSpriteBatchNode **v4; // r5
cocos2d::CCSpriteBatchNode **v5; // r4
cocos2d::CCSpriteBatchNode *v6; // t1
v2 = *((_DWORD *)this + 617);
if ( v2 )
{
v3 = *(_DWORD **)(v2 + 52);
if ( *v3 )
{
v4 = (cocos2d::CCSpriteBatchNode **)v3[3];
v5 = &v4[*v3] + 0x3FFFFFFF;
while ( v4 <= v5 )
{
v6 = *v4++;
this = v6;
if ( !v6 )
break;
this = (cocos2d::CCSpriteBatchNode *)cocos2d::CCSpriteBatchNode::manualSortAllChildren(this);
}
}
}
return this;
}