//
// GJEffectManager::updateColorEffects from 0x9fa2b8 to 0x9fa33c (132 bytes)
//
// 2 xrefs:
// > GJEffectManager::updateEffects @ 0xa02e88
// > ??> @ 0x8eb40
//
// 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:16 +0000
//
_QWORD *__fastcall GJEffectManager::updateColorEffects(GJEffectManager *this, float a2)
{
_QWORD *result; // x0
_QWORD *i; // x20
__int64 v5; // x19
__int64 v6; // x1
result = *((_QWORD **)this + 41);
if ( result )
{
result = (_QWORD *)result[7];
if ( result )
{
for ( i = (_QWORD *)result[36]; ; i = (_QWORD *)i[36] )
{
v5 = result[33];
ColorAction::step(v5, a2);
result = i;
if ( !*(_DWORD *)(v5 + 120) )
{
v6 = *(_QWORD *)(v5 + 144);
*(_WORD *)(v6 + 320) = *(_WORD *)(v5 + 58);
*(_BYTE *)(v6 + 322) = *(_BYTE *)(v5 + 60);
*(float *)(v6 + 316) = *(float *)(v5 + 64) * 255.0;
}
if ( !i )
break;
}
}
}
return result;
}