//
// MoreSearchLayer::audioPrevious from 0x140316930 to 0x140316a50 (288 bytes)
//
// 3 xrefs:
// > MoreSearchLayer::init @ 0x140314202
// > ??> @ 0x1406d4958
// > ??> @ 0x1406d4964
//
// 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::audioPrevious(MoreSearchLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rcx
cocos2d::CCString *v4; // rax
int v5; // ebx
void *v6; // rcx
void *v7; // [rsp+20h] [rbp-38h]
void *Block[2]; // [rsp+28h] [rbp-30h] BYREF
__int64 v9; // [rsp+38h] [rbp-20h]
unsigned __int64 v10; // [rsp+40h] [rbp-18h]
v3 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v7 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v3 = qword_1406C2EC0;
}
v9 = 11;
v10 = 15;
Block[0] = (void *)0x6C69665F676E6F73LL;
Block[1] = (void *)7497076;
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v3 + 344), Block);
v5 = cocos2d::CCString::intValue(v4);
if ( v10 > 0xF )
{
v6 = Block[0];
if ( v10 + 1 >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v6);
}
if ( v5 != 1 )
MoreSearchLayer::selectSong(a1, v5 - 1);
}