//
// FMODAudioEngine::waitUntilSoundReady from 0x3e82ec to 0x3e8350 (100 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::setMusicTimeMS @ 0x3eeb08
// > FMODAudioEngine::preloadMusic @ 0x3ef95e
//
// 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:05 +0000
//
int __fastcall FMODAudioEngine::waitUntilSoundReady(FMODAudioEngine *this, FMOD::Sound *a2)
{
int result; // r0
int v4; // [sp+8h] [bp+0h]
if ( !a2 )
return 2;
do
{
*((_DWORD *)this + 97) = FMOD::Sound::getOpenState();
ERRCHECK_fn();
result = v4;
}
while ( v4 && v4 != 6 && v4 != 2 );
return result;
}