// // FMODAudioEngine::waitUntilSoundReady from 0x1001bb3a0 to 0x1001bb438 (152 bytes) // // 2 xrefs: // > FMODAudioEngine::setMusicTimeMS @ 0x1001b7bdc // > FMODAudioEngine::preloadMusic @ 0x1001ba394 // // 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 11:00:12 +0000 // __int64 __fastcall FMODAudioEngine::waitUntilSoundReady(__int64 a1, __int64 a2) { __int64 v2; // x20 unsigned int v8; // [xsp+Ch] [xbp-34h] BYREF if ( !a2 ) return 2; do { *(_DWORD *)(a1 + 536) = FMOD::Sound::getOpenState(a2, &v8, 0, 0, 0); if ( v8 > 6 || ((1 << v8) & 0x45) == 0 ) v2 = (unsigned int)v2; else v2 = v8; } while ( v8 > 6 || ((1 << v8) & 0x45) == 0 ); return v2; }