content: package kotlinx.coroutines.channels;
  
  import java.util.concurrent.CancellationException;
  import kotlin.Deprecated;
  import kotlin.DeprecationLevel;
  import kotlin.Metadata;
  import kotlin.ReplaceWith;
  import kotlin.coroutines.Continuation;
  import kotlinx.coroutines.internal.StackTraceRecoveryKt;
  import kotlinx.coroutines.selects.SelectClause1;
  
  @Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\bf\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\u00020\u0002J\b\u0010\u0014\u001a\u00020\u0015H\u0017J\u0014\u0010\u0014\u001a\u00020\u00042\n\b\u0002\u0010\u0016\u001a\u0004\u0018\u00010\u0017H'J\u001a\u0010\u0014\u001a\u00020\u00152\u0010\b\u0002\u0010\u0016\u001a\n\u0018\u00010\u0018j\u0004\u0018\u0001`\u0019H&J\u000f\u0010\u001a\u001a\b\u0012\u0004\u0012\u00028\u00000\u001bH¦\u0002J\u000f\u0010\u001c\u001a\u0004\u0018\u00018\u0000H\u0017¢\u0006\u0002\u0010\u001dJ\u0011\u0010\u001e\u001a\u00028\u0000H¦@ø\u0001\u0000¢\u0006\u0002\u0010\u001fJ\"\u0010 \u001a\b\u0012\u0004\u0012\u00028\u00000\u000fH¦@ø\u0001\u0000ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0004\b!\u0010\u001fJ\u0013\u0010\"\u001a\u0004\u0018\u00018\u0000H@ø\u0001\u0000¢\u0006\u0002\u0010\u001fJ\u001e\u0010#\u001a\b\u0012\u0004\u0012\u00028\u00000\u000fH&ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0004\b$\u0010\u001dR\u001a\u0010\u0003\u001a\u00020\u00048&X§\u0004¢\u0006\f\u0012\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0003\u0010\u0007R\u001a\u0010\b\u001a\u00020\u00048&X§\u0004¢\u0006\f\u0012\u0004\b\t\u0010\u0006\u001a\u0004\b\b\u0010\u0007R\u0018\u0010\n\u001a\b\u0012\u0004\u0012\u00028\u00000\u000bX¦\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\rR!\u0010\u000e\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u000f0\u000bX¦\u0004ø\u0001\u0000¢\u0006\u0006\u001a\u0004\b\u0010\u0010\rR\"\u0010\u0011\u001a\n\u0012\u0006\u0012\u0004\u0018\u00018\u00000\u000b8VX\u0004¢\u0006\f\u0012\u0004\b\u0012\u0010\u0006\u001a\u0004\b\u0013\u0010\r\u0002\u000f\n\u0002\b\u0019\n\u0002\b!\n\u0005\b¡\u001e0\u0001¨\u0006%"}, d2 = {"Lkotlinx/coroutines/channels/ReceiveChannel;", "E", "", "isClosedForReceive", "", "isClosedForReceive$annotations", "()V", "()Z", "isEmpty", "isEmpty$annotations", "onReceive", "Lkotlinx/coroutines/selects/SelectClause1;", "getOnReceive", "()Lkotlinx/coroutines/selects/SelectClause1;", "onReceiveCatching", "Lkotlinx/coroutines/channels/ChannelResult;", "getOnReceiveCatching", "onReceiveOrNull", "getOnReceiveOrNull$annotations", "getOnReceiveOrNull", "cancel", "", "cause", "", "Ljava/util/concurrent/CancellationException;", "Lkotlinx/coroutines/CancellationException;", "iterator", "Lkotlinx/coroutines/channels/ChannelIterator;", "poll", "()Ljava/lang/Object;", "receive", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "receiveCatching", "receiveCatching-JP2dKIU", "receiveOrNull", "tryReceive", "tryReceive-PtdJZtk", "kotlinx-coroutines-core"}, k = 1, mv = {1, 6, 0}, xi = 48)
  /* compiled from: Channel.kt */
  public interface ReceiveChannel<E> {
  
      @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
      /* compiled from: Channel.kt */
      public static final class DefaultImpls {
          public static /* synthetic */ void cancel$default(ReceiveChannel receiveChannel, CancellationException cancellationException, int i, Object obj) {
              if (obj == null) {
                  if ((i & 1) != 0) {
                      cancellationException = null;
                  }
                  receiveChannel.cancel(cancellationException);
                  return;
              }
              throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: cancel");
          }
  
          public static /* synthetic */ boolean cancel$default(ReceiveChannel receiveChannel, Throwable th, int i, Object obj) {
              if (obj == null) {
                  if ((i & 1) != 0) {
                      th = null;
                  }
                  return receiveChannel.cancel(th);
              }
              throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: cancel");
          }
  
          public static <E> SelectClause1<E> getOnReceiveOrNull(ReceiveChannel<? extends E> receiveChannel) {
              return new ReceiveChannel$onReceiveOrNull$1(receiveChannel);
          }
  
          @Deprecated(level = DeprecationLevel.ERROR, message = "Deprecated in favor of onReceiveCatching extension", replaceWith = @ReplaceWith(expression = "onReceiveCatching", imports = {}))
          public static /* synthetic */ void getOnReceiveOrNull$annotations() {
          }
  
          public static /* synthetic */ void isClosedForReceive$annotations() {
          }
  
          public static /* synthetic */ void isEmpty$annotations() {
          }
  
          @Deprecated(level = DeprecationLevel.ERROR, message = "Deprecated in the favour of 'tryReceive'. Please note that the provided replacement does not rethrow channel's close cause as 'poll' did, for the precise replacement please refer to the 'poll' documentation", replaceWith = @ReplaceWith(expression = "tryReceive().getOrNull()", imports = {}))
          public static <E> E poll(ReceiveChannel<? extends E> receiveChannel) {
              Object r0 = receiveChannel.m1554tryReceivePtdJZtk();
              if (ChannelResult.m1544isSuccessimpl(r0)) {
                  return ChannelResult.m1540getOrThrowimpl(r0);
              }
              Throwable r1 = ChannelResult.m1538exceptionOrNullimpl(r0);
              if (r1 == null) {
                  return null;
              }
              throw StackTraceRecoveryKt.recoverStackTrace(r1);
          }
  
          /* JADX WARNING: Removed duplicated region for block: B:10:0x002d  */
          /* JADX WARNING: Removed duplicated region for block: B:11:0x0038  */
          /* JADX WARNING: Removed duplicated region for block: B:8:0x0025  */
          @kotlin.Deprecated(level = kotlin.DeprecationLevel.ERROR, message = "Deprecated in favor of 'receiveCatching'. Please note that the provided replacement does not rethrow channel's close cause as 'receiveOrNull' did, for the detailed replacement please refer to the 'receiveOrNull' documentation", replaceWith = @kotlin.ReplaceWith(expression = "receiveCatching().getOrNull()", imports = {}))
          /* Code decompiled incorrectly, please refer to instructions dump. */
          public static <E> java.lang.Object receiveOrNull(kotlinx.coroutines.channels.ReceiveChannel<? extends E> r3, kotlin.coroutines.Continuation<? super E> r4) {
              /*
                  boolean r0 = r4 instanceof kotlinx.coroutines.channels.ReceiveChannel$receiveOrNull$1
                  if (r0 == 0) goto L_0x0014
                  r0 = r4
                  kotlinx.coroutines.channels.ReceiveChannel$receiveOrNull$1 r0 = (kotlinx.coroutines.channels.ReceiveChannel$receiveOrNull$1) r0
                  int r1 = r0.label
                  r2 = -2147483648(0xffffffff80000000, float:-0.0)
                  r1 = r1 & r2
                  if (r1 == 0) goto L_0x0014
                  int r4 = r0.label
                  int r4 = r4 - r2
                  r0.label = r4
                  goto L_0x0019
              L_0x0014:
                  kotlinx.coroutines.channels.ReceiveChannel$receiveOrNull$1 r0 = new kotlinx.coroutines.channels.ReceiveChannel$receiveOrNull$1
                  r0.<init>(r4)
              L_0x0019:
                  r4 = r0
                  java.lang.Object r0 = r4.result
                  java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
                  int r2 = r4.label
                  switch(r2) {
                      case 0: goto L_0x0038;
                      case 1: goto L_0x002d;
                      default: goto L_0x0025;
                  }
              L_0x0025:
                  java.lang.IllegalStateException r3 = new java.lang.IllegalStateException
                  java.lang.String r4 = "call to 'resume' before 'invoke' with coroutine"
                  r3.<init>(r4)
                  throw r3
              L_0x002d:
                  kotlin.ResultKt.throwOnFailure(r0)
                  r3 = r0
                  kotlinx.coroutines.channels.ChannelResult r3 = (kotlinx.coroutines.channels.ChannelResult) r3
                  java.lang.Object r3 = r3.m1546unboximpl()
                  goto L_0x0045
              L_0x0038:
                  kotlin.ResultKt.throwOnFailure(r0)
                  r2 = 1
                  r4.label = r2
                  java.lang.Object r3 = r3.m1553receiveCatchingJP2dKIU(r4)
                  if (r3 != r1) goto L_0x0045
                  return r1
              L_0x0045:
                  java.lang.Object r3 = kotlinx.coroutines.channels.ChannelResult.m1539getOrNullimpl(r3)
                  return r3
              */
              throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.channels.ReceiveChannel.DefaultImpls.receiveOrNull(kotlinx.coroutines.channels.ReceiveChannel, kotlin.coroutines.Continuation):java.lang.Object");
          }
      }
  
      @Deprecated(level = DeprecationLevel.HIDDEN, message = "Since 1.2.0, binary compatibility with versions <= 1.1.x")
      /* synthetic */ void cancel();
  
      void cancel(CancellationException cancellationException);
  
      @Deprecated(level = DeprecationLevel.HIDDEN, message = "Since 1.2.0, binary compatibility with versions <= 1.1.x")
      /* synthetic */ boolean cancel(Throwable th);
  
      SelectClause1<E> getOnReceive();
  
      SelectClause1<ChannelResult<E>> getOnReceiveCatching();
  
      SelectClause1<E> getOnReceiveOrNull();
  
      boolean isClosedForReceive();
  
      boolean isEmpty();
  
      ChannelIterator<E> iterator();
  
      @Deprecated(level = DeprecationLevel.ERROR, message = "Deprecated in the favour of 'tryReceive'. Please note that the provided replacement does not rethrow channel's close cause as 'poll' did, for the precise replacement please refer to the 'poll' documentation", replaceWith = @ReplaceWith(expression = "tryReceive().getOrNull()", imports = {}))
      E poll();
  
      Object receive(Continuation<? super E> continuation);
  
      /* renamed from: receiveCatching-JP2dKIU  reason: not valid java name */
      Object m1553receiveCatchingJP2dKIU(Continuation<? super ChannelResult<? extends E>> continuation);
  
      @Deprecated(level = DeprecationLevel.ERROR, message = "Deprecated in favor of 'receiveCatching'. Please note that the provided replacement does not rethrow channel's close cause as 'receiveOrNull' did, for the detailed replacement please refer to the 'receiveOrNull' documentation", replaceWith = @ReplaceWith(expression = "receiveCatching().getOrNull()", imports = {}))
      Object receiveOrNull(Continuation<? super E> continuation);
  
      /* renamed from: tryReceive-PtdJZtk  reason: not valid java name */
      Object m1554tryReceivePtdJZtk();
  }
  