//
// FMODAudioEngine::unloadAllEffects from 0x1001b9b58 to 0x1001b9bc8 (112 bytes)
//
// 3 xrefs:
// > PlayLayer::onQuit @ 0x100142268
// > EditorPauseLayer::playStep2 @ 0x100444a2c
// > EditorPauseLayer::onExitEditor @ 0x100444b44
//
// 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:00:11 +0000
//
_QWORD *__fastcall FMODAudioEngine::unloadAllEffects(__int64 a1)
{
_QWORD *result; // x0
_QWORD *v3; // x20
result = FMODAudioEngine::stopAllEffects(a1);
v3 = *(_QWORD **)(a1 + 376);
if ( v3 )
{
do
{
while ( (*((_BYTE *)v3 + 84) & 1) != 0 )
{
v3 = (_QWORD *)*v3;
if ( !v3 )
goto LABEL_6;
}
sub_100011A50(a1 + 1192, v3 + 5);
sub_1001BD900(a1 + 400, v3 + 2);
result = (_QWORD *)sub_1001BDA74(a1 + 360, v3);
v3 = result;
}
while ( result );
}
LABEL_6:
dword_1009F4378 = 0;
return result;
}