//
// GJEffectManager::setColorAction from 0x8bfb78 to 0x8bfbf4 (124 bytes)
//
// 10 xrefs:
// > LevelSettingsObject::init @ 0x685498
// > LevelSettingsObject::init @ 0x6854b8
// > LevelSettingsObject::init @ 0x6854d8
// > LevelSettingsObject::init @ 0x6854fc
// > LevelSettingsObject::init @ 0x68551c
// > LevelSettingsObject::init @ 0x68553c
// > GJEffectManager::getColorAction @ 0x8bfc60
// > GJEffectManager::setupFromString @ 0x8c0984
// > GJEffectManager::loadFromState @ 0x8c1160
// > ??> @ 0x96198
//
// 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
//
void GJEffectManager::setColorAction(GJEffectManager *a1, ColorAction *a2, int a3)
{
int v5; // w19
intptr_t v6; // x2
__int64 v7; // x22
cocos2d::CCDictionary *m_unkObject148; // x0
ColorActionSprite *ColorSprite; // x0
if ( a3 > 1100 )
{
v6 = 1101;
v7 = 1101;
v5 = 1101;
}
else
{
if ( a3 < 0 )
v5 = 0;
else
v5 = a3;
v6 = v5;
v7 = v5;
}
m_unkObject148 = a1->m_unkObject148;
a2->m_colorID = v5;
cocos2d::CCDictionary::setObject(m_unkObject148, a2, v6);
a1->m_colorActionVector.m_start[v7] = a2;
ColorSprite = GJEffectManager::getColorSprite(a1, v5);
a2->m_colorSprite = ColorSprite;
ColorSprite->m_colorAction = a2;
}