//
// MoreSearchLayer::updateAudioLabel from 0x7def60 to 0x7df0c4 (356 bytes)
//
// 3 xrefs:
// > MoreSearchLayer::selectSong @ 0x7df10c
// > MoreSearchLayer::onSongMode @ 0x7e0a60
// > ??> @ 0xc63d0
//
// 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 12:54:25 +0000
//
__int64 __fastcall MoreSearchLayer::updateAudioLabel(MoreSearchLayer *this)
{
GameLevelManager *v2; // x0
GameLevelManager *IntForKey; // x0
GameLevelManager *v4; // x0
unsigned int v5; // w0
__int64 v6; // x1
LevelTools *v7; // x0
char *v8; // x2
cocos2d::CCString *v9; // x0
__int64 CString; // x0
float *v11; // x0
long double v12; // q0
char *v14; // [xsp+38h] [xbp+38h]
__int64 v15[2]; // [xsp+40h] [xbp+40h] BYREF
void *v16; // [xsp+50h] [xbp+50h]
v2 = (GameLevelManager *)GameLevelManager::sharedState(_stack_chk_guard);
IntForKey = (GameLevelManager *)GameLevelManager::getIntForKey(v2, "song_filter");
if ( (int)IntForKey <= 1 )
{
v7 = nullptr;
v6 = 1;
}
else
{
v4 = (GameLevelManager *)GameLevelManager::sharedState(IntForKey);
v5 = GameLevelManager::getIntForKey(v4, "song_filter");
v6 = v5;
v7 = (LevelTools *)(v5 - 1);
}
v14 = (char *)v6;
LevelTools::getAudioTitle(v7, v15);
v8 = (char *)v15 + 1;
if ( (v15[0] & 1) != 0 )
v8 = (char *)v16;
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%02d: %s", v14, v8);
CString = cocos2d::CCString::getCString(v9);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 83) + 928LL))(*((_QWORD *)this + 83), CString);
v11 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 83) + 328LL))(*((_QWORD *)this + 83));
LODWORD(v12) = 1061997773;
if ( (float)(200.0 / *v11) < 0.8 )
*(float *)&v12 = 200.0
/ *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 83) + 328LL))(*((_QWORD *)this + 83));
(*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 83) + 160LL))(*((_QWORD *)this + 83), v12);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
return _stack_chk_guard;
}