//
// SetupAreaTintTriggerPopup::updateHSVButton from 0xa0ea68 to 0xa0eb1c (180 bytes)
//
// 4 xrefs:
// > SetupAreaTintTriggerPopup::hsvPopupClosed @ 0xa0eb2c
// > SetupAreaTintTriggerPopup::init @ 0xa0f138
// > SetupAreaAnimTriggerPopup::init @ 0xa119a4
// > ??> @ 0x2edb8
//
// 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; // x20
void (__fastcall *setSkewY)(cocos2d::CCNode *__hidden, float); // x21
cocos2d::CCSpriteFrameCache *v4; // x0
const char *v5; // x1
cocos2d::CCSpriteFrame *v6; // x0
v2 = a1->m_hsvButton->getNormalImage(a1->m_hsvButton);
setSkewY = v2->__vftable[1].setSkewY;
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( a1->m_hsvValue.h == *(float *)&qword_1244040
&& a1->m_hsvValue.s == *((float *)&qword_1244040 + 1)
&& a1->m_hsvValue.v == *(float *)&qword_1244048
&& *(unsigned __int16 *)&a1->m_hsvValue.absoluteSaturation == WORD2(qword_1244048) )
{
v5 = "GJ_hsvBtn_001.png";
}
else
{
v5 = "GJ_hsv2Btn_001.png";
}
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))setSkewY)(v2, v6);
}