//
// GJEffectManager::getColorAction from 0x1002c8d60 to 0x1002c8e91 (305 bytes)
//
// 59 xrefs:
// > EditorUI::getEditColorTargets @ 0x10001982e
// > EditorUI::getEditColorTargets @ 0x10001985c
// > EditorUI::showLiveColorSelectForModeSpecial @ 0x100019c1f
// > EditorUI::showLiveColorSelectForMode @ 0x100019d26
// > PlayLayer::setupHasCompleted @ 0x10007b41e
// > PlayLayer::setupHasCompleted @ 0x10007b45d
// > LevelEditorLayer::init @ 0x1000aac7a
// > LevelEditorLayer::init @ 0x1000aacb9
// > LevelEditorLayer::getNextColorChannel @ 0x1000c105f
// > LevelEditorLayer::transferDefaultColors @ 0x1000c2150
// > LevelEditorLayer::transferDefaultColors @ 0x1000c21ab
// > LevelEditorLayer::transferDefaultColors @ 0x1000c21d8
// > LevelEditorLayer::runColorEffect @ 0x1000c347b
// > LevelEditorLayer::stopTriggersInGroup @ 0x1000c37d6
// > LevelSettingsObject::objectFromDict @ 0x1000dcbb3
// > LevelSettingsObject::objectFromDict @ 0x1000dcd77
// > LevelSettingsObject::objectFromDict @ 0x1000dce6f
// > LevelSettingsObject::objectFromDict @ 0x1000dcf6b
// > LevelSettingsObject::objectFromDict @ 0x1000dd063
// > LevelSettingsObject::objectFromDict @ 0x1000dd15b
// > LevelSettingsObject::objectFromDict @ 0x1000dd253
// > LevelSettingsObject::objectFromDict @ 0x1000dd34b
// > LevelSettingsObject::objectFromDict @ 0x1000dd443
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x1000de611
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x1000de630
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x1000de650
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x1000de67a
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x1000de6a0
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x1000de6cd
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x1000de6f3
// > LevelSettingsObject::setupColorsFromLegacyMode @ 0x1000de71a
// > GJBaseGameLayer::updateColor @ 0x100119d88
// > CustomizeObjectLayer::onEditColor @ 0x1001da1e4
// > CustomizeObjectLayer::updateColorSprite @ 0x1001daa90
// > GJColorSetupLayer::onColor @ 0x1001ef041
// > GJColorSetupLayer::updateSpriteColors @ 0x1001ef1d4
// > GJColorSetupLayer::updateSpriteColor @ 0x1001ef3e2
// > LevelSettingsLayer::onShowPicker @ 0x100257b26
// > LevelSettingsLayer::updateColorSprites @ 0x100257be7
// > LevelSettingsLayer::updateColorSprites @ 0x100257c73
// > LevelSettingsLayer::updateColorSprites @ 0x100257cff
// > LevelSettingsLayer::updateColorSprites @ 0x100257d8b
// > LevelSettingsLayer::updateColorSprites @ 0x100257e1b
// > LevelSettingsLayer::updateColorSprites @ 0x100257e85
// > LevelSettingsLayer::updateColorSprite @ 0x10025904f
// > GJEffectManager::colorForIndex @ 0x1002c8d44
// > GJEffectManager::opacityForIndex @ 0x1002c8eb4
// > GJEffectManager::processColors @ 0x1002c919d
// > GJEffectManager::processPulseActions @ 0x1002c933d
// > GJEffectManager::processInheritedColors @ 0x1002c9568
// > GJEffectManager::controlActionsForTrigger @ 0x1002ce659
// > EditorUI::copyObjects @ 0x1005b6207
// > EditorUI::copyObjects @ 0x1005b6303
// > EditorUI::pasteObjects @ 0x1005b69d7
// > EditorUI::pasteObjects @ 0x1005b6a2e
// > EditorUI::spriteFromObjectString @ 0x100638982
// > EditorUI::spriteFromObjectString @ 0x1006389d9
// > ColorSelectPopup::onDefault @ 0x100806a5a
// > ColorSelectPopup::onDefault @ 0x100806bb3
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:09 +0000
//
char *__fastcall GJEffectManager::getColorAction(__int64 a1, int a2)
{
int v2; // eax
__int64 v3; // r14
char *v4; // rbx
__int64 ColorSprite; // rax
v2 = 0;
if ( a2 > 0 )
v2 = a2;
v3 = 1101;
if ( v2 < 1101 )
v3 = (unsigned int)v2;
v4 = *(char **)(*(_QWORD *)(a1 + 640) + 8 * v3);
if ( !v4 )
{
v4 = (char *)operator new(0xA8u);
cocos2d::CCObject::CCObject(v4);
*(_QWORD *)v4 = off_100B118C0;
*((_WORD *)v4 + 28) = 0;
_mm_storel_ps((double *)v4 + 8, (__m128)0x3F800000u);
*(_OWORD *)(v4 + 104) = xmmword_100BE2730;
*((_DWORD *)v4 + 30) = 0;
*(_DWORD *)(v4 + 123) = 0;
*((_QWORD *)v4 + 16) = 0;
v4[136] = 0;
*((_OWORD *)v4 + 9) = 0;
*((_QWORD *)v4 + 20) = 0;
v4[74] = -1;
*((_WORD *)v4 + 36) = -1;
v4[77] = -1;
*(_WORD *)(v4 + 75) = -1;
*((_DWORD *)v4 + 20) = 0;
v4[84] = 0;
*((_QWORD *)v4 + 11) = 0xFFFFFFFFLL;
*((_QWORD *)v4 + 12) = 0x3F8000003F800000LL;
cocos2d::CCObject::autorelease(v4);
*((_DWORD *)v4 + 23) = v3;
cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 328), v4, v3);
*(_QWORD *)(*(_QWORD *)(a1 + 640) + 8 * v3) = v4;
ColorSprite = GJEffectManager::getColorSprite(a1, (unsigned int)v3);
*((_QWORD *)v4 + 18) = ColorSprite;
*(_QWORD *)(ColorSprite + 336) = v4;
}
return v4;
}