//
// GJEffectManager::getColorSprite from 0x14025bcc0 to 0x14025be15 (341 bytes)
//
// 71 xrefs:
// > GameObject::saveActiveColors @ 0x1401a09ce
// > GameObject::saveActiveColors @ 0x1401a09e7
// > GJBaseGameLayer::updateLevelColors @ 0x14020c4c1
// > GJBaseGameLayer::updateLevelColors @ 0x14020c517
// > GJBaseGameLayer::updateLevelColors @ 0x14020c62b
// > GJBaseGameLayer::updateLevelColors @ 0x14020c736
// > GJBaseGameLayer::updateLevelColors @ 0x14020c775
// > GJBaseGameLayer::updateLevelColors @ 0x14020c914
// > GJBaseGameLayer::updateLevelColors @ 0x14020c9a7
// > GJBaseGameLayer::updateLevelColors @ 0x14020ca3a
// > GJBaseGameLayer::updateLevelColors @ 0x14020cac7
// > GJBaseGameLayer::updateGradientLayers @ 0x140220092
// > GJBaseGameLayer::updateGradientLayers @ 0x140220159
// > GJBaseGameLayer::updateGradientLayers @ 0x1402202d3
// > GJBaseGameLayer::updateGradientLayers @ 0x140220308
// > GJBaseGameLayer::updateShaderLayer @ 0x140222321
// > GJBaseGameLayer::updateShaderLayer @ 0x140222394
// > GJBaseGameLayer::updateShaderLayer @ 0x1402225fc
// > GJBaseGameLayer::updateColor @ 0x1402239ba
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x14022abf6
// > GJBaseGameLayer::preUpdateVisibility @ 0x1402367b0
// > GJBaseGameLayer::preUpdateVisibility @ 0x1402367c1
// > GJBaseGameLayer::visitWithColorFlash @ 0x1402482e8
// > GJBaseGameLayer::visitWithColorFlash @ 0x14024832a
// > GJBaseGameLayer::visitWithColorFlash @ 0x14024836b
// > GJEffectManager::calculateInheritedColor @ 0x14025b88c
// > GJEffectManager::getColorAction @ 0x14025bc81
// > GJEffectManager::setColorAction @ 0x14025be75
// > GJEffectManager::processCopyColorPulseActions @ 0x140261594
// > GJEffectManager::processCopyColorPulseActions @ 0x1402615c0
// > GJEffectManager::colorForPulseEffect @ 0x1402618ee
// > GJEffectManager::calculateLightBGColor @ 0x140263a10
// > GJEffectManager::calculateLightBGColor @ 0x140263ba3
// > GJEffectManager::calculateLightBGColor @ 0x140263bbe
// > LevelEditorLayer::init @ 0x1402d2a35
// > LevelEditorLayer::init @ 0x1402d2acb
// > LevelEditorLayer::updateVisibility @ 0x1402d8fed
// > LevelEditorLayer::updateVisibility @ 0x1402d94d2
// > LevelEditorLayer::updateVisibility @ 0x1402d9525
// > LevelEditorLayer::updateVisibility @ 0x1402d9596
// > LevelEditorLayer::updateVisibility @ 0x1402d970c
// > LevelEditorLayer::updateVisibility @ 0x1402d988d
// > LevelEditorLayer::updateVisibility @ 0x1402d9b63
// > LevelEditorLayer::updateObjectColors @ 0x1402d9ff5
// > LevelEditorLayer::updateObjectColors @ 0x1402da04c
// > LevelEditorLayer::updateObjectColors @ 0x1402da0b8
// > LevelEditorLayer::updateObjectColors @ 0x1402da21d
// > LevelEditorLayer::updateObjectColors @ 0x1402da390
// > LevelEditorLayer::updateObjectColors @ 0x1402da64b
// > LevelEditorLayer::getNextColorChannel @ 0x1402db382
// > LevelEditorLayer::transferDefaultColors @ 0x1402dbf48
// > LevelEditorLayer::transferDefaultColors @ 0x1402dbfc7
// > LevelEditorLayer::transferDefaultColors @ 0x1402dbfff
// > LevelEditorLayer::transferDefaultColors @ 0x1402dc02f
// > LevelEditorLayer::transferDefaultColors @ 0x1402dc05f
// > LevelEditorLayer::transferDefaultColors @ 0x1402dc08f
// > LevelEditorLayer::transferDefaultColors @ 0x1402dc0ae
// > LevelEditorLayer::updateGameObjects @ 0x1402dc882
// > LevelEditorLayer::postUpdate @ 0x1402e0f7a
// > LevelSettingsObject::init @ 0x1402ead07
// > LevelSettingsObject::init @ 0x1402ead66
// > LevelSettingsObject::init @ 0x1402eadc5
// > LevelSettingsObject::init @ 0x1402eae28
// > LevelSettingsObject::init @ 0x1402eae87
// > LevelSettingsObject::init @ 0x1402eaee6
// > PlayerObject::ringJump @ 0x140399af1
// > PlayLayer::updateVisibility @ 0x1403af43c
// > PlayLayer::updateVisibility @ 0x1403af4f1
// > PlayLayer::updateVisibility @ 0x1403af539
// > PlayLayer::applyCustomEnterEffect @ 0x1403b0c60
// > ??> @ 0x1406cfd50
//
// 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
ColorActionSprite *GJEffectManager::getColorSprite(GJEffectManager *a1, int a2)
{
int v2; // esi
ColorActionSprite *result; // rax
char *v5; // rbx
v2 = a2;
if ( a2 < 0 )
v2 = 0;
if ( v2 > 1101 )
v2 = 1101;
result = a1->m_colorActionSpriteVector._Mypair._Myval2._Myfirst[v2];
if ( !result )
{
v5 = (char *)operator new(0x160u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v5);
*(_QWORD *)v5 = &ColorActionSprite::`vftable';
*((_DWORD *)v5 + 80) = 1132396544;
*((_DWORD *)v5 + 83) = 0;
*((_QWORD *)v5 + 43) = 0;
if ( cocos2d::CCNode::init((cocos2d::CCNode *)v5) )
{
*(_WORD *)(v5 + 327) = -1;
v5[329] = -1;
*((_WORD *)v5 + 162) = -1;
v5[326] = -1;
*((_DWORD *)v5 + 80) = 1132396544;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
v5 = nullptr;
}
*((_DWORD *)v5 + 83) = v2;
a1->addChild_1(a1, (cocos2d::CCNode *)v5);
a1->m_colorActionSpriteVector._Mypair._Myval2._Myfirst[v2] = (std::_Simple_types::value_type)v5;
cocos2d::CCDictionary::setObject(a1->m_unkDict150, (struct cocos2d::CCObject *)v5, v2);
return (ColorActionSprite *)v5;
}
return result;
}