//
// ConfigureHSVWidget::onToggleSConst from 0x140130ce0 to 0x140130d54 (116 bytes)
//
// 2 xrefs:
// > ConfigureHSVWidget::init @ 0x14013029d
// > ??> @ 0x140916e8c
//
// 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
//
__int64 __fastcall ConfigureHSVWidget::onToggleSConst(__int64 a1)
{
int v2; // xmm0_4
__int64 result; // rax
__int64 v4; // rcx
*(_BYTE *)(a1 + 388) = *(_BYTE *)(a1 + 388) == 0;
Slider::setValue(*(_QWORD *)(a1 + 360), 0.5);
if ( *(_BYTE *)(a1 + 388) )
v2 = 0;
else
v2 = 1065353216;
*(_DWORD *)(a1 + 380) = v2;
result = ConfigureHSVWidget::updateLabels(a1);
v4 = *(_QWORD *)(a1 + 400);
if ( v4 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 8LL))(v4, a1);
return result;
}