//
// GJEffectManager::colorForIndex from 0xa19db0 to 0xa19e10 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0xdb508
//
// 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::colorForIndex(GJEffectManager *this, int a2)
{
ColorAction *ColorAction; // x0
unsigned __int8 v4; // [xsp+18h] [xbp+18h]
unsigned __int8 v5; // [xsp+19h] [xbp+19h]
unsigned __int8 v6; // [xsp+1Ah] [xbp+1Ah]
ColorAction = GJEffectManager::getColorAction(this, a2);
if ( ColorAction )
{
v4 = *((_BYTE *)ColorAction + 72);
v5 = *((_BYTE *)ColorAction + 73);
v6 = *((_BYTE *)ColorAction + 74);
}
else
{
v4 = -1;
v5 = -1;
v6 = -1;
}
return v4 | (unsigned __int64)(unsigned __int16)(v5 << 8) | ((unsigned __int64)v6 << 16);
}