RtlpHpAcquireLockExclusive

UINT8 __fastcall RtlpHpAcquireLockExclusive(INT64 *a1, INT64 a2){
  _ETHREAD *CurrentThread; 
  if( (_DWORD)a2 )
    return ExAcquireSpinLockExclusive((PEX_SPIN_LOCK)a1);
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --*((_WORD *)CurrentThread + 243);
  ExAcquirePushLockExclusiveEx((UINT64)a1, 0i64);
  return -1;
}

Referenced by:

RtlpHpFixedVsAllocate
RtlpHpFixedVsFree
RtlpHpHeapExtendContext
RtlpHpLargeLockAcquire
RtlpHpLfhBucketAddSubsegment
RtlpHpLfhBucketGetSubsegment
RtlpHpLfhBucketUpdateAffinityMapping
RtlpHpLfhSlotAllocate
RtlpHpLfhSubsegmentDecommitPages
RtlpHpLfhSubsegmentFreeBlock
RtlpHpLfhSubsegmentIncBlockCounts
RtlpHpSegLockAcquire
RtlpHpSegMgrCommitInitiate
RtlpHpSegMgrVaCtxAlloc
RtlpHpSegMgrVaCtxFree
RtlpHpSegMgrVaCtxInsert
RtlpHpVaMgrAlloc
RtlpHpVaMgrCtxFree