//
// FMOD::Sound::setMode from 0xd9bfc to 0xd9c7c (128 bytes)
//
// 4 xrefs:
// > FMOD::Sound::setMode @ 0x10731c
// > ??> @ 0x49c0
// > FMOD::Sound::setMode @ 0x107314
// > ??> @ 0x110250
//
// 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::setMode(FMOD::Sound *this)
{
unsigned int v1; // w21
__int64 v2; // x0
char v3; // w8
__int64 v4; // x0
__int64 v6; // x0
int v7; // w8
char v8; // zf
__int64 v9; // x0
__int64 v10; // x8
v1 = sub_DA3C4(this);
if ( !v1 )
{
v6 = sub_DA368();
if ( !v7 || (v6 = sub_DA358(v6), v8) )
{
v9 = sub_DA608(v6);
v2 = (*(__int64 (__fastcall **)(__int64))(v10 + 280))(v9);
v1 = v2;
if ( !(_DWORD)v2 )
goto LABEL_4;
}
else
{
v1 = 46;
}
}
v2 = sub_DA344();
if ( v3 < 0 )
{
v4 = sub_DA648(v2);
v2 = sub_DA388(v4);
}
LABEL_4:
sub_DA538(v2);
return v1;
}