// // FMODAudioEngine::releaseRemovedSounds from 0x1001391d8 to 0x10013929c (196 bytes) // // 1 xrefs: // > FMODAudioEngine::update @ 0x100138e38 // // 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::releaseRemovedSounds(FMODAudioEngine *a1) { __int64 v1; // x29 __int64 v2; // x30 FMOD::Sound **begin; // x8 __int64 v5; // x21 int v6; // w22 FMOD::Sound *v7; // x20 std::__vector_base::pointer end; // x9 FMOD::Sound **v9; // x20 std::__vector_base::pointer v10; // x8 signed __int64 v11; // x21 int v12; // [xsp+Ch] [xbp-34h] BYREF __int64 v13; // [xsp+30h] [xbp-10h] __int64 v14; // [xsp+38h] [xbp-8h] begin = a1->m_removedSounds.__begin_; if ( a1->m_removedSounds.__end_ != begin ) { v13 = v1; v14 = v2; v5 = 0; v6 = 0; do { v7 = begin[v5]; a1->m_lastResult = FMOD::Sound::getOpenState(v7, (FMOD_OPENSTATE *)&v12, nullptr, nullptr, nullptr); if ( (v12 & 0xFFFFFFFD) != 0 ) { ++v6; end = a1->m_removedSounds.__end_; } else { FMOD::Sound::release(v7); v9 = &a1->m_removedSounds.__begin_[v5]; v10 = a1->m_removedSounds.__end_; v11 = (char *)v10 - (char *)(v9 + 1); if ( v10 != v9 + 1 ) memmove(v9, v9 + 1, (char *)v10 - (char *)(v9 + 1)); end = (FMOD::Sound **)((char *)v9 + v11); a1->m_removedSounds.__end_ = (FMOD::Sound **)((char *)v9 + v11); } v5 = v6; begin = a1->m_removedSounds.__begin_; } while ( v6 < (unsigned __int64)(end - begin) ); } }