//
// FMOD::Sound::getDefaults from 0xd8688 to 0xd8714 (140 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getDefaults @ 0x10718c
// > ??> @ 0x3f28
// > FMOD::Sound::getDefaults @ 0x107184
// > ??> @ 0x110188
//
// 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::getDefaults(FMOD::Sound *this, float *a2, int *a3)
{
unsigned int v3; // w22
char v4; // w8
__int64 v5; // x0
__int64 v7; // x0
int v8; // w8
char v9; // zf
__int64 v10; // x0
__int64 v11; // x8
__int64 v12; // [xsp+0h] [xbp-140h] BYREF
v3 = sub_DA444(this, a2, a3);
if ( !v3 )
{
v7 = sub_DA368();
if ( !v8 || (v7 = sub_DA358(v7), v9) )
{
v10 = sub_DA4F0(v7);
v3 = (*(__int64 (__fastcall **)(__int64))(v11 + 64))(v10);
if ( !v3 )
return v3;
}
else
{
v3 = 46;
}
}
sub_DA344();
if ( v4 < 0 )
{
v5 = sub_DA55C(&v12);
sub_D8714(v5);
sub_DA398(v3, 5);
}
return v3;
}