PopPowerAggregatorSystemTransitionExitStateHandler

INT64 __fastcall PopPowerAggregatorSystemTransitionExitStateHandler(INT64 a1){
  UINT64 v1; 
  UINT8 v2; 
  UINT8 v3; 
  int v4; 
  int v6; 
  INT64 v8[2]; 
  __int128 v9; 
  v4 = *(_DWORD *)(a1 + 88);
  if( v4 )
  {
    if( v4 == 1 )
      goto LABEL_5;
    if( (unsigned int)(v4 - 2) > 2 )
      return 0i64;
  }
  KeResetEvent((VOID *)(a1 + 280), v1, v2, v3, (IRP *)v8[0]);
  *(_DWORD *)(a1 + 88) = 1;
LABEL_5:
  v6 = *(_DWORD *)(a1 + 92);
  *(_OWORD *)v8 = 0i64;
  LODWORD(v8[0]) = v6;
  v9 = 0i64;
  PopPowerAggregatorSetCurrentState(a1, (INT64)v8);
  PopPowerAggregatorStartNextSession(0, 11);
  PopReleaseRwLock((UINT64)&PopPowerAggregatorLock);
  if( qword_140C54120 )
  {
    qword_140C54120(2i64);
    if( qword_140C54120 )
      qword_140C54120(3i64);
  }
  PopAcquireRwLockExclusive((_POP_RW_LOCK *)&PopPowerAggregatorLock);
  return 0i64;
}

Referenced by:

No references.