PoStartStopWatch

CHAR __stdcall PoStartStopWatch(INT64 a1){
  signed __int32 v1; 
  INT64 *v2; 
  INT64 v3; 
  unsigned int v4; 

  v1 = _InterlockedIncrement((volatile signed __int32 *)(a1 + 40));
  _InterlockedAdd((volatile signed __int32 *)(a1 + 44), 1u);
  if( v1 == 1 )
  {
    PopInternalUpdateStopWatchState(a1);
    v3 = *v2;
    v1 = v4 + _InterlockedExchangeAdd((volatile signed __int32 *)(*v2 + 48), v4);
    if( v1 == v4 )
      LOBYTE(v1) = PopInternalUpdateActiveStopWatchesCollectionState(v3);
  }
  return v1;
}

Referenced by:

PopStatsMarkPowerRequestActive
PopStatsScenarioStateChange