//
// PlayerObject::removeAllParticles from 0x100219554 to 0x1002195cc (120 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::removePlayer2 @ 0x1001ea324
//
// 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 PlayerObject::removeAllParticles(PlayerObject *a1)
{
__int64 v2; // x20
cocos2d::CCParticleSystem *v3; // x21
if ( (unsigned int)sub_10024A36C(a1->m_particleSystems) )
{
v2 = 0;
do
{
v3 = (cocos2d::CCParticleSystem *)sub_10024A388(a1->m_particleSystems, v2);
cocos2d::CCParticleSystem::resetSystem(v3);
cocos2d::CCParticleSystem::stopSystem(v3);
((void (__fastcall *)(cocos2d::CCParticleSystem *, _QWORD))v3->removeFromParentAndCleanup)(v3, 0);
v2 = (unsigned int)(v2 + 1);
}
while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_particleSystems) );
}
}