//
// sub_1001D47BC from 0x1001d47bc to 0x1001d4870 (180 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::createArtistsInfo @ 0x1001d4264
// > MusicDownloadManager::parseMusicLibrary @ 0x1001dbf74
//
// 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:24 +0000
//
char *__fastcall sub_1001D47BC(int a1, __int64 a2)
{
char *v4; // x19
std::string __p; // [xsp+0h] [xbp-40h] BYREF
v4 = (char *)operator new(0x70u);
cocos2d::CCObject::CCObject((__int64)v4);
*(_QWORD *)v4 = off_1008F0638;
*((_DWORD *)v4 + 14) = 0;
*((_OWORD *)v4 + 4) = 0u;
*((_OWORD *)v4 + 5) = 0u;
*((_OWORD *)v4 + 6) = 0u;
if ( *(char *)(a2 + 23) < 0 )
sub_1000097D0(&__p, *(void **)a2, *(_QWORD *)(a2 + 8));
else
__p = *(std::string *)a2;
*((_DWORD *)v4 + 14) = a1;
std::string::operator=((std::string *)(v4 + 64), &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease((__int64)v4);
return v4;
}