PdcPoCurrentPdcPhase
VOID __stdcall PdcPoCurrentPdcPhase(PDC_CS_PHASE PdcPhase, UINT8 Enter){
unsigned int v2;
__int32 v3;
__int32 v4;
__int32 v5;
__int32 v6;
*(&stru_140CF2E80 + 1638) = PdcPhase;
v3 = PdcPhase - 1;
if( v3 )
{
v4 = v3 - 1;
if( v4 )
{
v5 = v4 - 4;
if( v5 )
{
v6 = v5 - 1;
if( v6 )
{
if( v6 == 1 )
PopPowerAggregatorNotifyResiliencyReached();
}
else if( Enter )
{
qword_140C4FC88 = KeQueryPerformanceCounter(0i64);
PopDeepSleepResiliencyPhaseAccountingBegin((_TOKEN *)3, 0i64);
if( (*(&stru_140C23628 + 4232) & 2) != 0 )
PopFxResumeDeviceAccounting();
}
else
{
qword_140C4FC90 += KeQueryPerformanceCounter(0i64) - qword_140C4FC88;
if( (*(&stru_140C23628 + 4232) & 2) != 0 )
PopFxPauseDeviceAccounting();
PopDeepSleepResiliencyPhaseAccountingEnd(3u, 0);
}
}
else
{
PopPowerAggregatorNotifyPdcSleepTransition(Enter, v2);
}
}
else
{
PopIdleCsStateChanged(Enter != 0);
}
}
else
{
PopDisarmIdlePhaseWatchdog();
}
}Referenced by:
No references.