//
// MoreSearchLayer::audioNext from 0x14043f970 to 0x14043faa9 (313 bytes)
//
// 2 xrefs:
// > MoreSearchLayer::init @ 0x14043d120
// > ??> @ 0x140927020
//
// 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 11:32:21 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall MoreSearchLayer::audioNext(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCString *v3; // rax
int v4; // ebx
void *v5; // r8
void *v6; // [rsp+30h] [rbp-38h]
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__int64 v8; // [rsp+48h] [rbp-20h]
unsigned __int64 v9; // [rsp+50h] [rbp-18h]
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v6 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
v8 = 11;
v9 = 15;
Block[0] = (void *)0x6C69665F676E6F73LL;
Block[1] = (void *)7497076;
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 848), Block);
v4 = cocos2d::CCString::intValue(v3);
if ( v9 > 0xF )
{
v5 = Block[0];
if ( v9 + 1 >= 0x1000 )
{
v5 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v5);
}
if ( v4 != 22 )
MoreSearchLayer::selectSong(a1, (unsigned int)(v4 + 1));
}