RtlClearBits
VOID *__stdcall RtlClearBits(PRTL_BITMAP BitMapHeader, UINT32 StartingIndex, UINT32 NumberToClear){
VOID *result;
unsigned __int64 v4;
__int64 v5;
_BYTE *v6;
__int64 v7;
if( NumberToClear )
{
v4 = StartingIndex;
v5 = StartingIndex & 7;
v6 = (char *)BitMapHeader->Buffer + (v4 >> 3);
v7 = NumberToClear;
if( (unsigned int)v5 + NumberToClear <= 8 )
{
result = (VOID *)(unsigned __int8)byte_14001DA00[NumberToClear];
LOBYTE(result) = ~((_BYTE)result << v5);
LABEL_4:
*v6 &= (unsigned __int8)result;
return result;
}
if( (_DWORD)v5 )
{
result = (VOID *)(unsigned __int8)byte_14001DA00[v5];
v7 = (unsigned int)v5 + NumberToClear - 8;
*v6++ &= (unsigned __int8)result;
}
if( (unsigned int)v7 > 8 )
{
result = memset(v6, 0i64, (unsigned int)v7 >> 3);
v6 += (unsigned __int64)(unsigned int)v7 >> 3;
v7 &= 7u;
}
if( (_DWORD)v7 )
{
result = (VOID *)(unsigned __int8)byte_14001A768[v7];
goto LABEL_4;
}
}
return result;
}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