//
// FMOD::Sound::getSoundGroup from 0x1800a84f0 to 0x1800a85d2 (226 bytes)
//
// 3 xrefs:
// > FMOD_Sound_GetSoundGroup @ 0x1800c66a9
// > ??> @ 0x180194348
// > ??> @ 0x1801fbb38
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall FMOD::Sound::getSoundGroup(__int64 a1, __int64 a2)
{
int v3; // esi
unsigned int v4; // ebx
__int64 result; // rax
_DWORD *v6; // [rsp+30h] [rbp-128h] BYREF
_BYTE v7[256]; // [rsp+40h] [rbp-118h] BYREF
v3 = a1;
v4 = sub_1800E1460(a1, &v6, 0);
if ( !v4 )
{
if ( !v6[68] || v6[68] == 7 )
{
result = (*(__int64 (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v6 + 224LL))(v6, a2);
v4 = result;
if ( !(_DWORD)result )
return result;
}
else
{
v4 = 46;
}
}
if ( *((char *)off_1801AED20 + 16) < 0 )
{
sub_1800F3230(v7, 256, a2);
sub_1800B20E0(v4, 5, v3, (unsigned int)"Sound::getSoundGroup", (__int64)v7);
}
return v4;
}