//
// ColorAction::updateCustomColor from 0x5c2a8e to 0x5c2ab4 (38 bytes)
//
// 1 xrefs:
// > GJEffectManager::updateColors @ 0x5c2f76
//
// 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 ColorAction::updateCustomColor(int result, int a2, int a3)
{
int v3; // r3
v3 = *(_DWORD *)(result + 84);
if ( v3 == 1 )
{
*(_WORD *)(result + 68) = a2;
*(_BYTE *)(result + 70) = BYTE2(a2);
}
else if ( v3 == 2 )
{
*(_WORD *)(result + 68) = a3;
*(_BYTE *)(result + 70) = BYTE2(a3);
}
return result;
}