//
// SongInfoObject::copyValues from 0x10064d2b0 to 0x10064d512 (610 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::addSongObjectFromString @ 0x10064c1ce
//
// 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:47 +0000
//
std::string *__fastcall SongInfoObject::copyValues(__int64 a1, __int64 a2, double a3)
{
std::string *result; // rax
unsigned int v4; // eax
unsigned int v5; // eax
unsigned int v6; // eax
__int64 v7; // r13
__int64 i; // r12
__int64 v9; // r13
__int64 j; // r12
unsigned int v11; // eax
unsigned int v12; // eax
if ( !a2 )
return result;
v4 = *(unsigned __int8 *)(a1 + 528);
if ( (v4 & 1) != 0 )
{
if ( *(_QWORD *)(a1 + 536) )
{
LABEL_4:
v5 = *(unsigned __int8 *)(a1 + 552);
if ( (v5 & 1) == 0 )
goto LABEL_5;
goto LABEL_18;
}
}
else if ( v4 >> 1 )
{
goto LABEL_4;
}
std::string::operator=((std::string *)(a1 + 528), (const std::string *)(a2 + 528));
v7 = *(_QWORD *)(a1 + 576);
for ( i = *(_QWORD *)(a1 + 584); i != v7; i -= 56 )
{
if ( (*(_BYTE *)(i - 24) & 1) != 0 )
operator delete(*(void **)(i - 8));
if ( (*(_BYTE *)(i - 48) & 1) != 0 )
operator delete(*(void **)(i - 32));
}
*(_QWORD *)(a1 + 584) = v7;
sub_10065DF30(a2 + 528, a1 + 576, a3);
v5 = *(unsigned __int8 *)(a1 + 552);
if ( (v5 & 1) == 0 )
{
LABEL_5:
if ( v5 >> 1 )
goto LABEL_6;
goto LABEL_19;
}
LABEL_18:
if ( *(_QWORD *)(a1 + 560) )
{
LABEL_6:
v6 = *(unsigned __int8 *)(a1 + 368);
if ( (v6 & 1) == 0 )
goto LABEL_7;
LABEL_27:
if ( !*(_QWORD *)(a1 + 376) )
goto LABEL_31;
LABEL_28:
v11 = *(unsigned __int8 *)(a1 + 408);
if ( (v11 & 1) != 0 )
goto LABEL_32;
LABEL_29:
if ( v11 >> 1 )
goto LABEL_33;
LABEL_36:
std::string::operator=((std::string *)(a1 + 408), (const std::string *)(a2 + 408));
v12 = *(unsigned __int8 *)(a1 + 464);
if ( (v12 & 1) == 0 )
{
LABEL_34:
result = (std::string *)(v12 >> 1);
if ( result )
return result;
return std::string::operator=((std::string *)(a1 + 464), (const std::string *)(a2 + 464));
}
goto LABEL_37;
}
LABEL_19:
std::string::operator=((std::string *)(a1 + 552), (const std::string *)(a2 + 552));
v9 = *(_QWORD *)(a1 + 600);
for ( j = *(_QWORD *)(a1 + 608); j != v9; j -= 56 )
{
if ( (*(_BYTE *)(j - 24) & 1) != 0 )
operator delete(*(void **)(j - 8));
if ( (*(_BYTE *)(j - 48) & 1) != 0 )
operator delete(*(void **)(j - 32));
}
*(_QWORD *)(a1 + 608) = v9;
sub_10065DF30(a2 + 552, a1 + 600, a3);
v6 = *(unsigned __int8 *)(a1 + 368);
if ( (v6 & 1) != 0 )
goto LABEL_27;
LABEL_7:
if ( v6 >> 1 )
goto LABEL_28;
LABEL_31:
std::string::operator=((std::string *)(a1 + 368), (const std::string *)(a2 + 368));
v11 = *(unsigned __int8 *)(a1 + 408);
if ( (v11 & 1) == 0 )
goto LABEL_29;
LABEL_32:
if ( !*(_QWORD *)(a1 + 416) )
goto LABEL_36;
LABEL_33:
v12 = *(unsigned __int8 *)(a1 + 464);
if ( (v12 & 1) == 0 )
goto LABEL_34;
LABEL_37:
result = *(std::string **)(a1 + 472);
if ( !result )
return std::string::operator=((std::string *)(a1 + 464), (const std::string *)(a2 + 464));
return result;
}