{"type": "func", "start": 4297408016, "end": 4297408189, "name": "CustomSongCell::onDelete", "pseudocode": "// \n// CustomSongCell::onDelete from 0x100253e10 to 0x100253ebd (173 bytes)\n// \n// 1 xrefs:\n// > CustomSongCell::loadFromObject @ 0x100243eea\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 *v2; // r14\n  char isMusicPlaying; // r14\n  FMODAudioEngine *v4; // rax\n  MusicDownloadManager *v5; // rax\n  std::string v6; // [rsp+0h] [rbp-30h] BYREF\n\n  if ( a1->m_songInfoObject )\n  {\n    v2 = FMODAudioEngine::sharedEngine();\n    MusicDownloadManager::sharedState();\n    MusicDownloadManager::pathForSong(&v6);\n    isMusicPlaying = FMODAudioEngine::isMusicPlaying(v2, &v6, 0);\n    if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v6.__r_.__value_.__l.__data_);\n    if ( isMusicPlaying )\n    {\n      v4 = FMODAudioEngine::sharedEngine();\n      FMODAudioEngine::stopAllMusic(v4, 1);\n    }\n    v5 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::deleteSong(v5, a1->m_songInfoObject->m_songID);\n  }\n  TableView::deleteTableViewCell(a1->m_tableView, a1);\n}", "assembly": "; \n; CustomSongCell::onDelete from 0x100253e10 to 0x100253ebd (173 bytes)\n; \n; 1 xrefs:\n; > CustomSongCell::loadFromObject @ 0x100243eea\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\npush    rbp                                                            ; +0x0, 0x100253e10\nmov     rbp, rsp                                                       ; +0x1, 0x100253e11\npush    r15                                                            ; +0x4, 0x100253e14\npush    r14                                                            ; +0x6, 0x100253e16\npush    rbx                                                            ; +0x8, 0x100253e18\nsub     rsp, 18h                                                       ; +0x9, 0x100253e19\nmov     rbx, rdi                                                       ; +0xd, 0x100253e1d\ncmp     qword ptr [rdi+230h], 0                                        ; +0x10, 0x100253e20\njz      short loc_100253EA3                                            ; +0x18, 0x100253e28\ncall    FMODAudioEngine__sharedEngine                                  ; +0x1a, 0x100253e2a\nmov     r14, rax                                                       ; +0x1f, 0x100253e2f\ncall    MusicDownloadManager__sharedState                              ; +0x22, 0x100253e32\nmov     rcx, [rbx+230h]                                                ; +0x27, 0x100253e37\nmov     edx, [rcx+13Ch]                                                ; +0x2e, 0x100253e3e\nlea     r15, [rbp+var_30]                                              ; +0x34, 0x100253e44\nmov     rdi, r15; this                                                 ; +0x38, 0x100253e48\nmov     rsi, rax                                                       ; +0x3b, 0x100253e4b\ncall    MusicDownloadManager__pathForSong                              ; +0x3e, 0x100253e4e\nmov     rdi, r14                                                       ; +0x43, 0x100253e53\nmov     rsi, r15                                                       ; +0x46, 0x100253e56\nxor     edx, edx                                                       ; +0x49, 0x100253e59\ncall    FMODAudioEngine__isMusicPlaying                                ; +0x4b, 0x100253e5b\nmov     r14d, eax                                                      ; +0x50, 0x100253e60\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x53, 0x100253e63\njz      short loc_100253E72                                            ; +0x57, 0x100253e67\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0x59, 0x100253e69\ncall    __ZdlPv; operator delete(void *)                               ; +0x5d, 0x100253e6d\ntest    r14b, r14b                                                     ; +0x62, 0x100253e72\njz      short loc_100253E89                                            ; +0x65, 0x100253e75\ncall    FMODAudioEngine__sharedEngine                                  ; +0x67, 0x100253e77\nmov     rdi, rax                                                       ; +0x6c, 0x100253e7c\nmov     esi, 1                                                         ; +0x6f, 0x100253e7f\ncall    FMODAudioEngine__stopAllMusic                                  ; +0x74, 0x100253e84\ncall    MusicDownloadManager__sharedState                              ; +0x79, 0x100253e89\nmov     rcx, [rbx+230h]                                                ; +0x7e, 0x100253e8e\nmov     esi, [rcx+13Ch]                                                ; +0x85, 0x100253e95\nmov     rdi, rax; __ec                                                 ; +0x8b, 0x100253e9b\ncall    MusicDownloadManager__deleteSong                               ; +0x8e, 0x100253e9e\nmov     rdi, [rbx+1A0h]                                                ; +0x93, 0x100253ea3\nmov     rsi, rbx                                                       ; +0x9a, 0x100253eaa\ncall    TableView__deleteTableViewCell                                 ; +0x9d, 0x100253ead\nadd     rsp, 18h                                                       ; +0xa2, 0x100253eb2\npop     rbx                                                            ; +0xa6, 0x100253eb6\npop     r14                                                            ; +0xa7, 0x100253eb7\npop     r15                                                            ; +0xa9, 0x100253eb9\npop     rbp                                                            ; +0xab, 0x100253ebb\nretn                                                                   ; +0xac, 0x100253ebc", "xrefs": ["CustomSongCell::loadFromObject @ 0x100243eea"], "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"}