//
// sub_741684 from 0x741684 to 0x741864 (480 bytes)
//
// 3 xrefs:
// > ArtistCell::onNewgrounds @ 0x7418b0
// > ArtistCell::onYouTube @ 0x741974
// > ArtistCell::loadFromObject @ 0x741c04
//
// 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:52:44 +0000
//
__int64 *__usercall sub_741684@(SongInfoObject *a1@, int a2@, __int64 *a3@)
{
void *v4; // x22
__int64 v5; // x3
__int64 v6; // x19
__int64 v7; // x0
__int64 v8; // x4
void **v9; // x19
__int64 v11; // x1
_DWORD *v13; // [xsp+40h] [xbp+40h] BYREF
void *v14; // [xsp+48h] [xbp+48h]
SongInfoObject::getArtistLinks((__int64 *)&v13, a1);
v4 = v13;
v5 = 0x6DB6DB6DB6DB6DB7LL * (((_BYTE *)v14 - (_BYTE *)v13) >> 3);
if ( !v5 )
{
LABEL_6:
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
std::string::__init(a3, &byte_11B8890, 0);
goto LABEL_7;
}
if ( v13[1] != a2 )
{
v6 = (__int64)(v13 + 14);
v7 = 0;
while ( ++v7 != v5 )
{
v8 = v6;
v6 += 56;
if ( *(_DWORD *)(v6 - 52) == a2 )
goto LABEL_19;
}
goto LABEL_6;
}
v8 = (__int64)v13;
LABEL_19:
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
if ( (*(_BYTE *)(v8 + 32) & 1) != 0 )
{
std::string::__init(a3, *(void **)(v8 + 48), *(_QWORD *)(v8 + 40));
LABEL_7:
v4 = v13;
if ( !v13 )
return a3;
goto LABEL_8;
}
v11 = *(_QWORD *)(v8 + 40);
*a3 = *(_QWORD *)(v8 + 32);
a3[1] = v11;
a3[2] = *(_QWORD *)(v8 + 48);
LABEL_8:
v9 = (void **)v14;
if ( v4 != v14 )
{
do
{
v14 = v9 - 7;
if ( (*(_BYTE *)(v9 - 3) & 1) != 0 )
operator delete(*(v9 - 1));
if ( (*(_BYTE *)(v9 - 6) & 1) != 0 )
operator delete(*(v9 - 4));
v9 = (void **)v14;
}
while ( v4 != v14 );
v9 = (void **)v13;
}
operator delete(v9);
return a3;
}