//
// PlayLayer::toggleGlitter from 0x6f2f48 to 0x6f2fa4 (92 bytes)
//
// 2 xrefs:
// > ??> @ 0xd0780
// > ??> @ 0x1428948
//
// 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:51:49 +0000
//
__int64 __fastcall PlayLayer::toggleGlitter(cocos2d::CCParticleSystem **this, unsigned __int8 a2)
{
unsigned int v3; // w19
__int64 result; // x0
unsigned int v5; // w1
cocos2d::CCParticleSystem *v6; // x0
v3 = a2;
result = *(unsigned __int8 *)(GameManager::sharedState((GameManager *)this) + 925);
if ( !(_DWORD)result )
{
v5 = *((unsigned __int8 *)this + 14749);
*((_BYTE *)this + 14748) = v3;
v6 = *(this + 1580);
if ( v5 >= v3 )
return cocos2d::CCParticleSystem::stopSystem(v6);
else
return cocos2d::CCParticleSystem::resumeSystem(v6);
}
return result;
}