RtlpHpSegMgrVaCtxInitialize

NTSTATUS __stdcall RtlpHpSegMgrVaCtxInitialize(INT64 a1, INT64 a2, UINT64 a3, UINT64 a4){
  __int128 v4; 
  unsigned int v5; 
  unsigned int v6; 
  __int64 v7; 
  __int128 v9; 
  __int64 v10; 
  int v11; 

  v4 = *(_OWORD *)(a1 + 40);
  v10 = 0i64;
  v5 = a4;
  v6 = a3;
  v9 = v4;
  RtlpHpQueryVA(a2, &v9, &v10, &v11);
  v7 = v10;
  *(_WORD *)(v10 + 2) = (1 << (v5 / v6)) - 2;
  *(_QWORD *)(v7 + 8) = -1i64;
  return v7;
}

Referenced by:

RtlpHpSegMgrReserve