//
// SongInfoLayer::onMenuMusic from 0x100601c90 to 0x100601d20 (144 bytes)
//
// 1 xrefs:
// > SongInfoLayer::init @ 0x1006017c0
//
// 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 __fastcall SongInfoLayer::onMenuMusic(SongInfoLayer *a1, cocos2d::CCObject *a2)
{
GameStatsManager *v2; // rax
int m_customMenuSongID; // r14d
int m_songID; // r15d
GameManager *v5; // rax
int v6; // ecx
GameManager *v7; // rax
v2 = GameStatsManager::sharedState();
if ( GameStatsManager::isItemUnlocked(v2, GJItem, 16) )
{
if ( a1->m_songID > 0 )
{
m_customMenuSongID = GameManager::sharedState()->m_customMenuSongID;
m_songID = a1->m_songID;
v5 = GameManager::sharedState();
v6 = 0;
if ( m_customMenuSongID != m_songID )
v6 = a1->m_songID;
v5->m_customMenuSongID = v6;
v7 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v7);
}
}
else
{
SongInfoLayer::showCustomMusicUnlockInfo(a1);
}
}