//
// SongInfoObject::setArtistLinks from 0x140496860 to 0x1404968fc (156 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::addSongObjectFromString @ 0x140482f26
// > SongInfoObject::createWithCoder @ 0x1404959bc
// > ??> @ 0x140928fd0
//
// 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 11:32:52 +0000
//
__int64 __fastcall SongInfoObject::setArtistLinks(__int64 a1, void **a2)
{
void **v3; // rdi
void **v4; // rcx
__int64 v5; // rbp
__int64 v6; // rbx
v3 = a2;
v4 = (void **)(a1 + 632);
if ( v4 != a2 )
{
if ( (unsigned __int64)a2[3] > 0xF )
a2 = (void **)*a2;
sub_1400405A0(v4, a2, (size_t)v3[2]);
}
v5 = *(_QWORD *)(a1 + 696);
v6 = *(_QWORD *)(a1 + 688);
if ( v6 != v5 )
{
do
{
sub_14003D310(v6 + 40);
sub_14003D310(v6 + 8);
v6 += 72;
}
while ( v6 != v5 );
*(_QWORD *)(a1 + 696) = *(_QWORD *)(a1 + 688);
}
return MusicDownloadManager::parseLinkRows(v3, a1 + 688);
}