// // sub_10011F910 from 0x10011f910 to 0x10011fa9c (396 bytes) // // 1 xrefs: // > CustomSongWidget::init @ 0x10011e9a4 // // 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 10:59:15 +0000 // void __fastcall sub_10011F910(__int64 a1) { void (__fastcall ***v2)(_QWORD, __int64); // x0 __int64 v3; // x1 __int64 v4; // x0 _QWORD *v5; // x0 __int64 v6; // x0 __int64 isMusicPlaying_1; // x0 __int64 v8; // x20 char v9; // w20 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x20 __int64 v15; // x0 char *v16; // x1 __int64 v17; // x0 void *v18[2]; // [xsp+0h] [xbp-70h] BYREF char v19; // [xsp+17h] [xbp-59h] void *v20[2]; // [xsp+18h] [xbp-58h] BYREF char v21; // [xsp+2Fh] [xbp-41h] void *__p[2]; // [xsp+30h] [xbp-40h] BYREF __int64 v23; // [xsp+40h] [xbp-30h] __int128 v24; // [xsp+48h] [xbp-28h] BYREF __int64 v25; // [xsp+58h] [xbp-18h] v2 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 520); v3 = *(_QWORD *)(a1 + 336); if ( v2 ) { (**v2)(v2, v3); return; } if ( v3 ) { v4 = MusicDownloadManager::sharedState(0); v5 = MusicDownloadManager::pathForSong(&v24, v4, *(unsigned int *)(*(_QWORD *)(a1 + 336) + 316LL)); v6 = FMODAudioEngine::sharedEngine(v5); isMusicPlaying_1 = FMODAudioEngine::isMusicPlaying_1(v6, 0); if ( (_DWORD)isMusicPlaying_1 ) { v8 = FMODAudioEngine::sharedEngine(isMusicPlaying_1); if ( SHIBYTE(v25) < 0 ) { sub_1000097D0(__p, (void *)v24, *((unsigned __int64 *)&v24 + 1)); } else { *(_OWORD *)__p = v24; v23 = v25; } isMusicPlaying_1 = FMODAudioEngine::isMusicPlaying(v8, __p, 0); v9 = isMusicPlaying_1; if ( (SHIBYTE(v23) & 0x80000000) == 0 ) { if ( (isMusicPlaying_1 & 1) != 0 ) goto LABEL_13; goto LABEL_12; } operator delete(__p[0]); if ( (v9 & 1) == 0 ) { LABEL_12: v10 = FMODAudioEngine::sharedEngine(isMusicPlaying_1); isMusicPlaying_1 = FMODAudioEngine::stopAllMusic(v10, 1); } } LABEL_13: v11 = FMODAudioEngine::sharedEngine(isMusicPlaying_1); v12 = FMODAudioEngine::isMusicPlaying_1(v11, 0); if ( (_DWORD)v12 ) { v13 = FMODAudioEngine::sharedEngine(v12); v12 = FMODAudioEngine::stopAllMusic(v13, 1); } else if ( *(_QWORD *)(a1 + 336) ) { v14 = FMODAudioEngine::sharedEngine(v12); v15 = MusicDownloadManager::sharedState(v14); MusicDownloadManager::pathForSong(v18, v15, *(unsigned int *)(*(_QWORD *)(a1 + 336) + 316LL)); if ( v19 >= 0 ) v16 = (char *)v18; else v16 = (char *)v18[0]; sub_100009900(v20, v16); v12 = FMODAudioEngine::playMusic(v14, v20, 0, 0, 0.0); if ( v21 < 0 ) operator delete(v20[0]); if ( v19 < 0 ) operator delete(v18[0]); } v17 = MusicDownloadManager::sharedState(v12); MusicDownloadManager::songStateChanged(v17); if ( SHIBYTE(v25) < 0 ) operator delete((void *)v24); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source