//
// GJEffectManager::activeColorForIndex from 0xa196f0 to 0xa19770 (128 bytes)
//
// 34 xrefs:
// > PlayLayer::applyCustomEnterEffect @ 0x6f56b0
// > PlayLayer::updateVisibility @ 0x700d58
// > PlayLayer::updateVisibility @ 0x700dd0
// > PlayLayer::updateVisibility @ 0x700df4
// > PlayerObject::ringJump @ 0x76a57c
// > LevelEditorLayer::updateObjectColors @ 0x78be64
// > LevelEditorLayer::updateObjectColors @ 0x78c1d4
// > LevelEditorLayer::transferDefaultColors @ 0x78c54c
// > LevelEditorLayer::updateVisibility @ 0x78e2a4
// > LevelEditorLayer::updateVisibility @ 0x78e4d8
// > LevelEditorLayer::updateVisibility @ 0x78ea3c
// > LevelEditorLayer::postUpdate @ 0x79afc0
// > LevelEditorLayer::updateGameObjects @ 0x79e9f8
// > GJBaseGameLayer::updateLevelColors @ 0x99a298
// > GJBaseGameLayer::updateLevelColors @ 0x99a2d4
// > GJBaseGameLayer::updateLevelColors @ 0x99a31c
// > GJBaseGameLayer::updateLevelColors @ 0x99a35c
// > GJBaseGameLayer::updateLevelColors @ 0x99a454
// > GJBaseGameLayer::updateLevelColors @ 0x99a48c
// > GJBaseGameLayer::updateGradientLayers @ 0x9a1224
// > GJBaseGameLayer::updateGradientLayers @ 0x9a1248
// > GJBaseGameLayer::updateShaderLayer @ 0x9a25dc
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2628
// > GJBaseGameLayer::updateShaderLayer @ 0x9a2708
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x9a5420
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abd10
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abd34
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abd58
// > GJBaseGameLayer::preUpdateVisibility @ 0x9da180
// > GJBaseGameLayer::preUpdateVisibility @ 0x9da1a4
// > GJEffectManager::colorForPulseEffect @ 0xa19938
// > GJEffectManager::calculateLightBGColor @ 0xa19bb0
// > GJEffectManager::processCopyColorPulseActions @ 0xa1bcc0
// > ??> @ 0xa2370
//
// This function is hookable on this platform (idp: arm, 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:59:36 +0000
//
unsigned __int64 __fastcall GJEffectManager::activeColorForIndex(GJEffectManager *this, int a2)
{
cocos2d::CCObject *ColorSprite; // x0
__int16 v4; // [xsp+18h] [xbp+18h]
unsigned __int8 v5; // [xsp+1Ah] [xbp+1Ah]
if ( a2 == 1010 )
{
v4 = 0;
v5 = 0;
}
else if ( a2 != 1011 && a2 && (ColorSprite = GJEffectManager::getColorSprite(this, a2)) != nullptr )
{
v5 = *((_BYTE *)ColorSprite + 325);
v4 = *(_WORD *)((char *)ColorSprite + 323);
}
else
{
v4 = -1;
v5 = -1;
}
return (unsigned __int8)v4 | (unsigned __int64)(unsigned __int16)(HIBYTE(v4) << 8) | ((unsigned __int64)v5 << 16);
}