//
// FMOD::ChannelGroup::getGroup from 0xd21e0 to 0xd224c (108 bytes)
//
// 4 xrefs:
// > FMOD::ChannelGroup::getGroup @ 0x10782c
// > ??> @ 0x4cf0
// > FMOD::ChannelGroup::getGroup @ 0x107824
// > ??> @ 0x1104d8
//
// 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 12:14:51 +0000
//
__int64 __fastcall FMOD::ChannelGroup::getGroup(FMOD::ChannelGroup *this, int a2, FMOD::ChannelGroup **a3)
{
unsigned int v5; // w20
__int64 v6; // x0
char v7; // w8
__int64 v8; // x0
__int64 v9; // x0
__int64 v11; // [xsp+118h] [xbp-28h]
v5 = sub_D2558(this);
if ( v5 || (v6 = sub_589FC(v11, a2, a3), (v5 = v6) != 0) )
{
v6 = sub_D2510();
if ( v7 < 0 )
{
v8 = sub_D25A8(v6);
v9 = sub_D224C(v8);
v6 = sub_D2524(v9);
}
}
sub_D25BC(v6);
return v5;
}