//
// SetupAreaTintTriggerPopup::updateHSVButton from 0x1000382dc to 0x1000383a4 (200 bytes)
//
// 4 xrefs:
// > SetupAreaTintTriggerPopup::init @ 0x100037f1c
// > SetupAreaTintTriggerPopup::hsvPopupClosed @ 0x1000385bc
// > sub_1000385C0 @ 0x1000385d4
// > SetupAreaAnimTriggerPopup::init @ 0x1000396f0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupAreaTintTriggerPopup::updateHSVButton(SetupAreaTintTriggerPopup *a1)
{
__int64 v2; // x19
cocos2d::CCSpriteFrameCache *v3; // x0
const char *v4; // x1
cocos2d::CCSpriteFrame *v5; // x1
v2 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_hsvButton->getNormalImage)(a1->m_hsvButton);
v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( a1->m_hsvValue.h == *(float *)&xmmword_10086A610
&& a1->m_hsvValue.s == *((float *)&xmmword_10086A610 + 1)
&& a1->m_hsvValue.v == *((float *)&xmmword_10086A610 + 2) )
{
v4 = "GJ_hsv2Btn_001.png";
if ( __PAIR64__(a1->m_hsvValue.absoluteBrightness, a1->m_hsvValue.absoluteSaturation) == __PAIR64__(
BYTE13(xmmword_10086A610),
BYTE12(xmmword_10086A610)) )
v4 = "GJ_hsvBtn_001.png";
}
else
{
v4 = "GJ_hsv2Btn_001.png";
}
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, v4);
(*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v2 + 1144LL))(v2, v5);
}