//
// CreateGuidelinesLayer::toggleItems from 0x308d30 to 0x308d88 (88 bytes)
//
// 4 xrefs:
// > CreateGuidelinesLayer::onStop @ 0x308d9a
// > CreateGuidelinesLayer::onRecord @ 0x308e08
// > CreateGuidelinesLayer::init @ 0x30986a
// > FindBPMLayer::init @ 0x309b0e
//
// 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; // r7
_BOOL4 v4; // r6
unsigned int i; // r4
int v6; // r0
unsigned int j; // r4
int v8; // r0
v2 = !a2;
v4 = a2;
for ( i = 0; i < cocos2d::CCArray::count(a1->m_nonRecordingObjects); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_nonRecordingObjects, i);
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v6 + 164))(v6, v2);
}
for ( j = 0; j < cocos2d::CCArray::count(a1->m_recordingObjects); ++j )
{
v8 = cocos2d::CCArray::objectAtIndex(a1->m_recordingObjects, j);
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v8 + 164))(v8, v4);
}
}