//
// sub_1004DEA44 from 0x1004dea44 to 0x1004deae4 (160 bytes)
//
// 2 xrefs:
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1004d43f4
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1004d443c
//
// 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:06:36 +0000
//
std::string *__fastcall sub_1004DEA44(std::string *result, __int64 a2)
{
std::string *v3; // x20
if ( a2 )
{
v3 = result;
HIDWORD(result[13].__r_.__value_.__r.__words[0]) = *(_DWORD *)(a2 + 316);
std::string::operator=((std::string *)((char *)result + 376), (const std::string *)(a2 + 376));
std::string::operator=((std::string *)((char *)v3 + 400), (const std::string *)(a2 + 400));
LODWORD(v3[13].__r_.__value_.__r.__words[2]) = *(_DWORD *)(a2 + 328);
HIDWORD(v3[14].__r_.__value_.__r.__words[0]) = *(_DWORD *)(a2 + 340);
std::string::operator=((std::string *)((char *)v3 + 448), (const std::string *)(a2 + 448));
v3[14].__r_.__value_.__l.__size_ = *(_QWORD *)(a2 + 344);
v3[15].__r_.__value_.__s.__data_[12] = *(_BYTE *)(a2 + 372);
LODWORD(v3[15].__r_.__value_.__r.__words[1]) = *(_DWORD *)(a2 + 368);
*(_OWORD *)&v3[14].__r_.__value_.__r.__words[2] = *(_OWORD *)(a2 + 352);
std::string::operator=((std::string *)((char *)v3 + 472), (const std::string *)(a2 + 472));
v3[20].__r_.__value_.__s.__data_[16] = *(_BYTE *)(a2 + 496);
return std::string::operator=((std::string *)((char *)v3 + 424), (const std::string *)(a2 + 424));
}
return result;
}