{"type": "func", "start": 5369448672, "end": 5369449049, "name": "CustomSongCell::onDelete", "pseudocode": "// \n// CustomSongCell::onDelete from 0x1400b48e0 to 0x1400b4a59 (377 bytes)\n// \n// 2 xrefs:\n// > CustomSongCell::loadFromObject @ 0x1400b477d\n// > <???> @ 0x1406c7b24\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\n// Hidden C++ exception states: #wind=4\nvoid CustomSongCell::onDelete(CustomSongCell *a1, cocos2d::CCObject *a2)\n{\n  SongInfoObject *m_songInfoObject; // rbx\n  MusicDownloadManager *v4; // rax\n  _QWORD *v5; // rbx\n  FMODAudioEngine *v6; // rcx\n  __int64 v7; // rbx\n  unsigned int m_songID; // ebx\n  MusicDownloadManager *v9; // rax\n  const char *v10; // rcx\n  FMODAudioEngine *v11; // [rsp+20h] [rbp-48h]\n  FMODAudioEngine *v12; // [rsp+20h] [rbp-48h]\n  char *FileName[4]; // [rsp+30h] [rbp-38h] BYREF\n\n  m_songInfoObject = a1->m_songInfoObject;\n  if ( m_songInfoObject )\n  {\n    v4 = MusicDownloadManager::sharedState();\n    v5 = (_QWORD *)MusicDownloadManager::pathForSong(v4, FileName, (unsigned int)m_songInfoObject->m_songID);\n    v6 = (FMODAudioEngine *)qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v11 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v6 = (FMODAudioEngine *)qword_1406C2E88;\n    }\n    if ( FMODAudioEngine::isMusicPlaying(v6, v5) )\n    {\n      v7 = qword_1406C2E88;\n      if ( !qword_1406C2E88 )\n      {\n        v12 = (FMODAudioEngine *)operator new(0x888u);\n        qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v12);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n        v7 = qword_1406C2E88;\n      }\n      if ( *(_QWORD *)(v7 + 552) )\n        FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v7 + 552));\n      sub_14005E0D0((_QWORD *)(v7 + 1064));\n      sub_14005E0D0((_QWORD *)(v7 + 1128));\n      sub_14005E0D0((_QWORD *)(v7 + 1192));\n    }\n    m_songID = a1->m_songInfoObject->m_songID;\n    v9 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::pathForSong(v9, FileName, m_songID);\n    v10 = (const char *)FileName;\n    if ( FileName[3] > (char *)0xF )\n      v10 = FileName[0];\n    remove(v10);\n    sub_14003A830((__int64)FileName);\n  }\n  TableView::deleteTableViewCell(a1->m_tableView, a1);\n}", "assembly": "; \n; CustomSongCell::onDelete from 0x1400b48e0 to 0x1400b4a59 (377 bytes)\n; \n; 2 xrefs:\n; > CustomSongCell::loadFromObject @ 0x1400b477d\n; > <???> @ 0x1406c7b24\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400b48e0\npush    rdi                                                            ; +0x5, 0x1400b48e5\nsub     rsp, 60h                                                       ; +0x6, 0x1400b48e6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1400b48ea\nxor     rax, rsp                                                       ; +0x11, 0x1400b48f1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1400b48f4\nmov     rdi, rcx                                                       ; +0x19, 0x1400b48f9\nmov     rbx, [rcx+238h]                                                ; +0x1c, 0x1400b48fc\ntest    rbx, rbx                                                       ; +0x23, 0x1400b4903\njz      loc_1400B4A32                                                  ; +0x26, 0x1400b4906\nlea     rax, [rsp+68h+FileName]                                        ; +0x2c, 0x1400b490c\nmov     [rsp+68h+var_40], rax                                          ; +0x31, 0x1400b4911\ncall    MusicDownloadManager__sharedState                              ; +0x36, 0x1400b4916\nmov     rcx, rax                                                       ; +0x3b, 0x1400b491b\nmov     r8d, [rbx+140h]                                                ; +0x3e, 0x1400b491e\nlea     rdx, [rsp+68h+FileName]                                        ; +0x45, 0x1400b4925\ncall    MusicDownloadManager__pathForSong                              ; +0x4a, 0x1400b492a\nmov     rbx, rax                                                       ; +0x4f, 0x1400b492f\nmov     rcx, cs:qword_1406C2E88                                        ; +0x52, 0x1400b4932\ntest    rcx, rcx                                                       ; +0x59, 0x1400b4939\njnz     short loc_1400B496D                                            ; +0x5c, 0x1400b493c\nmov     ecx, 888h; Size                                                ; +0x5e, 0x1400b493e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x63, 0x1400b4943\nmov     [rsp+68h+var_48], rax                                          ; +0x68, 0x1400b4948\nmov     rcx, rax                                                       ; +0x6d, 0x1400b494d\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x70, 0x1400b4950\nnop                                                                    ; +0x75, 0x1400b4955\nmov     cs:qword_1406C2E88, rax                                        ; +0x76, 0x1400b4956\nmov     rdx, [rax]                                                     ; +0x7d, 0x1400b495d\nmov     rcx, rax                                                       ; +0x80, 0x1400b4960\ncall    qword ptr [rdx+48h]                                            ; +0x83, 0x1400b4963\nmov     rcx, cs:qword_1406C2E88                                        ; +0x86, 0x1400b4966\nmov     rdx, rbx                                                       ; +0x8d, 0x1400b496d\ncall    FMODAudioEngine__isMusicPlaying                                ; +0x90, 0x1400b4970\ntest    al, al                                                         ; +0x95, 0x1400b4975\njz      short loc_1400B49EF                                            ; +0x97, 0x1400b4977\nmov     rbx, cs:qword_1406C2E88                                        ; +0x99, 0x1400b4979\ntest    rbx, rbx                                                       ; +0xa0, 0x1400b4980\njnz     short loc_1400B49B4                                            ; +0xa3, 0x1400b4983\nmov     ecx, 888h; Size                                                ; +0xa5, 0x1400b4985\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xaa, 0x1400b498a\nmov     [rsp+68h+var_48], rax                                          ; +0xaf, 0x1400b498f\nmov     rcx, rax                                                       ; +0xb4, 0x1400b4994\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xb7, 0x1400b4997\nnop                                                                    ; +0xbc, 0x1400b499c\nmov     cs:qword_1406C2E88, rax                                        ; +0xbd, 0x1400b499d\nmov     rdx, [rax]                                                     ; +0xc4, 0x1400b49a4\nmov     rcx, rax                                                       ; +0xc7, 0x1400b49a7\ncall    qword ptr [rdx+48h]                                            ; +0xca, 0x1400b49aa\nmov     rbx, cs:qword_1406C2E88                                        ; +0xcd, 0x1400b49ad\ncmp     qword ptr [rbx+228h], 0                                        ; +0xd4, 0x1400b49b4\njz      short loc_1400B49CB                                            ; +0xdc, 0x1400b49bc\nmov     rcx, [rbx+228h]                                                ; +0xde, 0x1400b49be\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0xe5, 0x1400b49c5\nlea     rcx, [rbx+428h]                                                ; +0xeb, 0x1400b49cb\ncall    sub_14005E0D0                                                  ; +0xf2, 0x1400b49d2\nlea     rcx, [rbx+468h]                                                ; +0xf7, 0x1400b49d7\ncall    sub_14005E0D0                                                  ; +0xfe, 0x1400b49de\nlea     rcx, [rbx+4A8h]                                                ; +0x103, 0x1400b49e3\ncall    sub_14005E0D0                                                  ; +0x10a, 0x1400b49ea\nmov     rax, [rdi+238h]                                                ; +0x10f, 0x1400b49ef\nmov     ebx, [rax+140h]                                                ; +0x116, 0x1400b49f6\ncall    MusicDownloadManager__sharedState                              ; +0x11c, 0x1400b49fc\nmov     r8d, ebx                                                       ; +0x121, 0x1400b4a01\nlea     rdx, [rsp+68h+FileName]                                        ; +0x124, 0x1400b4a04\nmov     rcx, rax                                                       ; +0x129, 0x1400b4a09\ncall    MusicDownloadManager__pathForSong                              ; +0x12c, 0x1400b4a0c\nlea     rcx, [rsp+68h+FileName]                                        ; +0x131, 0x1400b4a11\ncmp     [rsp+68h+var_20], 0Fh                                          ; +0x136, 0x1400b4a16\ncmova   rcx, [rsp+68h+FileName]; FileName                              ; +0x13c, 0x1400b4a1c\ncall    cs:remove                                                      ; +0x142, 0x1400b4a22\nlea     rcx, [rsp+68h+FileName]                                        ; +0x148, 0x1400b4a28\ncall    sub_14003A830                                                  ; +0x14d, 0x1400b4a2d\nmov     rdx, rdi                                                       ; +0x152, 0x1400b4a32\nmov     rcx, [rdi+1A0h]                                                ; +0x155, 0x1400b4a35\ncall    TableView__deleteTableViewCell                                 ; +0x15c, 0x1400b4a3c\nmov     rcx, [rsp+68h+var_18]                                          ; +0x161, 0x1400b4a41\nxor     rcx, rsp; StackCookie                                          ; +0x166, 0x1400b4a46\ncall    __security_check_cookie                                        ; +0x169, 0x1400b4a49\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x16e, 0x1400b4a4e\nadd     rsp, 60h                                                       ; +0x173, 0x1400b4a53\npop     rdi                                                            ; +0x177, 0x1400b4a57\nretn                                                                   ; +0x178, 0x1400b4a58", "xrefs": ["CustomSongCell::loadFromObject @ 0x1400b477d", "<???> @ 0x1406c7b24"], "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"}