//
// fmt::internal::UTF8ToUTF16::operator= from 0x1800181c0 to 0x18001824d (141 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae7ac
//
// 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
//
__int64 *__fastcall fmt::internal::UTF8ToUTF16::operator=(__int64 *a1, __int64 *a2)
{
void *v2; // rsi
void *v4; // rcx
__int64 v6; // r8
__int64 *v7; // rcx
v2 = a1 + 3;
v4 = (void *)a1[2];
if ( v4 != v2 )
j_j_free_0(v4);
v6 = *a2;
*a1 = *a2;
a1[1] = a2[1];
v7 = (__int64 *)a2[2];
if ( v7 == a2 + 3 )
{
a1[2] = (__int64)v2;
memmove(v2, a2 + 3, 2 * v6);
}
else
{
a1[2] = (__int64)v7;
a2[2] = (__int64)(a2 + 3);
}
return a1;
}