//
// PlayLayer::toggleGlitter from 0x1001479b4 to 0x100147a10 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008df918
//
// 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 10:59:35 +0000
//
__int64 __fastcall PlayLayer::toggleGlitter(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v5; // x0
result = GameManager::sharedState(a1);
if ( (*(_BYTE *)(result + 925) & 1) == 0 )
{
*(_BYTE *)(a1 + 14748) = a2;
v5 = *(_QWORD *)(a1 + 12640);
if ( (*(_BYTE *)(a1 + 14749) & 1) != 0 || !a2 )
return cocos2d::CCParticleSystem::stopSystem(v5);
else
return cocos2d::CCParticleSystem::resumeSystem(v5);
}
return result;
}