//
// PlayerObject::removeAllParticles from 0x1003fcd10 to 0x1003fcd7f (111 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x100124193
// > GJBaseGameLayer::removePlayer2 @ 0x100129d13
//
// 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)
{
unsigned int v1; // r14d
cocos2d::CCParticleSystem *v2; // r15
if ( (unsigned int)sub_100720070(a1->m_particleSystems) )
{
v1 = 0;
do
{
v2 = (cocos2d::CCParticleSystem *)sub_1007200C0(a1->m_particleSystems, v1);
cocos2d::CCParticleSystem::resetSystem(v2);
cocos2d::CCParticleSystem::stopSystem(v2);
((void (__fastcall *)(cocos2d::CCParticleSystem *, _QWORD))v2->removeFromParentAndCleanup)(v2, 0);
++v1;
}
while ( v1 < (unsigned int)sub_100720070(a1->m_particleSystems) );
}
}