//
// PlayLayer::playPracticeMusic from 0x6f6fe4 to 0x6f7098 (180 bytes)
//
// 3 xrefs:
// > PlayLayer::togglePracticeMode @ 0x703520
// > EndLevelLayer::onRestartCheckpoint @ 0x8fb3b4
// > ??> @ 0xf9bb0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:51:51 +0000
//
__int64 __fastcall PlayLayer::playPracticeMusic(PlayLayer *this)
{
FMODAudioEngine *v1; // x0
FMODAudioEngine *v2; // x0
GameManager *v3; // x21
GameManager *v4; // x0
int v5; // w4
int v6; // w5
int v7; // w6
int v8; // w7
char v10; // [xsp+0h] [xbp+0h]
__int64 v11[3]; // [xsp+40h] [xbp+40h] BYREF
v1 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(_stack_chk_guard);
v2 = (FMODAudioEngine *)FMODAudioEngine::stopAllMusic(v1, 1);
v3 = (GameManager *)FMODAudioEngine::sharedEngine(v2);
v4 = (GameManager *)GameManager::sharedState(v3);
GameManager::getPracticeMusicFile(v11, v4);
FMODAudioEngine::playMusic(v3, (char *)v11, 1u, 0, v5, v6, v7, v8, 0.0, v10);
if ( (v11[0] & 1) != 0 )
operator delete((void *)v11[2]);
return _stack_chk_guard;
}