content: package kotlinx.coroutines.flow;
  
  import kotlin.Metadata;
  import kotlin.Unit;
  import kotlin.coroutines.Continuation;
  import kotlinx.coroutines.DebugKt;
  import kotlinx.coroutines.flow.internal.AbstractSharedFlowSlot;
  
  @Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\b\u0002\b\u0000\u0018\u00002\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u0014\u0010\t\u001a\u00020\n2\n\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\u0002H\u0016J'\u0010\f\u001a\u0010\u0012\f\u0012\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00050\r2\n\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\u0002H\u0016¢\u0006\u0002\u0010\u000eR\u001a\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00058\u0006@\u0006X\u000e¢\u0006\u0002\n\u0000R\u0012\u0010\u0007\u001a\u00020\b8\u0006@\u0006X\u000e¢\u0006\u0002\n\u0000¨\u0006\u000f"}, d2 = {"Lkotlinx/coroutines/flow/SharedFlowSlot;", "Lkotlinx/coroutines/flow/internal/AbstractSharedFlowSlot;", "Lkotlinx/coroutines/flow/SharedFlowImpl;", "()V", "cont", "Lkotlin/coroutines/Continuation;", "", "index", "", "allocateLocked", "", "flow", "freeLocked", "", "(Lkotlinx/coroutines/flow/SharedFlowImpl;)[Lkotlin/coroutines/Continuation;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 6, 0}, xi = 48)
  /* compiled from: SharedFlow.kt */
  public final class SharedFlowSlot extends AbstractSharedFlowSlot<SharedFlowImpl<?>> {
      public Continuation<? super Unit> cont;
      public long index = -1;
  
      public boolean allocateLocked(SharedFlowImpl<?> flow) {
          if (this.index >= 0) {
              return false;
          }
          this.index = flow.updateNewCollectorIndexLocked$kotlinx_coroutines_core();
          return true;
      }
  
      public Continuation<Unit>[] freeLocked(SharedFlowImpl<?> flow) {
          if (DebugKt.getASSERTIONS_ENABLED()) {
              if (!(this.index >= 0)) {
                  throw new AssertionError();
              }
          }
          long j = this.index;
          this.index = -1;
          this.cont = null;
          return flow.updateCollectorIndexLocked$kotlinx_coroutines_core(j);
      }
  }
  