ExAcquireSpinLockExclusiveAtDpcLevel

VOID __stdcall ExAcquireSpinLockExclusiveAtDpcLevel(INT64 *SpinLock){
  UINT64 v1; 
  UINT64 *v2; 
  signed __int32 v4; 
  bool v5; 
  signed __int32 v6; 
  UINT64 SpinCount; 
  LODWORD(SpinCount) = 0;
  if( _interlockedbittestandset((volatile signed __int32 *)SpinLock, 0x1Fu) )
  {
    LOBYTE(v1) = -1;
    LODWORD(SpinCount) = ExpWaitForSpinLockExclusiveAndAcquire((RTL_BITMAP *)SpinLock, v1, v2);
  }
  v4 = *(_DWORD *)SpinLock;
  while( (v4 & 0xBFFFFFFF) != 0x80000000 )
  {
    if( (v4 & 0x40000000) == 0 )
    {
      v6 = _InterlockedCompareExchange((volatile signed __int32 *)SpinLock, v4 | 0x40000000, v4);
      v5 = v4 == v6;
      v4 = v6;
      if( !v5 )
        continue;
    }
    KeYieldProcessorEx(&SpinCount);
    v4 = *(_DWORD *)SpinLock;
  }
}

Referenced by:

DbgpInsertDebugPrintCallback
DbgpRemoveDebugPrintCallback
KeAdjustTimerDelayProcess
KeForceResumeProcess
KeFreezeProcess
KeRecomputeCpuSetAffinityProcess
KeSetAffinityProcess
KeSetAffinityThread
KeSetCpuSetsProcess
KeSetDisableQuantumProcess
KeSetExecuteOptions
KeSetPriorityAndQuantumProcess
KeSetProcessSchedulingGroup
KeSetQuantumProcess
KeStartThread
KeTerminateThread
KeThawProcess
KeTransitionProcessorParkState
KiAbEntryGetLockedHeadEntry
KiAbEntryRemoveFromTree
KiAcquireReleaseObjectRundownLockExclusive
MiBeginPageAccessor
MiClearFilePointer
MiCopyDataPageToImagePage
MiCopyFileOnlyGlobalSubsectionPage
MiCopyImageExtentContents
MiDbgTranslatePhysicalAddress
MiDrainCrossPartitionUsage
MiFaultGetFileExtents
MiFlushSectionInternal
MiGatherMappedPages
MiInsertPageInList
MiInsertUnusedSegment
MiInsertUnusedSubsection
MiLockAllMemoryLists
MiLockPageTableInternal
MiNoPagesLastChance
MiOutPageSingleKernelStack
MiPreventControlAreaDeletion
MiPurgeSubsection
MiReferenceIoPages
MiReferencePageRuns
MiReleasePageFileInfo
MiRemoveFaultNode
MiRemoveUnusedSegment
MiRemoveUnusedSubsection
MiSectionCreated
MiWaitForPageWriteCompletion
MiWalkPageTables
MiWalkPageTablesRecursively
MiZeroSectionObjectPointer
MmLockLoadedModuleListExclusive
MmUnmapViewInSystemCache
PopPepLockActivityLink
PopPepWork
PspIumReplenishPartitionPages
ViAvlAcquireTableLockAtDpcLevelSafe
ViDeadlockDetectionLock
VmpFaultEntryInsert
VmpFaultEntryRemove
VmpProcessContextLockExclusive
VslIumEfiRuntimeService