//
// FMOD::Sound::setMusicSpeed from 0xb64ec to 0xb6586 (154 bytes)
//
// 1 xrefs:
// > FMOD::Sound::setMusicSpeed @ 0xe06f8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:43 +0000
//
int __fastcall FMOD::Sound::setMusicSpeed(FMOD::Sound *this, float a2)
{
int v4; // r6
int v5; // r0
int v6; // r0
int v7; // r0
__int16 v9[128]; // [sp+8h] [bp-118h] BYREF
int v10; // [sp+108h] [bp-18h] BYREF
_DWORD *v11; // [sp+10Ch] [bp-14h] BYREF
v10 = 0;
v4 = sub_54E84((int)this, &v11, (int)&v10);
if ( !v4 )
{
v5 = v11[47];
__dmb(0xBu);
if ( !v5 || (v6 = v11[47], __dmb(0xBu), v6 == 7) || (v7 = v11[47], __dmb(0xBu), v7 == 5) )
{
v4 = (*(int (__fastcall **)(_DWORD *, _DWORD))(*v11 + 176))(v11, LODWORD(a2));
if ( !v4 )
{
v4 = 0;
goto LABEL_10;
}
}
else
{
v4 = 46;
}
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_5C934(v9, 256, a2);
sub_BAB40(v4, 5, this, "Sound::setMusicSpeed", v9);
}
LABEL_10:
sub_6429C(&v10);
return v4;
}