//
// PlayLayer::toggleMusicInPractice from 0x5c8ff0 to 0x5c9068 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x2f8e0
// > ??> @ 0x1148b28
//
// 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 PlayLayer::toggleMusicInPractice(PlayLayer *a1)
{
GameStatsManager *v2; // x0
bool isItemEnabled; // w0
GameManager *v4; // x0
v2 = GameStatsManager::sharedState();
isItemEnabled = GameStatsManager::isItemEnabled(v2, GJItem, 17);
if ( isItemEnabled || (v4 = GameManager::sharedState(), !(isItemEnabled = GameManager::getGameVariable(v4, "0125"))) )
a1->m_practiceMusicSync = isItemEnabled;
else
a1->m_practiceMusicSync = a1->m_level->m_levelType == Editor;
}