//
// FMOD::Sound::getDefaults from 0xb4d44 to 0xb4dcc (136 bytes)
//
// 1 xrefs:
// > FMOD::Sound::getDefaults @ 0xe04d8
//
// 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:42 +0000
//
int __fastcall FMOD::Sound::getDefaults(FMOD::Sound *this, float *a2, int *a3)
{
int v6; // r5
int v7; // r0
int v8; // r0
_BYTE v10[256]; // [sp+4h] [bp-11Ch] BYREF
_DWORD *v11; // [sp+104h] [bp-1Ch] BYREF
v6 = sub_54E84((int)this, &v11, 0);
if ( !v6 )
{
v7 = v11[47];
__dmb(0xBu);
if ( v7 && (v8 = v11[47], __dmb(0xBu), v8 != 7) )
{
v6 = 46;
}
else
{
v6 = (*(int (__fastcall **)(_DWORD *, float *, int *))(*v11 + 32))(v11, a2, a3);
if ( !v6 )
return 0;
}
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_B4DD4(v10, 256, a2, a3);
sub_BAB40(v6, 5, this, "Sound::getDefaults", v10);
}
return v6;
}