PopUpdateOverThrottledCount

VOID __stdcall PopUpdateOverThrottledCount(_POP_THERMAL_ZONE *ThermalZone, UINT8 Increment){
  _DEVICE_OBJECT *v2; 
  UINT64 v4; 
  UINT64 v5; 
  int Buffer; 

  v2 = (_DEVICE_OBJECT *)*((_QWORD *)ThermalZone + 6);
  Buffer = 0;
  PopDiagTraceThermalOverthrottleState(v2, Increment);
  PopAcquirePolicyLock();
  if( Increment )
  {
    if( ++dword_140C22C68 == 1 )
    {
      Buffer = 1;
LABEL_5:
      LODWORD(v5) = 0;
      LODWORD(v4) = 0;
      ZwUpdateWnfStateData(&WNF_PO_THERMAL_OVERTHROTTLE, &Buffer, 4ui64, 0i64, 0i64, v4, v5);
    }
  }
  else if( !--dword_140C22C68 )
  {
    goto LABEL_5;
  }
  PopReleasePolicyLock();
}

Referenced by:

PopCheckAndHandleThermalConditions
PopThermalZoneRemove