//
// MoreSearchLayer::updateAudioLabel from 0x10005f7a0 to 0x10005f8b8 (280 bytes)
//
// 3 xrefs:
// > MoreSearchLayer::onSongFilter @ 0x10005f29c
// > MoreSearchLayer::onSongMode @ 0x10005f504
// > MoreSearchLayer::selectSong @ 0x10005f79c
//
// 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
//
void __fastcall MoreSearchLayer::updateAudioLabel(__int64 a1)
{
__int64 v2; // x0
__int64 IntForKey; // x0
__int64 v4; // x0
int v5; // w20
void **v6; // x8
__int64 v7; // x0
__int64 CString; // x0
float *v9; // x0
__n128 v10; // q0
void *__p[2]; // [xsp+18h] [xbp-38h] BYREF
char v12; // [xsp+2Fh] [xbp-21h]
v2 = GameLevelManager::sharedState(a1);
IntForKey = GameLevelManager::getIntForKey(v2, "song_filter");
if ( (int)IntForKey < 2 )
{
v5 = 1;
}
else
{
v4 = GameLevelManager::sharedState(IntForKey);
v5 = GameLevelManager::getIntForKey(v4, "song_filter");
}
LevelTools::getAudioTitle(__p, (unsigned int)(v5 - 1));
if ( v12 >= 0 )
v6 = __p;
else
v6 = (void **)__p[0];
v7 = sub_1003065B0("%02d: %s", v5, (const char *)v6);
CString = cocos2d::CCString::getCString(v7);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 664) + 928LL))(*(_QWORD *)(a1 + 664), CString);
v9 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 328LL))(*(_QWORD *)(a1 + 664));
v10.n128_u32[0] = 1061997773;
if ( (float)(200.0 / *v9) < 0.8 )
v10.n128_f32[0] = 200.0
/ *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 328LL))(*(_QWORD *)(a1 + 664));
(*(void (__fastcall **)(_QWORD, __n128))(**(_QWORD **)(a1 + 664) + 160LL))(*(_QWORD *)(a1 + 664), v10);
if ( v12 < 0 )
operator delete(__p[0]);
}