//
// cocos2d::CCParticleSystem::resetSystem from 0x7e3cae to 0x7e3d3e (144 bytes)
//
// 73 xrefs:
// > GameToolbox::particleFromStruct @ 0x3ce5f4
// > LevelCell::playRecallUnlock @ 0x430cf8
// > PlayerObject::removeAllParticles @ 0x435002
// > PlayerObject::resetAllParticles @ 0x435228
// > PlayerObject::playSpiderDashEffect @ 0x4382e0
// > PlayerObject::toggleVisibility @ 0x439404
// > PlayerObject::rotateGameplay @ 0x43a8d0
// > PlayerObject::hitGround @ 0x43bf42
// > PlayerObject::toggleFlyMode @ 0x43eaac
// > PlayerObject::toggleFlyMode @ 0x43eab4
// > PlayerObject::toggleBirdMode @ 0x43ecc0
// > PlayerObject::toggleSwingMode @ 0x43edf8
// > PlayerObject::toggleSwingMode @ 0x43ee00
// > PlayerObject::toggleSwingMode @ 0x43ee6c
// > PlayerObject::toggleSwingMode @ 0x43ee74
// > PlayerObject::spiderTestJumpY @ 0x445d2c
// > PlayerObject::spiderTestJumpX @ 0x4465ec
// > GameObject::setVisible @ 0x44bba6
// > LevelEditorLayer::claimCustomParticle @ 0x45e8d2
// > MenuGameLayer::destroyPlayer @ 0x492d9e
// > ParticleGameObject::updateSyncedAnimation @ 0x4e669c
// > ParticleGameObject::updateSyncedAnimation @ 0x4e678c
// > ParticleGameObject::resetObject @ 0x4e6a6e
// > ParticleGameObject::updateAnimateOnTrigger @ 0x4e6aa2
// > LevelPage::updateDynamicPage @ 0x514a20
// > LevelPage::updateDynamicPage @ 0x514aa4
// > LevelPage::updateDynamicPage @ 0x514b2a
// > GJBaseGameLayer::playSpeedParticle @ 0x59704c
// > GJBaseGameLayer::claimCustomParticle @ 0x5a971a
// > GJDifficultySprite::updateFeatureState @ 0x5dde10
// > CurrencyRewardLayer::createObjectsFull @ 0x6052f0
// > CurrencyRewardLayer::init @ 0x6059ca
// > CurrencyRewardLayer::init @ 0x605d1e
// > CurrencyRewardLayer::init @ 0x606068
// > CurrencyRewardLayer::init @ 0x606384
// > GauntletSelectLayer::playUnlockAnimation @ 0x60b1ce
// > GauntletSelectLayer::unlockAnimationStep2 @ 0x60b3c4
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x60b4f0
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x60b592
// > GJShopLayer::init @ 0x613394
// > GJChestSprite::switchToState @ 0x6181d2
// > GJChestSprite::switchToState @ 0x6186d8
// > MapSelectLayer::checkTouchMonster @ 0x63fab0
// > CreateParticlePopup::update @ 0x66474a
// > CreateParticlePopup::onDurationForever @ 0x666886
// > CreateParticlePopup::onMaxEmission @ 0x6668b6
// > CreateParticlePopup::onCalcEmission @ 0x66693e
// > PlayerObject::playCompleteEffect @ 0x69e610
// > PlayerObject::playDeathEffect @ 0x69f178
// > PlayerObject::playDeathEffect @ 0x69f4de
// > PlayerObject::playDeathEffect @ 0x69f82a
// > PlayerObject::playDeathEffect @ 0x69fb9e
// > PlayerObject::playDeathEffect @ 0x69ff74
// > PlayerObject::playDeathEffect @ 0x6a0258
// > PlayerObject::playDeathEffect @ 0x6a05d6
// > PlayerObject::playDeathEffect @ 0x6a09a0
// > PlayerObject::playDeathEffect @ 0x6a0d68
// > PlayerObject::playDeathEffect @ 0x6a111e
// > PlayerObject::playDeathEffect @ 0x6a14aa
// > PlayerObject::playDeathEffect @ 0x6a1858
// > PlayerObject::playDeathEffect @ 0x6a1c78
// > PlayerObject::playDeathEffect @ 0x6a2046
// > PlayerObject::playDeathEffect @ 0x6a23d8
// > PlayerObject::playDeathEffect @ 0x6a270e
// > PlayerObject::playDeathEffect @ 0x6a2a8a
// > PlayerObject::playDeathEffect @ 0x6a2df8
// > PlayerObject::playDeathEffect @ 0x6a3134
// > PlayerObject::playDeathEffect @ 0x6a32ae
// > GJPathPage::unlockAnimationStep2 @ 0x6d2268
// > GJPathPage::playUnlockAnimation @ 0x6d285a
// > GJPathPage::unlockAnimationStep3 @ 0x6d42d4
// > GJPathPage::unlockAnimationStep3 @ 0x6d4368
// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x7e683a
//
// 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 12:00:51 +0000
//
int __fastcall cocos2d::CCParticleSystem::resetSystem(cocos2d::CCParticleSystem *this)
{
unsigned int v2; // r2
int v3; // r3
int v4; // r2
int v5; // r3
cocos2d::CCParticleBatchNode *v6; // r0
int v7; // r6
*((_BYTE *)this + 372) = 1;
*((_BYTE *)this + 476) = 0;
*((_DWORD *)this + 70) = 0;
*((_DWORD *)this + 118) = 0;
for ( *((_DWORD *)this + 88) = 0; ; ++*((_DWORD *)this + 88) )
{
v2 = *((_DWORD *)this + 88);
if ( v2 >= *((_DWORD *)this + 94) )
break;
*(_DWORD *)(*((_DWORD *)this + 86) + 148 * v2 + 64) = 0;
}
while ( 1 )
{
v3 = *((_DWORD *)this + 94);
if ( !v3 )
break;
v4 = *((_DWORD *)this + 86);
v5 = v3 - 1;
*((_DWORD *)this + 88) = v5;
v6 = *((cocos2d::CCParticleBatchNode **)this + 89);
v7 = *(_DWORD *)(v4 + 148 * v5 + 72);
if ( v6 )
{
cocos2d::CCParticleBatchNode::disableParticle(v6, *((_DWORD *)this + 90) + v7);
*(_DWORD *)(*((_DWORD *)this + 86) + 148 * *((_DWORD *)this + 94) - 76) = v7;
}
--*((_DWORD *)this + 94);
}
return cocos2d::CCParticleSystem::updateVisible((int)this);
}