//
// GJGarageLayer::toggleGlow from 0x8ba278 to 0x8ba2e0 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x77ab8
//
// 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:56:27 +0000
//
__int64 __fastcall GJGarageLayer::toggleGlow(SimplePlayer **this)
{
GameManager *v2; // x20
GameManager *v3; // x0
__int64 v4; // x20
GameManager *updated; // x0
__int64 result; // x0
v2 = (GameManager *)GameManager::sharedState((GameManager *)this);
v3 = (GameManager *)(*(unsigned __int8 *)(GameManager::sharedState(v2) + 912) ^ 1u);
*((_BYTE *)v2 + 912) = (_BYTE)v3;
v4 = (__int64)*(this + 59);
*(_BYTE *)(v4 + 660) = *(_BYTE *)(GameManager::sharedState(v3) + 912);
updated = (GameManager *)SimplePlayer::updateColors(*(this + 59));
result = *(unsigned __int8 *)(GameManager::sharedState(updated) + 912);
if ( (_DWORD)result )
return GJGarageLayer::playRainbowEffect((GJGarageLayer *)this);
return result;
}