//
// ColorSelectPopup::updateHSVMode from 0x4df114 to 0x4df1d0 (188 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::onToggleHSVMode @ 0x4dfa9c
// > ColorSelectPopup::init @ 0x4e167c
//
// 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:50:59 +0000
//
int __fastcall ColorSelectPopup::updateHSVMode(cocos2d::CCArray **this)
{
unsigned int i; // r5
int v3; // r0
unsigned int j; // r5
int v5; // r0
for ( i = 0; i < cocos2d::CCArray::count(*(this + 209)); ++i )
{
v3 = cocos2d::CCArray::objectAtIndex(*(this + 209), i);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 172))(v3, *((unsigned __int8 *)this + 860) ^ 1);
}
for ( j = 0; j < cocos2d::CCArray::count(*(this + 210)); ++j )
{
v5 = cocos2d::CCArray::objectAtIndex(*(this + 210), j);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 172))(v5, *((unsigned __int8 *)this + 860));
}
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 211) + 500))(
*(this + 211),
*((unsigned __int8 *)this + 860));
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 216) + 500))(
*(this + 216),
*((unsigned __int8 *)this + 860) ^ 1);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 217) + 500))(
*(this + 217),
*((unsigned __int8 *)this + 860) ^ 1);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 218) + 500))(
*(this + 218),
*((unsigned __int8 *)this + 860) ^ 1);
return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 219) + 500))(
*(this + 219),
*((unsigned __int8 *)this + 860) ^ 1);
}