//
// sub_10013825C from 0x10013825c to 0x100138320 (196 bytes)
//
// 3 xrefs:
// > ArtistCell::loadFromObject @ 0x10012aae4
// > ArtistCell::onNewgrounds @ 0x1001381fc
// > ArtistCell::onYouTube @ 0x100138374
//
// 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 10:59:27 +0000
//
__int64 __usercall sub_10013825C@(int a1@, _QWORD *a2@)
{
unsigned __int64 v4; // x9
__int128 *v5; // x8
__int128 v6; // q0
__int64 v8; // [xsp+0h] [xbp-30h] BYREF
__int64 v9; // [xsp+8h] [xbp-28h]
__int64 *v10; // [xsp+18h] [xbp-18h] BYREF
SongInfoObject::getArtistLinks(&v8);
if ( v9 == v8 )
{
LABEL_7:
sub_100009900(a2, "");
}
else
{
v4 = 0x6DB6DB6DB6DB6DB7LL * ((v9 - v8) >> 3);
if ( v4 <= 1 )
v4 = 1;
v5 = (__int128 *)(v8 + 32);
while ( *((_DWORD *)v5 - 7) != a1 )
{
v5 = (__int128 *)((char *)v5 + 56);
if ( !--v4 )
goto LABEL_7;
}
if ( *((char *)v5 + 23) < 0 )
{
sub_1000097D0(a2, *(void **)v5, *((_QWORD *)v5 + 1));
}
else
{
v6 = *v5;
a2[2] = *((_QWORD *)v5 + 2);
*(_OWORD *)a2 = v6;
}
}
v10 = &v8;
return sub_10013BA64(&v10);
}