//
// SongInfoLayer::onPracticeMusic from 0x1003a8a0c to 0x1003a8a8c (128 bytes)
//
// 1 xrefs:
// > SongInfoLayer::init @ 0x1003a85cc
//
// 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::onPracticeMusic(SongInfoLayer *a1, cocos2d::CCObject *a2)
{
GameStatsManager *v3; // x0
int m_customPracticeSongID; // w20
int m_songID; // w21
GameManager *v6; // x0
v3 = GameStatsManager::sharedState();
if ( GameStatsManager::isItemUnlocked(v3, GJItem, 16) )
{
if ( a1->m_songID >= 1 )
{
m_customPracticeSongID = GameManager::sharedState()->m_customPracticeSongID;
m_songID = a1->m_songID;
v6 = GameManager::sharedState();
if ( m_customPracticeSongID == m_songID )
v6->m_customPracticeSongID = 0;
else
v6->m_customPracticeSongID = a1->m_songID;
}
}
else
{
SongInfoLayer::showCustomMusicUnlockInfo(a1);
}
}