//
// sub_D1A1CC from 0xd1a1cc to 0xd1a1f0 (36 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
//
wchar_t *__fastcall sub_D1A1CC(wchar_t *a1, const wchar_t *a2, __int64 a3)
{
size_t v4; // x2
wchar_t *result; // x0
v4 = (a3 - (__int64)a2) >> 2;
if ( v4 != 1 )
return wmemcpy(a1, a2, v4);
result = (wchar_t *)*(unsigned int *)a2;
*a1 = (int)result;
return result;
}