HvlpEnableRootVirtualProcessor

NTSTATUS __stdcall HvlpEnableRootVirtualProcessor(_KPRCB *Prcb, UINT64 ApicId){
  _HVLP_LPCB *LpcbByApicId; 
  _HVLP_LPCB *v4; 
  NTSTATUS result; 
  char v6; 
  unsigned int Number; 
  bool v8; 

  LpcbByApicId = HvlpGetLpcbByApicId((unsigned int)ApicId);
  v4 = LpcbByApicId;
  if( (HvlpRootFlags & 0x40) == 0
    || (result = HvlpCreateRootVirtualProcessor((__int64)LpcbByApicId, Prcb->Number), result >= 0) )
  {
    v6 = byte_140C123B0;
    Prcb->StatisticsPage = (unsigned __int64 *)*((_QWORD *)v4 + 4);
    Number = Prcb->Number;
    v8 = Number == v4[1];
    v4[6] = Number;
    if( !v8 )
      v6 = 0;
    result = 0;
    byte_140C123B0 = v6;
  }
  return result;
}

Referenced by:

HvlInitializeProcessor