//
// sub_D1B6B8 from 0xd1b6b8 to 0xd1b714 (92 bytes)
//
// 7 xrefs:
// > sub_B4B7FC @ 0xb4b8b8
// > sub_D004F0 @ 0xd00640
// > sub_D004F0 @ 0xd00674
// > sub_D00C0C @ 0xd00d5c
// > sub_D00C0C @ 0xd00d90
// > sub_D01328 @ 0xd013e8
// > sub_D06B78 @ 0xd06c84
//
// 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_D1B6B8(const wchar_t **result)
{
const wchar_t *v1; // x1
const wchar_t **v2; // x19
v1 = *result;
if ( *result - 6 != (const wchar_t *)&qword_124B6D0 )
{
if ( *(v1 - 2) > 0 )
{
v2 = result;
sub_D1B4BC(result, 0, 0, 0);
v1 = *v2;
}
*((_DWORD *)v1 - 2) = -1;
return (const wchar_t **)0xFFFFFFFFLL;
}
return result;
}