KeRemoveProcessorAffinityEx

NTSTATUS __fastcall KeRemoveProcessorAffinityEx(UINT16 *a1, INT64 a2){
  unsigned int v3; 
  __int64 v4; 
  __int64 v5; 

  v3 = KiProcessorIndexToNumberMappingTable[(unsigned int)a2];
  v4 = v3 >> 6;
  if( *a1 > (unsigned int)v4 )
  {
    v5 = (unsigned int)v4;
    v4 = *(_QWORD *)&a1[4 * v4 + 4] & ~(1i64 << (v3 & 0x3F));
    *(_QWORD *)&a1[4 * v5 + 4] = v4;
  }
  return v4;
}

Referenced by:

EtwpGetMicroarchitecturalPmcAffinity
HalpInterruptSendIpi
HalpNmiReboot
KeBugCheck2
KeFlushProcessWriteBuffers
KeFreezeExecution
KeSynchronizeAddressPolicy
KeSynchronizeSecurityDomain
KiCheckKeepAlive
KiIpiSendRequest
KiSendFreeze
KxFlushEntireTb
KxFlushNonGlobalTb
PnprQuiesceProcessors
PpmIdleExecuteTransition
PpmParkUnblockIdle
PpmPerfApplyProcessorStates
PpmUnlockProcessors
RtlUpdateSwapReference