//
// cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup from 0x1003c95c0 to 0x1003c964c (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x10092ed30
//
// 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 cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup(cocos2d::CCParticleBatchNode *a1, bool a2)
{
cocos2d::CCArray *m_pChildren; // rdi
cocos2d::CCArray *v4; // rax
cocos2d::ccArray *data; // rax
cocos2d::CCObject **arr; // r15
unsigned __int64 v7; // r12
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
if ( (unsigned int)sub_100720070(m_pChildren) )
{
v4 = a1->m_pChildren;
if ( v4 )
{
data = v4->data;
if ( data->num )
{
arr = data->arr;
v7 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))(*arr)->__vftable[11].~CCObject)(*arr, 0);
++arr;
}
while ( (unsigned __int64)arr <= v7 );
}
}
}
}
cocos2d::CCNode::removeAllChildrenWithCleanup(a1, a2);
cocos2d::CCTextureAtlas::removeAllQuads(a1->m_pTextureAtlas);
}