{"type": "func", "start": 4301366848, "end": 4301367027, "name": "CustomSongWidget::dCustomSongWidget", "pseudocode": "// \n// CustomSongWidget::dCustomSongWidget from 0x10061a640 to 0x10061a6f3 (179 bytes)\n// \n// 2 xrefs:\n// > sub_10061A700 @ 0x10061a705\n// > sub_10061A710 @ 0x10061a719\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__int64 __fastcall CustomSongWidget::dCustomSongWidget(MusicDownloadDelegate *a1)\n{\n  MusicDownloadManager *v2; // rax\n  cocos2d::CCObject *v3; // rdi\n  MusicDownloadDelegate_vtbl *v4; // rdi\n\n  a1->__vftable = (MusicDownloadDelegate_vtbl *)off_100981EC8;\n  a1[40].__vftable = (MusicDownloadDelegate_vtbl *)off_1009822A0;\n  a1[41].__vftable = (MusicDownloadDelegate_vtbl *)&off_100982300;\n  v2 = MusicDownloadManager::sharedState();\n  MusicDownloadManager::removeMusicDownloadDelegate(v2, a1 + 40);\n  v3 = (cocos2d::CCObject *)a1[42].__vftable;\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  sub_100054D90((__int64)&a1[76], &a1[77].loadSongInfoFinished);\n  v4 = a1[72].__vftable;\n  if ( v4 )\n  {\n    a1[73].__vftable = v4;\n    operator delete(v4);\n  }\n  sub_100054D90((__int64)&a1[69], &a1[70].loadSongInfoFinished);\n  sub_100054D90((__int64)&a1[66], &a1[67].loadSongInfoFinished);\n  return cocos2d::CCNode::dCCNode((__int64)a1);\n}", "assembly": "; \n; CustomSongWidget::dCustomSongWidget from 0x10061a640 to 0x10061a6f3 (179 bytes)\n; \n; 2 xrefs:\n; > sub_10061A700 @ 0x10061a705\n; > sub_10061A710 @ 0x10061a719\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\npush    rbp                                                            ; +0x0, 0x10061a640\nmov     rbp, rsp                                                       ; +0x1, 0x10061a641\npush    rbx                                                            ; +0x4, 0x10061a644\npush    rax                                                            ; +0x5, 0x10061a645\nmov     rbx, rdi                                                       ; +0x6, 0x10061a646\nlea     rax, off_100981EC8                                             ; +0x9, 0x10061a649\nmov     [rdi], rax                                                     ; +0x10, 0x10061a650\nlea     rax, off_1009822A0                                             ; +0x13, 0x10061a653\nmov     [rdi+140h], rax                                                ; +0x1a, 0x10061a65a\nlea     rax, off_100982300                                             ; +0x21, 0x10061a661\nmov     [rdi+148h], rax                                                ; +0x28, 0x10061a668\ncall    MusicDownloadManager__sharedState                              ; +0x2f, 0x10061a66f\nlea     rsi, [rbx+140h]                                                ; +0x34, 0x10061a674\nmov     rdi, rax                                                       ; +0x3b, 0x10061a67b\ncall    MusicDownloadManager__removeMusicDownloadDelegate              ; +0x3e, 0x10061a67e\nmov     rdi, [rbx+150h]                                                ; +0x43, 0x10061a683\ntest    rdi, rdi                                                       ; +0x4a, 0x10061a68a\njz      short loc_10061A694                                            ; +0x4d, 0x10061a68d\ncall    cocos2d__CCObject__release                                     ; +0x4f, 0x10061a68f\nlea     rdi, [rbx+260h]                                                ; +0x54, 0x10061a694\nmov     rsi, [rbx+268h]                                                ; +0x5b, 0x10061a69b\ncall    sub_100054D90                                                  ; +0x62, 0x10061a6a2\nmov     rdi, [rbx+240h]; __p                                           ; +0x67, 0x10061a6a7\ntest    rdi, rdi                                                       ; +0x6e, 0x10061a6ae\njz      short loc_10061A6BF                                            ; +0x71, 0x10061a6b1\nmov     [rbx+248h], rdi                                                ; +0x73, 0x10061a6b3\ncall    __ZdlPv; operator delete(void *)                               ; +0x7a, 0x10061a6ba\nlea     rdi, [rbx+228h]                                                ; +0x7f, 0x10061a6bf\nmov     rsi, [rbx+230h]                                                ; +0x86, 0x10061a6c6\ncall    sub_100054D90                                                  ; +0x8d, 0x10061a6cd\nlea     rdi, [rbx+210h]                                                ; +0x92, 0x10061a6d2\nmov     rsi, [rbx+218h]                                                ; +0x99, 0x10061a6d9\ncall    sub_100054D90                                                  ; +0xa0, 0x10061a6e0\nmov     rdi, rbx                                                       ; +0xa5, 0x10061a6e5\nadd     rsp, 8                                                         ; +0xa8, 0x10061a6e8\npop     rbx                                                            ; +0xac, 0x10061a6ec\npop     rbp                                                            ; +0xad, 0x10061a6ed\njmp     cocos2d__CCNode__dCCNode                                       ; +0xae, 0x10061a6ee", "xrefs": ["sub_10061A700 @ 0x10061a705", "sub_10061A710 @ 0x10061a719"], "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"}