{"type": "func", "start": 4297312864, "end": 4297313037, "name": "CustomSongCell::onDelete", "pseudocode": "// \n// CustomSongCell::onDelete from 0x10023ca60 to 0x10023cb0d (173 bytes)\n// \n// 1 xrefs:\n// > CustomSongCell::loadFromObject @ 0x100229a1e\n// \n// This function is hookable on this platform (idp: pc, 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:27:16 +0000\n// \n\n__int64 __fastcall CustomSongCell::onDelete(__int64 a1, double a2)\n{\n  __int64 v3; // r14\n  std::string::pointer data; // rdi\n  char isMusicPlaying; // r14\n  std::error_code *v6; // rax\n  std::string v8; // [rsp+0h] [rbp-30h] BYREF\n\n  if ( *(_QWORD *)(a1 + 560) )\n  {\n    v3 = FMODAudioEngine::sharedEngine(a2);\n    MusicDownloadManager::sharedState(a1);\n    MusicDownloadManager::pathForSong(&v8);\n    data = (std::string::pointer)v3;\n    isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, &v8, 0);\n    if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 )\n    {\n      data = v8.__r_.__value_.__l.__data_;\n      operator delete(v8.__r_.__value_.__l.__data_);\n    }\n    if ( isMusicPlaying )\n    {\n      data = (std::string::pointer)FMODAudioEngine::sharedEngine(a2);\n      FMODAudioEngine::stopAllMusic(data, 1);\n    }\n    v6 = (std::error_code *)MusicDownloadManager::sharedState(data);\n    MusicDownloadManager::deleteSong(v6);\n  }\n  return TableView::deleteTableViewCell(*(_QWORD *)(a1 + 416), a1);\n}", "assembly": "; \n; CustomSongCell::onDelete from 0x10023ca60 to 0x10023cb0d (173 bytes)\n; \n; 1 xrefs:\n; > CustomSongCell::loadFromObject @ 0x100229a1e\n; \n; This function is hookable on this platform (idp: pc, 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:27:16 +0000\n; \npush    rbp                                                            ; +0x0, 0x10023ca60\nmov     rbp, rsp                                                       ; +0x1, 0x10023ca61\npush    r15                                                            ; +0x4, 0x10023ca64\npush    r14                                                            ; +0x6, 0x10023ca66\npush    rbx                                                            ; +0x8, 0x10023ca68\nsub     rsp, 18h                                                       ; +0x9, 0x10023ca69\nmov     rbx, rdi                                                       ; +0xd, 0x10023ca6d\ncmp     qword ptr [rdi+230h], 0                                        ; +0x10, 0x10023ca70\njz      short loc_10023CAF3                                            ; +0x18, 0x10023ca78\ncall    FMODAudioEngine__sharedEngine                                  ; +0x1a, 0x10023ca7a\nmov     r14, rax                                                       ; +0x1f, 0x10023ca7f\ncall    MusicDownloadManager__sharedState                              ; +0x22, 0x10023ca82\nmov     rcx, [rbx+230h]                                                ; +0x27, 0x10023ca87\nmov     edx, [rcx+13Ch]                                                ; +0x2e, 0x10023ca8e\nlea     r15, [rbp+var_30]                                              ; +0x34, 0x10023ca94\nmov     rdi, r15; this                                                 ; +0x38, 0x10023ca98\nmov     rsi, rax                                                       ; +0x3b, 0x10023ca9b\ncall    MusicDownloadManager__pathForSong                              ; +0x3e, 0x10023ca9e\nmov     rdi, r14                                                       ; +0x43, 0x10023caa3\nmov     rsi, r15                                                       ; +0x46, 0x10023caa6\nxor     edx, edx                                                       ; +0x49, 0x10023caa9\ncall    FMODAudioEngine__isMusicPlaying                                ; +0x4b, 0x10023caab\nmov     r14d, eax                                                      ; +0x50, 0x10023cab0\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x53, 0x10023cab3\njz      short loc_10023CAC2                                            ; +0x57, 0x10023cab7\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0x59, 0x10023cab9\ncall    __ZdlPv; operator delete(void *)                               ; +0x5d, 0x10023cabd\ntest    r14b, r14b                                                     ; +0x62, 0x10023cac2\njz      short loc_10023CAD9                                            ; +0x65, 0x10023cac5\ncall    FMODAudioEngine__sharedEngine                                  ; +0x67, 0x10023cac7\nmov     rdi, rax                                                       ; +0x6c, 0x10023cacc\nmov     esi, 1                                                         ; +0x6f, 0x10023cacf\ncall    FMODAudioEngine__stopAllMusic                                  ; +0x74, 0x10023cad4\ncall    MusicDownloadManager__sharedState                              ; +0x79, 0x10023cad9\nmov     rcx, [rbx+230h]                                                ; +0x7e, 0x10023cade\nmov     esi, [rcx+13Ch]                                                ; +0x85, 0x10023cae5\nmov     rdi, rax; __ec                                                 ; +0x8b, 0x10023caeb\ncall    MusicDownloadManager__deleteSong                               ; +0x8e, 0x10023caee\nmov     rdi, [rbx+1A0h]                                                ; +0x93, 0x10023caf3\nmov     rsi, rbx                                                       ; +0x9a, 0x10023cafa\ncall    TableView__deleteTableViewCell                                 ; +0x9d, 0x10023cafd\nadd     rsp, 18h                                                       ; +0xa2, 0x10023cb02\npop     rbx                                                            ; +0xa6, 0x10023cb06\npop     r14                                                            ; +0xa7, 0x10023cb07\npop     r15                                                            ; +0xa9, 0x10023cb09\npop     rbp                                                            ; +0xab, 0x10023cb0b\nretn                                                                   ; +0xac, 0x10023cb0c", "xrefs": ["CustomSongCell::loadFromObject @ 0x100229a1e"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}