//
// CreateGuidelinesLayer::toggleItems from 0x10007d2b4 to 0x10007d35c (168 bytes)
//
// 4 xrefs:
// > CreateGuidelinesLayer::init @ 0x10007d02c
// > CreateGuidelinesLayer::onStop @ 0x10007d278
// > CreateGuidelinesLayer::onRecord @ 0x10007d488
// > FindBPMLayer::init @ 0x10007e1f4
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall CreateGuidelinesLayer::toggleItems(CreateGuidelinesLayer *a1, bool a2)
{
_BOOL8 v2; // x19
__int64 v4; // x21
__int64 v5; // x0
__int64 v6; // x21
__int64 v7; // x0
v2 = a2;
if ( (unsigned int)sub_10024A36C(a1->m_nonRecordingObjects) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_nonRecordingObjects, v4);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 328LL))(v5, (unsigned int)v2 ^ 1);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_nonRecordingObjects) );
}
if ( (unsigned int)sub_10024A36C(a1->m_recordingObjects) )
{
v6 = 0;
do
{
v7 = sub_10024A388(a1->m_recordingObjects, v6);
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v7 + 328LL))(v7, v2);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_recordingObjects) );
}
}