//
// PlayLayer::toggleMusicInPractice from 0x10011e6c4 to 0x10011e730 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x10078fe90
//
// 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 PlayLayer::toggleMusicInPractice(PlayLayer *a1)
{
GameStatsManager *v2; // x0
bool v3; // w8
GameManager *v4; // x0
v2 = GameStatsManager::sharedState();
if ( GameStatsManager::isItemEnabled(v2, GJItem, 17) )
{
v3 = 1;
}
else
{
v4 = GameManager::sharedState();
v3 = GameManager::getGameVariable(v4, "0125") && a1->m_level->m_levelType == Editor;
}
a1->m_practiceMusicSync = v3;
}