//
// FMODAudioEngine::waitUntilSoundReady from 0x6cb004 to 0x6cb0b4 (176 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::setMusicTimeMS @ 0x6d6a14
// > FMODAudioEngine::preloadMusic @ 0x6d818c
// > ??> @ 0xa6ea0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:51:23 +0000
//
__int64 __fastcall FMODAudioEngine::waitUntilSoundReady(FMODAudioEngine *this, FMOD::Sound *a2)
{
__int64 result; // x0
unsigned int v4; // [xsp+44h] [xbp+44h]
if ( !a2 )
return 2;
do
{
*((_DWORD *)this + 134) = FMOD::Sound::getOpenState();
ERRCHECK_fn();
result = v4;
}
while ( (v4 & 0xFFFFFFFD) != 0 && v4 != 6 );
return result;
}