//
// FMOD::Sound::getFormat from 0xd8e1c to 0xd8efc (224 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getFormat @ 0x10723c
// > ??> @ 0x4780
// > FMOD::Sound::getFormat @ 0x107234
// > ??> @ 0x1101e0
//
// 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::getFormat(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
unsigned int v9; // w24
__int64 v10; // x0
char v11; // w8
__int64 v12; // x0
__int64 v13; // x1
__int64 v15; // x0
int v16; // w8
char v17; // zf
__int64 v18; // [xsp+108h] [xbp-38h] BYREF
v9 = sub_DA4B0(a1, &v18, 0);
if ( !v9 )
{
v15 = sub_DA3A0();
if ( !v16 || (sub_DA358(v15), v17) )
{
v9 = (*(__int64 (__fastcall **)(__int64, __int64, __int64, __int64, __int64))(*(_QWORD *)v18 + 160LL))(
v18,
a2,
a3,
a4,
a5);
if ( !v9 )
return v9;
}
else
{
v9 = 46;
}
}
v10 = sub_DA344();
if ( v11 < 0 )
{
v12 = sub_DA69C(v10);
sub_D8EFC(v12, v13, a2, a3, a4, a5);
sub_DA398(v9, 5);
}
return v9;
}