RtlpHpSegLockAcquire

UINT8 __fastcall RtlpHpSegLockAcquire(__int64 a1, char a2){
  UINT8 result; 

  result = -1;
  if( (a2 & 1) == 0 )
    return RtlpHpAcquireLockExclusive((_EX_PUSH_LOCK *)(a1 + 64), *(_DWORD *)(a1 + 40) & 1);
  return result;
}

Referenced by:

RtlpHpSegContextCompact
RtlpHpSegPageRangeAllocate
RtlpHpSegPageRangeCoalesce