//
// ColorSelectPopup::updateHSVMode from 0x73caf0 to 0x73cc08 (280 bytes)
//
// 3 xrefs:
// > ColorSelectPopup::init @ 0x73d7f4
// > ColorSelectPopup::onToggleHSVMode @ 0x73fe3c
// > ??> @ 0xac950
//
// 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 ColorSelectPopup::updateHSVMode(ColorSelectPopup *a1)
{
unsigned int v2; // w20
__int64 v3; // x0
bool v4; // cf
unsigned int v5; // w1
unsigned int v6; // w20
__int64 v7; // x0
unsigned int v8; // w1
v2 = 0;
while ( 1 )
{
v4 = v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_colorObjects);
v5 = v2++;
if ( v4 )
break;
v3 = cocos2d::CCArray::objectAtIndex(a1->m_colorObjects, v5);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 328LL))(v3, !a1->m_showCopyObjects);
}
v6 = 0;
while ( 1 )
{
v4 = v6 >= (unsigned int)cocos2d::CCArray::count(a1->m_copyObjects);
v8 = v6++;
if ( v4 )
break;
v7 = cocos2d::CCArray::objectAtIndex(a1->m_copyObjects, v8);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v7 + 328LL))(v7, a1->m_showCopyObjects);
}
a1->m_copyColorInput->setTouchEnabled(a1->m_copyColorInput, a1->m_showCopyObjects);
a1->m_rInput->setTouchEnabled(a1->m_rInput, !a1->m_showCopyObjects);
a1->m_gInput->setTouchEnabled(a1->m_gInput, !a1->m_showCopyObjects);
a1->m_bInput->setTouchEnabled(a1->m_bInput, !a1->m_showCopyObjects);
a1->m_hexInput->setTouchEnabled(a1->m_hexInput, !a1->m_showCopyObjects);
}