// // CustomSFXWidget::onToggleFavorite from 0xb5f05c to 0xb5f0cc (112 bytes) // // 3 xrefs: // > @ 0x82ed0 // > CustomSFXWidget::init @ 0xb60240 // > @ 0x1543688 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:02:11 +0000 // CustomSFXWidget *__fastcall CustomSFXWidget::onToggleFavorite(CustomSFXWidget *this, cocos2d::CCObject *a2) { __int64 v2; // x1 CustomSFXWidget *v3; // x19 MusicDownloadManager *v4; // x0 MusicDownloadManager *v5; // x0 MusicDownloadManager *v6; // x0 v2 = *((_QWORD *)this + 42); if ( v2 ) { v3 = this; v4 = (MusicDownloadManager *)*(unsigned int *)(v2 + 76); if ( (int)v4 <= 0 ) { v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v4); MusicDownloadManager::toggleSFXFavorite(v6, *(_DWORD *)(*((_QWORD *)v3 + 42) + 56LL)); } else { v5 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v4); MusicDownloadManager::toggleCustomSFXFavorite(v5, *(_DWORD *)(*((_QWORD *)v3 + 42) + 76LL)); } return (CustomSFXWidget *)CustomSFXWidget::updateSFXInfo(v3); } return this; }