//
// PlayerObject::resetAllParticles from 0x1404e9a60 to 0x1404e9ad7 (119 bytes)
//
// 5 xrefs:
// > MenuGameLayer::resetPlayer @ 0x140470e45
// > PlayerObject::toggleVisibility @ 0x1404e973c
// > ??> @ 0x1408d4770
// > ??> @ 0x1408d4780
// > ??> @ 0x140929ca8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:33:12 +0000
//
unsigned int __fastcall PlayerObject::resetAllParticles(__int64 a1)
{
unsigned int v2; // edi
unsigned int result; // eax
cocos2d::CCParticleSystem *v4; // rbx
v2 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1688));
if ( result )
{
do
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1688), v2);
cocos2d::CCParticleSystem::resetSystem(v4);
cocos2d::CCParticleSystem::stopSystem(v4);
++v2;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1688));
}
while ( v2 < result );
}
return result;
}