//
// PlayLayer::toggleMusicInPractice from 0x3ff48c to 0x3ff4c2 (54 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:23 +0000
//
int __fastcall PlayLayer::toggleMusicInPractice(PlayLayer *this)
{
int v2; // r0
int result; // r0
GameManager *v4; // r0
v2 = GameStatsManager::sharedState(this);
result = GameStatsManager::isItemEnabled(v2, 12, 17);
if ( !result )
{
v4 = (GameManager *)GameManager::sharedState(nullptr);
result = GameManager::getGameVariable(v4, "0125");
if ( result )
result = *(_DWORD *)(*((_DWORD *)this + 352) + 952) == 2;
}
*((_BYTE *)this + 10785) = result;
return result;
}