MiShouldLockPteDirectly

BOOL __fastcall MiShouldLockPteDirectly(INT64 a1, UINT64 a2){
  return(*(_BYTE *)(a1 + 184) & 7) == 0
      || a2 < (unsigned __int64)MmGetPml4eBase()
      || a2 > (unsigned __int64)MmGetPml4eLimit();
}

Referenced by:

MiIsPageTableLocked
MiUnlockNestedPageTableWritePte