//
// CustomSongWidget::onMore from 0x867e20 to 0x867e8c (108 bytes)
//
// 3 xrefs:
// > ??> @ 0x9f088
// > CustomSongWidget::init @ 0x86b460
// > ??> @ 0x1544680
//
// 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::onMore(__int64 this, cocos2d::CCObject *a2)
{
int *v2; // x19
MusicDownloadManager *v3; // x0
MusicDownloadManager *v4; // x0
SongInfoLayer *SongInfoObject; // x0
SongInfoObject *v6; // x1
__int64 v7; // x0
__int64 v8; // x0
v2 = *(int **)(this + 336);
if ( v2 )
{
v3 = (MusicDownloadManager *)*(unsigned __int8 *)(this + 500);
if ( (_DWORD)v3 )
{
v8 = SongInfoLayer::create((SongInfoLayer *)(unsigned int)v2[79], (int)a2);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
}
else
{
v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v3);
SongInfoObject = (SongInfoLayer *)MusicDownloadManager::getSongInfoObject(v4, v2[79]);
if ( !SongInfoObject )
SongInfoObject = (SongInfoLayer *)v2;
v7 = SongInfoLayer::create(SongInfoObject, v6);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
}
return this;
}