//
// SetupAreaTintTriggerPopup::onHSV from 0x100038244 to 0x1000382c0 (124 bytes)
//
// 2 xrefs:
// > SetupAreaTintTriggerPopup::init @ 0x100037e78
// > SetupAreaAnimTriggerPopup::init @ 0x100039664
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupAreaTintTriggerPopup::onHSV(SetupAreaTintTriggerPopup *a1, cocos2d::CCObject *a2)
{
__int64 v3; // x20
__int64 v4; // x21
__int64 v5; // x19
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v7; // [xsp+1Fh] [xbp-21h]
v3 = *(_QWORD *)&a1->m_hsvValue.h;
v4 = *(_QWORD *)&a1->m_hsvValue.v;
sub_100009900(__p, "Set HSV");
v5 = HSVWidgetPopup::create(v3, v4, &a1->HSVWidgetDelegate, __p);
if ( v7 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1288LL))(v5);
}