RtlpHpSegMgrVaCtxInitialize

INT64 __fastcall RtlpHpSegMgrVaCtxInitialize(INT64 a1, INT64 a2, UINT64 a3, UINT64 a4){
  __int128 v4; 
  unsigned int v5; 
  unsigned int v6; 
  INT64 result; 
  __int128 v8; 
  INT64 v9; 
  int v10; 
  v4 = *(_OWORD *)(a1 + 40);
  v9 = 0i64;
  v5 = a4;
  v6 = a3;
  v8 = v4;
  RtlpHpQueryVA(a2, &v8, &v9, &v10);
  result = v9;
  *(_WORD *)(v9 + 2) = (1 << (v5 / v6)) - 2;
  *(_QWORD *)(result + 8) = -1i64;
  return result;
}

Referenced by:

RtlpHpSegMgrReserve