//
// ColorSelectLiveOverlay::toggleControls from 0x140126790 to 0x140126806 (118 bytes)
//
// 2 xrefs:
// > ColorSelectLiveOverlay::updateColorLabel @ 0x1401266f3
// > ??> @ 0x1409169e8
//
// This function is hookable on this platform (idp: pc, 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 11:26:58 +0000
//
unsigned int __fastcall ColorSelectLiveOverlay::toggleControls(__int64 a1, unsigned __int8 a2)
{
unsigned int v4; // ebx
unsigned int result; // eax
struct cocos2d::CCObject *v6; // rax
v4 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672));
if ( result )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), v4);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, a2);
++v4;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672));
}
while ( v4 < result );
}
return result;
}