{"type": "func", "start": 5124764, "end": 5124890, "name": "CustomSongWidget::~CustomSongWidget", "pseudocode": "// \n// CustomSongWidget::~CustomSongWidget from 0x4e329c to 0x4e331a (126 bytes)\n// \n// 1 xrefs:\n// > CustomSongWidget::~CustomSongWidget @ 0x4e3324\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:51:03 +0000\n// \n\n// Alternative name is '_ZN16CustomSongWidgetD1Ev'\nvoid __fastcall CustomSongWidget::~CustomSongWidget(CustomSongWidget *this)\n{\n  MusicDownloadManager *v2; // r0\n  cocos2d::CCObject *v3; // r0\n  char *v4; // r0\n  char *v5; // r3\n\n  *(_DWORD *)this = &off_C9B160;\n  *((_DWORD *)this + 66) = &off_C9B354;\n  *((_DWORD *)this + 67) = &off_C9B38C;\n  v2 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);\n  MusicDownloadManager::removeMusicDownloadDelegate(v2, (CustomSongWidget *)((char *)this + 264));\n  v3 = *((cocos2d::CCObject **)this + 68);\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  std::__tree<int>::destroy((int)this + 432, *((_DWORD **)this + 109));\n  v4 = *((char **)this + 103);\n  if ( v4 )\n  {\n    while ( 1 )\n    {\n      v5 = *((char **)this + 104);\n      if ( v4 == v5 )\n        break;\n      *((_DWORD *)this + 104) = v5 - 16;\n    }\n    operator delete(v4);\n  }\n  std::__tree<std::__value_type<int,bool>,std::__map_value_compare<int,std::__value_type<int,bool>,std::less<int>,true>,std::allocator<std::__value_type<int,bool>>>::destroy(\n    (int)this + 400,\n    *((_DWORD **)this + 101));\n  std::__tree<std::__value_type<int,bool>,std::__map_value_compare<int,std::__value_type<int,bool>,std::less<int>,true>,std::allocator<std::__value_type<int,bool>>>::destroy(\n    (int)this + 388,\n    *((_DWORD **)this + 98));\n  cocos2d::CCNode::~CCNode(this);\n}", "assembly": "; \n; CustomSongWidget::~CustomSongWidget from 0x4e329c to 0x4e331a (126 bytes)\n; \n; 1 xrefs:\n; > CustomSongWidget::~CustomSongWidget @ 0x4e3324\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:51:03 +0000\n; \nLDR             R3, =(_ZTV16CustomSongWidget_ptr - 0x4E32A4)           ; +0x0, 0x4e329c\nPUSH            {R4,LR}                                                ; +0x2, 0x4e329e\nADD             R3, PC; _ZTV16CustomSongWidget_ptr                     ; +0x4, 0x4e32a0\nLDR             R3, [R3]; `vtable for'CustomSongWidget ...             ; +0x6, 0x4e32a2\nADD.W           R2, R3, #8                                             ; +0x8, 0x4e32a4\nSTR             R2, [R0]                                               ; +0xc, 0x4e32a8\nADD.W           R2, R3, #0x1FC                                         ; +0xe, 0x4e32aa\nADD.W           R3, R3, #0x234                                         ; +0x12, 0x4e32ae\nSTR.W           R2, [R0,#0x108]                                        ; +0x16, 0x4e32b2\nMOV             R4, R0                                                 ; +0x1a, 0x4e32b6\nSTR.W           R3, [R0,#0x10C]                                        ; +0x1c, 0x4e32b8\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x20, 0x4e32bc\nADD.W           R1, R4, #0x108; MusicDownloadDelegate *                ; +0x24, 0x4e32c0\nBL              _ZN20MusicDownloadManager27removeMusicDownloadDelegateEP21MusicDownloadDelegate; MusicDownloadManager::removeMusicDownloadDelegate(MusicDownloadDelegate *) ; +0x28, 0x4e32c4\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x2c, 0x4e32c8\nCBZ             R0, loc_4E32D2                                         ; +0x30, 0x4e32cc\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x32, 0x4e32ce\nADD.W           R0, R4, #0x1B0                                         ; +0x36, 0x4e32d2\nLDR.W           R1, [R4,#0x1B4]                                        ; +0x3a, 0x4e32d6\nBL              _ZNSt6__ndk16__treeIiNS_4lessIiEENS_9allocatorIiEEE7destroyEPNS_11__tree_nodeIiPvEE; std::__tree<int>::destroy(std::__tree_node<int,void *> *) ; +0x3e, 0x4e32da\nLDR.W           R0, [R4,#0x19C]; void *                                ; +0x42, 0x4e32de\nCBZ             R0, loc_4E32F8                                         ; +0x46, 0x4e32e2\nLDR.W           R3, [R4,#0x1A0]                                        ; +0x48, 0x4e32e4\nCMP             R0, R3                                                 ; +0x4c, 0x4e32e8\nBEQ             loc_4E32F4                                             ; +0x4e, 0x4e32ea\nSUBS            R3, #0x10                                              ; +0x50, 0x4e32ec\nSTR.W           R3, [R4,#0x1A0]                                        ; +0x52, 0x4e32ee\nB               loc_4E32E4                                             ; +0x56, 0x4e32f2\nBL              _ZdlPv; operator delete(void *)                        ; +0x58, 0x4e32f4\nADD.W           R0, R4, #0x190                                         ; +0x5c, 0x4e32f8\nLDR.W           R1, [R4,#0x194]                                        ; +0x60, 0x4e32fc\nBL              _ZNSt6__ndk16__treeINS_12__value_typeIibEENS_19__map_value_compareIiS2_NS_4lessIiEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE; std::__tree<std::__value_type<int,bool>,std::__map_value_compare<int,std::__value_type<int,bool>,std::less<int>,true>,std::allocator<std::__value_type<int,bool>>>::destroy(std::__tree_node<std::__value_type<int,bool>,void *> *) ; +0x64, 0x4e3300\nADD.W           R0, R4, #0x184                                         ; +0x68, 0x4e3304\nLDR.W           R1, [R4,#0x188]                                        ; +0x6c, 0x4e3308\nBL              _ZNSt6__ndk16__treeINS_12__value_typeIibEENS_19__map_value_compareIiS2_NS_4lessIiEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE; std::__tree<std::__value_type<int,bool>,std::__map_value_compare<int,std::__value_type<int,bool>,std::less<int>,true>,std::allocator<std::__value_type<int,bool>>>::destroy(std::__tree_node<std::__value_type<int,bool>,void *> *) ; +0x70, 0x4e330c\nMOV             R0, R4; this                                           ; +0x74, 0x4e3310\nBL              _ZN7cocos2d6CCNodeD2Ev; cocos2d::CCNode::~CCNode()     ; +0x76, 0x4e3312\nMOV             R0, R4                                                 ; +0x7a, 0x4e3316\nPOP             {R4,PC}                                                ; +0x7c, 0x4e3318", "xrefs": ["CustomSongWidget::~CustomSongWidget @ 0x4e3324"], "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"}