//
// FMODAudioEngine::updateTemporaryEffects from 0x100139114 to 0x1001391d8 (196 bytes)
//
// 1 xrefs:
// > FMODAudioEngine::update @ 0x100138e30
//
// 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::updateTemporaryEffects(FMODAudioEngine *a1)
{
std::__hash_node_base *>::__next_pointer i; // x20
__int64 v3; // x0
__int64 v4; // x22
FMOD_OPENSTATE v5; // [xsp+0h] [xbp-30h] BYREF
char v6; // [xsp+7h] [xbp-29h] BYREF
std::__hash_node_base *>::__next_pointer v7; // [xsp+8h] [xbp-28h] BYREF
for ( i = a1->m_temporarySoundPaths.__table_.__p1_.__value_.__next_;
i;
i = (std::__hash_node_base *>::__next_pointer)sub_100141824(
&a1->m_temporarySoundPaths,
i) )
{
while ( 1 )
{
v7 = i + 2;
v3 = sub_100140034(&a1->m_fmodSounds, &i[2], &unk_100637FD3, &v7, &v6);
if ( !*(_DWORD *)(v3 + 76) )
{
v4 = v3;
a1->m_lastResult = FMOD::Sound::getOpenState(*(FMOD::Sound **)(v3 + 40), &v5, nullptr, nullptr, nullptr);
if ( (v5 & 0xFFFFFFFD) == 0 )
break;
}
i = i->__next_;
if ( !i )
return;
}
sub_1000115B8((__int64)&a1->m_removedSounds, (_QWORD *)(v4 + 40));
sub_100141C34(&a1->m_fmodSounds, v4 + 48);
}
}