//
// PlayLayer::toggleBGEffectVisibility from 0x402254 to 0x40227e (42 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x4f4e4c
//
// 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 11:47:24 +0000
//
int __fastcall PlayLayer::toggleBGEffectVisibility(int this, int a2)
{
int v2; // r1
v2 = a2 ^ 1;
*(_BYTE *)(this + 12205) = v2;
if ( v2 )
return cocos2d::CCParticleSystem::stopSystem(*(cocos2d::CCParticleSystem **)(this + 10860));
if ( *(_BYTE *)(this + 12204) )
return cocos2d::CCParticleSystem::resumeSystem(*(cocos2d::CCParticleSystem **)(this + 10860));
return this;
}