//
// MusicDownloadManager::nameForTagID from 0x100159838 to 0x1001598ec (180 bytes)
//
// 1 xrefs:
// > SongInfoObject::getTagsString @ 0x10015c1e0
//
// 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
//
_QWORD *__usercall MusicDownloadManager::nameForTagID@(__int64 a1@, int a2@, _QWORD *a3@)
{
__int64 *v4; // x8
int v5; // w9
_QWORD *result; // x0
__int128 v7; // q0
int v8; // [xsp+0h] [xbp-20h] BYREF
int *v9; // [xsp+8h] [xbp-18h] BYREF
v8 = a2;
v4 = *(__int64 **)(a1 + 448);
if ( !v4 )
return sub_100009900(a3, "");
while ( 1 )
{
v5 = *((_DWORD *)v4 + 8);
if ( v5 <= a2 )
break;
LABEL_6:
v4 = (__int64 *)*v4;
if ( !v4 )
return sub_100009900(a3, "");
}
if ( v5 < a2 )
{
++v4;
goto LABEL_6;
}
v9 = &v8;
result = sub_10006E5E0(a1 + 440, &v8, (__int64)&unk_100638B16, &v9);
if ( *((char *)result + 63) < 0 )
return sub_1000097D0(a3, (void *)result[5], result[6]);
v7 = *(_OWORD *)(result + 5);
a3[2] = result[7];
*(_OWORD *)a3 = v7;
return result;
}