content: package kotlinx.coroutines.flow;
  
  import kotlin.Metadata;
  import kotlin.Unit;
  import kotlin.coroutines.Continuation;
  import kotlin.jvm.internal.Ref;
  import kotlinx.coroutines.flow.internal.AbortFlowException;
  import kotlinx.coroutines.flow.internal.NullSurrogateKt;
  
  @Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u0019\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00028\u0000H@ø\u0001\u0000¢\u0006\u0002\u0010\u0005\u0002\u0004\n\u0002\b\u0019¨\u0006\u0006¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/FlowKt__LimitKt$collectWhile$collector$1", "Lkotlinx/coroutines/flow/FlowCollector;", "emit", "", "value", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 6, 0}, xi = 48)
  /* compiled from: Limit.kt */
  public final class FlowKt__ReduceKt$singleOrNull$$inlined$collectWhile$1 implements FlowCollector<T> {
      final /* synthetic */ Ref.ObjectRef $result$inlined;
  
      public FlowKt__ReduceKt$singleOrNull$$inlined$collectWhile$1(Ref.ObjectRef objectRef) {
          this.$result$inlined = objectRef;
      }
  
      public Object emit(T value, Continuation<? super Unit> $completion) {
          boolean z;
          T t = value;
          Continuation<? super Unit> continuation = $completion;
          if (this.$result$inlined.element == NullSurrogateKt.NULL) {
              this.$result$inlined.element = t;
              z = true;
          } else {
              this.$result$inlined.element = NullSurrogateKt.NULL;
              z = false;
          }
          if (z) {
              return Unit.INSTANCE;
          }
          throw new AbortFlowException(this);
      }
  }
  