//
// FindBPMLayer::playMusic from 0x6e7ba4 to 0x6e7c58 (180 bytes)
//
// 2 xrefs:
// > ??> @ 0xe8690
// > ??> @ 0x1426818
//
// 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:44 +0000
//
__int64 __fastcall FindBPMLayer::playMusic(FindBPMLayer *this)
{
MusicDownloadManager *v2; // x22
MusicDownloadManager *v3; // x0
__int64 v5[3]; // [xsp+30h] [xbp+30h] BYREF
v2 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(_stack_chk_guard);
v3 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v2);
MusicDownloadManager::pathForSong(v5, v3, *((_DWORD *)this + 190));
FMODAudioEngine::loadAndPlayMusic(v2, (char *)v5, (unsigned int)(float)(*((float *)this + 180) * 1000.0), 0);
if ( (v5[0] & 1) != 0 )
operator delete((void *)v5[2]);
return _stack_chk_guard;
}