//
// FMODAudioEngine::unloadAllEffects from 0x3ea060 to 0x3ea0d8 (120 bytes)
//
// 3 xrefs:
// > PlayLayer::onQuit @ 0x407b38
// > EditorPauseLayer::onExitEditor @ 0x5091aa
// > EditorPauseLayer::playStep2 @ 0x50920e
//
// 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:07 +0000
//
unsigned __int8 *__fastcall FMODAudioEngine::unloadAllEffects(FMOD::ChannelControl **this)
{
unsigned __int8 *result; // r0
unsigned __int8 *v3; // r4
FMOD::ChannelControl *v4; // r3
int *v5; // r1
result = (unsigned __int8 *)FMODAudioEngine::stopAllEffects(this);
v3 = (unsigned __int8 *)*(this + 73);
while ( v3 )
{
if ( v3[48] )
{
v3 = *(unsigned __int8 **)v3;
}
else
{
v4 = *(this + 185);
if ( v4 == *(this + 186) )
{
std::vector::__push_back_slow_path((int)(this + 184), (_DWORD *)v3 + 5);
}
else
{
if ( v4 )
*(_DWORD *)v4 = *((_DWORD *)v3 + 5);
*(this + 185) = (FMOD::ChannelControl *)((char *)*(this + 185) + 4);
}
v5 = std::__hash_table,std::equal_to,std::allocator>::find(
this + 76,
v3 + 8);
if ( v5 )
std::__hash_table,std::equal_to,std::allocator>::erase(
this + 76,
v5);
result = (unsigned __int8 *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::erase(
this + 71,
v3);
v3 = result;
}
}
dword_D2B4B8 = 0;
return result;
}