//
// fmt::internal::UTF8ToUTF16::UTF8ToUTF16 from 0x180017210 to 0x18001726c (92 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8710
//
// 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 11:21:25 +0000
//
__int64 *__fastcall fmt::internal::UTF8ToUTF16::UTF8ToUTF16(__int64 *a1, __int64 *a2)
{
__int64 v2; // r8
__int64 *v4; // rcx
v2 = *a2;
*a1 = *a2;
a1[1] = a2[1];
v4 = (__int64 *)a2[2];
if ( v4 == a2 + 3 )
{
a1[2] = (__int64)(a1 + 3);
memmove(a1 + 3, a2 + 3, 2 * v2);
}
else
{
a1[2] = (__int64)v4;
a2[2] = (__int64)(a2 + 3);
}
return a1;
}