//
// FMOD::Sound::getUserData from 0xb66a4 to 0xb670c (104 bytes)
//
// 1 xrefs:
// > FMOD::Sound::getUserData @ 0xe0728
//
// 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::getUserData(FMOD::Sound *this, void **a2)
{
int v4; // r5
_BYTE v6[256]; // [sp+4h] [bp-114h] BYREF
int v7; // [sp+104h] [bp-14h] BYREF
v4 = sub_54E84((int)this, &v7, 0);
if ( !v4 )
{
v4 = (*(int (__fastcall **)(int, void **))(*(_DWORD *)v7 + 188))(v7, a2);
if ( !v4 )
return 0;
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_5CBD8((int)v6, 256, a2);
sub_BAB40(v4, 5, this, "Sound::getUserData", v6);
}
return v4;
}