RtlClearBits

VOID __stdcall RtlClearBits(RTL_BITMAP *BitMapHeader, UINT64 StartingIndex, UINT64 NumberToClear){
  unsigned __int64 v3; 
  UINT64 v4; 
  _BYTE *v5; 
  __int64 v6; 
  char v7; 
  if( (_DWORD)NumberToClear )
  {
    v3 = (unsigned int)StartingIndex;
    v4 = StartingIndex & 7;
    v5 = (char *)BitMapHeader->Buffer + (v3 >> 3);
    v6 = (unsigned int)NumberToClear;
    if( (unsigned int)(v4 + NumberToClear) <= 8 )
    {
      v7 = ~(byte_14001DA00[(unsigned int)NumberToClear] << v4);
LABEL_4:
      *v5 &= v7;
      return;
    }
    if( (_DWORD)v4 )
    {
      v6 = (unsigned int)(v4 + NumberToClear - 8);
      *v5++ &= byte_14001DA00[v4];
    }
    if( (unsigned int)v6 > 8 )
    {
      memset((INT64)v5, 0i64);
      v5 += (unsigned __int64)(unsigned int)v6 >> 3;
      v6 &= 7u;
    }
    if( (_DWORD)v6 )
    {
      v7 = byte_14001A768[v6];
      goto LABEL_4;
    }
  }
}

Referenced by:

CmpCheckValueList
ExtEnvClearBits
HalpDmaAllocateLocalContiguousPool
HalpDmaAllocateScatterPagesFromContiguousPoolAtHighLevelV2
HalpDmaAllocateScatterPagesFromContiguousPoolAtHighLevelV3
HalpDmaCommitContiguousMapBuffers
HalpDmaReturnToContiguousPool
HalpIommuProcessIvhdEntry
HalpIrtAllocateIndex
HalpIrtFreeIndex
HalpMmAllocCtxFree
HalpPowerInitDiscard
HsaAllocateRemappingTableEntry
HsaUpdateRemappingTableEntry
HvFreeHivePartial
HvIsCellAllocated
HvpAdjustBitmap
HvpGrowDirtyVectors
HvpRemoveFreeCellHint
MiAssignSessionRanges
MiAssignSystemVa
MiAttemptPageFileReductionApc
MiCreateSessionDriverProtos
MiFinishPageFileExtension
MiFreeInitializationCode
MiPrepareToHotPatchImagePatchCallback
MiProcessHotPatchUndoTable
MiReduceMappedFileReadAhead
MiReduceMappedFileReadBehind
MiReleaseDriverPtes
MiStoreSetPageFileRunEvicted
MiStoreWriteModifiedPages
MiTrimWorkingSetBuildup
PnprMarkOrMirrorPages
PopMirrorPhysicalMemory
PspQueryRateControlHistory
RtlFindSetBitsAndClear
RtlShiftLeftBitMap
SepGetLowBoxNumberEntry
SmcStorePlacementGet
ViFreeToContiguousMemory