//
// SetupAreaTintTriggerPopup::updateHSVButton from 0x140410740 to 0x14041080a (202 bytes)
//
// 4 xrefs:
// > SetupAreaTintTriggerPopup::init @ 0x1404100a1
// > SetupAreaTintTriggerPopup::hsvPopupClosed @ 0x140410733
// > SetupAreaAnimTriggerPopup::init @ 0x140411a59
// > ??> @ 0x1406d8c84
//
// 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 SetupAreaTintTriggerPopup::updateHSVButton(SetupAreaTintTriggerPopup *a1)
{
cocos2d::CCNode *v2; // rsi
bool v3; // al
cocos2d::CCNode_vtbl *v4; // rdi
const char *v5; // rbx
cocos2d::CCSpriteFrameCache *v6; // rax
struct cocos2d::CCSpriteFrame *v7; // rax
v2 = a1->m_hsvButton->getNormalImage(a1->m_hsvButton);
v3 = a1->m_hsvValue.h == *(float *)&xmmword_1406BA240
&& a1->m_hsvValue.s == *((float *)&xmmword_1406BA240 + 1)
&& a1->m_hsvValue.v == *((float *)&xmmword_1406BA240 + 2)
&& *(_WORD *)&a1->m_hsvValue.absoluteSaturation == WORD6(xmmword_1406BA240);
v4 = v2->__vftable;
v5 = "GJ_hsv2Btn_001.png";
if ( v3 )
v5 = "GJ_hsvBtn_001.png";
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache("GJ_hsvBtn_001.png");
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v5);
((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v4[1].setScaleX)(v2, v7);
}