//
// SimplePlayer::tryEnableCustomGlowColor from 0x8b9f2c to 0x8b9fb0 (132 bytes)
//
// 9 xrefs:
// > GJThreadCell::loadFromThread @ 0x73e398
// > GJScoreCell::loadFromScore @ 0x743424
// > GJCompactUserCell::buildUserRow @ 0x744954
// > GJLevelScoreCell::loadFromScore @ 0x749570
// > CommentCell::loadFromComment @ 0x74bd64
// > ProfilePage::loadPageFromUserInfo @ 0xa59e1c
// > sub_C630DC @ 0xc63198
// > ThreadViewPopup::mountVirtualRow @ 0xc8b3e0
// > ??> @ 0xbd790
//
// 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:26 +0000
//
__int64 __fastcall SimplePlayer::tryEnableCustomGlowColor(SimplePlayer *this, int a2)
{
GameManager *v3; // x0
unsigned __int64 v4; // x0
__int16 v7; // [xsp+30h] [xbp+30h] BYREF
char v8; // [xsp+32h] [xbp+32h]
if ( a2 < 0 )
{
SimplePlayer::disableCustomGlowColor((__int64)this);
}
else
{
v3 = (GameManager *)GameManager::sharedState(this);
v4 = GameManager::colorForIdx(v3, a2);
v7 = v4;
v8 = BYTE2(v4);
SimplePlayer::enableCustomGlowColor((__int64)this, (__int64)&v7);
}
return _stack_chk_guard;
}