//
// CustomizeObjectLayer::onHSV from 0x461994 to 0x461a80 (236 bytes)
//
// 0 xrefs:
//
// 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 CustomizeObjectLayer::onHSV(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
int v4; // r7
std::string *v5; // r0
void (__fastcall *v6)(int, int); // r4
int v7; // r0
std::string v8; // [sp+8h] [bp-28h] BYREF
cocos2d::ccHSVValue v9; // [sp+Ch] [bp-24h] BYREF
cocos2d::ccHSVValue v10; // [sp+1Ch] [bp-14h] BYREF
cocos2d::_ccHSVValue v11; // 0:r1.12,12:^0.4
cocos2d::_ccHSVValue v12; // 0:r1.12,12:^0.4
if ( a2->getTag(a2) == 1 )
{
sub_776584((int)&v8, "Base HSV");
if ( !a1->m_hasBaseColor )
sub_7753D4((int)&v8, "Detail HSV");
CustomizeObjectLayer::getHSV(&v9, a1);
sub_775C20(&v10);
*(_DWORD *)&v11.absoluteSaturation = &a1->HSVWidgetDelegate;
v11.h = v9.s;
*(_QWORD *)&v11.s = *(_QWORD *)&v9.v;
v4 = HSVWidgetPopup::create((HSVWidgetPopup *)LODWORD(v9.h), v11, (HSVWidgetDelegate *)&v10, v8);
sub_774008(&v10);
v5 = &v8;
}
else
{
CustomizeObjectLayer::getHSV(&v10, a1);
sub_776584((int)&v9, "Detail HSV");
*(_DWORD *)&v12.absoluteSaturation = &a1->HSVWidgetDelegate;
v12.h = v10.s;
*(_QWORD *)&v12.s = *(_QWORD *)&v10.v;
v4 = HSVWidgetPopup::create((HSVWidgetPopup *)LODWORD(v10.h), v12, (HSVWidgetDelegate *)&v9, v8);
v5 = (std::string *)&v9;
}
sub_774008(v5);
v6 = *(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 36);
v7 = a2->getTag(a2);
v6(v4, v7);
(*(void (__fastcall **)(int))(*(_DWORD *)v4 + 644))(v4);
}