//
// MoreSearchLayer::selectSong from 0x10005f758 to 0x10005f7a0 (72 bytes)
//
// 2 xrefs:
// > MoreSearchLayer::audioPrevious @ 0x10005f57c
// > MoreSearchLayer::audioNext @ 0x10005f5c4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:57:49 +0000
//
__int64 __fastcall MoreSearchLayer::selectSong(__int64 a1, int a2)
{
int v3; // w8
__int64 v4; // x20
__int64 v5; // x0
if ( a2 >= 22 )
v3 = 22;
else
v3 = a2;
if ( v3 <= 1 )
v4 = 1;
else
v4 = (unsigned int)v3;
v5 = GameLevelManager::sharedState(a1);
GameLevelManager::setIntForKey(v5, v4, "song_filter");
return MoreSearchLayer::updateAudioLabel(a1);
}