//
// ColorSelectLiveOverlay::toggleControls from 0xa657d8 to 0xa65838 (96 bytes)
//
// 3 xrefs:
// > ColorSelectLiveOverlay::updateColorLabel @ 0xa65904
// > ColorSelectLiveOverlay::updateColorLabel @ 0xa65960
// > ??> @ 0xfe668
//
// 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 13:00:17 +0000
//
__int64 __fastcall ColorSelectLiveOverlay::toggleControls(cocos2d::CCArray **this, unsigned __int8 a2)
{
unsigned int v3; // w21
unsigned int v4; // w19
__int64 v5; // x0
__int64 result; // x0
bool v7; // cf
unsigned int v8; // w1
v3 = a2;
v4 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 84));
v7 = v4 >= (unsigned int)result;
v8 = v4++;
if ( v7 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 84), v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, v3);
}
return result;
}