//
// sub_D1B784 from 0xd1b784 to 0xd1b7e4 (96 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_D1B784(const wchar_t **a1, size_t a2, unsigned __int64 a3)
{
size_t v4; // x3
v4 = *((_QWORD *)*a1 - 3);
if ( a2 > v4 )
sub_D13C5C("%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::erase", a2, v4);
if ( v4 - a2 <= a3 )
a3 = v4 - a2;
sub_D1B4BC(a1, a2, a3, 0);
return a1;
}