//
// SongInfoObject::updateArtists from 0x10015b510 to 0x10015b60c (252 bytes)
//
// 1 xrefs:
// > SongInfoObject::init @ 0x10015b498
//
// 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
//
void __fastcall SongInfoObject::updateArtists(__int64 a1, const std::string *a2)
{
__int128 *v3; // x20
__int128 *i; // x21
__int128 v5; // q0
void **v6; // x0
int v7; // [xsp+Ch] [xbp-54h] BYREF
void *__p[2]; // [xsp+10h] [xbp-50h] BYREF
__int64 v9; // [xsp+20h] [xbp-40h]
__int128 *v10; // [xsp+28h] [xbp-38h] BYREF
__int128 *v11; // [xsp+30h] [xbp-30h]
__int64 v12; // [xsp+38h] [xbp-28h]
std::string::operator=((std::string *)(a1 + 480), a2);
sub_100018054((_QWORD *)(a1 + 560));
if ( (*(char *)(a1 + 503) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(a1 + 488) )
return;
}
else if ( !*(_BYTE *)(a1 + 503) )
{
return;
}
v10 = nullptr;
v11 = nullptr;
v12 = 0;
sub_100155A98((std::string *)(a1 + 480), ".", (__int64)&v10);
v3 = v10;
for ( i = v11; v3 != i; v3 = (__int128 *)((char *)v3 + 24) )
{
if ( *((char *)v3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)v3, *((_QWORD *)v3 + 1));
}
else
{
v5 = *v3;
v9 = *((_QWORD *)v3 + 2);
*(_OWORD *)__p = v5;
}
if ( v9 >= 0 )
v6 = __p;
else
v6 = (void **)__p[0];
v7 = atoi((const char *)v6);
sub_10001C1B0(a1 + 560, &v7, &v7);
if ( SHIBYTE(v9) < 0 )
operator delete(__p[0]);
}
__p[0] = &v10;
sub_1000177FC((void ***)__p);
}