MiIsPteEvaluated

NTSTATUS __stdcall MiIsPteEvaluated(_MMPTE *RealPte, UINT64 ProtectionMask){
  __int64 v2; 
  UINT64 v3; 
  NTSTATUS result; 
  int v5; 
  unsigned __int64 v6; 

  v2 = (unsigned int)ProtectionMask;
  LODWORD(v3) = MI_READ_PTE_LOCK_FREE((INT64)RealPte);
  result = 0;
  if( v3 )
  {
    if( (v3 & 1) != 0 )
      return 1;
    if( (v3 & 0x400) == 0 )
      return 1;
    LOBYTE(v5) = MiIsPrototypePteVadLookup(v3);
    if( !v5 || ((v6 >> 5) & 0x1F) != v2 )
      return 1;
  }
  return result;
}

Referenced by:

MiExpandSharedZeroCluster
MiGetClusterPage