//
// ColorSelectPopup::onToggleHSVMode from 0x14012c4e0 to 0x14012c51d (61 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::init @ 0x140127b76
// > ??> @ 0x140916c7c
//
// 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:01 +0000
//
__int64 __fastcall ColorSelectPopup::onToggleHSVMode(__int64 a1)
{
bool v1; // zf
v1 = *(_BYTE *)(a1 + 1240) == 0;
*(_DWORD *)(a1 + 1160) = 0;
*(_BYTE *)(a1 + 1240) = v1;
ColorSelectPopup::updateCopyColorTextInputLabel(a1);
ColorSelectPopup::updateCopyColor(a1);
return ColorSelectPopup::updateHSVMode(a1);
}