//
// FMOD::Sound::getMusicSpeed from 0xda204 to 0xda294 (144 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getMusicSpeed @ 0x1073bc
// > ??> @ 0x2ea8
// > FMOD::Sound::getMusicSpeed @ 0x1073b4
// > ??> @ 0x1102a0
//
// 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:14:54 +0000
//
__int64 __fastcall FMOD::Sound::getMusicSpeed(FMOD::Sound *this, float *a2)
{
unsigned int v3; // w21
__int64 v4; // x0
int v5; // w8
char v6; // zf
__int64 v7; // x0
__int64 v8; // x8
__int64 v9; // x0
char v10; // w8
__int64 v11; // x0
__int64 v13; // [xsp+0h] [xbp-130h] BYREF
v3 = sub_DA3C4(this);
if ( !v3 )
{
v4 = sub_DA368();
if ( !v5 || (v4 = sub_DA358(v4), v6) || (v4 = sub_DA410(v4), v6) )
{
v7 = sub_DA478(v4);
v9 = (*(__int64 (__fastcall **)(__int64))(v8 + 360))(v7);
v3 = v9;
if ( !(_DWORD)v9 )
goto LABEL_9;
}
else
{
v3 = 46;
}
}
v9 = sub_DA344();
if ( v10 < 0 )
{
v11 = sub_716B4((__int64)&v13, 256, a2);
v9 = sub_DA388(v11);
}
LABEL_9:
sub_DA538(v9);
return v3;
}