//
// SetupAreaTintTriggerPopup::onHSV from 0xb3ba54 to 0xb3bb24 (208 bytes)
//
// 4 xrefs:
// > ??> @ 0xd3be8
// > SetupAreaAnimTriggerPopup::init @ 0xb3d8bc
// > SetupAreaTintTriggerPopup::init @ 0xb42208
// > ??> @ 0x1546480
//
// This function is hookable on this platform (idp: arm, 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 13:01:48 +0000
//
__int64 __fastcall SetupAreaTintTriggerPopup::onHSV(SetupAreaTintTriggerPopup *this, cocos2d::CCObject *a2)
{
char *v2; // x3
__int64 v3; // x0
__int64 v4; // x1
char *v5; // t2
__int64 v6; // x20
char v8; // [xsp+20h] [xbp+20h] BYREF
_DWORD v9[2]; // [xsp+21h] [xbp+21h] BYREF
char v10; // [xsp+29h] [xbp+29h]
__int16 v11; // [xsp+2Ah] [xbp+2Ah]
int v12; // [xsp+2Ch] [xbp+2Ch]
void *v13; // [xsp+30h] [xbp+30h]
v10 = 0;
v11 = 0;
v12 = 0;
v2 = (char *)this + 1032;
strcpy((char *)v9, "Set HSV");
v5 = (char *)this + 1048;
v3 = *((_QWORD *)this + 131);
v4 = *((_QWORD *)v5 + 1);
v13 = nullptr;
v8 = 14;
v6 = HSVWidgetPopup::create(v3, v4, 0xFFFFFF, (__int64)v2, &v8);
if ( (v8 & 1) != 0 )
operator delete(v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
return _stack_chk_guard;
}