//
// MusicDownloadManager::nameForTagID from 0x9717c0 to 0x9718bc (252 bytes)
//
// 2 xrefs:
// > SongInfoObject::getTagsString @ 0x971974
// > ??> @ 0xebb40
//
// 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:57:41 +0000
//
__int64 *__usercall MusicDownloadManager::nameForTagID@(
MusicDownloadManager *this@,
int a2@,
__int64 *a3@)
{
__int64 *v4; // x2
int v5; // w3
__int64 v7; // x0
__int64 v8; // x1
int v9[3]; // [xsp+2Ch] [xbp+2Ch] BYREF
int *v10; // [xsp+40h] [xbp+40h] BYREF
v4 = *((__int64 **)this + 59);
v9[0] = a2;
while ( 1 )
{
if ( !v4 )
{
LABEL_5:
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
std::string::__init(a3, &byte_11B8890, 0);
return a3;
}
while ( 1 )
{
v5 = *((_DWORD *)v4 + 8);
if ( a2 >= v5 )
break;
v4 = (__int64 *)*v4;
if ( !v4 )
goto LABEL_5;
}
if ( a2 <= v5 )
break;
v4 = (__int64 *)v4[1];
}
v10 = v9;
v7 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 58,
v9,
(__int64)&unk_1168A28,
&v10);
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
if ( (*(_BYTE *)(v7 + 40) & 1) != 0 )
{
std::string::__init(a3, *(void **)(v7 + 56), *(_QWORD *)(v7 + 48));
}
else
{
v8 = *(_QWORD *)(v7 + 48);
*a3 = *(_QWORD *)(v7 + 40);
a3[1] = v8;
a3[2] = *(_QWORD *)(v7 + 56);
}
return a3;
}