//
// PlayerObject::resetAllParticles from 0x435208 to 0x435236 (46 bytes)
//
// 2 xrefs:
// > PlayerObject::toggleVisibility @ 0x4393ea
// > MenuGameLayer::resetPlayer @ 0x4924b8
//
// 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::resetAllParticles(cocos2d::CCArray **this)
{
unsigned int v2; // r4
unsigned int result; // r0
cocos2d::CCParticleSystem *v4; // r0
cocos2d::CCParticleSystem *v5; // r6
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);
}
return result;
}