//
// FMODAudioEngine::playMusic from 0x140062d50 to 0x140062ebd (365 bytes)
//
// 7 xrefs:
// > CustomSongWidget::onPlayback @ 0x14016c0ce
// > GameManager::playMenuMusic @ 0x140276904
// > GameManager::fadeInMusic @ 0x140276b20
// > GJShopLayer::init @ 0x1403b0f18
// > GJShopLayer::showReactMessage @ 0x1403b3cae
// > PlayLayer::playPracticeMusic @ 0x14051a33e
// > ??> @ 0x140910c1c
//
// This function is hookable on this platform (idp: pc, 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 11:25:44 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall FMODAudioEngine::playMusic(_QWORD *a1, __int64 a2, char a3, float a4)
{
int v7; // eax
int v8; // r8d
int v9; // r9d
__int64 v10; // rax
__int64 v11; // rax
__int64 v12; // rax
_BYTE v13[8]; // [rsp+50h] [rbp-88h] BYREF
int v14; // [rsp+58h] [rbp-80h] BYREF
_BYTE v15[32]; // [rsp+60h] [rbp-78h] BYREF
__int64 v16; // [rsp+80h] [rbp-58h]
v16 = a2;
if ( a1[69] )
{
v7 = sub_14003F4F0((__int64)v15, a2);
FMODAudioEngine::loadMusic((_DWORD)a1, v7, v8, v9, 1065353216, a3, 0, 0, 0);
if ( a4 > 0.0 )
FMODAudioEngine::fadeInMusic(a1);
v14 = 0;
if ( sub_140066B50(a1 + 40, &v14) )
{
v10 = sub_140068620(a1 + 40, v15, &v14);
v11 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v10 + 24LL));
if ( v11 )
FMOD::ChannelControl::setPaused(v11, 0);
}
v13[0] = 0;
FMOD::ChannelControl::getPaused(a1[69], v13);
v14 = 0;
if ( sub_140066B50(a1 + 40, &v14) )
{
v12 = sub_140068620(a1 + 40, v15, &v14);
FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v12 + 24LL));
}
}
sub_14003D310(a2);
}