//
// PlayerObject::removeAllParticles from 0x434fe2 to 0x43501c (58 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::removePlayer2 @ 0x58f2b8
//
// 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 11:48:18 +0000
//
unsigned int __fastcall PlayerObject::removeAllParticles(cocos2d::CCArray **this)
{
unsigned int v2; // r4
unsigned int result; // r0
cocos2d::CCParticleSystem *v4; // r0
cocos2d::CCParticleSystem *v5; // r5
v2 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 356));
if ( v2 >= result )
break;
v4 = (cocos2d::CCParticleSystem *)cocos2d::CCArray::objectAtIndex(*(this + 356), v2++);
v5 = v4;
cocos2d::CCParticleSystem::resetSystem(v4);
cocos2d::CCParticleSystem::stopSystem(v5);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v5 + 264))(v5, 0);
}
return result;
}