//
// SongInfoObject::init from 0x1005970a0 to 0x1005972ee (590 bytes)
//
// 1 xrefs:
// > SongInfoObject::create @ 0x100593fea
//
// 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
//
_BOOL8 __fastcall SongInfoObject::init(
__int64 a1,
int a2,
const std::string *a3,
const std::string *a4,
int a5,
const std::string *a6,
float a7,
std::string *a8,
std::string *a9,
std::string *a10,
int a11,
__int128 *a12,
char a13,
int a14,
int a15)
{
double v18; // xmm0_8
__int64 v19; // rax
char *v20; // r15
int v21; // ecx
__int128 v24; // [rsp+10h] [rbp-50h] BYREF
void *__p; // [rsp+20h] [rbp-40h]
float v26; // [rsp+30h] [rbp-30h]
bool v27; // [rsp+37h] [rbp-29h]
v26 = a7;
v27 = cocos2d::CCNode::init((cocos2d::CCNode *)a1);
if ( v27 )
{
*(_DWORD *)(a1 + 316) = a2;
std::string::operator=((std::string *)(a1 + 320), a3);
std::string::operator=((std::string *)(a1 + 344), a4);
*(_DWORD *)(a1 + 464) = a5;
*(_QWORD *)&v18 = LODWORD(v26);
*(float *)(a1 + 468) = v26;
std::string::operator=((std::string *)(a1 + 368), a6);
std::string::operator=((std::string *)(a1 + 392), a8);
*(_DWORD *)(a1 + 508) = a15;
std::string::operator=((std::string *)(a1 + 416), a9);
std::string::operator=((std::string *)(a1 + 440), a10);
*(_DWORD *)(a1 + 472) = a11;
*(_BYTE *)(a1 + 520) = a13;
*(_DWORD *)(a1 + 524) = a14;
if ( (*(_BYTE *)a12 & 1) != 0 )
{
sub_100006B70(&v24, *((const void **)a12 + 2), *((_QWORD *)a12 + 1), v18);
}
else
{
__p = *((void **)a12 + 2);
v24 = *a12;
}
SongInfoObject::updateArtists(a1, &v24);
if ( (v24 & 1) != 0 )
operator delete(__p);
if ( *(_DWORD *)(a1 + 508) == -1 )
{
v19 = qword_1009A2C38;
if ( !qword_1009A2C38 )
{
v20 = (char *)operator new(0x230u);
cocos2d::CCNode::CCNode((__int64)v20);
*(_QWORD *)v20 = off_100970158;
*((_QWORD *)v20 + 40) = off_1009704D8;
*((_OWORD *)v20 + 28) = 0;
*(_OWORD *)(v20 + 328) = 0;
*(_OWORD *)(v20 + 344) = 0;
*((_DWORD *)v20 + 90) = 0;
*((_OWORD *)v20 + 23) = 0;
*((_OWORD *)v20 + 24) = 0;
*((_OWORD *)v20 + 25) = 0;
v20[416] = 0;
*(_OWORD *)(v20 + 424) = 0;
*((_QWORD *)v20 + 55) = v20 + 448;
*((_OWORD *)v20 + 30) = 0;
*((_OWORD *)v20 + 31) = 0;
*((_QWORD *)v20 + 58) = 0;
*(_QWORD *)(v20 + 471) = 0;
*((_DWORD *)v20 + 128) = 1065353216;
*(_OWORD *)(v20 + 520) = 0;
*(_OWORD *)(v20 + 536) = 0;
*((_DWORD *)v20 + 138) = 1065353216;
qword_1009A2C38 = (__int64)v20;
MusicDownloadManager::init((MusicDownloadManager *)v20);
v19 = qword_1009A2C38;
}
v21 = *(_DWORD *)(v19 + 360) + 1;
*(_DWORD *)(v19 + 360) = v21;
*(_DWORD *)(a1 + 508) = v21;
}
}
return v27;
}