//
// LevelEditorLayer::sortBatchnodeChildren from 0x10035e6c8 to 0x10035e718 (80 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateVisibility @ 0x10035f148
//
// 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 __fastcall LevelEditorLayer::sortBatchnodeChildren(LevelEditorLayer *a1, float a2)
{
cocos2d::CCArray *m_batchNodes; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCSpriteBatchNode **arr; // x19
unsigned __int64 v6; // x20
m_batchNodes = a1->m_batchNodes;
if ( m_batchNodes )
{
data = m_batchNodes->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (cocos2d::CCSpriteBatchNode **)data->arr;
v6 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
cocos2d::CCSpriteBatchNode::manualSortAllChildren(*arr++);
}
while ( (unsigned __int64)arr <= v6 );
}
}
}