//
// MusicDownloadManager::getSongInfoObject from 0x1001d2fd8 to 0x1001d3080 (168 bytes)
//
// 12 xrefs:
// > sub_1000868AC @ 0x100086960
// > FindBPMLayer::recordingDidStop @ 0x100086a48
// > CustomSongWidget::onMore @ 0x10011fb40
// > LevelCell::loadCustomLevelCell @ 0x100134750
// > SongSelectNode::init @ 0x1001c5f24
// > MusicDownloadManager::incrementPriorityForSong @ 0x1001d2fb4
// > MusicDownloadManager::getSongInfo @ 0x1001d30bc
// > MusicDownloadManager::downloadSong @ 0x1001d4e44
// > MusicDownloadManager::onDownloadSongCompleted @ 0x1001d53a0
// > sub_1001DAE50 @ 0x1001daef0
// > SongInfoObject::create_1 @ 0x1001e1e90
// > sub_10026A060 @ 0x10026a0e4
//
// 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 11:00:23 +0000
//
__int64 __fastcall MusicDownloadManager::getSongInfoObject(__int64 a1, int a2)
{
__int64 v4; // x21
__int64 v5; // x0
char *CString; // x0
__int64 v7; // x21
__int64 v8; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v11; // [xsp+1Fh] [xbp-21h]
v4 = *(_QWORD *)(a1 + 344);
v5 = sub_1003065B0("%i", a2);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
v7 = cocos2d::CCDictionary::objectForKey(v4, __p);
if ( v11 < 0 )
operator delete(__p[0]);
if ( a2 >= 10000001 && !v7 )
{
v8 = *(_QWORD *)(a1 + 440);
if ( v8 )
return cocos2d::CCDictionary::objectForKey_1(v8, (unsigned int)a2);
else
return 0;
}
return v7;
}