//
// SongInfoObject::copyValues from 0x964bf8 to 0x964d58 (352 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::addSongObjectFromString @ 0x975af4
// > ??> @ 0xa24c0
//
// 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:35 +0000
//
__int64 *__fastcall SongInfoObject::copyValues(__int64 *this, SongInfoObject *a2)
{
__int64 v2; // x19
SongInfoObject *v3; // x20
__int64 *v4; // x0
__int64 v5; // x2
__int64 *v6; // x0
__int64 v7; // x2
__int64 v8; // x2
const void *v9; // x1
size_t v10; // x2
if ( !a2 )
return this;
if ( (*(_BYTE *)(this + 66) & 1) != 0 )
{
v2 = (__int64)this;
v3 = a2;
if ( *(this + 67) )
goto LABEL_4;
}
else
{
v2 = (__int64)this;
v3 = a2;
if ( *((_BYTE *)this + 528) >> 1 )
goto LABEL_4;
}
SongInfoObject::setSongLinks(this, (__int64)a2 + 528);
LABEL_4:
if ( (*(_BYTE *)(v2 + 552) & 1) != 0 )
{
if ( *(_QWORD *)(v2 + 560) )
goto LABEL_6;
LABEL_27:
SongInfoObject::setArtistLinks((__int64 *)v2, (__int64)v3 + 552);
goto LABEL_6;
}
if ( !(*(_BYTE *)(v2 + 552) >> 1) )
goto LABEL_27;
LABEL_6:
v4 = (__int64 *)(v2 + 368);
v5 = *(_BYTE *)(v2 + 368) >> 1;
if ( (*(_BYTE *)(v2 + 368) & 1) != 0 )
v5 = *(_QWORD *)(v2 + 376);
if ( !v5 && v4 != (__int64 *)((char *)v3 + 368) )
{
if ( (*((_BYTE *)v3 + 368) & 1) != 0 )
std::string::assign(v4, *((const void **)v3 + 48), *((_QWORD *)v3 + 47));
else
std::string::assign(v4, (char *)v3 + 369, *((_BYTE *)v3 + 368) >> 1);
}
v6 = (__int64 *)(v2 + 408);
v7 = *(_BYTE *)(v2 + 408) >> 1;
if ( (*(_BYTE *)(v2 + 408) & 1) != 0 )
v7 = *(_QWORD *)(v2 + 416);
if ( !v7 && v6 != (__int64 *)((char *)v3 + 408) )
{
if ( (*((_BYTE *)v3 + 408) & 1) != 0 )
std::string::assign(v6, *((const void **)v3 + 53), *((_QWORD *)v3 + 52));
else
std::string::assign(v6, (char *)v3 + 409, *((_BYTE *)v3 + 408) >> 1);
}
this = (__int64 *)(v2 + 464);
v8 = *(_BYTE *)(v2 + 464) >> 1;
if ( (*(_BYTE *)(v2 + 464) & 1) != 0 )
v8 = *(_QWORD *)(v2 + 472);
if ( !v8 && this != (__int64 *)((char *)v3 + 464) )
{
if ( (*((_BYTE *)v3 + 464) & 1) != 0 )
{
v9 = *((const void **)v3 + 60);
v10 = *((_QWORD *)v3 + 59);
}
else
{
v9 = (char *)v3 + 465;
v10 = *((_BYTE *)v3 + 464) >> 1;
}
return std::string::assign(this, v9, v10);
}
return this;
}