//
// SetupAreaTintTriggerPopup::onHSV from 0x1004d8bd0 to 0x1004d8c36 (102 bytes)
//
// 2 xrefs:
// > SetupAreaTintTriggerPopup::init @ 0x1004d871e
// > SetupAreaAnimTriggerPopup::init @ 0x1004db766
//
// 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)
{
double v2; // xmm0_8
__int64 v3; // rax
char *v4; // rbx
__int128 v5; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = *(double *)&a1->m_hsvValue.h;
v3 = *(_QWORD *)&a1->m_hsvValue.v;
LOBYTE(v5) = 14;
strcpy((char *)&v5 + 1, "Set HSV");
v4 = HSVWidgetPopup::create(v3, (__int64)&a1->HSVWidgetDelegate, &v5, v2);
if ( (v5 & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 1288LL))(v4);
}