//
// ConfigureHSVWidget::updateColorPreview from 0x5e4ee8 to 0x5e4f4c (100 bytes)
//
// 2 xrefs:
// > ConfigureHSVWidget::sliderChanged @ 0x5e559c
// > ConfigureHSVWidget::onResetHSV @ 0x5e56b2
//
// 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:54:19 +0000
//
int __fastcall ConfigureHSVWidget::updateColorPreview(int this)
{
int v1; // r4
int v2; // r0
char v3; // r3
int v4; // r0
_BYTE v5[4]; // [sp+8h] [bp-Ch] BYREF
v1 = this;
if ( *(_BYTE *)(this + 336) )
{
if ( *(_DWORD *)(this + 332) )
{
v2 = GameToolbox::transformColor(
(unsigned __int8 *)(this + 324),
*(float *)(this + 292),
*(float *)(this + 296),
*(float *)(this + 300),
*(_DWORD *)(this + 304));
v3 = BYTE1(v2);
v5[0] = v2;
v5[2] = BYTE2(v2);
v4 = *(_DWORD *)(v1 + 332);
v5[1] = v3;
return (*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 480))(v4, v5);
}
}
return this;
}