//
// PlayLayer::toggleBGEffectVisibility from 0x6f6c74 to 0x6f6ca4 (48 bytes)
//
// 3 xrefs:
// > EffectGameObject::triggerObject @ 0x897dac
// > EffectGameObject::triggerObject @ 0x898788
// > ??> @ 0xcd720
//
// 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:51 +0000
//
__int64 __fastcall PlayLayer::toggleBGEffectVisibility(__int64 this, unsigned __int8 a2)
{
int v2; // w1
v2 = a2 ^ 1;
*(_BYTE *)(this + 14749) = v2;
if ( v2 )
return cocos2d::CCParticleSystem::stopSystem(*(cocos2d::CCParticleSystem **)(this + 12640));
if ( *(_BYTE *)(this + 14748) )
return cocos2d::CCParticleSystem::resumeSystem(*(cocos2d::CCParticleSystem **)(this + 12640));
return this;
}