//
// GJEffectManager::getColorSprite from 0x8bf4e8 to 0x8bf590 (168 bytes)
//
// 15 xrefs:
// > GameObject::setupColorSprite @ 0x64aa90
// > GameObject::setupColorSprite @ 0x64aaa4
// > LevelEditorLayer::transferDefaultColors @ 0x65fe88
// > LevelEditorLayer::transferDefaultColors @ 0x65feb4
// > LevelEditorLayer::transferDefaultColors @ 0x65fee0
// > LevelEditorLayer::transferDefaultColors @ 0x65ff0c
// > GJBaseGameLayer::updateColor @ 0x855588
// > GJEffectManager::activeColorForIndex @ 0x8bf5ac
// > GJEffectManager::activeOpacityForIndex @ 0x8bfa20
// > GJEffectManager::calculateLightBGColor @ 0x8bfb10
// > GJEffectManager::calculateLightBGColor @ 0x8bfb30
// > GJEffectManager::setColorAction @ 0x8bfbc8
// > GJEffectManager::calculateInheritedColor @ 0x8c0b5c
// > GJEffectManager::processCopyColorPulseActions @ 0x8c149c
// > ??> @ 0xac1a0
//
// 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
//
ColorActionSprite *GJEffectManager::getColorSprite(GJEffectManager *a1, int a2)
{
int v2; // w19
__int64 v3; // x22
ColorActionSprite *v4; // x20
ColorActionSprite *v7; // x20
GJEffectManager_vtbl *v8; // x2
if ( a2 > 1100 )
{
v3 = 1101;
v2 = 1101;
v4 = a1->m_colorActionSpriteVector.m_start[1101];
if ( v4 )
return v4;
}
else
{
if ( a2 < 0 )
v2 = 0;
else
v2 = a2;
v3 = v2;
v4 = a1->m_colorActionSpriteVector.m_start[v3];
if ( v4 )
return v4;
}
v7 = ColorActionSprite::create();
v8 = a1->__vftable;
v7->m_colorID = v2;
v8->addChild(a1, v7);
a1->m_colorActionSpriteVector.m_start[v3] = v7;
cocos2d::CCDictionary::setObject(a1->m_unkDict150, v7, v2);
return v7;
}