//
// ConfigureHSVWidget::updateColorPreview from 0x140131830 to 0x14013189c (108 bytes)
//
// 3 xrefs:
// > ConfigureHSVWidget::sliderChanged @ 0x140130cb0
// > ConfigureHSVWidget::onResetHSV @ 0x140130e3e
// > ??> @ 0x140916f10
//
// 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 11:27:03 +0000
//
void __fastcall ConfigureHSVWidget::updateColorPreview(__int64 a1)
{
__int64 v2; // rax
void (__fastcall ***v3)(_QWORD, __int16 *); // rcx
float v4[6]; // [rsp+20h] [rbp-18h] BYREF
__int16 v5; // [rsp+40h] [rbp+8h] BYREF
char v6; // [rsp+42h] [rbp+Ah]
char v7; // [rsp+48h] [rbp+10h] BYREF
if ( *(_BYTE *)(a1 + 448) )
{
if ( *(_QWORD *)(a1 + 440) )
{
*(_OWORD *)v4 = *(_OWORD *)(a1 + 376);
v2 = GameToolbox::transformColor((__int64)&v7, (unsigned __int16 *)(a1 + 424), v4);
v5 = *(_WORD *)v2;
v3 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 440) + 320LL);
v6 = *(_BYTE *)(v2 + 2);
(**v3)(v3, &v5);
}
}
}