PspCheckConditionalWakeCharge

CHAR __fastcall PspCheckConditionalWakeCharge(INT64 a1, INT64 a2){
  __int64 v2; 
  __int64 v4; 
  int v5; 
  _QWORD *v6; 
  v2 = a1;
  if( !*(_QWORD *)(a1 + 1296) || *(_QWORD *)(*(_QWORD *)(a1 + 1296) + 1080i64) != *(_QWORD *)(a2 + 1080) )
    return 1;
  while( (unsigned int)PspIsProcessInJob(v2, a2) != 292 || (v5 & *(_DWORD *)(v4 + 952)) == 0 )
  {
    if( v4 == *v6 )
      return 1;
    a2 = *(_QWORD *)(v4 + 1072);
  }
  return 0;
}

Referenced by:

PspChargeProcessWakeCounter