//
// FMODAudioEngine::unloadAllEffects from 0x10013ccf4 to 0x10013cd64 (112 bytes)
//
// 3 xrefs:
// > PlayLayer::onQuit @ 0x10011958c
// > EditorPauseLayer::playStep2 @ 0x10039e6d0
// > EditorPauseLayer::onExitEditor @ 0x10039e7d4
//
// 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
//
void __fastcall FMODAudioEngine::unloadAllEffects(FMODAudioEngine *a1)
{
std::__hash_node_base, void *> *>::__next_pointer i; // x20
FMODAudioEngine::stopAllEffects(a1);
for ( i = a1->m_fmodSounds.__table_.__p1_.__value_.__next_;
i;
i = (std::__hash_node_base, void *> *>::__next_pointer)sub_10014186C(&a1->m_fmodSounds, i) )
{
while ( (BYTE4(i[10].__next_) & 1) != 0 )
{
i = i->__next_;
if ( !i )
goto LABEL_6;
}
sub_1000115B8((__int64)&a1->m_removedSounds, &i[5].__next_);
sub_1001416F8(&a1->m_temporarySoundPaths, &i[2]);
}
LABEL_6:
dword_10086B568 = 0;
}