RtlpHpLfhSubsegmentSetUnusedBytes

NTSTATUS __stdcall RtlpHpLfhSubsegmentSetUnusedBytes(INT64 a1, INT64 a2, INT64 a3){
  NTSTATUS result; 
  __int16 v4; 

  result = WORD4(RtlpHpHeapGlobals);
  if( (_DWORD)a3 == 1 )
  {
    v4 = 0x8000;
  }
  else
  {
    result = 0x3FFF;
    v4 = a3 & 0x3FFF;
  }
  *(_WORD *)((WORD4(RtlpHpHeapGlobals) ^ *(unsigned __int16 *)(a1 + 40) ^ (unsigned __int64)(unsigned __int16)((unsigned int)a1 >> 12))
           + a2
           - 2) = v4;
  return result;
}

Referenced by:

RtlpHpLfhSlotAllocate