//
// PlayerObject::removeAllParticles from 0x74e85c to 0x74e8cc (112 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::removePlayer2 @ 0x99e908
// > ??> @ 0x97e10
//
// This function is hookable on this platform (idp: arm, 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 12:52:54 +0000
//
__int64 __fastcall PlayerObject::removeAllParticles(cocos2d::CCArray **this)
{
unsigned int v1; // w19
cocos2d::CCParticleSystem *v3; // x20
__int64 result; // x0
bool v5; // cf
unsigned int v6; // w1
v1 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 210));
v5 = v1 >= (unsigned int)result;
v6 = v1++;
if ( v5 )
break;
v3 = (cocos2d::CCParticleSystem *)cocos2d::CCArray::objectAtIndex(*(this + 210), v6);
cocos2d::CCParticleSystem::resetSystem(v3);
cocos2d::CCParticleSystem::stopSystem(v3);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)v3 + 528LL))(v3, 0);
}
return result;
}