//
// SetupAreaTintTriggerPopup::onHSV from 0x1405a7d00 to 0x1405a7d9c (156 bytes)
//
// 3 xrefs:
// > SetupAreaTintTriggerPopup::init @ 0x1405a7632
// > SetupAreaAnimTriggerPopup::init @ 0x1405a9115
// > ??> @ 0x14092d608
//
// 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:34:39 +0000
//
__int64 __fastcall SetupAreaTintTriggerPopup::onHSV(__int64 a1)
{
int v1; // r8d
__int128 v2; // xmm0
cocos2d::CCObject *v3; // rax
__int128 v5; // [rsp+20h] [rbp-38h] BYREF
_BYTE v6[7]; // [rsp+30h] [rbp-28h] BYREF
char v7; // [rsp+37h] [rbp-21h]
__int64 v8; // [rsp+38h] [rbp-20h]
__int64 v9; // [rsp+40h] [rbp-18h]
__int64 v10; // [rsp+48h] [rbp-10h]
__int16 v11; // [rsp+60h] [rbp+8h] BYREF
char v12; // [rsp+62h] [rbp+Ah]
v1 = a1 + 1016;
v2 = *(_OWORD *)(a1 + 1032);
qmemcpy(v6, "Set HSV", sizeof(v6));
if ( !a1 )
v1 = 0;
v11 = -1;
v8 = 0;
v7 = 0;
v12 = -1;
v9 = 7;
v10 = 15;
v5 = v2;
v3 = HSVWidgetPopup::create(&v5, &v11, v1, (__int64)v6);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);
}