MiMakeProtectionPfnCompatible

UINT64 __stdcall MiMakeProtectionPfnCompatible(UINT64 ProtectionMask, _MMPFN *Pfn1){
  unsigned int v2; 
  char v3; 
  v2 = ProtectionMask & 7;
  v3 = *((_BYTE *)Pfn1 + 34) >> 6;
  if( v3 )
  {
    if( v3 == 2 )
      v2 |= 0x18u;
  }
  else
  {
    v2 |= 8u;
  }
  return v2;
}

Referenced by:

MiCopySinglePage
MiDbgTranslatePhysicalAddress
MiFillSystemPtes
MiGetPageChain
MiInitializeNewUltraHugeContext
MiInitializeSlowPte
MiInsertPhysicalPteMapping
MiMapMdlCommon
MiMapMemoryDumpMdl
MiMapSinglePage
MiPrivateFixup
MiRelocateImagePfn
MiScrubNodeLargePageList
MiScrubPage
MiTimeSingleLargePageZeroWorker
MiUpdateImagePfnImportRelocations
MiValidateImagePfn
MiZeroLargePage
MiZeroPhysicalPage
MiZeroWithSystemPtes
MiZeroWithUltraSpace
MmProtectMdlSystemAddress