//
// FMODAudioEngine::updateTemporaryEffects from 0x3ebf2c to 0x3ebfe4 (184 bytes)
//
// 1 xrefs:
// > sub_3F1D80 @ 0x3f1dbe
//
// 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:09 +0000
//
void __fastcall FMODAudioEngine::updateTemporaryEffects(FMODAudioEngine *this, int a2, int a3)
{
_DWORD *v3; // r8
int v5; // r7
int *v6; // r5
int *v7; // r3
int *v8; // r1
v3 = (_DWORD *)((char *)this + 284);
v5 = *((_DWORD *)this + 78);
while ( v5 )
{
v6 = std::unordered_map::operator[]((int)v3, (unsigned __int8 *)(v5 + 8));
if ( v6[5] || (*((_DWORD *)this + 97) = FMOD::Sound::getOpenState(), ERRCHECK_fn(), (a3 & 0xFFFFFFFD) != 0) )
{
v5 = *(_DWORD *)v5;
}
else
{
v7 = *((int **)this + 185);
if ( v7 == *((int **)this + 186) )
{
std::vector::__push_back_slow_path((int)this + 736, v6);
}
else
{
if ( v7 )
*v7 = *v6;
*((_DWORD *)this + 185) += 4;
}
v8 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
v3,
(unsigned __int8 *)v6 + 4);
if ( v8 )
std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::erase(
v3,
v8);
v5 = std::__hash_table,std::equal_to,std::allocator>::erase(
(_DWORD *)this + 76,
(_DWORD *)v5);
}
}
}