//
// FMOD::Sound::getName from 0xb52dc to 0xb536c (144 bytes)
//
// 2 xrefs:
// > ??> @ 0xb52da
// > FMOD::Sound::getName @ 0xe0568
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:43 +0000
//
int __fastcall FMOD::Sound::getName(FMOD::Sound *this, char *a2, unsigned int a3)
{
int v6; // r5
int v7; // r0
int v8; // r0
_BYTE v10[256]; // [sp+8h] [bp-120h] BYREF
int v11; // [sp+108h] [bp-20h] BYREF
_DWORD *v12; // [sp+10Ch] [bp-1Ch] BYREF
v11 = 0;
v6 = sub_54E84((int)this, &v12, (int)&v11);
if ( !v6 )
{
v7 = v12[47];
__dmb(0xBu);
if ( v7 && (v8 = v12[47], __dmb(0xBu), v8 != 7) )
{
v6 = 46;
}
else
{
v6 = (*(int (__fastcall **)(_DWORD *, char *, unsigned int))(*v12 + 72))(v12, a2, a3);
if ( !v6 )
{
v6 = 0;
goto LABEL_9;
}
}
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_B0384(v10, 256, a2, a3);
sub_BAB40(v6, 5, this, "Sound::getName", v10);
}
LABEL_9:
sub_6429C(&v11);
return v6;
}