//
// sub_10057FAA0 from 0x10057faa0 to 0x10057fb2c (140 bytes)
//
// 11 xrefs:
// > FMOD::ChannelGroup::release @ 0x10057f2e0
// > FMOD::ChannelGroup::addGroup @ 0x10057f3b8
// > FMOD::ChannelGroup::getNumGroups @ 0x10057f4d8
// > FMOD::ChannelGroup::getGroup @ 0x10057f5bc
// > FMOD::ChannelGroup::getParentGroup @ 0x10057f6d8
// > FMOD::ChannelGroup::getName @ 0x10057f7bc
// > FMOD::ChannelGroup::getNumChannels @ 0x10057f8d8
// > FMOD::ChannelGroup::getChannel @ 0x10057f9bc
// > sub_1005D43E0 @ 0x1005d4424
// > sub_1005D452C @ 0x1005d456c
// > sub_10062EA14 @ 0x10062ea18
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:08:29 +0000
//
__int64 __fastcall sub_10057FAA0(__int64 a1, _QWORD *a2, __int64 *a3)
{
__int64 result; // x0
__int64 v6; // x20
if ( !a2 )
return 31;
*a2 = a1;
result = 30;
if ( a1 && (a1 & 3) == 0 )
{
if ( *(_DWORD *)(a1 + 472) == -899895835 )
{
if ( a3 )
{
v6 = *(_QWORD *)(a1 + 8);
result = 28;
if ( v6 && !*a3 )
{
result = sub_100568E64(v6);
if ( !(_DWORD)result )
*a3 = v6;
}
}
else
{
return 0;
}
}
else
{
return 30;
}
}
return result;
}