//
// MoreSearchLayer::updateAudioLabel from 0x10070bc80 to 0x10070bd7a (250 bytes)
//
// 5 xrefs:
// > MoreSearchLayer::onSongFilter @ 0x10070b63d
// > MoreSearchLayer::onSongMode @ 0x10070b8b1
// > MoreSearchLayer::audioPrevious @ 0x10070b941
// > MoreSearchLayer::audioNext @ 0x10070b9ad
// > MoreSearchLayer::selectSong @ 0x10070bc6f
//
// 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
//
void __fastcall MoreSearchLayer::updateAudioLabel(__int64 a1)
{
__int64 v1; // rax
int IntForKey; // r14d
__int64 v3; // rax
__int64 v4; // rax
__int64 CString; // rax
char v6; // [rsp+0h] [rbp-30h]
char v7; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
v1 = GameLevelManager::sharedState();
IntForKey = 1;
if ( (int)GameLevelManager::getIntForKey(v1, "song_filter") >= 2 )
{
v3 = GameLevelManager::sharedState();
IntForKey = GameLevelManager::getIntForKey(v3, "song_filter");
}
LevelTools::getAudioTitle((__int64)&v7, IntForKey - 1);
v4 = sub_10088E820("%02d: %s", v6);
CString = cocos2d::CCString::getCString(v4);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 664) + 928LL))(*(_QWORD *)(a1 + 664), CString);
if ( (float)(200.0
/ *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 328LL))(*(_QWORD *)(a1 + 664))) < 0.80000001 )
(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 328LL))(*(_QWORD *)(a1 + 664));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 160LL))(*(_QWORD *)(a1 + 664));
if ( (v7 & 1) != 0 )
operator delete(__p);
}