PspIsProcessInJob

__int64 __fastcall PspIsProcessInJob(__int64 a1, __int64 a2){
  __int64 v2; 
  __int64 result; 
  bool v4; 
  v2 = *(_QWORD *)(a1 + 1296);
  result = 291i64;
  while( v2 )
  {
    v4 = v2 == a2;
    v2 = *(_QWORD *)(v2 + 1072);
    if( v4 )
      result = 292i64;
  }
  return result;
}

Referenced by:

NtIsProcessInJob
PspCheckConditionalWakeCharge
PspGetJobAssignmentDisposition