//
// sub_1001D3DB4 from 0x1001d3db4 to 0x1001d3e90 (220 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::addSongObjectFromString @ 0x1001d34a4
//
// 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 11:00:24 +0000
//
std::string *__fastcall sub_1001D3DB4(std::string *result, __int64 a2)
{
std::string *v3; // x20
if ( !a2 )
return result;
v3 = result;
if ( (SHIBYTE(result[22].__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
{
if ( result[22].__r_.__value_.__l.__size_ )
goto LABEL_4;
}
else if ( *((_BYTE *)&result[22].__r_.__value_.__s + 23) )
{
goto LABEL_4;
}
result = (std::string *)sub_1001E1FD0(result, a2 + 528);
LABEL_4:
if ( (SHIBYTE(v3[23].__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
{
if ( v3[23].__r_.__value_.__l.__size_ )
goto LABEL_6;
}
else if ( *((_BYTE *)&v3[23].__r_.__value_.__s + 23) )
{
goto LABEL_6;
}
result = (std::string *)sub_1001E2030(v3, a2 + 552);
LABEL_6:
if ( (v3[16].__r_.__value_.__s.__data_[7] & 0x8000000000000000LL) != 0 )
{
if ( v3[15].__r_.__value_.__r.__words[2] )
goto LABEL_8;
}
else if ( v3[16].__r_.__value_.__s.__data_[7] )
{
goto LABEL_8;
}
result = std::string::operator=((std::string *)((char *)v3 + 368), (const std::string *)(a2 + 368));
LABEL_8:
if ( (SHIBYTE(v3[17].__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
{
if ( v3[17].__r_.__value_.__l.__size_ )
goto LABEL_10;
LABEL_20:
result = std::string::operator=(v3 + 17, (const std::string *)(a2 + 408));
goto LABEL_10;
}
if ( !*((_BYTE *)&v3[17].__r_.__value_.__s + 23) )
goto LABEL_20;
LABEL_10:
if ( (v3[20].__r_.__value_.__s.__data_[7] & 0x8000000000000000LL) == 0 )
{
if ( v3[20].__r_.__value_.__s.__data_[7] )
return result;
return std::string::operator=((std::string *)((char *)v3 + 464), (const std::string *)(a2 + 464));
}
if ( !v3[19].__r_.__value_.__r.__words[2] )
return std::string::operator=((std::string *)((char *)v3 + 464), (const std::string *)(a2 + 464));
return result;
}