//
// sub_1003E0420 from 0x1003e0420 to 0x1003e048b (107 bytes)
//
// 1 xrefs:
// > sub_1003DDDD0 @ 0x1003deee4
//
// 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 12:29:45 +0000
//
__int64 __fastcall sub_1003E0420(__int64 a1)
{
double v1; // xmm0_8
__int64 v2; // rax
__int64 v3; // rbx
char v5; // [rsp+0h] [rbp-20h] BYREF
char v6[15]; // [rsp+1h] [rbp-1Fh] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v1 = *(double *)(a1 + 1064);
v2 = *(_QWORD *)(a1 + 1072);
v5 = 14;
strcpy(v6, "Set HSV");
v3 = HSVWidgetPopup::create(v2, 0xFFFFFF, a1 + 1016, &v5, v1);
if ( (v5 & 1) != 0 )
operator delete(__p);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}