//
// SongInfoLayer::onPracticeMusic from 0x7de6bc to 0x7de740 (132 bytes)
//
// 3 xrefs:
// > ??> @ 0x7be28
// > SongInfoLayer::init @ 0x7df59c
// > ??> @ 0x122c248
//
// 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 SongInfoLayer::onPracticeMusic(SongInfoLayer *a1, cocos2d::CCObject *a2)
{
GameStatsManager *v3; // x0
v3 = GameStatsManager::sharedState();
if ( GameStatsManager::isItemUnlocked(v3, GJItem, 16) )
{
if ( a1->m_songID > 0 )
{
if ( GameManager::sharedState()->m_customPracticeSongID == a1->m_songID )
GameManager::sharedState()->m_customPracticeSongID = 0;
else
GameManager::sharedState()->m_customPracticeSongID = a1->m_songID;
}
}
else
{
SongInfoLayer::showCustomMusicUnlockInfo(a1);
}
}