//
// SimplePlayer::tryEnableCustomGlowColor from 0x100359e80 to 0x100359ec2 (66 bytes)
//
// 8 xrefs:
// > CommentCell::loadFromComment @ 0x10022d87c
// > GJScoreCell::loadFromScore @ 0x10022f9e9
// > GJLevelScoreCell::loadFromScore @ 0x100230f7b
// > GJThreadCell::loadFromThread @ 0x100232ca0
// > GJCompactUserCell::buildUserRow @ 0x10023f4de
// > ProfilePage::loadPageFromUserInfo @ 0x1008a030a
// > ThreadViewPopup::mountVirtualRow @ 0x10093896f
// > sub_10094E620 @ 0x10094e6bb
//
// 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 12:28:53 +0000
//
char __fastcall SimplePlayer::tryEnableCustomGlowColor(__int64 a1, __int64 a2, __int64 a3)
{
double v3; // xmm0_8
__int64 v4; // rax
__int16 v5; // ax
char v6; // eax^2
char result; // al
if ( (int)a2 < 0 )
{
result = 0;
}
else
{
*(_QWORD *)&v3 = GameManager::sharedState(a1, a2, a3).u64[0];
GameManager::colorForIdx(v4, (unsigned int)a2, v3);
*(_WORD *)(a1 + 669) = v5;
*(_BYTE *)(a1 + 671) = v6;
result = 1;
}
*(_BYTE *)(a1 + 668) = result;
return result;
}