//
// MusicDownloadManager::firstSetup from 0x95c7e4 to 0x95c840 (92 bytes)
//
// 2 xrefs:
// > GameManager::firstLoad @ 0x71fc0c
// > ??> @ 0x56410
//
// 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
//
cocos2d::CCObject *__fastcall MusicDownloadManager::firstSetup(MusicDownloadManager *this)
{
cocos2d::CCObject *result; // x0
cocos2d::CCObject *v3; // x20
cocos2d::CCObject *v4; // x1
result = *((cocos2d::CCObject **)this + 43);
if ( !result )
{
result = (cocos2d::CCObject *)cocos2d::CCDictionary::create(nullptr);
v3 = result;
v4 = *((cocos2d::CCObject **)this + 43);
if ( result != v4 )
{
if ( result )
{
result = (cocos2d::CCObject *)cocos2d::CCObject::retain(result);
v4 = *((cocos2d::CCObject **)this + 43);
}
if ( v4 )
result = (cocos2d::CCObject *)cocos2d::CCObject::release(v4);
*((_QWORD *)this + 43) = v3;
}
}
*((_DWORD *)this + 90) = 0;
return result;
}