//
// MoreSearchLayer::toggleSongNodes from 0x3af3f8 to 0x3af494 (156 bytes)
//
// 3 xrefs:
// > MoreSearchLayer::onSongFilter @ 0x3af4e2
// > MoreSearchLayer::onSongFilter @ 0x3af4fa
// > MoreSearchLayer::onSongMode @ 0x3af5d8
//
// 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 MoreSearchLayer::toggleSongNodes(MoreSearchLayer *a1, bool a2, bool a3)
{
_BOOL4 v3; // r8
_BOOL4 v5; // r7
_BOOL4 v6; // r5
unsigned int i; // r6
int v8; // r0
_BOOL4 v9; // r1
unsigned int j; // r6
int v11; // r0
int v12; // r1
int v13; // r5
unsigned int k; // r6
int v15; // r0
v3 = !a3;
v5 = a2;
v6 = a3;
for ( i = 0; i < cocos2d::CCArray::count(a1->m_normalSongNodes); ++i )
{
v8 = cocos2d::CCArray::objectAtIndex(a1->m_normalSongNodes, i);
v9 = !v5 && v3;
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v8 + 164))(v8, v9);
}
for ( j = 0; j < cocos2d::CCArray::count(a1->m_customSongNodes); ++j )
{
v11 = cocos2d::CCArray::objectAtIndex(a1->m_customSongNodes, j);
v12 = v5 && !v6;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 164))(v11, v12);
}
v13 = !v6;
for ( k = 0; k < cocos2d::CCArray::count(a1->m_commonSongNodes); ++k )
{
v15 = cocos2d::CCArray::objectAtIndex(a1->m_commonSongNodes, k);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 164))(v15, v13);
}
}