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