//
// CustomSongWidget::onGetSongInfo from 0x4e25b4 to 0x4e25f8 (68 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::init @ 0x49e59a
// > CustomSongWidget::getSongInfoIfUnloaded @ 0x4e4ec0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:02 +0000
//
int __fastcall CustomSongWidget::onGetSongInfo(int this, cocos2d::CCObject *a2)
{
CustomSongWidget *v2; // r4
MusicDownloadManager *v3; // r0
MusicDownloadManager *v4; // r0
v2 = (CustomSongWidget *)this;
if ( *(_DWORD *)(this + 272) )
{
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(this + 292) + 172))(*(_DWORD *)(this + 292), 0);
v3 = *((MusicDownloadManager **)v2 + 86);
if ( v3 )
v3 = (MusicDownloadManager *)(*(int (__fastcall **)(MusicDownloadManager *, _DWORD))(*(_DWORD *)v3 + 172))(v3, 0);
v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v3);
MusicDownloadManager::getSongInfo(v4, *((_DWORD *)v2 + 90), 0);
return CustomSongWidget::toggleUpdateButton(v2, 0);
}
return this;
}