//
// LevelEditorLayer::sortBatchnodeChildren from 0x65f574 to 0x65f5d0 (92 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateVisibility @ 0x66311c
// > ??> @ 0x82920
//
// 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; // x0
cocos2d::ccArray *data; // x1
cocos2d::CCSpriteBatchNode **arr; // x19
cocos2d::CCSpriteBatchNode **v5; // x20
cocos2d::CCSpriteBatchNode *v6; // x0
m_batchNodes = a1->m_batchNodes;
if ( m_batchNodes )
{
data = m_batchNodes->data;
if ( data->num )
{
arr = (cocos2d::CCSpriteBatchNode **)data->arr;
v5 = &arr[data->num - 1];
while ( v5 >= arr )
{
v6 = *arr;
if ( !*arr )
break;
++arr;
cocos2d::CCSpriteBatchNode::manualSortAllChildren(v6);
}
}
}
}