//
// SetupAreaTintTriggerPopup::updateHSVButton from 0x1405a7dc0 to 0x1405a7e94 (212 bytes)
//
// 4 xrefs:
// > SetupAreaTintTriggerPopup::init @ 0x1405a76f2
// > SetupAreaTintTriggerPopup::hsvPopupClosed @ 0x1405a7db9
// > SetupAreaAnimTriggerPopup::init @ 0x1405a91a0
// > ??> @ 0x14092d614
//
// 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::updateHSVButton(__int64 a1)
{
BOOL v1; // ebp
const char *v2; // rbx
__int64 v3; // rdx
__int64 v4; // rcx
__int64 *v5; // rsi
__int64 v6; // rdi
cocos2d::CCSpriteFrameCache *v7; // rax
struct cocos2d::CCSpriteFrame *v8; // rax
v1 = *(float *)(a1 + 1032) == *(float *)&xmmword_1408FE5C0
&& *(float *)(a1 + 1036) == *((float *)&xmmword_1408FE5C0 + 1)
&& *(float *)(a1 + 1040) == *((float *)&xmmword_1408FE5C0 + 2)
&& *(_WORD *)(a1 + 1044) == WORD6(xmmword_1408FE5C0);
v2 = "GJ_hsv2Btn_001.png";
v5 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1024) + 952LL))(*(_QWORD *)(a1 + 1024));
v6 = *v5;
if ( v1 )
v2 = "GJ_hsvBtn_001.png";
v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4, v3);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v2);
return (*(__int64 (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v6 + 1008))(v5, v8);
}