{"type": "func", "start": 4354328, "end": 4354462, "name": "CustomSongCell::onDelete", "pseudocode": "// \n// CustomSongCell::onDelete from 0x427118 to 0x42719e (134 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:48:05 +0000\n// \n\nint __fastcall CustomSongCell::onDelete(TableView **this, cocos2d::CCObject *a2)\n{\n  MusicDownloadManager *v3; // r7\n  int v4; // r0\n  int v5; // r3\n  _BOOL4 isMusicPlaying; // r7\n  char **v7; // r0\n  FMODAudioEngine *v8; // r0\n  MusicDownloadManager *v9; // r0\n  unsigned __int8 v11[12]; // [sp+0h] [bp-14h] BYREF\n\n  if ( *(this + 106) )\n  {\n    v3 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);\n    v4 = MusicDownloadManager::sharedState(v3);\n    MusicDownloadManager::pathForSong((MusicDownloadManager *)v11, v4);\n    isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, v11, 0, v5);\n    v7 = (char **)std::string::~string((int)v11);\n    if ( isMusicPlaying )\n    {\n      v8 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)v7);\n      v7 = FMODAudioEngine::stopAllMusic(v8, 1);\n    }\n    v9 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v7);\n    MusicDownloadManager::deleteSong(v9, *((_DWORD *)*(this + 106) + 66));\n  }\n  return TableView::deleteTableViewCell(*(this + 80), (TableViewCell *)this);\n}", "assembly": "; \n; CustomSongCell::onDelete from 0x427118 to 0x42719e (134 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:48:05 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x427120)                ; +0x0, 0x427118\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x42711a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x42711c\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x42711e\nSUB             SP, SP, #0x14                                          ; +0x8, 0x427120\nMOV             R6, R0                                                 ; +0xa, 0x427122\nLDR             R2, [R3]                                               ; +0xc, 0x427124\nMOV             R5, R3                                                 ; +0xe, 0x427126\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x10, 0x427128\nLDR.W           R2, [R0,#0x1A8]                                        ; +0x12, 0x42712a\nCBZ             R2, loc_42717A                                         ; +0x16, 0x42712e\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x18, 0x427130\nMOV             R4, SP                                                 ; +0x1c, 0x427134\nMOV             R7, R0                                                 ; +0x1e, 0x427136\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x20, 0x427138\nLDR.W           R3, [R6,#0x1A8]                                        ; +0x24, 0x42713c\nLDR.W           R2, [R3,#0x108]                                        ; +0x28, 0x427140\nMOV             R1, R0; int                                            ; +0x2c, 0x427144\nMOV             R0, SP; this                                           ; +0x2e, 0x427146\nBL              _ZN20MusicDownloadManager11pathForSongEi; MusicDownloadManager::pathForSong(int) ; +0x30, 0x427148\nMOV             R0, R7; int                                            ; +0x34, 0x42714c\nMOV             R1, SP                                                 ; +0x36, 0x42714e\nMOVS            R2, #0                                                 ; +0x38, 0x427150\nBL              _ZN15FMODAudioEngine14isMusicPlayingENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi; FMODAudioEngine::isMusicPlaying(std::string,int) ; +0x3a, 0x427152\nMOV             R7, R0                                                 ; +0x3e, 0x427156\nMOV             R0, SP                                                 ; +0x40, 0x427158\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x42, 0x42715a\nCBZ             R7, loc_42716A                                         ; +0x46, 0x42715e\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x48, 0x427160\nMOVS            R1, #1; bool                                           ; +0x4c, 0x427164\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x4e, 0x427166\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x52, 0x42716a\nLDR.W           R3, [R6,#0x1A8]                                        ; +0x56, 0x42716e\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x5a, 0x427172\nBL              _ZN20MusicDownloadManager10deleteSongEi; MusicDownloadManager::deleteSong(int) ; +0x5e, 0x427176\nLDR.W           R0, [R6,#0x140]; this                                  ; +0x62, 0x42717a\nMOV             R1, R6; TableViewCell *                                ; +0x66, 0x42717e\nBL              _ZN9TableView19deleteTableViewCellEP13TableViewCell; TableView::deleteTableViewCell(TableViewCell *) ; +0x68, 0x427180\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x6c, 0x427184\nLDR             R3, [R5]                                               ; +0x6e, 0x427186\nCMP             R2, R3                                                 ; +0x70, 0x427188\nBEQ             loc_42719A                                             ; +0x72, 0x42718a\nBLX             __stack_chk_fail                                       ; +0x74, 0x42718c\nMOV             R0, R4                                                 ; +0x78, 0x427190\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x7a, 0x427192\nBL              __cxa_end_cleanup                                      ; +0x7e, 0x427196\nADD             SP, SP, #0x14                                          ; +0x82, 0x42719a\nPOP             {R4-R7,PC}                                             ; +0x84, 0x42719c", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}