//
// GameObject::getActiveColorForMode from 0x64a6d8 to 0x64a808 (304 bytes)
//
// 5 xrefs:
// > PlayLayer::addObject @ 0x5cc538
// > PlayLayer::addObject @ 0x5cc6dc
// > PlayLayer::addObject @ 0x5cc6fc
// > GameObject::colorForMode @ 0x64a838
// > ??> @ 0x93618
//
// 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
//
// local variable allocation has failed, the output may be wrong!
const cocos2d::ccColor3B *GameObject::getActiveColorForMode(GameObject *a1, int a2, bool a3)
{
cocos2d::ccColor3B *p_m_groupColor; // x19
__int64 v5; // x1
GJEffectManager *m_goEffectManager; // x0
GJEffectManager *v8; // x21
cocos2d::ccHSVValue v9; // 0:x2.16
if ( a2 == 1010 )
return (const cocos2d::ccColor3B *)&unk_EC3610;
if ( a2 <= 1010 )
{
if ( a2 )
{
LABEL_10:
if ( a3 )
return &a1->m_mainActionSprite->m_copyColor;
else
return &a1->m_detailActionSprite->m_copyColor;
}
return (const cocos2d::ccColor3B *)&off_EC3670;
}
if ( a2 == 1011 )
return (const cocos2d::ccColor3B *)&off_EC3670;
if ( a2 != 1012 )
goto LABEL_10;
p_m_groupColor = &a1->m_groupColor;
if ( a3 )
{
v5 = *(_QWORD *)&a1->m_mainActionSprite->m_copyColor.r;
*(_QWORD *)&v9.h = 0x3F26666600000000LL;
m_goEffectManager = a1->m_goEffectManager;
}
else
{
v8 = a1->m_goEffectManager;
v5 = *(_QWORD *)((__int64 (__fastcall *)(GameObject *, const cocos2d::ccColor3B *(__fastcall *)(cocos2d::CCNodeRGBA *__hidden), bool, GameObject *))a1->getColor)(
a1,
a1->getColor,
a3,
a1);
*(_QWORD *)&v9.h = 0x3F26666600000000LL;
m_goEffectManager = v8;
}
*(_QWORD *)&v9.v = 0x1003E19999ALL;
a1->m_groupColor = GJEffectManager::colorForEffect(m_goEffectManager, (cocos2d::ccColor3B)v5, v9);
return p_m_groupColor;
}