//
// CustomSongWidget::onSelect from 0x86c4b0 to 0x86c50c (92 bytes)
//
// 3 xrefs:
// > ??> @ 0xfb620
// > CustomSongWidget::init @ 0x86b348
// > ??> @ 0x1547a58
//
// 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
//
__int64 __fastcall CustomSongWidget::onSelect(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
unsigned __int8 *v3; // x19
void (__fastcall ***v4)(_QWORD, __int64); // x0
__int64 v5; // x1
MusicDownloadManager *v6; // x0
v2 = *(_QWORD *)(this + 336);
if ( v2 )
{
v3 = (unsigned __int8 *)this;
v4 = *(void (__fastcall ****)(_QWORD, __int64))(this + 488);
v5 = *(unsigned int *)(v2 + 316);
if ( v4 )
(**v4)(v4, v5);
CustomSongWidget::updateSongInfo((CustomSongWidget *)v3);
this = v3[512];
if ( v3[512] )
{
v6 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)this);
return MusicDownloadManager::songStateChanged(v6);
}
}
return this;
}