//
// FMOD::Sound::setDefaults from 0xd856c to 0xd8624 (184 bytes)
//
// 4 xrefs:
// > FMOD::Sound::setDefaults @ 0x10717c
// > ??> @ 0x3178
// > FMOD::Sound::setDefaults @ 0x107174
// > ??> @ 0x110180
//
// 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::setDefaults(FMOD::Sound *this, long double a2, unsigned int a3)
{
unsigned int v5; // w21
__int64 v6; // x0
char v7; // w8
__int64 v8; // x0
__int64 v9; // x0
__int64 v11; // x0
int v12; // w8
char v13; // zf
_BYTE v14[8]; // [xsp+108h] [xbp-38h] BYREF
__int64 v15; // [xsp+118h] [xbp-28h] BYREF
v5 = sub_DA46C(this, &v15, v14);
if ( !v5 )
{
v11 = sub_DA368();
if ( !v12 || (sub_DA358(v11), v13) )
{
v6 = (*(__int64 (__fastcall **)(__int64, _QWORD, long double))(*(_QWORD *)v15 + 56LL))(v15, a3, a2);
v5 = v6;
if ( !(_DWORD)v6 )
goto LABEL_4;
}
else
{
v5 = 46;
}
}
v6 = sub_DA344();
if ( v7 < 0 )
{
v8 = sub_DA5E4(v6);
v9 = sub_D8624(v8, a2);
v6 = sub_DA388(v9);
}
LABEL_4:
sub_DA4E8(v6);
return v5;
}