{"type": "func", "start": 8832004, "end": 8832072, "name": "CustomSongWidget::onToggleFavorite", "pseudocode": "// \n// CustomSongWidget::onToggleFavorite from 0x86c404 to 0x86c448 (68 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x4c708\n// > CustomSongWidget::init @ 0x86c058\n// > <???> @ 0x15418c0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:55:43 +0000\n// \n\nCustomSongWidget *__fastcall CustomSongWidget::onToggleFavorite(CustomSongWidget *this, cocos2d::CCObject *a2)\n{\n  CustomSongWidget *v2; // x19\n  MusicDownloadManager *v3; // x0\n\n  if ( *((_QWORD *)this + 42) )\n  {\n    v2 = this;\n    v3 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);\n    MusicDownloadManager::toggleMusicFavorite(v3, *(_DWORD *)(*((_QWORD *)v2 + 42) + 316LL));\n    return (CustomSongWidget *)CustomSongWidget::updateSongInfo(v2);\n  }\n  return this;\n}", "assembly": "; \n; CustomSongWidget::onToggleFavorite from 0x86c404 to 0x86c448 (68 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x4c708\n; > CustomSongWidget::init @ 0x86c058\n; > <???> @ 0x15418c0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:55:43 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x86c404\nMOV             X29, SP                                                ; +0x4, 0x86c408\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x86c40c\nLDR             X1, [X0,#0x150]                                        ; +0xc, 0x86c410\nCBZ             X1, loc_86C43C                                         ; +0x10, 0x86c414\nMOV             X19, X0                                                ; +0x14, 0x86c418\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x18, 0x86c41c\nLDR             X1, [X19,#0x150]                                       ; +0x1c, 0x86c420\nLDR             W1, [X1,#0x13C]; int                                   ; +0x20, 0x86c424\nBL              _ZN20MusicDownloadManager19toggleMusicFavoriteEi; MusicDownloadManager::toggleMusicFavorite(int) ; +0x24, 0x86c428\nMOV             X0, X19; this                                          ; +0x28, 0x86c42c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x2c, 0x86c430\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x30, 0x86c434\nB               _ZN16CustomSongWidget14updateSongInfoEv; CustomSongWidget::updateSongInfo(void) ; +0x34, 0x86c438\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0x86c43c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0x86c440\nRET                                                                    ; +0x40, 0x86c444", "xrefs": ["<???> @ 0x4c708", "CustomSongWidget::init @ 0x86c058", "<???> @ 0x15418c0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}