//
// ColorAction2::updateCustomColor from 0x1004e83c0 to 0x1004e83e0 (32 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:31:20 +0000
//
__int64 __fastcall ColorAction2::updateCustomColor(__int64 a1, int a2, int a3)
{
__int64 result; // rax
result = *(unsigned int *)(a1 + 32);
if ( (_DWORD)result != 1 )
{
if ( (_DWORD)result != 2 )
return result;
a2 = a3;
}
*(_WORD *)(a1 + 16) = a2;
*(_BYTE *)(a1 + 18) = BYTE2(a2);
return result;
}