INT64 __fastcall RtlpHpVsContextAllocate(INT64 a1, UINT64 a2, INT64 a3, UINT64 a4){
char v4;
CHAR *Internal;
int v8;
INT64 v9[2];
__int64 v10;
v8 = 0;
v4 = a4;
*(_OWORD *)v9 = 0i64;
v10 = 0i64;
Internal = RtlpHpVsContextAllocateInternal((INT64 *)a1, a2, a3, a4, (INT64)v9, (INT64)&v8);
if( v8 && (v4 & 1) == 0 )
RtlpHpReleaseQueuedLockExclusive(*(unsigned int *)(a1 + 8), (INT64)v9);
return(INT64)Internal;
}