{"type": "func", "start": 5132016, "end": 5132054, "name": "CustomSongWidget::onToggleFavorite", "pseudocode": "// \n// CustomSongWidget::onToggleFavorite from 0x4e4ef0 to 0x4e4f16 (38 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:51:04 +0000\n// \n\nCustomSongWidget *__fastcall CustomSongWidget::onToggleFavorite(CustomSongWidget *this, cocos2d::CCObject *a2)\n{\n  CustomSongWidget *v2; // r4\n  MusicDownloadManager *v3; // r0\n\n  v2 = this;\n  if ( *((_DWORD *)this + 68) )\n  {\n    v3 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);\n    MusicDownloadManager::toggleMusicFavorite(v3, *(_DWORD *)(*((_DWORD *)v2 + 68) + 264));\n    return (CustomSongWidget *)CustomSongWidget::updateSongInfo(v2);\n  }\n  return this;\n}", "assembly": "; \n; CustomSongWidget::onToggleFavorite from 0x4e4ef0 to 0x4e4f16 (38 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:51:04 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x4e4ef0\nMOV             R4, R0                                                 ; +0x2, 0x4e4ef2\nLDR.W           R3, [R0,#0x110]                                        ; +0x4, 0x4e4ef4\nCBZ             R3, locret_4E4F14                                      ; +0x8, 0x4e4ef8\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0xa, 0x4e4efa\nLDR.W           R3, [R4,#0x110]                                        ; +0xe, 0x4e4efe\nLDR.W           R1, [R3,#0x108]; int                                   ; +0x12, 0x4e4f02\nBL              _ZN20MusicDownloadManager19toggleMusicFavoriteEi; MusicDownloadManager::toggleMusicFavorite(int) ; +0x16, 0x4e4f06\nMOV             R0, R4; this                                           ; +0x1a, 0x4e4f0a\nPOP.W           {R4,LR}                                                ; +0x1c, 0x4e4f0c\nB.W             _ZN16CustomSongWidget14updateSongInfoEv; CustomSongWidget::updateSongInfo(void) ; +0x20, 0x4e4f10\nPOP             {R4,PC}                                                ; +0x24, 0x4e4f14", "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"}