//
// ColorSelectPopup::updateHSVMode from 0x863000 to 0x863118 (280 bytes)
//
// 3 xrefs:
// > ColorSelectPopup::onToggleHSVMode @ 0x863dec
// > ColorSelectPopup::init @ 0x8643e8
// > ??> @ 0xe2048
//
// 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:55:37 +0000
//
__int64 __fastcall ColorSelectPopup::updateHSVMode(cocos2d::CCArray **this)
{
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(*(this + 151));
v5 = v2++;
if ( v4 )
break;
v3 = cocos2d::CCArray::objectAtIndex(*(this + 151), v5);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *((unsigned __int8 *)this + 1256) ^ 1u);
}
v6 = 0;
while ( 1 )
{
v4 = v6 >= (unsigned int)cocos2d::CCArray::count(*(this + 152));
v8 = v6++;
if ( v4 )
break;
v7 = cocos2d::CCArray::objectAtIndex(*(this + 152), v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, *((unsigned __int8 *)this + 1256));
}
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 153) + 1000LL))(
*(this + 153),
*((unsigned __int8 *)this + 1256));
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 158) + 1000LL))(
*(this + 158),
*((unsigned __int8 *)this + 1256) ^ 1u);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 159) + 1000LL))(
*(this + 159),
*((unsigned __int8 *)this + 1256) ^ 1u);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 160) + 1000LL))(
*(this + 160),
*((unsigned __int8 *)this + 1256) ^ 1u);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 161) + 1000LL))(
*(this + 161),
*((unsigned __int8 *)this + 1256) ^ 1u);
}