// // GameManager::playMenuMusic from 0x71e0c8 to 0x71e288 (448 bytes) // // 2 xrefs: // > OptionsLayer::musicSliderChanged @ 0x8ee0ec // > @ 0x54af0 // // 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:52:22 +0000 // __int64 __fastcall GameManager::playMenuMusic(GameManager *this) { GameManager *v2; // x0 FMODAudioEngine *GameVariable; // x0 __int64 *MenuMusicFile; // x0 FMODAudioEngine *v5; // x21 _BOOL8 isMusicPlaying; // x0 _BOOL4 v7; // w20 FMODAudioEngine *v9; // x0 int v10; // w4 int v11; // w5 int v12; // w6 int v13; // w7 FMODAudioEngine *v14; // x21 char v15; // [xsp+0h] [xbp+0h] __int64 v16; // [xsp+30h] [xbp+30h] BYREF size_t v17; // [xsp+38h] [xbp+38h] void *v18; // [xsp+40h] [xbp+40h] __int64 v19; // [xsp+48h] [xbp+48h] BYREF size_t v20; // [xsp+50h] [xbp+50h] void *v21; // [xsp+58h] [xbp+58h] __int64 v22; // [xsp+60h] [xbp+60h] BYREF size_t v23; // [xsp+68h] [xbp+68h] void *v24; // [xsp+70h] [xbp+70h] v2 = (GameManager *)GameManager::sharedState(_stack_chk_guard); GameVariable = (FMODAudioEngine *)(unsigned __int8)GameManager::getGameVariable(v2, "0122"); if ( (_BYTE)GameVariable ) { v9 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(GameVariable); FMODAudioEngine::stopAllMusic(v9, 1); return _stack_chk_guard; } MenuMusicFile = GameManager::getMenuMusicFile(this, &v16); v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)MenuMusicFile); v19 = 0; v20 = 0; v21 = nullptr; if ( (v16 & 1) != 0 ) { std::string::__init(&v19, v18, v17); } else { v21 = v18; v19 = v16; v20 = v17; } isMusicPlaying = FMODAudioEngine::isMusicPlaying(v5, (__int64)&v19, 0); v7 = isMusicPlaying; if ( (v19 & 1) == 0 ) { if ( isMusicPlaying ) goto LABEL_6; LABEL_11: v14 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying); v22 = 0; v23 = 0; v24 = nullptr; if ( (v16 & 1) != 0 ) { std::string::__init(&v22, v18, v17); } else { v22 = v16; v23 = v17; v24 = v18; } FMODAudioEngine::playMusic(v14, (char *)&v22, 1u, 0, v10, v11, v12, v13, 0.0, v15); if ( (v22 & 1) != 0 ) operator delete(v24); goto LABEL_6; } operator delete(v21); if ( !v7 ) goto LABEL_11; LABEL_6: if ( (v16 & 1) != 0 ) operator delete(v18); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source