//
// sub_D1C26C from 0xd1c26c to 0xd1c2fc (144 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
//
const wchar_t **__fastcall sub_D1C26C(const wchar_t **a1, size_t a2, wchar_t a3)
{
wchar_t *v6; // x0
if ( a2 > 0xFFFFFFFFFFFFFFELL )
sub_D13AF4("basic_string::_M_replace_aux");
sub_D1B4BC(a1, 0, *((_QWORD *)*a1 - 3), a2);
if ( !a2 )
return a1;
v6 = (wchar_t *)*a1;
if ( a2 != 1 )
{
wmemset(v6, a3, a2);
return a1;
}
*v6 = a3;
return a1;
}