//
// FMODAudioEngine::loadMusic_1 from 0x1003d4700 to 0x1003d4774 (116 bytes)
//
// 1 xrefs:
// > SetupSongTriggerPopup::updateSongTimeSlider @ 0x1002c09f3
//
// 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 12:29:40 +0000
//
char __fastcall FMODAudioEngine::loadMusic_1(__int64 a1, __int128 *a2)
{
char result; // al
char v3; // bl
__int128 v4; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v4, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
__p = *((void **)a2 + 2);
v4 = *a2;
}
result = FMODAudioEngine::loadMusic(a1, (unsigned __int8 *)&v4, 0, 0, 0, 0, (__m128)0x3F800000u, 0.0, 1.0);
if ( (v4 & 1) != 0 )
{
v3 = result;
operator delete(__p);
return v3;
}
return result;
}