RtlpHpAcquireLockShared

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

Referenced by:

RtlpHpLargeLockAcquireShared
RtlpHpLfhContextCompact
RtlpHpLfhOwnerCompact
RtlpHpLfhSlotAllocate
RtlpHpLfhSubsegmentCreate
RtlpHpLfhSubsegmentDecommitPages