KeIsEqualAffinityEx

__int64 __fastcall KeIsEqualAffinityEx(unsigned __int16 *a1, unsigned __int16 *a2){
  unsigned __int16 *v2; 
  unsigned __int16 v3; 
  unsigned __int16 v5; 
  v2 = a2;
  v3 = *a1;
  if( *a1 >= *a2 )
    v3 = *a2;
  if( *a1 >= *a2 )
    v2 = a1;
  v5 = 0;
  if( v3 )
  {
    while( *(_QWORD *)&a1[4 * v5 + 4] == *(_QWORD *)&a2[4 * v5 + 4] )
    {
      if( ++v5 >= v3 )
        goto LABEL_8;
    }
    return 0i64;
  }
  else
  {
LABEL_8:
    while( v5 < *v2 )
    {
      if( *(_QWORD *)&v2[4 * v5 + 4] )
        return 0i64;
      ++v5;
    }
    return 1i64;
  }
}

Referenced by:

KeIsSubsetAffinityEx
PpmHeteroComputeRelativePerformance
PpmParkReportMask
PpmRegisterPerfStates
PspSetEffectiveJobLimits