//
// MoreSearchLayer::toggleSongNodes from 0x100056e1c to 0x100056f14 (248 bytes)
//
// 3 xrefs:
// > MoreSearchLayer::onSongFilter @ 0x100056a10
// > MoreSearchLayer::onSongFilter @ 0x100056a34
// > MoreSearchLayer::onSongMode @ 0x100056cb8
//
// 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)
{
int v3; // w19
_BOOL4 v4; // w21
__int64 v6; // x22
__int64 v7; // x0
__int64 v8; // x22
__int64 v9; // x0
__int64 v10; // x21
__int64 v11; // x0
v3 = a3;
v4 = a2;
if ( (unsigned int)sub_10024A36C(a1->m_normalSongNodes) )
{
v6 = 0;
do
{
v7 = sub_10024A388(a1->m_normalSongNodes, v6);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 328LL))(v7, (v4 | v3) ^ 1u);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_normalSongNodes) );
}
if ( (unsigned int)sub_10024A36C(a1->m_customSongNodes) )
{
v8 = 0;
do
{
v9 = sub_10024A388(a1->m_customSongNodes, v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 328LL))(v9, v4 & (unsigned int)~v3);
v8 = (unsigned int)(v8 + 1);
}
while ( (unsigned int)v8 < (unsigned int)sub_10024A36C(a1->m_customSongNodes) );
}
if ( (unsigned int)sub_10024A36C(a1->m_commonSongNodes) )
{
v10 = 0;
do
{
v11 = sub_10024A388(a1->m_commonSongNodes, v10);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 328LL))(v11, v3 ^ 1u);
v10 = (unsigned int)(v10 + 1);
}
while ( (unsigned int)v10 < (unsigned int)sub_10024A36C(a1->m_commonSongNodes) );
}
}