//
// PlayLayer::toggleMusicInPractice from 0x1000b9b00 to 0x1000b9b60 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b7450
//
// 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 *v1; // rax
bool isItemEnabled; // al
bool v3; // cl
GameManager *v4; // rax
v1 = GameStatsManager::sharedState();
isItemEnabled = GameStatsManager::isItemEnabled(v1, GJItem, 17);
v3 = 1;
if ( !isItemEnabled )
{
v4 = GameManager::sharedState();
v3 = GameManager::getGameVariable(v4, "0125") && a1->m_level->m_levelType == Editor;
}
a1->m_practiceMusicSync = v3;
}