{"type": "func", "start": 3339372, "end": 3339504, "name": "CustomSongCell::onDelete", "pseudocode": "// \n// CustomSongCell::onDelete from 0x32f46c to 0x32f4f0 (132 bytes)\n// \n// 0 xrefs:\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 CustomSongCell::onDelete(CustomSongCell *a1, cocos2d::CCObject *a2)\n{\n  FMODAudioEngine *v3; // r7\n  MusicDownloadManager *v4; // r0\n  _BOOL4 isMusicPlaying; // r7\n  FMODAudioEngine *v6; // r0\n  MusicDownloadManager *v7; // r0\n  _DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v8[0] = a1;\n  v8[1] = a2;\n  if ( a1->m_songInfoObject )\n  {\n    v3 = FMODAudioEngine::sharedEngine();\n    v4 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::pathForSong((MusicDownloadManager *)v8, (int)v4);\n    isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, (int)v8);\n    sub_774008(v8);\n    if ( isMusicPlaying )\n    {\n      v6 = FMODAudioEngine::sharedEngine();\n      FMODAudioEngine::stopAllMusic(v6, (bool)&dword_0 + 1);\n    }\n    v7 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::deleteSong(v7, a1->m_songInfoObject->m_songID);\n  }\n  TableView::deleteTableViewCell(a1->m_tableView, a1);\n}", "assembly": "; \n; CustomSongCell::onDelete from 0x32f46c to 0x32f4f0 (132 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x32F474)                ; +0x0, 0x32f46c\nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x2, 0x32f46e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x32f470\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x32f472\nMOV             R6, R0                                                 ; +0x8, 0x32f474\nLDR             R2, [R3]                                               ; +0xa, 0x32f476\nMOV             R5, R3                                                 ; +0xc, 0x32f478\nSTR             R2, [SP,#0xC+var_8]                                    ; +0xe, 0x32f47a\nLDR.W           R2, [R0,#0x1A0]                                        ; +0x10, 0x32f47c\nCBZ             R2, loc_32F4CC                                         ; +0x14, 0x32f480\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x16, 0x32f482\nMOV             R4, SP                                                 ; +0x1a, 0x32f486\nMOV             R7, R0                                                 ; +0x1c, 0x32f488\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x1e, 0x32f48a\nLDR.W           R3, [R6,#0x1A0]                                        ; +0x22, 0x32f48e\nLDR.W           R2, [R3,#0x108]                                        ; +0x26, 0x32f492\nMOV             R1, R0; int                                            ; +0x2a, 0x32f496\nMOV             R0, SP; this                                           ; +0x2c, 0x32f498\nBL              _ZN20MusicDownloadManager11pathForSongEi; MusicDownloadManager::pathForSong(int) ; +0x2e, 0x32f49a\nMOV             R0, R7; int                                            ; +0x32, 0x32f49e\nMOV             R1, SP                                                 ; +0x34, 0x32f4a0\nMOVS            R2, #0                                                 ; +0x36, 0x32f4a2\nBL              _ZN15FMODAudioEngine14isMusicPlayingESsi; FMODAudioEngine::isMusicPlaying(std::string,int) ; +0x38, 0x32f4a4\nMOV             R7, R0                                                 ; +0x3c, 0x32f4a8\nMOV             R0, SP                                                 ; +0x3e, 0x32f4aa\nBL              sub_774008                                             ; +0x40, 0x32f4ac\nCBZ             R7, loc_32F4BC                                         ; +0x44, 0x32f4b0\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x46, 0x32f4b2\nMOVS            R1, #(dword_0+1); p                                    ; +0x4a, 0x32f4b6\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x4c, 0x32f4b8\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x50, 0x32f4bc\nLDR.W           R3, [R6,#0x1A0]                                        ; +0x54, 0x32f4c0\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x58, 0x32f4c4\nBL              _ZN20MusicDownloadManager10deleteSongEi; MusicDownloadManager::deleteSong(int) ; +0x5c, 0x32f4c8\nLDR.W           R0, [R6,#0x140]; this                                  ; +0x60, 0x32f4cc\nMOV             R1, R6; TableViewCell *                                ; +0x64, 0x32f4d0\nBL              _ZN9TableView19deleteTableViewCellEP13TableViewCell; TableView::deleteTableViewCell(TableViewCell *) ; +0x66, 0x32f4d2\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x6a, 0x32f4d6\nLDR             R3, [R5]                                               ; +0x6c, 0x32f4d8\nCMP             R2, R3                                                 ; +0x6e, 0x32f4da\nBEQ             loc_32F4EC                                             ; +0x70, 0x32f4dc\nBLX             __stack_chk_fail                                       ; +0x72, 0x32f4de\nMOV             R0, R4                                                 ; +0x76, 0x32f4e2\nBL              sub_774008                                             ; +0x78, 0x32f4e4\nBL              __cxa_end_cleanup                                      ; +0x7c, 0x32f4e8\nADD             SP, SP, #0xC                                           ; +0x80, 0x32f4ec\nPOP             {R4-R7,PC}                                             ; +0x82, 0x32f4ee", "xrefs": [], "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"}