//
// LevelEditorLayer::sortBatchnodeChildren from 0x367688 to 0x3676b4 (44 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateVisibility @ 0x3697c8
//
// 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
//
void LevelEditorLayer::sortBatchnodeChildren(LevelEditorLayer *a1, float a2)
{
cocos2d::CCArray *m_batchNodes; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v5; // r4
cocos2d::CCSpriteBatchNode *v6; // r0
cocos2d::CCSpriteBatchNode *v7; // t1
m_batchNodes = a1->m_batchNodes;
if ( m_batchNodes )
{
data = m_batchNodes->data;
if ( data->num )
{
arr = data->arr;
v5 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v5 )
{
v7 = (cocos2d::CCSpriteBatchNode *)*arr++;
v6 = v7;
if ( !v7 )
break;
cocos2d::CCSpriteBatchNode::manualSortAllChildren(v6);
}
}
}
}