//
// SimplePlayer::tryEnableCustomGlowColor from 0x50b394 to 0x50b3e4 (80 bytes)
//
// 8 xrefs:
// > GJThreadCell::loadFromThread @ 0x42aed6
// > GJScoreCell::loadFromScore @ 0x42d412
// > GJCompactUserCell::buildUserRow @ 0x42e1dc
// > GJLevelScoreCell::loadFromScore @ 0x431664
// > CommentCell::loadFromComment @ 0x432970
// > ProfilePage::loadPageFromUserInfo @ 0x5f9550
// > sub_745C90 @ 0x745d10
// > ThreadViewPopup::mountVirtualRow @ 0x75f3bc
//
// 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:27 +0000
//
int __fastcall SimplePlayer::tryEnableCustomGlowColor(SimplePlayer *this, int a2)
{
GameManager *v4; // r0
int v5; // r0
_DWORD v7[2]; // [sp+0h] [bp-8h] BYREF
v7[0] = this;
v7[1] = a2;
if ( a2 < 0 )
return SimplePlayer::disableCustomGlowColor((int)this);
v4 = (GameManager *)GameManager::sharedState(this);
v5 = GameManager::colorForIdx(v4, a2);
LOWORD(v7[0]) = v5;
BYTE2(v7[0]) = BYTE2(v5);
return SimplePlayer::enableCustomGlowColor((int)this, (int)v7);
}