//
// CustomizeObjectLayer::updateHSVButtons from 0x983224 to 0x9833c4 (416 bytes)
//
// 6 xrefs:
// > CustomizeObjectLayer::hsvPopupClosed @ 0x983430
// > CustomizeObjectLayer::hsvPopupClosed @ 0x983494
// > CustomizeObjectLayer::onPaste @ 0x983efc
// > CustomizeObjectLayer::onSelectMode @ 0x9841b8
// > CustomizeObjectLayer::init @ 0x9857bc
// > ??> @ 0x45b08
//
// This function is hookable on this platform (idp: arm, 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:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::updateHSVButtons(CustomizeObjectLayer *this, __int64 a2, __int64 a3, int a4)
{
_BOOL4 v5; // w22
int v6; // w21
__int64 HSV; // x20
__int64 v8; // x1
__int64 v9; // x23
__int64 v10; // x2
int v11; // w3
__int64 v12; // x0
float v13; // w1
__int16 v14; // x1^4
_BOOL4 v15; // w20
cocos2d::CCSpriteFrameCache **v16; // x21
void (__fastcall *v17)(cocos2d::CCSpriteFrameCache **, __int64); // x23
cocos2d::CCSpriteFrameCache *v18; // x0
const char *v19; // x1
__int64 v20; // x0
cocos2d::CCSpriteFrameCache **v21; // x19
__int64 (__fastcall *v22)(cocos2d::CCSpriteFrameCache **, __int64); // x21
cocos2d::CCSpriteFrameCache *v23; // x0
const char *v24; // x1
__int64 v25; // x0
v5 = 0;
v6 = *((_DWORD *)this + 186);
*((_DWORD *)this + 186) = 1;
HSV = CustomizeObjectLayer::getHSV((ConfigureHSVWidget **)this, 1, a3, a4);
v9 = v8;
*((_DWORD *)this + 186) = 2;
v12 = CustomizeObjectLayer::getHSV((ConfigureHSVWidget **)this, 2, v10, v11);
*((_DWORD *)this + 186) = v6;
if ( *(float *)&HSV == *(float *)&dword_155D178
&& *((float *)&HSV + 1) == *(float *)&dword_155D17C
&& *(float *)&v9 == *(float *)&dword_155D180 )
{
v5 = WORD2(v9) == (unsigned __int16)word_155D184;
}
v15 = 0;
if ( *(float *)&dword_155D178 == *(float *)&v12
&& *((float *)&v12 + 1) == *(float *)&dword_155D17C
&& v13 == *(float *)&dword_155D180 )
{
v15 = v14 == word_155D184;
}
v16 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 98) + 1072LL))(*((_QWORD *)this + 98));
v17 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v16 + 145);
v18 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v16);
if ( v5 )
v19 = "GJ_hsvBtn_001.png";
else
v19 = "GJ_hsv2Btn_001.png";
v20 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, v19);
v17(v16, v20);
v21 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 99) + 1072LL))(*((_QWORD *)this + 99));
v22 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v21 + 145);
v23 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v21);
if ( v15 )
v24 = "GJ_hsvBtn_001.png";
else
v24 = "GJ_hsv2Btn_001.png";
v25 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v23, v24);
return v22(v21, v25);
}