//
// FMODAudioEngine::getChannelGroup from 0x3eb9f8 to 0x3ebb02 (266 bytes)
//
// 7 xrefs:
// > FMODAudioEngine::setChannelVolume @ 0x3eed5e
// > FMODAudioEngine::setChannelVolume @ 0x3eed84
// > FMODAudioEngine::setChannelVolumeMod @ 0x3eef96
// > FMODAudioEngine::setChannelVolumeMod @ 0x3eefbc
// > FMODAudioEngine::setChannelPitch @ 0x3ef090
// > FMODAudioEngine::setChannelPitch @ 0x3ef0a0
// > FMODAudioEngine::playEffectAdvanced @ 0x3f0e78
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:08 +0000
//
FMOD::ChannelGroup *__fastcall FMODAudioEngine::getChannelGroup(
FMODAudioEngine *this,
unsigned int a2,
FMOD::ChannelGroup *a3,
FMOD::ChannelGroup *a4)
{
char *v7; // r8
char *v8; // r0
FMOD::ChannelGroup **v9; // r0
unsigned int v10; // [sp+4h] [bp-Ch] BYREF
FMOD::ChannelGroup *v11[2]; // [sp+8h] [bp-8h] BYREF
v11[0] = a3;
v11[1] = a4;
v10 = a2;
if ( a2 == -999999 )
return *((FMOD::ChannelGroup **)this + 96);
if ( a2 )
{
v11[0] = nullptr;
if ( a3 )
v7 = (char *)this + 924;
else
v7 = (char *)this + 904;
if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
v7,
&v10) )
{
v11[0] = *(FMOD::ChannelGroup **)std::unordered_map::operator[]((int)v7, &v10);
}
if ( !v11[0] )
{
FMOD::System::createChannelGroup(*((FMOD::System **)this + 91), nullptr, v11);
if ( !std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 132,
&v10) )
*std::unordered_map::operator[]((int)this + 528, &v10) = 1065353216;
if ( !std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 137,
&v10) )
*std::unordered_map::operator[]((int)this + 548, &v10) = 1065353216;
if ( !std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 142,
&v10) )
*std::unordered_map::operator[]((int)this + 568, &v10) = 1065353216;
FMOD::ChannelGroup::addGroup();
if ( a3 )
v8 = (char *)this + 924;
else
v8 = (char *)this + 904;
v9 = (FMOD::ChannelGroup **)std::unordered_map::operator[]((int)v8, &v10);
*v9 = v11[0];
}
return v11[0];
}
else if ( a3 )
{
return *((FMOD::ChannelGroup **)this + 95);
}
else
{
return *((FMOD::ChannelGroup **)this + 94);
}
}