//
// MoreSearchLayer::selectSong from 0x100056f14 to 0x100056f5c (72 bytes)
//
// 2 xrefs:
// > MoreSearchLayer::audioPrevious @ 0x100056d38
// > MoreSearchLayer::audioNext @ 0x100056d80
//
// 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::selectSong(MoreSearchLayer *a1, int a2)
{
int v3; // w8
int v4; // w20
GameLevelManager *v5; // x0
if ( a2 >= 22 )
v3 = 22;
else
v3 = a2;
if ( v3 <= 1 )
v4 = 1;
else
v4 = v3;
v5 = GameLevelManager::sharedState();
GameLevelManager::setIntForKey(v5, v4, "song_filter");
MoreSearchLayer::updateAudioLabel(a1);
}