//
// SetupAreaTintTriggerPopup::updateHSVButton from 0x68ee7c to 0x68ef08 (140 bytes)
//
// 3 xrefs:
// > SetupAreaTintTriggerPopup::hsvPopupClosed @ 0x68ef44
// > SetupAreaTintTriggerPopup::init @ 0x691c22
// > SetupAreaAnimTriggerPopup::init @ 0x6932d4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:10 +0000
//
int __fastcall SetupAreaTintTriggerPopup::updateHSVButton(SetupAreaTintTriggerPopup *this)
{
cocos2d::CCSpriteFrameCache *v2; // r5
int (__fastcall *v3)(cocos2d::CCSpriteFrameCache *, int); // r6
cocos2d::CCSpriteFrameCache *v4; // r0
const char *v5; // r1
int v6; // r0
v2 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 181) + 536))(*((_DWORD *)this + 181));
v3 = *(int (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v2 + 580);
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
if ( *((float *)this + 182) == flt_D2D400 )
{
if ( *((float *)this + 183) == flt_D2D404 )
{
if ( *((float *)this + 184) == flt_D2D408 )
{
if ( *((unsigned __int16 *)this + 370) == (unsigned __int16)word_D2D40C )
v5 = "GJ_hsvBtn_001.png";
else
v5 = "GJ_hsv2Btn_001.png";
}
else
{
v5 = "GJ_hsv2Btn_001.png";
}
}
else
{
v5 = "GJ_hsv2Btn_001.png";
}
}
else
{
v5 = "GJ_hsv2Btn_001.png";
}
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
return v3(v2, v6);
}