//
// MusicDownloadManager::getSongInfoObject from 0x95c8ac to 0x95ca08 (348 bytes)
//
// 13 xrefs:
// > FindBPMLayer::recordingDidStop @ 0x6e7b84
// > FindBPMLayer::init @ 0x6e9700
// > LevelCell::loadCustomLevelCell @ 0x745fd0
// > CustomSongWidget::onMore @ 0x867e44
// > MusicDownloadManager::incrementPriorityForSong @ 0x95ca18
// > MusicDownloadManager::sumLocalAudioSizeBytes @ 0x961eac
// > MusicDownloadManager::getSongInfo @ 0x966244
// > MusicDownloadManager::downloadSong @ 0x968640
// > MusicDownloadManager::onDownloadSongCompleted @ 0x96d2f0
// > SongInfoObject::create @ 0x973e14
// > SongSelectNode::init @ 0x980364
// > AudioAssetsBrowser::setupList @ 0xbc1d64
// > ??> @ 0xefda0
//
// 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:57:29 +0000
//
__int64 __fastcall MusicDownloadManager::getSongInfoObject(MusicDownloadManager *this, const char *a2)
{
int v3; // w24
__int64 v4; // x25
cocos2d::CCString *v5; // x0
const char *CString; // x26
size_t v7; // x0
size_t v8; // x19
unsigned __int64 v9; // x0
char *v10; // x3
__int64 v11; // x19
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
size_t v14; // [xsp+58h] [xbp+58h]
void *v15; // [xsp+60h] [xbp+60h]
v3 = (int)a2;
v4 = *((_QWORD *)this + 43);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
v13 = 0;
CString = (const char *)cocos2d::CCString::getCString(v5);
v14 = 0;
v15 = nullptr;
v7 = strlen(CString);
v8 = v7;
if ( v7 > 0xFFFFFFFFFFFFFFEFLL )
sub_62D3FC();
if ( v7 > 0x16 )
{
v9 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v13 = v9 | 1;
v10 = (char *)operator new(v9);
v15 = v10;
v14 = v8;
LABEL_4:
v10 = (char *)memcpy(v10, CString, v8);
goto LABEL_5;
}
LOBYTE(v13) = 2 * v7;
v10 = (char *)&v13 + 1;
if ( v7 )
goto LABEL_4;
LABEL_5:
v10[v8] = 0;
v11 = cocos2d::CCDictionary::objectForKey(v4, &v13);
if ( (v13 & 1) != 0 )
{
operator delete(v15);
if ( v11 )
return v11;
}
else if ( v11 )
{
return v11;
}
if ( v3 <= 10000000 )
return v11;
return MusicDownloadManager::getMusicObject(this, v3);
}