//
// sub_D1E2A8 from 0xd1e2a8 to 0xd1e364 (188 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_QWORD *__fastcall sub_D1E2A8(const wchar_t *a1, const wchar_t *a2)
{
signed __int64 v2; // x19
unsigned __int64 v4; // x21
unsigned __int64 *v5; // x0
unsigned __int64 *v6; // x23
_QWORD *v7; // x22
if ( a1 == a2 )
return &unk_124B6E8;
v2 = (char *)a2 - (char *)a1;
v4 = a2 - a1;
v5 = sub_D1B424(v4, 0);
v6 = v5;
v7 = v5 + 3;
if ( v4 == 1 )
*((_DWORD *)v5 + 6) = *a1;
else
wmemcpy((wchar_t *)v5 + 6, a1, v4);
if ( v6 != (unsigned __int64 *)&qword_124B6D0 )
{
*((_DWORD *)v6 + 4) = 0;
*v6 = v4;
*(_DWORD *)((char *)v6 + v2 + 24) = 0;
}
return v7;
}