//
// GJEffectManager::updateColorAction from 0x5c3690 to 0x5c36ba (42 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::runColorEffect @ 0x461bf6
// > LevelEditorLayer::stopTriggersInGroup @ 0x4677e0
//
// 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::updateColorAction(GJEffectManager *this, ColorAction *a2)
{
int v2; // r3
int result; // r0
char v4; // r2
if ( !*((_DWORD *)a2 + 29) )
{
v2 = *((_DWORD *)a2 + 34);
result = *((unsigned __int16 *)a2 + 27);
v4 = *((_BYTE *)a2 + 56);
*(_WORD *)(v2 + 268) = result;
*(_BYTE *)(v2 + 270) = v4;
*(float *)(v2 + 264) = *((float *)a2 + 15) * 255.0;
}
return result;
}