MiValidateZeroBits

NTSTATUS __stdcall MiValidateZeroBits(UINT64 *ZeroBits){
  UINT64 v1; 
  UINT64 v4; 

  v1 = *ZeroBits;
  if( *ZeroBits
    && (v1 < 0x20 ? (v4 = v1 + 32) : (v4 = 63 - RtlFindMostSignificantBit(*ZeroBits)), *ZeroBits = v4, v4 > 0x35) )
  {
    return -1073741811;
  }
  else
  {
    return 0;
  }
}

Referenced by:

MiAllocateVirtualMemoryPrepare
NtCreateEnclave
NtMapViewOfSection