//
// MoreSearchLayer::updateAudioLabel from 0x3af294 to 0x3af362 (206 bytes)
//
// 2 xrefs:
// > MoreSearchLayer::selectSong @ 0x3af39e
// > MoreSearchLayer::onSongMode @ 0x3af5de
//
// 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::updateAudioLabel(MoreSearchLayer *a1)
{
GameLevelManager *v2; // r0
GameLevelManager *v3; // r0
const char *IntForKey; // r7
cocos2d::CCString *v5; // r0
const unsigned __int8 *CString; // r0
float v7; // s15
int v8; // [sp+0h] [bp-Ch] BYREF
v2 = GameLevelManager::sharedState();
if ( GameLevelManager::getIntForKey(v2, "song_filter") <= 1 )
{
IntForKey = (_BYTE *)(&dword_0 + 1);
}
else
{
v3 = GameLevelManager::sharedState();
IntForKey = (const char *)GameLevelManager::getIntForKey(v3, "song_filter");
}
LevelTools::getAudioTitle((LevelTools *)&v8, (int)(IntForKey - 1));
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%02d: %s", IntForKey, v8);
CString = (const unsigned __int8 *)cocos2d::CCString::getCString(v5);
a1->m_audioTrackName->setString(a1->m_audioTrackName, CString);
v7 = 0.8;
if ( (float)(200.0 / a1->m_audioTrackName->getContentSize(a1->m_audioTrackName)->width) < 0.8 )
v7 = 200.0 / a1->m_audioTrackName->getContentSize(a1->m_audioTrackName)->width;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD))a1->m_audioTrackName->setScale)(
a1->m_audioTrackName,
LODWORD(v7));
sub_774008(&v8);
}