//
// SongInfoObject::setArtistLinks from 0x964b50 to 0x964bf8 (168 bytes)
//
// 4 xrefs:
// > SongInfoObject::copyValues @ 0x964d00
// > SongInfoObject::create @ 0x9745e0
// > SongInfoObject::createWithCoder @ 0x97647c
// > ??> @ 0x452f8
//
// 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 12:57:35 +0000
//
__int64 __fastcall SongInfoObject::setArtistLinks(__int64 *a1, __int64 a2)
{
__int64 *v3; // x0
__int64 v5; // x21
__int64 v6; // x19
v3 = a1 + 69;
if ( v3 != (__int64 *)a2 )
{
if ( (*(_BYTE *)a2 & 1) != 0 )
std::string::assign(v3, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8));
else
std::string::assign(v3, (const void *)(a2 + 1), *(_BYTE *)a2 >> 1);
}
v5 = a1[75];
while ( 1 )
{
v6 = a1[76];
if ( v5 == v6 )
break;
while ( 1 )
{
a1[76] = v6 - 56;
if ( (*(_BYTE *)(v6 - 24) & 1) != 0 )
operator delete(*(void **)(v6 - 8));
if ( (*(_BYTE *)(v6 - 48) & 1) == 0 )
break;
operator delete(*(void **)(v6 - 32));
v6 = a1[76];
if ( v5 == v6 )
return MusicDownloadManager::parseLinkRows(a2, a1 + 75);
}
}
return MusicDownloadManager::parseLinkRows(a2, a1 + 75);
}