//
// FMOD::SoundGroup::getSound from 0x1004c3120 to 0x1004c3248 (296 bytes)
//
// 1 xrefs:
// > sub_100453F78 @ 0x100453f7c
//
// 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
//
// local variable allocation has failed, the output may be wrong!
FMOD_RESULT __fastcall FMOD::SoundGroup::getSound(FMOD::SoundGroup *a1, int a2, FMOD::Sound **a3)
{
__int64 v4; // x22
int v6; // w3
int v7; // w4
int v8; // w5
int v9; // w6
int v10; // w7
__int64 v11; // x19
int v12; // w0
__int64 v13; // x22
int v14; // w3
int v15; // w4
int v16; // w5
int v17; // w6
int v18; // w7
int v19; // w0
int v20; // w3
int v21; // w4
int v22; // w5
int v23; // w6
int v24; // w7
__int64 v26; // [xsp+8h] [xbp-158h] BYREF
__int64 v27; // [xsp+10h] [xbp-150h] BYREF
_BYTE v28[256]; // [xsp+18h] [xbp-148h] BYREF
v4 = *(_QWORD *)&a2;
v26 = 0;
v11 = sub_1004C34D0(a1, &v27, &v26);
if ( (_DWORD)v11 || (v11 = sub_1004C3B94(v27, v4, a3), (_DWORD)v11) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
v12 = sub_100435CDC(v28, 0x100u, v4, v6, v7, v8, v9, v10);
v13 = v12;
v19 = sub_100435EB4(&v28[v12], (unsigned int)(256 - v12), ", ", v14, v15, v16, v17, v18);
sub_100436324((int)&v28[v13 + v19], (unsigned int)(256 - (v13 + v19)), (char)a3, v20, v21, v22, v23, v24);
sub_10048489C(v11, 6, (__int64)a1, (__int64)"SoundGroup::getSound", (__int64)v28);
}
}
if ( v26 )
sub_100442D80(v26);
return (unsigned int)v11;
}