//
// SimplePlayer::tryEnableCustomGlowColor from 0x140382630 to 0x1403826c6 (150 bytes)
//
// 9 xrefs:
// > ThreadViewPopup::mountVirtualRow @ 0x1400e21f2
// > sub_1400F78D0 @ 0x1400f79e2
// > CommentCell::loadFromComment @ 0x14015249a
// > GJScoreCell::loadFromScore @ 0x140155536
// > GJLevelScoreCell::loadFromScore @ 0x140157259
// > GJCompactUserCell::buildUserRow @ 0x140158033
// > GJThreadCell::loadFromThread @ 0x140159c31
// > ProfilePage::loadPageFromUserInfo @ 0x140553b98
// > ??> @ 0x1409229c4
//
// This function is hookable on this platform (idp: pc, 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 11:31:05 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SimplePlayer::tryEnableCustomGlowColor(__int64 a1, int a2)
{
__int64 v4; // rcx
char *v5; // rax
char v6; // [rsp+38h] [rbp+10h] BYREF
void *v7; // [rsp+40h] [rbp+18h]
if ( a2 < 0 )
{
*(_BYTE *)(a1 + 668) = 0;
}
else
{
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v7 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
v5 = GameManager::colorForIdx(v4, &v6, a2);
*(_BYTE *)(a1 + 668) = 1;
*(_WORD *)(a1 + 669) = *(_WORD *)v5;
*(_BYTE *)(a1 + 671) = v5[2];
}
}