{"type": "func", "start": 6974972, "end": 6975030, "name": "CustomSFXWidget::onToggleFavorite", "pseudocode": "// \n// CustomSFXWidget::onToggleFavorite from 0x6a6dfc to 0x6a6e36 (58 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:56:31 +0000\n// \n\nCustomSFXWidget *__fastcall CustomSFXWidget::onToggleFavorite(CustomSFXWidget *this, cocos2d::CCObject *a2)\n{\n  CustomSFXWidget *v2; // r4\n  int v3; // r3\n  MusicDownloadManager *v4; // r0\n  MusicDownloadManager *v5; // r0\n\n  v2 = this;\n  v3 = *((_DWORD *)this + 68);\n  if ( v3 )\n  {\n    if ( *(int *)(v3 + 72) <= 0 )\n    {\n      v5 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);\n      MusicDownloadManager::toggleSFXFavorite(v5, *(_DWORD *)(*((_DWORD *)v2 + 68) + 52));\n    }\n    else\n    {\n      v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);\n      MusicDownloadManager::toggleCustomSFXFavorite(v4, *(_DWORD *)(*((_DWORD *)v2 + 68) + 72));\n    }\n    return (CustomSFXWidget *)CustomSFXWidget::updateSFXInfo(v2);\n  }\n  return this;\n}", "assembly": "; \n; CustomSFXWidget::onToggleFavorite from 0x6a6dfc to 0x6a6e36 (58 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:56:31 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x6a6dfc\nMOV             R4, R0                                                 ; +0x2, 0x6a6dfe\nLDR.W           R3, [R0,#0x110]                                        ; +0x4, 0x6a6e00\nCBZ             R3, locret_6A6E34                                      ; +0x8, 0x6a6e04\nLDR             R3, [R3,#0x48]                                         ; +0xa, 0x6a6e06\nCMP             R3, #0                                                 ; +0xc, 0x6a6e08\nBLE             loc_6A6E1C                                             ; +0xe, 0x6a6e0a\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x10, 0x6a6e0c\nLDR.W           R3, [R4,#0x110]                                        ; +0x14, 0x6a6e10\nLDR             R1, [R3,#0x48]; int                                    ; +0x18, 0x6a6e14\nBL              _ZN20MusicDownloadManager23toggleCustomSFXFavoriteEi; MusicDownloadManager::toggleCustomSFXFavorite(int) ; +0x1a, 0x6a6e16\nB               loc_6A6E2A                                             ; +0x1e, 0x6a6e1a\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x20, 0x6a6e1c\nLDR.W           R3, [R4,#0x110]                                        ; +0x24, 0x6a6e20\nLDR             R1, [R3,#0x34]; int                                    ; +0x28, 0x6a6e24\nBL              _ZN20MusicDownloadManager17toggleSFXFavoriteEi; MusicDownloadManager::toggleSFXFavorite(int) ; +0x2a, 0x6a6e26\nMOV             R0, R4; this                                           ; +0x2e, 0x6a6e2a\nPOP.W           {R4,LR}                                                ; +0x30, 0x6a6e2c\nB.W             _ZN15CustomSFXWidget13updateSFXInfoEv; CustomSFXWidget::updateSFXInfo(void) ; +0x34, 0x6a6e30\nPOP             {R4,PC}                                                ; +0x38, 0x6a6e34", "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"}