//
// FMODAudioEngine::loadMusic_1 from 0x10013d280 to 0x10013d310 (144 bytes)
//
// 1 xrefs:
// > SetupSongTriggerPopup::updateSongTimeSlider @ 0x1001c33a0
//
// 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
//
__int64 __fastcall FMODAudioEngine::loadMusic_1(__int64 a1, __int64 a2)
{
__int64 Music; // x19
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v6; // [xsp+10h] [xbp-20h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v6 = *(_QWORD *)(a2 + 16);
}
Music = FMODAudioEngine::loadMusic(a1, (__int128 *)__p, 0, 0, 0, 0, 1.0, 0.0, 1.0);
if ( SHIBYTE(v6) < 0 )
operator delete(__p[0]);
return Music;
}