//
// sub_1004C34D0 from 0x1004c34d0 to 0x1004c3544 (116 bytes)
//
// 17 xrefs:
// > FMOD::SoundGroup::release @ 0x1004c2624
// > FMOD::SoundGroup::getSystemObject @ 0x1004c26ec
// > FMOD::SoundGroup::setMaxAudible @ 0x1004c27c4
// > FMOD::SoundGroup::getMaxAudible @ 0x1004c289c
// > FMOD::SoundGroup::setMaxAudibleBehavior @ 0x1004c2974
// > FMOD::SoundGroup::getMaxAudibleBehavior @ 0x1004c2a4c
// > FMOD::SoundGroup::setMuteFadeSpeed @ 0x1004c2b28
// > FMOD::SoundGroup::getMuteFadeSpeed @ 0x1004c2c04
// > FMOD::SoundGroup::setVolume @ 0x1004c2ce0
// > FMOD::SoundGroup::getVolume @ 0x1004c2dbc
// > FMOD::SoundGroup::stop @ 0x1004c2e90
// > FMOD::SoundGroup::getName @ 0x1004c2f64
// > FMOD::SoundGroup::getNumSounds @ 0x1004c3080
// > FMOD::SoundGroup::getSound @ 0x1004c3164
// > FMOD::SoundGroup::getNumPlaying @ 0x1004c3280
// > FMOD::SoundGroup::setUserData @ 0x1004c3358
// > FMOD::SoundGroup::getUserData @ 0x1004c3430
//
// 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 sub_1004C34D0(__int64 a1, _QWORD *a2, _QWORD *a3)
{
__int64 v6; // x22
__int64 result; // x0
if ( !a1 )
return 30;
if ( !a2 )
return 31;
if ( !a3 )
{
LABEL_8:
*a2 = a1;
return 0;
}
v6 = *(_QWORD *)(a1 + 24);
result = 28;
if ( v6 )
{
if ( !*a3 )
{
result = sub_100442CFC(*(_QWORD *)(a1 + 24));
if ( !(_DWORD)result )
{
*a3 = v6;
goto LABEL_8;
}
}
}
return result;
}