//
// sub_D1D0F8 from 0xd1d0f8 to 0xd1d184 (140 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
//
_QWORD *__fastcall sub_D1D0F8(unsigned __int64 a1, wchar_t a2)
{
_QWORD *v2; // x20
unsigned __int64 *v6; // x0
unsigned __int64 *v7; // x22
if ( !a1 )
return &unk_124B6E8;
v6 = sub_D1B424(a1, 0);
v7 = v6;
v2 = v6 + 3;
if ( a1 == 1 )
*((_DWORD *)v6 + 6) = a2;
else
wmemset((wchar_t *)v6 + 6, a2, a1);
if ( v7 != (unsigned __int64 *)&qword_124B6D0 )
{
*((_DWORD *)v7 + 4) = 0;
*v7 = a1;
*((_DWORD *)v7 + a1 + 6) = 0;
}
return v2;
}