//
// CustomSongWidget::onGetSongInfo from 0x86831c to 0x868394 (120 bytes)
//
// 5 xrefs:
// > LevelInfoLayer::init @ 0x7ec704
// > CustomSongWidget::getSongInfoIfUnloaded @ 0x86c3c0
// > ??> @ 0xd7038
// > CustomSongWidget::init @ 0x86b394
// > ??> @ 0x1546690
//
// 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:41 +0000
//
__int64 __fastcall CustomSongWidget::onGetSongInfo(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
MusicDownloadManager *v3; // x0
MusicDownloadManager *v4; // x0
if ( *(_QWORD *)(this + 336) )
{
v2 = this;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(this + 376) + 344LL))(*(_QWORD *)(this + 376), 0);
v3 = *(MusicDownloadManager **)(v2 + 480);
if ( v3 )
v3 = (MusicDownloadManager *)(*(__int64 (__fastcall **)(MusicDownloadManager *, _QWORD))(*(_QWORD *)v3 + 344LL))(
v3,
0);
v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v3);
MusicDownloadManager::getSongInfo(v4, *(_DWORD *)(v2 + 504), 0);
return CustomSongWidget::toggleUpdateButton((CustomSongWidget *)v2, 0);
}
return this;
}