//
// SetupAreaTintTriggerPopup::hsvPopupClosed from 0x1004d4310 to 0x1004d43d8 (200 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b5eeb0
// > ??> @ 0x100b5ff48
//
// 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:31:13 +0000
//
__int64 __fastcall SetupAreaTintTriggerPopup::hsvPopupClosed(__int64 a1, __m128 a2, __int64 a3, __int64 a4)
{
__int64 v4; // rbx
__int64 v5; // rax
const char *v6; // rsi
__int64 v7; // rax
_mm_storel_ps((double *)(a1 + 1048), a2);
*(_QWORD *)(a1 + 1056) = a4;
*(_BYTE *)(a1 + 1064) = 1;
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1040) + 1072LL))(*(_QWORD *)(a1 + 1040));
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = "GJ_hsv2Btn_001.png";
if ( *(float *)(a1 + 1048) == *(float *)&xmmword_100BE43B8
&& *(float *)(a1 + 1052) == *((float *)&xmmword_100BE43B8 + 1)
&& *(float *)(a1 + 1056) == *((float *)&xmmword_100BE43B8 + 2)
&& *(_BYTE *)(a1 + 1060) == BYTE12(xmmword_100BE43B8) )
{
v6 = "GJ_hsv2Btn_001.png";
if ( *(_BYTE *)(a1 + 1061) == BYTE13(xmmword_100BE43B8) )
v6 = "GJ_hsvBtn_001.png";
}
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v7);
}