//
// MusicDownloadManager::init from 0x10064b320 to 0x10064b410 (240 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::sharedState @ 0x100649e95
// > ??> @ 0x100b82a58
//
// This function is hookable on this platform (idp: pc, 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:34:47 +0000
//
char __fastcall MusicDownloadManager::init(__int64 a1)
{
char result; // al
char v3; // r15
_QWORD *v4; // rax
_QWORD *v5; // rdi
__int64 v6; // rax
_OWORD __dst[65]; // [rsp+0h] [rbp-430h] BYREF
_QWORD v8[4]; // [rsp+410h] [rbp-20h] BYREF
result = cocos2d::CCNode::init();
if ( result )
{
v3 = result;
v4 = cocos2d::CCDictionary::create();
*(_QWORD *)(a1 + 328) = v4;
v5 = v4;
cocos2d::CCObject::retain((__int64)v4);
v6 = sub_1007FE900(v5);
*(_QWORD *)(a1 + 336) = v6;
cocos2d::CCObject::retain(v6);
memcpy(__dst, &unk_100A0DBE0, sizeof(__dst));
sub_10066DB00(a1 + 528, __dst, v8);
__dst[1] = xmmword_100A0E000;
__dst[0] = xmmword_100A0DFF0;
LODWORD(__dst[2]) = 10006555;
sub_10066DB00(a1 + 568, __dst, (char *)&__dst[2] + 4);
return v3;
}
return result;
}