//
// CustomSongWidget::onToggleFavorite from 0x86c404 to 0x86c448 (68 bytes)
//
// 3 xrefs:
// > ??> @ 0x4c708
// > CustomSongWidget::init @ 0x86c058
// > ??> @ 0x15418c0
//
// 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 12:55:43 +0000
//
CustomSongWidget *__fastcall CustomSongWidget::onToggleFavorite(CustomSongWidget *this, cocos2d::CCObject *a2)
{
CustomSongWidget *v2; // x19
MusicDownloadManager *v3; // x0
if ( *((_QWORD *)this + 42) )
{
v2 = this;
v3 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);
MusicDownloadManager::toggleMusicFavorite(v3, *(_DWORD *)(*((_QWORD *)v2 + 42) + 316LL));
return (CustomSongWidget *)CustomSongWidget::updateSongInfo(v2);
}
return this;
}