//
// sub_1800CCA80 from 0x1800cca80 to 0x1800ccb00 (128 bytes)
//
// 15 xrefs:
// > sub_180012360 @ 0x180012369
// > FMOD::ChannelGroup::addGroup @ 0x1800a0ad0
// > FMOD::ChannelGroup::getChannel @ 0x1800a0be4
// > FMOD::ChannelGroup::getGroup @ 0x1800a0d14
// > FMOD::ChannelGroup::getName @ 0x1800a0e45
// > FMOD::ChannelGroup::getNumChannels @ 0x1800a0f7d
// > FMOD::ChannelGroup::getNumGroups @ 0x1800a104d
// > FMOD::ChannelGroup::getParentGroup @ 0x1800a111d
// > FMOD::ChannelGroup::release @ 0x1800a11e5
// > sub_1800D10B0 @ 0x1800d111d
// > sub_1800D1500 @ 0x1800d1568
// > ??> @ 0x18018b2f0
// > ??> @ 0x18018b304
// > ??> @ 0x18018b314
// > ??> @ 0x1801fe6d0
//
// 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_1800CCA80(__int64 a1, _QWORD *a2, _QWORD *a3)
{
__int64 result; // rax
__int64 v5; // rbx
if ( !a2 )
return 31;
*a2 = a1;
if ( !a1 || (a1 & 3) != 0 || *(_DWORD *)(a1 + 472) != -899895835 )
return 30;
if ( !a3 )
return 0;
if ( *a3 )
return 28;
v5 = *(_QWORD *)(a1 + 8);
if ( !v5 )
return 28;
result = sub_1801021E0(*(_QWORD *)(a1 + 8));
if ( !(_DWORD)result )
{
*a3 = v5;
return 0;
}
return result;
}