//
// FindBPMLayer::playMusic from 0x14009bd10 to 0x14009bda6 (150 bytes)
//
// 2 xrefs:
// > ??> @ 0x140542460
// > ??> @ 0x1406c7530
//
// 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
//
// Hidden C++ exception states: #wind=2
void FindBPMLayer::playMusic(FindBPMLayer *a1)
{
MusicDownloadManager *v2; // rax
__int64 v3; // rdi
FMODAudioEngine *v4; // rcx
_BYTE v5[40]; // [rsp+20h] [rbp-28h] BYREF
FMODAudioEngine *v6; // [rsp+58h] [rbp+10h]
v2 = MusicDownloadManager::sharedState();
v3 = MusicDownloadManager::pathForSong(v2, v5, (unsigned int)a1->m_songID);
v4 = (FMODAudioEngine *)qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v6 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v4 = (FMODAudioEngine *)qword_1406C2E88;
}
FMODAudioEngine::loadAndPlayMusic(v4, v3, (int)(float)(a1->m_elapsed * 1000.0));
}