content: package androidx.lifecycle;
  
  import java.util.concurrent.atomic.AtomicReference;
  
  public abstract class Lifecycle {
      AtomicReference<Object> mInternalScopeRef = new AtomicReference<>();
  
      /* renamed from: androidx.lifecycle.Lifecycle$1  reason: invalid class name */
      static /* synthetic */ class AnonymousClass1 {
          static final /* synthetic */ int[] $SwitchMap$androidx$lifecycle$Lifecycle$Event;
          static final /* synthetic */ int[] $SwitchMap$androidx$lifecycle$Lifecycle$State;
  
          static {
              int[] iArr = new int[Event.values().length];
              $SwitchMap$androidx$lifecycle$Lifecycle$Event = iArr;
              try {
                  iArr[Event.ON_CREATE.ordinal()] = 1;
              } catch (NoSuchFieldError e) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$Event[Event.ON_STOP.ordinal()] = 2;
              } catch (NoSuchFieldError e2) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$Event[Event.ON_START.ordinal()] = 3;
              } catch (NoSuchFieldError e3) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$Event[Event.ON_PAUSE.ordinal()] = 4;
              } catch (NoSuchFieldError e4) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$Event[Event.ON_RESUME.ordinal()] = 5;
              } catch (NoSuchFieldError e5) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$Event[Event.ON_DESTROY.ordinal()] = 6;
              } catch (NoSuchFieldError e6) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$Event[Event.ON_ANY.ordinal()] = 7;
              } catch (NoSuchFieldError e7) {
              }
              int[] iArr2 = new int[State.values().length];
              $SwitchMap$androidx$lifecycle$Lifecycle$State = iArr2;
              try {
                  iArr2[State.CREATED.ordinal()] = 1;
              } catch (NoSuchFieldError e8) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$State[State.STARTED.ordinal()] = 2;
              } catch (NoSuchFieldError e9) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$State[State.RESUMED.ordinal()] = 3;
              } catch (NoSuchFieldError e10) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$State[State.DESTROYED.ordinal()] = 4;
              } catch (NoSuchFieldError e11) {
              }
              try {
                  $SwitchMap$androidx$lifecycle$Lifecycle$State[State.INITIALIZED.ordinal()] = 5;
              } catch (NoSuchFieldError e12) {
              }
          }
      }
  
      public enum Event {
          ON_CREATE,
          ON_START,
          ON_RESUME,
          ON_PAUSE,
          ON_STOP,
          ON_DESTROY,
          ON_ANY;
  
          public static Event downFrom(State state) {
              switch (AnonymousClass1.$SwitchMap$androidx$lifecycle$Lifecycle$State[state.ordinal()]) {
                  case 1:
                      return ON_DESTROY;
                  case 2:
                      return ON_STOP;
                  case 3:
                      return ON_PAUSE;
                  default:
                      return null;
              }
          }
  
          public static Event downTo(State state) {
              switch (AnonymousClass1.$SwitchMap$androidx$lifecycle$Lifecycle$State[state.ordinal()]) {
                  case 1:
                      return ON_STOP;
                  case 2:
                      return ON_PAUSE;
                  case 4:
                      return ON_DESTROY;
                  default:
                      return null;
              }
          }
  
          public static Event upFrom(State state) {
              switch (AnonymousClass1.$SwitchMap$androidx$lifecycle$Lifecycle$State[state.ordinal()]) {
                  case 1:
                      return ON_START;
                  case 2:
                      return ON_RESUME;
                  case 5:
                      return ON_CREATE;
                  default:
                      return null;
              }
          }
  
          public static Event upTo(State state) {
              switch (AnonymousClass1.$SwitchMap$androidx$lifecycle$Lifecycle$State[state.ordinal()]) {
                  case 1:
                      return ON_CREATE;
                  case 2:
                      return ON_START;
                  case 3:
                      return ON_RESUME;
                  default:
                      return null;
              }
          }
  
          public State getTargetState() {
              switch (AnonymousClass1.$SwitchMap$androidx$lifecycle$Lifecycle$Event[ordinal()]) {
                  case 1:
                  case 2:
                      return State.CREATED;
                  case 3:
                  case 4:
                      return State.STARTED;
                  case 5:
                      return State.RESUMED;
                  case 6:
                      return State.DESTROYED;
                  default:
                      throw new IllegalArgumentException(this + " has no target state");
              }
          }
      }
  
      public enum State {
          DESTROYED,
          INITIALIZED,
          CREATED,
          STARTED,
          RESUMED;
  
          public boolean isAtLeast(State state) {
              return compareTo(state) >= 0;
          }
      }
  
      public abstract void addObserver(LifecycleObserver lifecycleObserver);
  
      public abstract State getCurrentState();
  
      public abstract void removeObserver(LifecycleObserver lifecycleObserver);
  }
  