//
// SimplePlayer::tryEnableCustomGlowColor from 0x140279c30 to 0x140279cc3 (147 bytes)
//
// 7 xrefs:
// > CommentCell::loadFromComment @ 0x1400b625f
// > GJScoreCell::loadFromScore @ 0x1400b869b
// > GJLevelScoreCell::loadFromScore @ 0x1400ba267
// > GJUserCell::loadFromScore @ 0x1400bae40
// > GJRequestCell::loadFromScore @ 0x1400bc52a
// > ProfilePage::loadPageFromUserInfo @ 0x1403c0a66
// > ??> @ 0x1406d10ac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void SimplePlayer::tryEnableCustomGlowColor(SimplePlayer *a1, int a2)
{
cocos2d::ccColor3B *v4; // rcx
cocos2d::ccColor3B *v5; // rax
char v6; // [rsp+38h] [rbp+10h] BYREF
void *v7; // [rsp+40h] [rbp+18h]
if ( a2 < 0 )
{
a1->m_hasCustomGlowColor = 0;
}
else
{
v4 = (cocos2d::ccColor3B *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = (cocos2d::ccColor3B *)qword_1406C2ED8;
}
v5 = GameManager::colorForIdx(v4, (GameManager *)&v6, a2);
a1->m_hasCustomGlowColor = 1;
a1->m_glowColor = *v5;
}
}