//
// FMOD::Sound::setSoundGroup from 0xb59f0 to 0xb5a8a (154 bytes)
//
// 1 xrefs:
// > FMOD::Sound::setSoundGroup @ 0xe05f8
//
// 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::setSoundGroup(int a1, const void *a2)
{
int v4; // r6
int v5; // r0
int v6; // r0
_DWORD v8[64]; // [sp+4h] [bp-114h] BYREF
int *v9; // [sp+104h] [bp-14h] BYREF
v4 = sub_54E84(a1, &v9, 0);
if ( v4 )
goto LABEL_8;
v8[0] = 0;
v4 = sub_431D0(v8, v9[39]);
if ( !v4 )
{
v5 = v9[47];
__dmb(0xBu);
if ( v5 && (v6 = v9[47], __dmb(0xBu), v6 != 7) )
v4 = 46;
else
v4 = (*(int (__fastcall **)(int *, const void *))(*v9 + 108))(v9, a2);
}
sub_444C0(v8);
if ( !v4 )
return 0;
LABEL_8:
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_5CBD8((int)v8, 256, a2);
sub_BAB40(v4, 5, a1, "Sound::setSoundGroup", v8);
}
return v4;
}