//
// GJEditorSoundConfig::copyServerFields from 0xcdb1f0 to 0xcdb384 (404 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf404
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf440
// > ??> @ 0xe5840
//
// 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 13:06:33 +0000
//
__int64 *__fastcall GJEditorSoundConfig::copyServerFields(__int64 *this, GJEditorSoundConfig *a2)
{
__int64 *v2; // x20
__int64 *v4; // x0
__int64 *v5; // x0
__int64 *v6; // x0
__int64 *v7; // x0
char *v8; // x1
size_t v9; // x2
if ( a2 )
{
v2 = this;
v4 = this + 47;
*((_DWORD *)v2 + 79) = *((_DWORD *)a2 + 79);
if ( v4 != (__int64 *)((char *)a2 + 376) )
{
if ( (*((_BYTE *)a2 + 376) & 1) != 0 )
std::string::assign(v4, *((const void **)a2 + 49), *((_QWORD *)a2 + 48));
else
std::string::assign(v4, (char *)a2 + 377, *((_BYTE *)a2 + 376) >> 1);
}
v5 = v2 + 50;
if ( v2 + 50 != (__int64 *)((char *)a2 + 400) )
{
if ( (*((_BYTE *)a2 + 400) & 1) != 0 )
std::string::assign(v5, *((const void **)a2 + 52), *((_QWORD *)a2 + 51));
else
std::string::assign(v5, (char *)a2 + 401, *((_BYTE *)a2 + 400) >> 1);
}
v6 = v2 + 56;
*((_DWORD *)v2 + 82) = *((_DWORD *)a2 + 82);
*((_DWORD *)v2 + 85) = *((_DWORD *)a2 + 85);
if ( v2 + 56 != (__int64 *)((char *)a2 + 448) )
{
if ( (*((_BYTE *)a2 + 448) & 1) != 0 )
std::string::assign(v6, *((const void **)a2 + 58), *((_QWORD *)a2 + 57));
else
std::string::assign(v6, (char *)a2 + 449, *((_BYTE *)a2 + 448) >> 1);
}
v7 = v2 + 59;
*((_DWORD *)v2 + 86) = *((_DWORD *)a2 + 86);
*((_DWORD *)v2 + 87) = *((_DWORD *)a2 + 87);
*((_BYTE *)v2 + 372) = *((_BYTE *)a2 + 372);
*((_DWORD *)v2 + 91) = *((_DWORD *)a2 + 91);
*((_DWORD *)v2 + 92) = *((_DWORD *)a2 + 92);
*((_DWORD *)v2 + 88) = *((_DWORD *)a2 + 88);
*((_DWORD *)v2 + 89) = *((_DWORD *)a2 + 89);
*((_DWORD *)v2 + 90) = *((_DWORD *)a2 + 90);
if ( v2 + 59 != (__int64 *)((char *)a2 + 472) )
{
if ( (*((_BYTE *)a2 + 472) & 1) != 0 )
std::string::assign(v7, *((const void **)a2 + 61), *((_QWORD *)a2 + 60));
else
std::string::assign(v7, (char *)a2 + 473, *((_BYTE *)a2 + 472) >> 1);
}
this = v2 + 53;
*((_BYTE *)v2 + 496) = *((_BYTE *)a2 + 496);
if ( v2 + 53 != (__int64 *)((char *)a2 + 424) )
{
if ( (*((_BYTE *)a2 + 424) & 1) != 0 )
{
v8 = *((char **)a2 + 55);
v9 = *((_QWORD *)a2 + 54);
}
else
{
v8 = (char *)a2 + 425;
v9 = *((_BYTE *)a2 + 424) >> 1;
}
return std::string::assign(this, v8, v9);
}
}
return this;
}