//
// MusicArtistObject::create from 0x10058e2c0 to 0x10058e42f (367 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::createArtistsInfo @ 0x10058d9b8
// > MusicDownloadManager::parseMusicLibrary @ 0x100592657
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char *__fastcall MusicArtistObject::create(int a1, __int128 *a2, __int128 *a3, std::string *a4)
{
char *v6; // rbx
__int128 v7; // xmm0
std::string __str; // [rsp+0h] [rbp-80h] BYREF
std::string v10; // [rsp+20h] [rbp-60h] BYREF
std::string v11; // [rsp+40h] [rbp-40h] BYREF
v6 = (char *)operator new(0x88u);
cocos2d::CCObject::CCObject((__int64)v6);
*(_QWORD *)v6 = off_1009709C0;
*((_DWORD *)v6 + 14) = 0;
*(_QWORD *)&v7 = 0;
*((_OWORD *)v6 + 4) = 0;
*((_OWORD *)v6 + 5) = 0;
*((_OWORD *)v6 + 6) = 0;
*((_OWORD *)v6 + 7) = 0;
*((_QWORD *)v6 + 16) = 0;
if ( (*(_BYTE *)a2 & 1) == 0 )
{
__str.__r_.__value_.__r.__words[2] = *((_QWORD *)a2 + 2);
v7 = *a2;
*(_OWORD *)&__str.__r_.__value_.__l.0 = *a2;
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
LABEL_6:
v10.__r_.__value_.__r.__words[2] = *((_QWORD *)a3 + 2);
v7 = *a3;
*(_OWORD *)&v10.__r_.__value_.__l.0 = *a3;
if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_4;
goto LABEL_7;
}
sub_100006B70(&__str, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), 0.0);
if ( (*(_BYTE *)a3 & 1) == 0 )
goto LABEL_6;
LABEL_3:
sub_100006B70(&v10, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), *(double *)&v7);
if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_4:
v11 = *a4;
goto LABEL_8;
}
LABEL_7:
sub_100006B70(&v11, a4->__r_.__value_.__l.__data_, a4->__r_.__value_.__l.__size_, *(double *)&v7);
LABEL_8:
*((_DWORD *)v6 + 14) = a1;
std::string::operator=((std::string *)(v6 + 64), &__str);
std::string::operator=((std::string *)(v6 + 88), &v10);
std::string::operator=((std::string *)(v6 + 112), &v11);
if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) == 0 )
{
if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_10;
LABEL_14:
operator delete(v10.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_12;
goto LABEL_11;
}
operator delete(v11.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_14;
LABEL_10:
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
LABEL_11:
operator delete(__str.__r_.__value_.__l.__data_);
LABEL_12:
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}