//
// FMOD::Sound::getSubSound from 0xd8ba8 to 0xd8c50 (168 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getSubSound @ 0x1071fc
// > ??> @ 0x62e0
// > FMOD::Sound::getSubSound @ 0x1071f4
// > ??> @ 0x1101c0
//
// 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::getSubSound(FMOD::Sound *this, int a2, FMOD::Sound **a3)
{
unsigned int v3; // w22
__int64 v4; // x0
int v5; // w8
int v6; // w9
__int64 v7; // x0
__int64 v8; // x8
__int64 v9; // x0
char v10; // w8
__int64 v11; // x0
v3 = sub_DA3AC(this);
if ( !v3 )
{
v4 = sub_DA3A0();
if ( v6 && v5 )
{
v3 = 46;
}
else
{
v7 = sub_DA5A8(v4);
v9 = (*(__int64 (__fastcall **)(__int64))(v8 + 120))(v7);
v3 = v9;
if ( !(_DWORD)v9 )
goto LABEL_8;
}
}
v9 = sub_DA344();
if ( v10 < 0 )
{
v11 = sub_DA56C(v9);
sub_D8C50(v11);
v9 = sub_DA398(v3, 5);
}
LABEL_8:
sub_DA4E8(v9);
return v3;
}