//
// CreateGuidelinesLayer::toggleItems from 0x3f7b6c to 0x3f7bc4 (88 bytes)
//
// 4 xrefs:
// > CreateGuidelinesLayer::onStop @ 0x3f7bd6
// > CreateGuidelinesLayer::init @ 0x3f8b62
// > FindBPMLayer::init @ 0x3f8d5e
// > CreateGuidelinesLayer::onRecord @ 0x3f8ea2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:18 +0000
//
unsigned int __fastcall CreateGuidelinesLayer::toggleItems(cocos2d::CCArray **this, int a2)
{
int v2; // r7
unsigned int i; // r4
int v6; // r0
unsigned int j; // r4
unsigned int result; // r0
int v9; // r0
v2 = a2 ^ 1;
for ( i = 0; i < cocos2d::CCArray::count(*(this + 133)); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(*(this + 133), i);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, v2);
}
for ( j = 0; ; ++j )
{
result = cocos2d::CCArray::count(*(this + 134));
if ( j >= result )
break;
v9 = cocos2d::CCArray::objectAtIndex(*(this + 134), j);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 172))(v9, a2);
}
return result;
}