//
// cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup from 0x5dd7a0 to 0x5dd7f6 (86 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup(cocos2d::CCParticleBatchNode *a1, bool a2)
{
cocos2d::CCArray *m_pChildren; // r0
cocos2d::CCArray *v5; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v8; // r4
int v9; // r0
int v10; // t1
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
if ( cocos2d::CCArray::count(m_pChildren) )
{
v5 = a1->m_pChildren;
if ( v5 )
{
data = v5->data;
if ( data->num )
{
arr = data->arr;
v8 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v8 )
{
v10 = (int)*arr++;
v9 = v10;
if ( !v10 )
break;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 444))(v9, 0);
}
}
}
}
}
cocos2d::CCNode::removeAllChildrenWithCleanup(a1, a2);
cocos2d::CCTextureAtlas::removeAllQuads(a1->m_pTextureAtlas);
}