{"type": "func", "start": 8826036, "end": 8826400, "name": "CustomSongWidget::deleteSong", "pseudocode": "// \n// CustomSongWidget::deleteSong from 0x86acb4 to 0x86ae20 (364 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::FLAlert_Clicked @ 0x86d664\n// > <???> @ 0x73be8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:55:42 +0000\n// \n\n__int64 __fastcall CustomSongWidget::deleteSong(CustomSongWidget *this)\n{\n  FMODAudioEngine *v2; // x0\n  MusicDownloadManager *v3; // x22\n  MusicDownloadManager *v4; // x0\n  __int64 isMusicPlaying; // x0\n  int v6; // w21\n  MusicDownloadManager *v7; // x0\n  __int64 *v8; // x0\n  __int64 v9; // x2\n  void (__fastcall *v10)(__int64 *, char *); // x2\n  FMODAudioEngine *v12; // x0\n  char v13; // [xsp+38h] [xbp+38h] BYREF\n  char v14[23]; // [xsp+39h] [xbp+39h] BYREF\n  void *v15; // [xsp+50h] [xbp+50h]\n\n  v2 = *((FMODAudioEngine **)this + 42);\n  if ( !v2 )\n    return _stack_chk_guard;\n  v3 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(v2);\n  v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v3);\n  MusicDownloadManager::pathForSong((__int64 *)&v14[7], v4, *(_DWORD *)(*((_QWORD *)this + 42) + 316LL));\n  isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, (__int64)&v14[7], 0);\n  v6 = (unsigned __int8)isMusicPlaying;\n  if ( (v14[7] & 1) != 0 )\n  {\n    operator delete(v15);\n    if ( !v6 )\n      goto LABEL_4;\nLABEL_10:\n    v12 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying);\n    isMusicPlaying = FMODAudioEngine::stopAllMusic(v12, 1);\n    goto LABEL_4;\n  }\n  if ( (_BYTE)isMusicPlaying )\n    goto LABEL_10;\nLABEL_4:\n  v7 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)isMusicPlaying);\n  MusicDownloadManager::deleteSong(v7, *(_DWORD *)(*((_QWORD *)this + 42) + 316LL));\n  CustomSongWidget::updateSongInfo(this);\n  v8 = *((__int64 **)this + 47);\n  v9 = *v8;\n  v13 = -1;\n  v10 = *(void (__fastcall **)(__int64 *, char *))(v9 + 1072);\n  strcpy(v14, \"d\");\n  v10(v8, &v13);\n  (*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 47) + 928LL))(\n    *((_QWORD *)this + 47),\n    \"Song Deleted\");\n  if ( *((_BYTE *)this + 501) )\n    cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 47), 140.0, 0.35, 0.0);\n  else\n    cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 47), 230.0, 0.4, 0.0);\n  CustomSongWidget::showError((cocos2d::CCNode **)this, 1u);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomSongWidget::deleteSong from 0x86acb4 to 0x86ae20 (364 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::FLAlert_Clicked @ 0x86d664\n; > <???> @ 0x73be8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:55:42 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x86acb4\nMOV             X29, SP                                                ; +0x4, 0x86acb8\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x86acbc\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x86acc0\nMOV             X19, X0                                                ; +0x10, 0x86acc4\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x86acc8\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x86accc\nLDR             X0, [X0,#0x150]; this                                  ; +0x1c, 0x86acd0\nLDR             X1, [X1]                                               ; +0x20, 0x86acd4\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x24, 0x86acd8\nCBZ             X0, loc_86ADA8                                         ; +0x28, 0x86acdc\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x2c, 0x86ace0\nMOV             X22, X0                                                ; +0x30, 0x86ace4\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x34, 0x86ace8\nADD             X21, X29, #0x60+var_27+7                               ; +0x38, 0x86acec\nLDR             X1, [X19,#0x150]                                       ; +0x3c, 0x86acf0\nMOV             X8, X21                                                ; +0x40, 0x86acf4\nLDR             W1, [X1,#0x13C]; int                                   ; +0x44, 0x86acf8\nBL              _ZN20MusicDownloadManager11pathForSongEi; MusicDownloadManager::pathForSong(int) ; +0x48, 0x86acfc\nMOV             X0, X22; int                                           ; +0x4c, 0x86ad00\nMOV             X1, X21; int                                           ; +0x50, 0x86ad04\nMOV             W2, #0; int                                            ; +0x54, 0x86ad08\nBL              _ZN15FMODAudioEngine14isMusicPlayingENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi; FMODAudioEngine::isMusicPlaying(std::string,int) ; +0x58, 0x86ad0c\nLDRB            W1, [X29,#0x60+var_27+7]                               ; +0x5c, 0x86ad10\nUXTB            W21, W0                                                ; +0x60, 0x86ad14\nTBNZ            W1, #0, loc_86ADE4                                     ; +0x64, 0x86ad18\nCBNZ            W21, loc_86ADF0                                        ; +0x68, 0x86ad1c\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x6c, 0x86ad20\nLDR             X1, [X19,#0x150]                                       ; +0x70, 0x86ad24\nLDR             W1, [X1,#0x13C]; int                                   ; +0x74, 0x86ad28\nBL              _ZN20MusicDownloadManager10deleteSongEi; MusicDownloadManager::deleteSong(int) ; +0x78, 0x86ad2c\nMOV             X0, X19; this                                          ; +0x7c, 0x86ad30\nBL              _ZN16CustomSongWidget14updateSongInfoEv; CustomSongWidget::updateSongInfo(void) ; +0x80, 0x86ad34\nLDR             X2, [X19,#0x178]                                       ; +0x84, 0x86ad38\nMOV             W3, #0xFFFFFFFF                                        ; +0x88, 0x86ad3c\nADD             X1, X29, #0x60+var_28                                  ; +0x8c, 0x86ad40\nMOV             X0, X2                                                 ; +0x90, 0x86ad44\nLDR             X2, [X2]                                               ; +0x94, 0x86ad48\nSTRB            W3, [X29,#0x60+var_28]                                 ; +0x98, 0x86ad4c\nMOV             W3, #0x64 ; 'd'                                        ; +0x9c, 0x86ad50\nSTRB            WZR, [X29,#0x60+var_27+1]                              ; +0xa0, 0x86ad54\nLDR             X2, [X2,#0x430]                                        ; +0xa4, 0x86ad58\nSTRB            W3, [X29,#0x60+var_27]                                 ; +0xa8, 0x86ad5c\nBLR             X2                                                     ; +0xac, 0x86ad60\nLDR             X2, [X19,#0x178]                                       ; +0xb0, 0x86ad64\nADRL            X1, aSongDeleted; \"Song Deleted\"                       ; +0xb4, 0x86ad68\nMOV             X0, X2                                                 ; +0xbc, 0x86ad70\nLDR             X2, [X2]                                               ; +0xc0, 0x86ad74\nLDR             X2, [X2,#0x3A0]                                        ; +0xc4, 0x86ad78\nBLR             X2                                                     ; +0xc8, 0x86ad7c\nLDRB            W0, [X19,#0x1F5]                                       ; +0xcc, 0x86ad80\nCBNZ            W0, loc_86ADCC                                         ; +0xd0, 0x86ad84\nLDR             S0, flt_86AE28; float                                  ; +0xd4, 0x86ad88\nLDR             X0, [X19,#0x178]; this                                 ; +0xd8, 0x86ad8c\nLDR             S1, flt_86AE2C; float                                  ; +0xdc, 0x86ad90\nFMOV            S2, WZR; float                                         ; +0xe0, 0x86ad94\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xe4, 0x86ad98\nMOV             X0, X19; this                                          ; +0xe8, 0x86ad9c\nMOV             W1, #1; bool                                           ; +0xec, 0x86ada0\nBL              _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0xf0, 0x86ada4\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xf4, 0x86ada8\nLDR             X1, [X29,#0x60+var_8]                                  ; +0xf8, 0x86adac\nLDR             X0, [X20]                                              ; +0xfc, 0x86adb0\nCMP             X1, X0                                                 ; +0x100, 0x86adb4\nB.NE            loc_86AE00                                             ; +0x104, 0x86adb8\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x108, 0x86adbc\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x10c, 0x86adc0\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x110, 0x86adc4\nRET                                                                    ; +0x114, 0x86adc8\nLDR             S0, flt_86AE20; float                                  ; +0x118, 0x86adcc\nLDR             X0, [X19,#0x178]; this                                 ; +0x11c, 0x86add0\nLDR             S1, flt_86AE24; float                                  ; +0x120, 0x86add4\nFMOV            S2, WZR; float                                         ; +0x124, 0x86add8\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x128, 0x86addc\nB               loc_86AD9C                                             ; +0x12c, 0x86ade0\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x130, 0x86ade4\nBL              _ZdlPv; operator delete(void *)                        ; +0x134, 0x86ade8\nCBZ             W21, loc_86AD20                                        ; +0x138, 0x86adec\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x13c, 0x86adf0\nMOV             W1, #1; bool                                           ; +0x140, 0x86adf4\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x144, 0x86adf8\nB               loc_86AD20                                             ; +0x148, 0x86adfc\nBL              .__stack_chk_fail                                      ; +0x14c, 0x86ae00\nLDRB            W1, [X29,#0x60+var_27+7]                               ; +0x150, 0x86ae04\nMOV             X19, X0                                                ; +0x154, 0x86ae08\nTBZ             W1, #0, loc_86AE18                                     ; +0x158, 0x86ae0c\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x15c, 0x86ae10\nBL              _ZdlPv; operator delete(void *)                        ; +0x160, 0x86ae14\nMOV             X0, X19                                                ; +0x164, 0x86ae18\nBL              _Unwind_Resume                                         ; +0x168, 0x86ae1c", "xrefs": ["CustomSongWidget::FLAlert_Clicked @ 0x86d664", "<???> @ 0x73be8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}