//
// FMOD::Sound::getName from 0xd8cf4 to 0xd8d88 (148 bytes)
//
// 4 xrefs:
// > FMOD::Sound::getName @ 0x10721c
// > ??> @ 0x1e88
// > FMOD::Sound::getName @ 0x107214
// > ??> @ 0x1101d0
//
// 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::getName(FMOD::Sound *this, char *a2)
{
unsigned int v2; // w22
__int64 v3; // x0
char v4; // w8
_BYTE *v5; // x0
unsigned int v6; // w1
const char *v7; // x2
unsigned int v8; // w3
__int64 v10; // x0
int v11; // w8
char v12; // zf
__int64 v13; // x0
__int64 v14; // x8
v2 = sub_DA3AC(this);
if ( !v2 )
{
v10 = sub_DA368();
if ( !v11 || (v10 = sub_DA358(v10), v12) )
{
v13 = sub_DA594(v10);
v3 = (*(__int64 (__fastcall **)(__int64))(v14 + 144))(v13);
v2 = v3;
if ( !(_DWORD)v3 )
goto LABEL_4;
}
else
{
v2 = 46;
}
}
v3 = sub_DA344();
if ( v4 < 0 )
{
v5 = (_BYTE *)sub_DA580(v3);
sub_D2388(v5, v6, v7, v8);
v3 = sub_DA398(v2, 5);
}
LABEL_4:
sub_DA4E8(v3);
return v2;
}