//
// CreateGuidelinesLayer::toggleItems from 0x5c0644 to 0x5c06e0 (156 bytes)
//
// 5 xrefs:
// > CreateGuidelinesLayer::onStop @ 0x5c0704
// > CreateGuidelinesLayer::onRecord @ 0x5c07c0
// > CreateGuidelinesLayer::init @ 0x5c15ac
// > FindBPMLayer::init @ 0x5c1b78
// > ??> @ 0xb06d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void CreateGuidelinesLayer::toggleItems(CreateGuidelinesLayer *a1, bool a2)
{
_BOOL4 v2; // w21
_BOOL4 v3; // w22
unsigned int v5; // w19
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
unsigned int v9; // w19
__int64 v10; // x0
unsigned int v11; // w1
v2 = a2;
v3 = !a2;
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_nonRecordingObjects);
v8 = v5++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(a1->m_nonRecordingObjects, v8);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v6 + 328LL))(v6, v3);
}
v9 = 0;
while ( 1 )
{
v7 = v9 >= (unsigned int)cocos2d::CCArray::count(a1->m_recordingObjects);
v11 = v9++;
if ( v7 )
break;
v10 = cocos2d::CCArray::objectAtIndex(a1->m_recordingObjects, v11);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v10 + 328LL))(v10, v2);
}
}