RtlpHpVsContextAllocate

NTSTATUS __stdcall RtlpHpVsContextAllocate(INT64 a1, UINT64 a2, INT64 a3, UINT64 a4){
  char v4; 
  NTSTATUS Internal; 
  int v8; 
  INT64 v9[2]; 
  __int64 v10; 

  v8 = 0;
  v4 = a4;
  *(_OWORD *)v9 = 0i64;
  v10 = 0i64;
  Internal = (unsigned int)RtlpHpVsContextAllocateInternal(a1, a2, a3, a4, (INT64)v9, (__int64)&v8);
  if( v8 && (v4 & 1) == 0 )
    RtlpHpReleaseQueuedLockExclusive(*(unsigned int *)(a1 + 8), (INT64)v9);
  return Internal;
}

Referenced by:

RtlpAllocateHeapInternal
RtlpHpAllocateHeapInternal