//
// MusicArtistObject::create from 0x10064e3f0 to 0x10064e4a6 (182 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::createArtistsInfo @ 0x10064dae8
// > MusicDownloadManager::parseMusicLibrary @ 0x10065ab92
//
// 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:48 +0000
//
char *__fastcall MusicArtistObject::create(int a1, std::string *a2)
{
char *v2; // rbx
std::string __str; // [rsp+0h] [rbp-40h] BYREF
v2 = (char *)operator new(0x70u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = off_100B83350;
*((_DWORD *)v2 + 14) = 0;
*((_OWORD *)v2 + 4) = 0;
*((_OWORD *)v2 + 5) = 0;
*((_OWORD *)v2 + 6) = 0;
if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )
sub_10001AD30(&__str, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_);
else
__str = *a2;
*((_DWORD *)v2 + 14) = a1;
std::string::operator=((std::string *)(v2 + 64), &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease((__int64)v2);
return v2;
}