//
// MoreSearchLayer::toggleSongNodes from 0x10062ed90 to 0x10062eec1 (305 bytes)
//
// 3 xrefs:
// > MoreSearchLayer::onSongFilter @ 0x10062e893
// > MoreSearchLayer::onSongFilter @ 0x10062e8b6
// > MoreSearchLayer::onSongMode @ 0x10062eb49
//
// 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 __fastcall MoreSearchLayer::toggleSongNodes(MoreSearchLayer *a1, bool a2, bool a3)
{
unsigned int v4; // r12d
__int64 v5; // rax
unsigned int v6; // r15d
__int64 v7; // rax
unsigned int v8; // r15d
_BOOL4 v9; // r14d
__int64 v10; // rax
if ( (unsigned int)sub_100720070(a1->m_normalSongNodes) )
{
v4 = 0;
do
{
v5 = sub_1007200C0(a1->m_normalSongNodes, v4);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v5 + 328LL))(v5, !a3 && !a2);
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a1->m_normalSongNodes) );
}
if ( (unsigned int)sub_100720070(a1->m_customSongNodes) )
{
v6 = 0;
do
{
v7 = sub_1007200C0(a1->m_customSongNodes, v6);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 328LL))(v7, a2 & (unsigned __int8)~a3);
++v6;
}
while ( v6 < (unsigned int)sub_100720070(a1->m_customSongNodes) );
}
if ( (unsigned int)sub_100720070(a1->m_commonSongNodes) )
{
v8 = 0;
v9 = !a3;
do
{
v10 = sub_1007200C0(a1->m_commonSongNodes, v8);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v10 + 328LL))(v10, v9);
++v8;
}
while ( v8 < (unsigned int)sub_100720070(a1->m_commonSongNodes) );
}
}