//
// MoreSearchLayer::selectSong from 0x3af378 to 0x3af3a2 (42 bytes)
//
// 3 xrefs:
// > MoreSearchLayer::audioNext @ 0x3af3c6
// > MoreSearchLayer::audioPrevious @ 0x3af3ee
// > MoreSearchLayer::onSongFilter @ 0x3af506
//
// 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::selectSong(MoreSearchLayer *a1, int a2)
{
int v2; // r5
GameLevelManager *v4; // r0
int v5; // r1
if ( a2 >= 22 )
a2 = 22;
v2 = a2;
v4 = GameLevelManager::sharedState();
v5 = v2;
if ( v2 < 1 )
v5 = 1;
GameLevelManager::setIntForKey(v4, v5, "song_filter");
MoreSearchLayer::updateAudioLabel(a1);
}