// // FMODAudioEngine::isMusicPlaying from 0x5b383c to 0x5b399c (352 bytes) // // 7 xrefs: // > GameManager::fadeInMusic @ 0x5e8cd4 // > GameManager::playMenuMusic @ 0x5efdfc // > CustomSongCell::onDelete @ 0x60b438 // > CustomSongWidget::onPlayback @ 0x742830 // > CustomSongWidget::updatePlaybackBtn @ 0x743efc // > CustomSongWidget::deleteSong @ 0x747520 // > @ 0x79038 // // 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 // // local variable allocation has failed, the output may be wrong! bool FMODAudioEngine::isMusicPlaying(FMODAudioEngine *a1, int a2) { int v2; // w2 const void **v3; // x20 int v4; // w23 _DWORD *v6; // x21 const void *v7; // x2 unsigned __int64 v8; // x20 const void *v9; // x1 unsigned __int64 v10; // x22 size_t v11; // x2 unsigned __int64 v12; // x20 char *v13; // x0 bool v14; // w20 bool isMusicPlaying; // w0 unsigned int *v17; // x21 int v18; // w1 void *v19; // [xsp+50h] [xbp+50h] BYREF v3 = *(const void ***)&a2; v4 = v2; FMODAudioEngine::getActiveMusic(a1, v2, (__int64)&v19); v6 = v19; v7 = *v3; v8 = *((_QWORD *)v19 - 3); v9 = v7; v10 = *((_QWORD *)v7 - 3); if ( v10 > v8 ) v11 = *((_QWORD *)v19 - 3); else v11 = *((_QWORD *)v7 - 3); if ( memcmp(v19, v9, v11) || (v12 = v8 - v10, v12 + 0x80000000 > 0xFFFFFFFF) || (_DWORD)v12 ) { v13 = (char *)(v6 - 6); v14 = 0; if ( v6 - 6 == (_DWORD *)&qword_124B6B0 ) return v14; } else { isMusicPlaying = FMODAudioEngine::isMusicPlaying(a1, v4); v6 = v19; v14 = isMusicPlaying; v13 = (char *)v19 - 24; if ( (char *)v19 - 24 == (char *)&qword_124B6B0 ) return v14; } if ( &pthread_create ) { v17 = v6 - 2; do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(v6 - 2); *(v6 - 2) = v18 - 1; } if ( v18 <= 0 ) operator delete(v13); return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source