//
// FMOD::Sound::getMode from 0xd9c7c to 0xd9cf8 (124 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getMode @ 0x10732c
// > ??> @ 0x43c0
// > FMOD::Sound::getMode @ 0x107324
// > ??> @ 0x110258
//
// 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::getMode(FMOD::Sound *this, unsigned int *a2)
{
_DWORD *v2; // x20
unsigned int v3; // w21
char v4; // w8
__int64 v5; // x0
__int64 v7; // x0
int v8; // w8
char v9; // zf
__int64 v10; // x0
__int64 v11; // x8
_BYTE v12[296]; // [xsp+8h] [xbp-138h] BYREF
v3 = sub_DA3DC(this, a2);
if ( !v3 )
{
v7 = sub_DA368();
if ( !v8 || (v7 = sub_DA358(v7), v9) )
{
v10 = sub_DA478(v7);
v3 = (*(__int64 (__fastcall **)(__int64))(v11 + 288))(v10);
if ( !v3 )
return v3;
}
else
{
v3 = 46;
}
}
sub_DA344();
if ( v4 < 0 )
{
v5 = sub_71660((__int64)v12, 256, v2);
sub_DA388(v5);
}
return v3;
}