{"type": "func", "start": 4296082088, "end": 4296082248, "name": "CustomSongCell::onDelete", "pseudocode": "// \n// CustomSongCell::onDelete from 0x1001102a8 to 0x100110348 (160 bytes)\n// \n// 1 xrefs:\n// > CustomSongCell::loadFromObject @ 0x1001022e0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall CustomSongCell::onDelete(CustomSongCell *a1, cocos2d::CCObject *a2)\n{\n  FMODAudioEngine *v3; // x20\n  MusicDownloadManager *v4; // x0\n  int isMusicPlaying; // w0\n  int v6; // w20\n  FMODAudioEngine *v7; // x0\n  MusicDownloadManager *v8; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v10; // [xsp+1Fh] [xbp-11h]\n\n  if ( a1->m_songInfoObject )\n  {\n    v3 = FMODAudioEngine::sharedEngine();\n    v4 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::pathForSong(__p, v4, (unsigned int)a1->m_songInfoObject->m_songID);\n    isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, __p, 0);\n    v6 = isMusicPlaying;\n    if ( v10 < 0 )\n    {\n      operator delete(__p[0]);\n      if ( !v6 )\n        goto LABEL_5;\n    }\n    else if ( !isMusicPlaying )\n    {\nLABEL_5:\n      v8 = MusicDownloadManager::sharedState();\n      MusicDownloadManager::deleteSong(v8, a1->m_songInfoObject->m_songID);\n      goto LABEL_6;\n    }\n    v7 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::stopAllMusic(v7, 1);\n    goto LABEL_5;\n  }\nLABEL_6:\n  TableView::deleteTableViewCell(a1->m_tableView, a1);\n}", "assembly": "; \n; CustomSongCell::onDelete from 0x1001102a8 to 0x100110348 (160 bytes)\n; \n; 1 xrefs:\n; > CustomSongCell::loadFromObject @ 0x1001022e0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1001102a8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1001102ac\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1001102b0\nADD             X29, SP, #0x30                                         ; +0xc, 0x1001102b4\nMOV             X19, X0                                                ; +0x10, 0x1001102b8\nLDR             X8, [X0,#0x230]                                        ; +0x14, 0x1001102bc\nCBZ             X8, loc_10011031C                                      ; +0x18, 0x1001102c0\nBL              FMODAudioEngine__sharedEngine                          ; +0x1c, 0x1001102c4\nMOV             X20, X0                                                ; +0x20, 0x1001102c8\nBL              MusicDownloadManager__sharedState                      ; +0x24, 0x1001102cc\nLDR             X8, [X19,#0x230]                                       ; +0x28, 0x1001102d0\nLDR             W1, [X8,#0x13C]                                        ; +0x2c, 0x1001102d4\nADD             X8, SP, #0x30+__p                                      ; +0x30, 0x1001102d8\nBL              MusicDownloadManager__pathForSong                      ; +0x34, 0x1001102dc\nADD             X1, SP, #0x30+__p                                      ; +0x38, 0x1001102e0\nMOV             X0, X20                                                ; +0x3c, 0x1001102e4\nMOV             W2, #0                                                 ; +0x40, 0x1001102e8\nBL              FMODAudioEngine__isMusicPlaying                        ; +0x44, 0x1001102ec\nMOV             X20, X0                                                ; +0x48, 0x1001102f0\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x4c, 0x1001102f4\nTBNZ            W8, #0x1F, loc_100110338                               ; +0x50, 0x1001102f8\nCBZ             W20, loc_10011030C                                     ; +0x54, 0x1001102fc\nBL              FMODAudioEngine__sharedEngine                          ; +0x58, 0x100110300\nMOV             W1, #1                                                 ; +0x5c, 0x100110304\nBL              FMODAudioEngine__stopAllMusic                          ; +0x60, 0x100110308\nBL              MusicDownloadManager__sharedState                      ; +0x64, 0x10011030c\nLDR             X8, [X19,#0x230]                                       ; +0x68, 0x100110310\nLDR             W1, [X8,#0x13C]                                        ; +0x6c, 0x100110314\nBL              MusicDownloadManager__deleteSong                       ; +0x70, 0x100110318\nLDR             X0, [X19,#0x1A0]                                       ; +0x74, 0x10011031c\nMOV             X1, X19                                                ; +0x78, 0x100110320\nBL              TableView__deleteTableViewCell                         ; +0x7c, 0x100110324\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x80, 0x100110328\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x84, 0x10011032c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x88, 0x100110330\nRET                                                                    ; +0x8c, 0x100110334\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x90, 0x100110338\nBL              __ZdlPv; operator delete(void *)                       ; +0x94, 0x10011033c\nCBNZ            W20, loc_100110300                                     ; +0x98, 0x100110340\nB               loc_10011030C                                          ; +0x9c, 0x100110344", "xrefs": ["CustomSongCell::loadFromObject @ 0x1001022e0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}