//
// GJGarageLayer::toggleGlow from 0x50b5d4 to 0x50b61c (72 bytes)
//
// 0 xrefs:
//
// 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:51:28 +0000
//
int __fastcall GJGarageLayer::toggleGlow(SimplePlayer **this, int a2, int a3, bool a4)
{
GameManager *v5; // r5
GameManager *v6; // r0
int v7; // r5
GameManager *updated; // r0
int result; // r0
int v10; // r1
int v11; // r2
v5 = (GameManager *)GameManager::sharedState((GameManager *)this);
v6 = (GameManager *)GameManager::sharedState(v5);
*((_BYTE *)v5 + 712) = *((_BYTE *)v6 + 712) ^ 1;
v7 = (int)*(this + 87);
*(_BYTE *)(v7 + 540) = *(_BYTE *)(GameManager::sharedState(v6) + 712);
updated = SimplePlayer::updateColors(*(this + 87));
result = GameManager::sharedState(updated);
if ( *(_BYTE *)(result + 712) )
return GJGarageLayer::playRainbowEffect((GJGarageLayer *)this, v10, v11, a4);
return result;
}