//
// MoreSearchLayer::audioNext from 0x10070b950 to 0x10070b9b2 (98 bytes)
//
// 1 xrefs:
// > MoreSearchLayer::init @ 0x10070ab05
//
// This function is hookable on this platform (idp: pc, 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 12:36:03 +0000
//
__int64 __fastcall MoreSearchLayer::audioNext(__int64 a1)
{
__int64 v1; // rax
__int64 result; // rax
int v3; // ecx
int v4; // r14d
__int64 v5; // rax
v1 = GameLevelManager::sharedState();
result = GameLevelManager::getIntForKey(v1, "song_filter");
if ( (_DWORD)result != 22 )
{
v3 = 21;
if ( (int)result < 21 )
v3 = result;
v4 = 0;
if ( v3 > 0 )
v4 = v3;
v5 = GameLevelManager::sharedState();
GameLevelManager::setIntForKey(v5, (unsigned int)(v4 + 1), "song_filter");
return MoreSearchLayer::updateAudioLabel(a1);
}
return result;
}