//
// SongInfoObject::getTagsString from 0x45b9a0 to 0x45baf4 (340 bytes)
//
// 2 xrefs:
// > CustomSongWidget::onMore @ 0x3dd4c4
// > CustomSongWidget::updateSongInfo @ 0x3de41a
//
// 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
//
SongInfoObject *__fastcall SongInfoObject::getTagsString(SongInfoObject *this, _DWORD *a2, int a3)
{
int v6; // r10
int v7; // r9
int v8; // r11
MusicDownloadManager *v9; // r0
cocos2d::CCString *v10; // r0
char *CString; // r0
_DWORD *v12; // r4
int v14; // [sp+0h] [bp-24h]
_BYTE v15[4]; // [sp+14h] [bp-10h] BYREF
int v16; // [sp+18h] [bp-Ch] BYREF
if ( a3 )
{
if ( *(_DWORD *)(a2[99] - 12) )
goto LABEL_5;
}
else if ( *(_DWORD *)(a2[98] - 12) )
{
LABEL_5:
sub_775C20(this);
return this;
}
if ( a2[97] )
{
v6 = 0;
sub_776584((int)v15, (char *)&unk_939830);
v7 = a2[95];
v8 = 1;
while ( (_DWORD *)v7 != a2 + 93 )
{
v14 = *(_DWORD *)(v7 + 16);
v9 = MusicDownloadManager::sharedState();
MusicDownloadManager::nameForTagID((MusicDownloadManager *)&v16, v9, v14);
if ( *(_DWORD *)(v16 - 12) )
{
if ( !v8 )
sub_774544((int)v15, ", ");
sub_77441C(v15, &v16);
++v6;
if ( a3 && v6 > 3 )
{
if ( a2[97] - v6 > 0 )
{
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)" +%i",
(const char *)(a2[97] - v6));
CString = (char *)cocos2d::CCString::getCString(v10);
sub_774544((int)v15, CString);
}
sub_774008(&v16);
goto LABEL_23;
}
v8 = 0;
}
sub_774008(&v16);
v7 = sub_761FE0(v7);
}
if ( !a3 )
{
v12 = a2 + 98;
goto LABEL_22;
}
LABEL_23:
v12 = a2 + 99;
LABEL_22:
sub_775D40(v12, v15);
sub_775C20(this);
sub_774008(v15);
}
else
{
sub_776584((int)this, (char *)&unk_939830);
}
return this;
}