//
// FMOD::Sound::getMode from 0xb5ffc to 0xb607c (128 bytes)
//
// 1 xrefs:
// > FMOD::Sound::getMode @ 0xe0678
//
// 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::getMode(FMOD::Sound *this, unsigned int *a2)
{
int v4; // r6
int v5; // r0
int v6; // r0
_BYTE v8[256]; // [sp+4h] [bp-114h] BYREF
_DWORD *v9; // [sp+104h] [bp-14h] BYREF
v4 = sub_54E84((int)this, &v9, 0);
if ( !v4 )
{
v5 = v9[47];
__dmb(0xBu);
if ( v5 && (v6 = v9[47], __dmb(0xBu), v6 != 7) )
{
v4 = 46;
}
else
{
v4 = (*(int (__fastcall **)(_DWORD *, unsigned int *))(*v9 + 144))(v9, a2);
if ( !v4 )
return 0;
}
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_5CA18((int)v8, 256, a2);
sub_BAB40(v4, 5, this, "Sound::getMode", v8);
}
return v4;
}