//
// cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup from 0x7e5f60 to 0x7e5fb6 (86 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:53 +0000
//
int __fastcall cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup(cocos2d::CCParticleBatchNode *this, int a2)
{
cocos2d::CCArray *v3; // r0
int v5; // r3
_DWORD *v6; // r2
int *v7; // r5
int *v8; // r4
int v10; // r0
int v11; // t1
v3 = *((cocos2d::CCArray **)this + 48);
if ( v3 )
{
if ( cocos2d::CCArray::count(v3) )
{
v5 = *((_DWORD *)this + 48);
if ( v5 )
{
v6 = *(_DWORD **)(v5 + 52);
if ( *v6 )
{
v7 = (int *)v6[3];
v8 = &v7[*v6 - 1];
while ( v7 <= v8 )
{
v11 = *v7++;
v10 = v11;
if ( !v11 )
break;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v10 + 452))(v10, 0);
}
}
}
}
}
cocos2d::CCNode::removeAllChildrenWithCleanup(this, a2);
return cocos2d::CCTextureAtlas::removeAllQuads(*((cocos2d::CCTextureAtlas **)this + 67));
}