//
// sub_579DC from 0x579dc to 0x57a3c (96 bytes)
//
// 7 xrefs:
// > sub_55F6C @ 0x55f70
// > sub_5D078 @ 0x5d0bc
// > sub_5D1CC @ 0x5d20c
// > FMOD::ChannelGroup::release @ 0xd2018
// > FMOD::ChannelGroup::addGroup @ 0xd20b0
// > sub_D2534 @ 0xd2554
// > sub_D2558 @ 0xd2570
//
// 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_579DC(__int64 a1, _QWORD *a2, _QWORD *a3)
{
__int64 result; // x0
if ( !a2 )
return 31;
*a2 = a1;
if ( !a1 || (a1 & 3) != 0 || *(_DWORD *)(a1 + 472) != -899895835 )
return 30;
if ( !a3 )
return 0;
result = sub_50238(a3, *(_QWORD *)(a1 + 8));
if ( !(_DWORD)result )
return 0;
return result;
}