//
// sub_D1C1FC from 0xd1c1fc to 0xd1c26c (112 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
//
char *__fastcall sub_D1C1FC(const wchar_t **a1, __int64 a2, wchar_t a3)
{
__int64 v4; // x19
const wchar_t *v6; // x1
v4 = a2 - (_QWORD)*a1;
if ( *((_QWORD *)*a1 - 3) == 0xFFFFFFFFFFFFFFELL )
sub_D13AF4("basic_string::_M_replace_aux");
sub_D1B4BC(a1, v4 >> 2, 0, 1);
v6 = *a1;
*(const wchar_t *)((char *)v6 + v4) = a3;
*((_DWORD *)v6 - 2) = -1;
return (char *)v6 + v4;
}