//
// sub_D1C0D8 from 0xd1c0d8 to 0xd1c140 (104 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_D1C0D8(const wchar_t **a1)
{
const wchar_t *v1; // x1
int v2; // w4
__int64 v3; // x19
v1 = *a1;
v2 = *(*a1 - 2);
v3 = *((_QWORD *)*a1 - 3) - 1LL;
if ( (v2 & 0x80000000) == 0 && *a1 - 6 != (const wchar_t *)&qword_124B6D0 )
{
if ( v2 )
{
sub_D1B4BC(a1, 0, 0, 0);
v1 = *a1;
}
*((_DWORD *)v1 - 2) = -1;
}
return &v1[v3];
}