//
// HSVLiveOverlay::toggleControls from 0xb5101c to 0xb5107c (96 bytes)
//
// 1 xrefs:
// > ??> @ 0xa3270
//
// 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:01:59 +0000
//
__int64 __fastcall HSVLiveOverlay::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 + 86));
v7 = v4 >= (unsigned int)result;
v8 = v4++;
if ( v7 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 86), v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, v3);
}
return result;
}