{"type": "func", "start": 11923548, "end": 11923660, "name": "CustomSFXWidget::onToggleFavorite", "pseudocode": "// \n// CustomSFXWidget::onToggleFavorite from 0xb5f05c to 0xb5f0cc (112 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x82ed0\n// > CustomSFXWidget::init @ 0xb60240\n// > <???> @ 0x1543688\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 13:02:11 +0000\n// \n\nCustomSFXWidget *__fastcall CustomSFXWidget::onToggleFavorite(CustomSFXWidget *this, cocos2d::CCObject *a2)\n{\n  __int64 v2; // x1\n  CustomSFXWidget *v3; // x19\n  MusicDownloadManager *v4; // x0\n  MusicDownloadManager *v5; // x0\n  MusicDownloadManager *v6; // x0\n\n  v2 = *((_QWORD *)this + 42);\n  if ( v2 )\n  {\n    v3 = this;\n    v4 = (MusicDownloadManager *)*(unsigned int *)(v2 + 76);\n    if ( (int)v4 <= 0 )\n    {\n      v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v4);\n      MusicDownloadManager::toggleSFXFavorite(v6, *(_DWORD *)(*((_QWORD *)v3 + 42) + 56LL));\n    }\n    else\n    {\n      v5 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v4);\n      MusicDownloadManager::toggleCustomSFXFavorite(v5, *(_DWORD *)(*((_QWORD *)v3 + 42) + 76LL));\n    }\n    return (CustomSFXWidget *)CustomSFXWidget::updateSFXInfo(v3);\n  }\n  return this;\n}", "assembly": "; \n; CustomSFXWidget::onToggleFavorite from 0xb5f05c to 0xb5f0cc (112 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x82ed0\n; > CustomSFXWidget::init @ 0xb60240\n; > <???> @ 0x1543688\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 13:02:11 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xb5f05c\nMOV             X29, SP                                                ; +0x4, 0xb5f060\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xb5f064\nLDR             X1, [X0,#0x150]                                        ; +0xc, 0xb5f068\nCBZ             X1, loc_B5F0C0                                         ; +0x10, 0xb5f06c\nMOV             X19, X0                                                ; +0x14, 0xb5f070\nLDR             W0, [X1,#0x4C]; this                                   ; +0x18, 0xb5f074\nCMP             W0, WZR                                                ; +0x1c, 0xb5f078\nB.LE            loc_B5F0A0                                             ; +0x20, 0xb5f07c\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x24, 0xb5f080\nLDR             X1, [X19,#0x150]                                       ; +0x28, 0xb5f084\nLDR             W1, [X1,#0x4C]; int                                    ; +0x2c, 0xb5f088\nBL              _ZN20MusicDownloadManager23toggleCustomSFXFavoriteEi; MusicDownloadManager::toggleCustomSFXFavorite(int) ; +0x30, 0xb5f08c\nMOV             X0, X19; this                                          ; +0x34, 0xb5f090\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0xb5f094\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0xb5f098\nB               _ZN15CustomSFXWidget13updateSFXInfoEv; CustomSFXWidget::updateSFXInfo(void) ; +0x40, 0xb5f09c\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x44, 0xb5f0a0\nLDR             X1, [X19,#0x150]                                       ; +0x48, 0xb5f0a4\nLDR             W1, [X1,#0x38]; int                                    ; +0x4c, 0xb5f0a8\nBL              _ZN20MusicDownloadManager17toggleSFXFavoriteEi; MusicDownloadManager::toggleSFXFavorite(int) ; +0x50, 0xb5f0ac\nMOV             X0, X19; this                                          ; +0x54, 0xb5f0b0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x58, 0xb5f0b4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x5c, 0xb5f0b8\nB               _ZN15CustomSFXWidget13updateSFXInfoEv; CustomSFXWidget::updateSFXInfo(void) ; +0x60, 0xb5f0bc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x64, 0xb5f0c0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x68, 0xb5f0c4\nRET                                                                    ; +0x6c, 0xb5f0c8", "xrefs": ["<???> @ 0x82ed0", "CustomSFXWidget::init @ 0xb60240", "<???> @ 0x1543688"], "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"}