{"type": "func", "start": 7559468, "end": 7559700, "name": "CustomSongCell::onDelete", "pseudocode": "// \n// CustomSongCell::onDelete from 0x73592c to 0x735a14 (232 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x86998\n// > CustomSongCell::loadFromObject @ 0x738278\n// > <???> @ 0x1543880\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:52:38 +0000\n// \n\n__int64 __fastcall CustomSongCell::onDelete(CustomSongCell *this, cocos2d::CCObject *a2)\n{\n  FMODAudioEngine *v3; // x0\n  MusicDownloadManager *v4; // x22\n  MusicDownloadManager *v5; // x0\n  __int64 isMusicPlaying; // x0\n  int v7; // w21\n  MusicDownloadManager *v8; // x0\n  FMODAudioEngine *v10; // x0\n  __int64 v11[3]; // [xsp+30h] [xbp+30h] BYREF\n\n  v3 = *((FMODAudioEngine **)this + 70);\n  if ( v3 )\n  {\n    v4 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(v3);\n    v5 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v4);\n    MusicDownloadManager::pathForSong(v11, v5, *(_DWORD *)(*((_QWORD *)this + 70) + 316LL));\n    isMusicPlaying = FMODAudioEngine::isMusicPlaying(v4, (__int64)v11, 0);\n    v7 = (unsigned __int8)isMusicPlaying;\n    if ( (v11[0] & 1) != 0 )\n    {\n      operator delete((void *)v11[2]);\n      if ( !v7 )\n        goto LABEL_4;\n    }\n    else if ( !(_BYTE)isMusicPlaying )\n    {\nLABEL_4:\n      v8 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)isMusicPlaying);\n      MusicDownloadManager::deleteSong(v8, *(_DWORD *)(*((_QWORD *)this + 70) + 316LL));\n      goto LABEL_5;\n    }\n    v10 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying);\n    isMusicPlaying = FMODAudioEngine::stopAllMusic(v10, 1);\n    goto LABEL_4;\n  }\nLABEL_5:\n  TableView::deleteTableViewCell(*((TableView **)this + 52), this);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomSongCell::onDelete from 0x73592c to 0x735a14 (232 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x86998\n; > CustomSongCell::loadFromObject @ 0x738278\n; > <???> @ 0x1543880\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:52:38 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x73592c\nMOV             X29, SP                                                ; +0x4, 0x735930\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x735934\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x735938\nMOV             X19, X0                                                ; +0x10, 0x73593c\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x735940\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x735944\nLDR             X0, [X0,#0x230]; this                                  ; +0x1c, 0x735948\nLDR             X1, [X1]                                               ; +0x20, 0x73594c\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x24, 0x735950\nCBZ             X0, loc_7359A8                                         ; +0x28, 0x735954\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x2c, 0x735958\nMOV             X22, X0                                                ; +0x30, 0x73595c\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x34, 0x735960\nADD             X21, X29, #0x50+var_20                                 ; +0x38, 0x735964\nLDR             X1, [X19,#0x230]                                       ; +0x3c, 0x735968\nMOV             X8, X21                                                ; +0x40, 0x73596c\nLDR             W1, [X1,#0x13C]; int                                   ; +0x44, 0x735970\nBL              _ZN20MusicDownloadManager11pathForSongEi; MusicDownloadManager::pathForSong(int) ; +0x48, 0x735974\nMOV             X0, X22; int                                           ; +0x4c, 0x735978\nMOV             X1, X21; int                                           ; +0x50, 0x73597c\nMOV             W2, #0; int                                            ; +0x54, 0x735980\nBL              _ZN15FMODAudioEngine14isMusicPlayingENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi; FMODAudioEngine::isMusicPlaying(std::string,int) ; +0x58, 0x735984\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0x5c, 0x735988\nUXTB            W21, W0                                                ; +0x60, 0x73598c\nTBNZ            W1, #0, loc_7359D8                                     ; +0x64, 0x735990\nCBNZ            W21, loc_7359E4                                        ; +0x68, 0x735994\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x6c, 0x735998\nLDR             X1, [X19,#0x230]                                       ; +0x70, 0x73599c\nLDR             W1, [X1,#0x13C]; int                                   ; +0x74, 0x7359a0\nBL              _ZN20MusicDownloadManager10deleteSongEi; MusicDownloadManager::deleteSong(int) ; +0x78, 0x7359a4\nLDR             X0, [X19,#0x1A0]; this                                 ; +0x7c, 0x7359a8\nMOV             X1, X19; TableViewCell *                               ; +0x80, 0x7359ac\nBL              _ZN9TableView19deleteTableViewCellEP13TableViewCell; TableView::deleteTableViewCell(TableViewCell *) ; +0x84, 0x7359b0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0x7359b4\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x8c, 0x7359b8\nLDR             X0, [X20]                                              ; +0x90, 0x7359bc\nCMP             X1, X0                                                 ; +0x94, 0x7359c0\nB.NE            loc_7359F4                                             ; +0x98, 0x7359c4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x9c, 0x7359c8\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa0, 0x7359cc\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xa4, 0x7359d0\nRET                                                                    ; +0xa8, 0x7359d4\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xac, 0x7359d8\nBL              _ZdlPv; operator delete(void *)                        ; +0xb0, 0x7359dc\nCBZ             W21, loc_735998                                        ; +0xb4, 0x7359e0\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0xb8, 0x7359e4\nMOV             W1, #1; bool                                           ; +0xbc, 0x7359e8\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0xc0, 0x7359ec\nB               loc_735998                                             ; +0xc4, 0x7359f0\nBL              .__stack_chk_fail                                      ; +0xc8, 0x7359f4\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0xcc, 0x7359f8\nMOV             X19, X0                                                ; +0xd0, 0x7359fc\nTBZ             W1, #0, loc_735A0C                                     ; +0xd4, 0x735a00\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xd8, 0x735a04\nBL              _ZdlPv; operator delete(void *)                        ; +0xdc, 0x735a08\nMOV             X0, X19                                                ; +0xe0, 0x735a0c\nBL              _Unwind_Resume                                         ; +0xe4, 0x735a10", "xrefs": ["<???> @ 0x86998", "CustomSongCell::loadFromObject @ 0x738278", "<???> @ 0x1543880"], "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"}