PfSnCheckLoggingForThread

UINT64 __stdcall PfSnCheckLoggingForThread(_ETHREAD *Thread, _PFSN_TRACE_HEADER *Trace, UINT64 Flags){
  __int64 v3; 
  __int64 v4; 
  __int64 v5; 
  unsigned int v6; 

  if( (((Flags & 2) == 0) & ((unsigned __int8)Thread->$84F33738BEE95ACDF5C5BF1C8FDC7C8C::_bf_0 >> 6)) != 0 )
    return 0;
  if( PsGetIoPriorityThread(Thread) < IoPriorityNormal )
  {
    _InterlockedIncrement((volatile signed __int32 *)(v3 + 336));
    return 0;
  }
  v5 = *(_QWORD *)(v3 + 432);
  v6 = 0;
  if( !v5 || v5 == v4 && *(_QWORD *)(v3 + 440) == *(_QWORD *)(v4 + 1152) )
    return 1;
  return v6;
}

Referenced by:

MiCompleteRestrictedImageFault
MiMakeSystemCacheRangeValid
PfFileInfoNotify
PfSnLogPageFault