//
// ColorSelectPopup::updateHSVMode from 0x100728780 to 0x1007288ac (300 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::init @ 0x1007273a9
// > ColorSelectPopup::onToggleHSVMode @ 0x1007282b0
//
// 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 __fastcall ColorSelectPopup::updateHSVMode(ColorSelectPopup *a1)
{
unsigned int v1; // r14d
__int64 v2; // rax
unsigned int v3; // r14d
__int64 v4; // rax
if ( (unsigned int)sub_100720070((__int64)a1->m_colorObjects) )
{
v1 = 0;
do
{
v2 = sub_1007200C0((__int64)a1->m_colorObjects, v1);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v2 + 328LL))(v2, !a1->m_showCopyObjects);
++v1;
}
while ( v1 < (unsigned int)sub_100720070((__int64)a1->m_colorObjects) );
}
if ( (unsigned int)sub_100720070((__int64)a1->m_copyObjects) )
{
v3 = 0;
do
{
v4 = sub_1007200C0((__int64)a1->m_copyObjects, v3);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v4 + 328LL))(v4, a1->m_showCopyObjects);
++v3;
}
while ( v3 < (unsigned int)sub_100720070((__int64)a1->m_copyObjects) );
}
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_copyColorInput->setTouchEnabled)(
a1->m_copyColorInput,
a1->m_showCopyObjects);
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_rInput->setTouchEnabled)(a1->m_rInput, !a1->m_showCopyObjects);
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_gInput->setTouchEnabled)(a1->m_gInput, !a1->m_showCopyObjects);
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_bInput->setTouchEnabled)(a1->m_bInput, !a1->m_showCopyObjects);
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_hexInput->setTouchEnabled)(
a1->m_hexInput,
!a1->m_showCopyObjects);
}