//
// cocos2d::CCParticleSystem::resetSystem from 0xd6f980 to 0xd6fa5c (220 bytes)
//
// 74 xrefs:
// > GameToolbox::particleFromStruct @ 0x69dd98
// > LevelCell::playRecallUnlock @ 0x7486fc
// > PlayerObject::removeAllParticles @ 0x74e884
// > PlayerObject::resetAllParticles @ 0x74eb34
// > PlayerObject::playSpiderDashEffect @ 0x752880
// > PlayerObject::toggleVisibility @ 0x754504
// > PlayerObject::rotateGameplay @ 0x755fd8
// > PlayerObject::toggleFlyMode @ 0x759bfc
// > PlayerObject::toggleFlyMode @ 0x759c04
// > PlayerObject::toggleBirdMode @ 0x759e68
// > PlayerObject::toggleSwingMode @ 0x75a008
// > PlayerObject::toggleSwingMode @ 0x75a010
// > PlayerObject::toggleSwingMode @ 0x75a0d8
// > PlayerObject::toggleSwingMode @ 0x75a0e0
// > PlayerObject::hitGround @ 0x75a98c
// > PlayerObject::spiderTestJumpY @ 0x764fb8
// > PlayerObject::spiderTestJumpX @ 0x765ac4
// > GameObject::setVisible @ 0x76cd10
// > LevelEditorLayer::claimCustomParticle @ 0x787174
// > MenuGameLayer::destroyPlayer @ 0x7dac9c
// > ParticleGameObject::updateSyncedAnimation @ 0x86f934
// > ParticleGameObject::updateSyncedAnimation @ 0x86f954
// > ParticleGameObject::resetObject @ 0x8701f8
// > ParticleGameObject::updateAnimateOnTrigger @ 0x870250
// > LevelPage::updateDynamicPage @ 0x8c7c3c
// > LevelPage::updateDynamicPage @ 0x8c7d00
// > LevelPage::updateDynamicPage @ 0x8c7dc4
// > GJBaseGameLayer::playSpeedParticle @ 0x9a9fe8
// > GJBaseGameLayer::claimCustomParticle @ 0x9f6f90
// > GJDifficultySprite::updateFeatureState @ 0xa2f1ec
// > CurrencyRewardLayer::createObjectsFull @ 0xa6a3c0
// > CurrencyRewardLayer::init @ 0xa6b268
// > CurrencyRewardLayer::init @ 0xa6b6e0
// > CurrencyRewardLayer::init @ 0xa6bb58
// > CurrencyRewardLayer::init @ 0xa6bf74
// > GauntletSelectLayer::playUnlockAnimation @ 0xa73d84
// > GauntletSelectLayer::unlockAnimationStep2 @ 0xa740a8
// > GauntletSelectLayer::unlockAnimationStep3 @ 0xa74300
// > GauntletSelectLayer::unlockAnimationStep3 @ 0xa744f0
// > GJShopLayer::init @ 0xa7f828
// > GJChestSprite::switchToState @ 0xa87140
// > GJChestSprite::switchToState @ 0xa87600
// > MapSelectLayer::checkTouchMonster @ 0xac2950
// > CreateParticlePopup::update @ 0xafc6fc
// > CreateParticlePopup::onDurationForever @ 0xb00d9c
// > CreateParticlePopup::onMaxEmission @ 0xb00de4
// > CreateParticlePopup::onCalcEmission @ 0xb00e88
// > PlayerObject::playCompleteEffect @ 0xb5398c
// > PlayerObject::playDeathEffect @ 0xb547d4
// > PlayerObject::playDeathEffect @ 0xb54e10
// > PlayerObject::playDeathEffect @ 0xb5525c
// > PlayerObject::playDeathEffect @ 0xb556c8
// > PlayerObject::playDeathEffect @ 0xb55acc
// > PlayerObject::playDeathEffect @ 0xb55f04
// > PlayerObject::playDeathEffect @ 0xb56394
// > PlayerObject::playDeathEffect @ 0xb56748
// > PlayerObject::playDeathEffect @ 0xb56ba4
// > PlayerObject::playDeathEffect @ 0xb57064
// > PlayerObject::playDeathEffect @ 0xb574c8
// > PlayerObject::playDeathEffect @ 0xb57988
// > PlayerObject::playDeathEffect @ 0xb57dc0
// > PlayerObject::playDeathEffect @ 0xb5823c
// > PlayerObject::playDeathEffect @ 0xb586e8
// > PlayerObject::playDeathEffect @ 0xb58b6c
// > PlayerObject::playDeathEffect @ 0xb58fa8
// > PlayerObject::playDeathEffect @ 0xb593b0
// > PlayerObject::playDeathEffect @ 0xb597f0
// > GJPathPage::unlockAnimationStep2 @ 0xba4f98
// > GJPathPage::playUnlockAnimation @ 0xba5770
// > GJPathPage::unlockAnimationStep3 @ 0xba7f54
// > GJPathPage::unlockAnimationStep3 @ 0xba8044
// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0xd73c68
// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0xd73d7c
// > ??> @ 0x742a8
//
// 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 13:07:59 +0000
//
__int64 __fastcall cocos2d::CCParticleSystem::resetSystem(cocos2d::CCParticleSystem *this)
{
unsigned int v2; // w0
int v3; // w1
unsigned int v4; // w1
__int64 v5; // x5
cocos2d::CCParticleBatchNode *v6; // x3
int v7; // w20
v2 = 0;
*((_DWORD *)this + 88) = 0;
v3 = *((_DWORD *)this + 114);
*((_BYTE *)this + 452) = 1;
*((_BYTE *)this + 556) = 0;
*((_DWORD *)this + 107) = 0;
*((_DWORD *)this + 138) = 0;
if ( v3 )
{
do
{
*(_DWORD *)(*((_QWORD *)this + 52) + 148LL * v2 + 64) = 0;
v4 = *((_DWORD *)this + 114);
v2 = *((_DWORD *)this + 107) + 1;
*((_DWORD *)this + 107) = v2;
}
while ( v4 > v2 );
for ( ; v4; *((_DWORD *)this + 114) = v4 )
{
v5 = *((_QWORD *)this + 52);
v6 = *((cocos2d::CCParticleBatchNode **)this + 54);
*((_DWORD *)this + 107) = v4 - 1;
v7 = *(_DWORD *)(v5 + 148LL * (v4 - 1) + 72);
if ( v6 )
{
cocos2d::CCParticleBatchNode::disableParticle(v6, v7 + *((_DWORD *)this + 110));
*(_DWORD *)(*((_QWORD *)this + 52) + 148LL * (unsigned int)(*((_DWORD *)this + 114) - 1) + 72) = v7;
v4 = *((_DWORD *)this + 114);
}
--v4;
}
}
return cocos2d::CCParticleSystem::updateVisible((__int64)this);
}