//
// ColorSelectLiveOverlay::updateColorValue from 0x100597250 to 0x1005972be (110 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:32:29 +0000
//
void __fastcall ColorSelectLiveOverlay::updateColorValue(__int64 a1)
{
__int64 v1; // rax
__int16 v2; // cx
int v3; // eax
__int64 v4; // rcx
if ( !*(_BYTE *)(a1 + 746) )
{
v1 = *(_QWORD *)(a1 + 664);
if ( v1 )
{
v2 = *(_WORD *)(a1 + 710);
*(_BYTE *)(v1 + 1450) = *(_BYTE *)(a1 + 712);
*(_WORD *)(v1 + 1448) = v2;
}
else
{
v3 = *(unsigned __int16 *)(a1 + 710) | (*(unsigned __int8 *)(a1 + 712) << 16);
if ( *(_BYTE *)(a1 + 856) == 1 )
v4 = *(_QWORD *)(a1 + 696);
else
v4 = *(_QWORD *)(a1 + 688);
*(_WORD *)(v4 + 72) = *(_WORD *)(a1 + 710);
*(_BYTE *)(v4 + 74) = BYTE2(v3);
}
}
}