// // CustomSongWidget::deleteSong from 0x86acb4 to 0x86ae20 (364 bytes) // // 2 xrefs: // > CustomSongWidget::FLAlert_Clicked @ 0x86d664 // > @ 0x73be8 // // 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:55:42 +0000 // __int64 __fastcall CustomSongWidget::deleteSong(CustomSongWidget *this) { FMODAudioEngine *v2; // x0 MusicDownloadManager *v3; // x22 MusicDownloadManager *v4; // x0 __int64 isMusicPlaying; // x0 int v6; // w21 MusicDownloadManager *v7; // x0 __int64 *v8; // x0 __int64 v9; // x2 void (__fastcall *v10)(__int64 *, char *); // x2 FMODAudioEngine *v12; // x0 char v13; // [xsp+38h] [xbp+38h] BYREF char v14[23]; // [xsp+39h] [xbp+39h] BYREF void *v15; // [xsp+50h] [xbp+50h] v2 = *((FMODAudioEngine **)this + 42); if ( !v2 ) return _stack_chk_guard; v3 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(v2); v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v3); MusicDownloadManager::pathForSong((__int64 *)&v14[7], v4, *(_DWORD *)(*((_QWORD *)this + 42) + 316LL)); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, (__int64)&v14[7], 0); v6 = (unsigned __int8)isMusicPlaying; if ( (v14[7] & 1) != 0 ) { operator delete(v15); if ( !v6 ) goto LABEL_4; LABEL_10: v12 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying); isMusicPlaying = FMODAudioEngine::stopAllMusic(v12, 1); goto LABEL_4; } if ( (_BYTE)isMusicPlaying ) goto LABEL_10; LABEL_4: v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)isMusicPlaying); MusicDownloadManager::deleteSong(v7, *(_DWORD *)(*((_QWORD *)this + 42) + 316LL)); CustomSongWidget::updateSongInfo(this); v8 = *((__int64 **)this + 47); v9 = *v8; v13 = -1; v10 = *(void (__fastcall **)(__int64 *, char *))(v9 + 1072); strcpy(v14, "d"); v10(v8, &v13); (*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 47) + 928LL))( *((_QWORD *)this + 47), "Song Deleted"); if ( *((_BYTE *)this + 501) ) cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 47), 140.0, 0.35, 0.0); else cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 47), 230.0, 0.4, 0.0); CustomSongWidget::showError((cocos2d::CCNode **)this, 1u); return _stack_chk_guard; }