PopCheckResiliencyScenarios

VOID __stdcall PopCheckResiliencyScenarios(){
  char v0; 
  char v1; 
  char v2; 
  bool v3; 
  char v4; 
  v0 = PopCurrentCoalescingSpindownTimeout != 0;
  if( !PopDeepSleepEnforced && !PopCoalescingEnforced )
  {
    v1 = 1;
    if( byte_140C23E54 )
    {
      v2 = PopPdcIdleResiliency;
      if( PopDeepSleepEnabled() )
      {
        if( v2 )
          PpmDripsStateIndex = PpmGetDeepSleepPlatformStateIndex();
        else
          PpmDripsStateIndex = -1;
      }
    }
    else
    {
      v2 = 0;
    }
    v3 = PopDeepSleepEnabled();
    if( !v4 || !PopDppeCoalescingSpindownTimeout )
      v1 = 0;
    if( v2 && v3 )
    {
      PopDeepSleepClearDisengageReason(0i64);
    }
    else
    {
      PopDeepSleepSetDisengageReason(0i64);
      if( byte_140C23E54 && !PopDeepSleepEnabled() )
      {
        PpmAcquireLock(&PopFxSystemLatencyLock);
        if( PopIdleResiliencyIsEngagedWithoutDeepSleep != v2 )
        {
          PopIdleResiliencyIsEngagedWithoutDeepSleep = v2;
          PoFxSendSystemLatencyUpdate();
        }
        PpmReleaseLock(&PopFxSystemLatencyLock);
      }
    }
    if( v1 != v0 )
    {
      PopCoalescingState = (2 * v1) | PopCoalescingState & 0xFD;
      PopEnsureCoalescingWorkerWillRun();
    }
  }
}

Referenced by:

PdcPoResiliencyClient
PopCoalescingPowerSettingCallback
PopCoalescingSetActiveState
PopDeepSleepPowerSettingCallback
PopHandleSystemRequiredPowerRequestsUpdate
PopPdcIdleResiliencyCallback
PopTransitionSystemPowerStateEx
PopUpdateConsoleDisplayState