// // GameManager::getMenuMusicFile from 0x1003aec18 to 0x1003aecc4 (172 bytes) // // 2 xrefs: // > GameManager::playMenuMusic @ 0x1003aedf0 // > GameManager::fadeInMenuMusic @ 0x1003af038 // // 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:03:53 +0000 // void __usercall GameManager::getMenuMusicFile(__int64 a1@, _QWORD *a2@) { __int64 v4; // x0 std::string *p_p; // x1 std::string __p; // [xsp+8h] [xbp-28h] BYREF if ( *(int *)(a1 + 1140) < 1 ) goto LABEL_11; v4 = MusicDownloadManager::sharedState(); if ( (MusicDownloadManager::isSongDownloaded(v4, *(unsigned int *)(a1 + 1140)) & 1) == 0 ) { *(_DWORD *)(a1 + 1140) = 0; goto LABEL_11; } if ( *(int *)(a1 + 1140) < 1 ) { LABEL_11: sub_100009900(a2, "menuLoop.mp3"); return; } MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong(*(unsigned int *)(a1 + 1140), &__p); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; sub_100009900(a2, (char *)p_p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source