//
// MusicDownloadManager::nameForTagID from 0x10065eb00 to 0x10065ec30 (304 bytes)
//
// 1 xrefs:
// > SongInfoObject::getTagsString @ 0x100666660
//
// 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 12:34:55 +0000
//
_QWORD *__fastcall MusicDownloadManager::nameForTagID(_QWORD *a1, __int64 a2, int a3)
{
char *v3; // rax
__int64 *v4; // rcx
_QWORD *v5; // r14
int v6; // r15d
__int64 v7; // r12
_QWORD *v8; // r13
char *v10; // rbx
__int64 v11; // rax
char *v12; // rbx
_QWORD *v13; // [rsp+0h] [rbp-30h]
v3 = *(char **)(a2 + 472);
if ( !v3 )
{
LABEL_12:
*(_WORD *)a1 = 0;
return a1;
}
v4 = *(__int64 **)(a2 + 472);
while ( *((_DWORD *)v4 + 8) > a3 )
{
LABEL_3:
v4 = (__int64 *)*v4;
if ( !v4 )
goto LABEL_12;
}
if ( *((_DWORD *)v4 + 8) < a3 )
{
++v4;
goto LABEL_3;
}
do
{
while ( 1 )
{
v5 = v3;
if ( *((_DWORD *)v3 + 8) > a3 )
break;
if ( *((_DWORD *)v3 + 8) >= a3 )
{
v10 = v3;
if ( (v3[40] & 1) != 0 )
goto LABEL_21;
LABEL_19:
v12 = v10 + 40;
a1[2] = *((_QWORD *)v12 + 2);
*(_OWORD *)a1 = *(_OWORD *)v12;
return a1;
}
v3 = *((char **)v3 + 1);
if ( !v3 )
{
v6 = a3;
v7 = a2;
v13 = a1;
v8 = v5 + 1;
goto LABEL_16;
}
}
v3 = *(char **)v3;
}
while ( *v5 );
v6 = a3;
v7 = a2;
v13 = a1;
v8 = v5;
LABEL_16:
v10 = (char *)operator new(0x40u);
*((_DWORD *)v10 + 8) = v6;
*(_OWORD *)(v10 + 40) = 0;
*((_QWORD *)v10 + 7) = 0;
*(_OWORD *)v10 = 0;
*((_QWORD *)v10 + 2) = v5;
*v8 = v10;
v11 = **(_QWORD **)(v7 + 464);
if ( v11 )
*(_QWORD *)(v7 + 464) = v11;
sub_10001B680(*(__int64 **)(v7 + 472), (__int64 *)v10);
++*(_QWORD *)(v7 + 480);
a1 = v13;
if ( (v10[40] & 1) == 0 )
goto LABEL_19;
LABEL_21:
sub_10001AD30(a1, *((const void **)v10 + 7), *((_QWORD *)v10 + 6));
return a1;
}