//
// MusicDownloadManager::nameForTagID from 0x45b92c to 0x45b998 (108 bytes)
//
// 1 xrefs:
// > SongInfoObject::getTagsString @ 0x45ba30
//
// 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
//
MusicDownloadManager *__fastcall MusicDownloadManager::nameForTagID(MusicDownloadManager *this, _DWORD *a2, int a3)
{
_DWORD *v4; // r4
_DWORD *i; // r3
_DWORD *v6; // r7
int v8; // [sp+4h] [bp-10h] BYREF
v8 = a3;
v4 = a2 + 81;
for ( i = (_DWORD *)a2[82]; i; i = v6 )
{
if ( i[4] >= a3 )
{
v6 = (_DWORD *)i[2];
}
else
{
v6 = (_DWORD *)i[3];
i = v4;
}
v4 = i;
}
if ( v4 == a2 + 81 || a3 < v4[4] )
{
sub_776584((int)this, (char *)&unk_939830);
}
else
{
std::map::operator[](a2 + 80, &v8, a3);
sub_775C20(this);
}
return this;
}