//
// FMOD::Sound::getNumTags from 0xd9040 to 0xd90d8 (152 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getNumTags @ 0x10725c
// > ??> @ 0x7840
// > FMOD::Sound::getNumTags @ 0x107254
// > ??> @ 0x1101f0
//
// 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::getNumTags(FMOD::Sound *this, int *a2, int *a3)
{
unsigned int v3; // w22
__int64 v4; // x0
char v5; // w8
__int64 v6; // x0
__int64 v8; // x0
int v9; // w8
char v10; // zf
__int64 v11; // x0
__int64 v12; // x8
_BYTE v13[272]; // [xsp+8h] [xbp-138h] BYREF
v3 = sub_DA3AC(this);
if ( !v3 )
{
v8 = sub_DA368();
if ( !v9 || (v8 = sub_DA358(v8), v10) )
{
v11 = sub_DA4F0(v8);
v4 = (*(__int64 (__fastcall **)(__int64))(v12 + 176))(v11);
v3 = v4;
if ( !(_DWORD)v4 )
goto LABEL_4;
}
else
{
v3 = 46;
}
}
v4 = sub_DA344();
if ( v5 < 0 )
{
v6 = sub_DA55C(v13);
sub_D90D8(v6);
v4 = sub_DA398(v3, 5);
}
LABEL_4:
sub_DA4E8(v4);
return v3;
}