//
// FMODAudioEngine::isSoundReady from 0x5abc80 to 0x5abd04 (132 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::updateQueuedEffects @ 0x5ba238
// > FMODAudioEngine::updateQueuedMusic @ 0x5bae40
// > ??> @ 0x9dfb0
//
// 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
//
bool FMODAudioEngine::isSoundReady(FMODAudioEngine *a1, FMOD::Sound *a2)
{
int v3; // [xsp+24h] [xbp+24h] BYREF
a1->m_lastResult = FMOD::Sound::getOpenState(a2, (FMOD_OPENSTATE *)&v3, nullptr, nullptr, nullptr);
ERRCHECK_fn();
return (v3 & 0xFFFFFFFD) == 0 || v3 == 6;
}