//
// fmt::internal::UTF16ToUTF8::str from 0x1800215f0 to 0x180021624 (52 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801aee18
//
// 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 fmt::internal::UTF16ToUTF8::str(_QWORD *a1, _QWORD *a2)
{
const void *v3; // rdx
size_t v4; // r8
v3 = (const void *)a1[2];
v4 = *a1 - 1LL;
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 0;
sub_18000CE60(a2, v3, v4);
return a2;
}