//
// GJEffectManager::updateColorEffects from 0x5c36c0 to 0x5c3726 (102 bytes)
//
// 1 xrefs:
// > GJEffectManager::updateEffects @ 0x5c4a68
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:51 +0000
//
int __fastcall GJEffectManager::updateColorEffects(int this, float a2)
{
int v3; // r3
int v4; // r3
int v5; // r4
int v6; // r5
int v7; // r3
char v8; // r2
int v9; // r2
v3 = *(_DWORD *)(this + 268);
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 52);
if ( v4 )
v5 = *(_DWORD *)(v4 + 272);
else
v5 = 0;
while ( v4 )
{
v6 = *(_DWORD *)(v4 + 260);
this = ColorAction::step(v6, a2);
if ( !*(_DWORD *)(v6 + 116) )
{
v7 = *(_DWORD *)(v6 + 136);
v8 = *(_BYTE *)(v6 + 56);
*(_WORD *)(v7 + 268) = *(_WORD *)(v6 + 54);
*(_BYTE *)(v7 + 270) = v8;
*(float *)(v7 + 264) = *(float *)(v6 + 60) * 255.0;
}
if ( v5 )
v9 = *(_DWORD *)(v5 + 272);
else
v9 = 0;
v4 = v5;
v5 = v9;
}
}
return this;
}