//
// MoreSearchLayer::updateAudioLabel from 0x4959b0 to 0x495a8c (220 bytes)
//
// 2 xrefs:
// > MoreSearchLayer::selectSong @ 0x495ac6
// > MoreSearchLayer::onSongMode @ 0x497038
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:41 +0000
//
int __fastcall MoreSearchLayer::updateAudioLabel(MoreSearchLayer *this)
{
GameLevelManager *v2; // r0
GameLevelManager *IntForKey; // r0
GameLevelManager *v4; // r0
const char *v5; // r7
char *v6; // r2
cocos2d::CCString *v7; // r0
int CString; // r0
float v9; // s15
unsigned __int8 v11; // [sp+0h] [bp-14h] BYREF
char v12; // [sp+1h] [bp-13h] BYREF
char *v13; // [sp+8h] [bp-Ch]
v2 = (GameLevelManager *)GameLevelManager::sharedState(this);
IntForKey = (GameLevelManager *)GameLevelManager::getIntForKey(v2, "song_filter");
if ( (int)IntForKey <= 1 )
{
v5 = (_BYTE *)(&dword_0 + 1);
}
else
{
v4 = (GameLevelManager *)GameLevelManager::sharedState(IntForKey);
v5 = (const char *)GameLevelManager::getIntForKey(v4, "song_filter");
}
LevelTools::getAudioTitle((LevelTools *)&v11, (int)(v5 - 1));
if ( (v11 & 1) != 0 )
v6 = v13;
else
v6 = &v12;
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%02d: %s", v5, v6, v11 << 31);
CString = cocos2d::CCString::getCString(v7);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 130) + 464))(*((_DWORD *)this + 130), CString);
v9 = 0.8;
if ( (float)(200.0
/ *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 164))(*((_DWORD *)this + 130))) < 0.8 )
v9 = 200.0 / *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 164))(*((_DWORD *)this + 130));
(*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 130) + 80))(
*((_DWORD *)this + 130),
COERCE_FLOAT(LODWORD(v9)));
return std::string::~string((int)&v11);
}