content: package kotlinx.coroutines.flow;
  
  import kotlin.Metadata;
  import kotlin.Unit;
  import kotlin.coroutines.Continuation;
  import kotlin.jvm.functions.Function2;
  
  @Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\b\b\u0000\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002BE\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002\u0012-\u0010\u0004\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0005¢\u0006\u0002\b\tø\u0001\u0000¢\u0006\u0002\u0010\nJ\u0019\u0010\f\u001a\u00020\u00072\u0006\u0010\r\u001a\u00028\u0000HAø\u0001\u0000¢\u0006\u0002\u0010\u000eJ\u0011\u0010\u000f\u001a\u00020\u0007H@ø\u0001\u0000¢\u0006\u0002\u0010\u0010R:\u0010\u0004\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0005¢\u0006\u0002\b\tX\u0004ø\u0001\u0000¢\u0006\u0004\n\u0002\u0010\u000bR\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002X\u0004¢\u0006\u0002\n\u0000\u0002\u0004\n\u0002\b\u0019¨\u0006\u0011"}, d2 = {"Lkotlinx/coroutines/flow/SubscribedFlowCollector;", "T", "Lkotlinx/coroutines/flow/FlowCollector;", "collector", "action", "Lkotlin/Function2;", "Lkotlin/coroutines/Continuation;", "", "", "Lkotlin/ExtensionFunctionType;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/functions/Function2;)V", "Lkotlin/jvm/functions/Function2;", "emit", "value", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "onSubscription", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 6, 0}, xi = 48)
  /* compiled from: Share.kt */
  public final class SubscribedFlowCollector<T> implements FlowCollector<T> {
      private final Function2<FlowCollector<? super T>, Continuation<? super Unit>, Object> action;
      private final FlowCollector<T> collector;
  
      public SubscribedFlowCollector(FlowCollector<? super T> collector2, Function2<? super FlowCollector<? super T>, ? super Continuation<? super Unit>, ? extends Object> action2) {
          this.collector = collector2;
          this.action = action2;
      }
  
      public Object emit(T t, Continuation<? super Unit> continuation) {
          return this.collector.emit(t, continuation);
      }
  
      /* JADX WARNING: Removed duplicated region for block: B:10:0x002d  */
      /* JADX WARNING: Removed duplicated region for block: B:11:0x0031  */
      /* JADX WARNING: Removed duplicated region for block: B:14:0x003d  */
      /* JADX WARNING: Removed duplicated region for block: B:21:0x0068  */
      /* JADX WARNING: Removed duplicated region for block: B:8:0x0025  */
      /* Code decompiled incorrectly, please refer to instructions dump. */
      public final java.lang.Object onSubscription(kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {
          /*
              r7 = this;
              boolean r0 = r8 instanceof kotlinx.coroutines.flow.SubscribedFlowCollector$onSubscription$1
              if (r0 == 0) goto L_0x0014
              r0 = r8
              kotlinx.coroutines.flow.SubscribedFlowCollector$onSubscription$1 r0 = (kotlinx.coroutines.flow.SubscribedFlowCollector$onSubscription$1) r0
              int r1 = r0.label
              r2 = -2147483648(0xffffffff80000000, float:-0.0)
              r1 = r1 & r2
              if (r1 == 0) goto L_0x0014
              int r8 = r0.label
              int r8 = r8 - r2
              r0.label = r8
              goto L_0x0019
          L_0x0014:
              kotlinx.coroutines.flow.SubscribedFlowCollector$onSubscription$1 r0 = new kotlinx.coroutines.flow.SubscribedFlowCollector$onSubscription$1
              r0.<init>(r7, r8)
          L_0x0019:
              r8 = r0
              java.lang.Object r0 = r8.result
              java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
              int r2 = r8.label
              switch(r2) {
                  case 0: goto L_0x003d;
                  case 1: goto L_0x0031;
                  case 2: goto L_0x002d;
                  default: goto L_0x0025;
              }
          L_0x0025:
              java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
              java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
              r8.<init>(r0)
              throw r8
          L_0x002d:
              kotlin.ResultKt.throwOnFailure(r0)
              goto L_0x0079
          L_0x0031:
              java.lang.Object r2 = r8.L$1
              kotlinx.coroutines.flow.internal.SafeCollector r2 = (kotlinx.coroutines.flow.internal.SafeCollector) r2
              java.lang.Object r3 = r8.L$0
              kotlinx.coroutines.flow.SubscribedFlowCollector r3 = (kotlinx.coroutines.flow.SubscribedFlowCollector) r3
              kotlin.ResultKt.throwOnFailure(r0)     // Catch:{ all -> 0x007d }
              goto L_0x005e
          L_0x003d:
              kotlin.ResultKt.throwOnFailure(r0)
              r3 = r7
              kotlinx.coroutines.flow.internal.SafeCollector r2 = new kotlinx.coroutines.flow.internal.SafeCollector
              kotlinx.coroutines.flow.FlowCollector<T> r4 = r3.collector
              r5 = 0
              kotlin.coroutines.CoroutineContext r6 = r8.getContext()
              r2.<init>(r4, r6)
              kotlin.jvm.functions.Function2<kotlinx.coroutines.flow.FlowCollector<? super T>, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> r4 = r3.action     // Catch:{ all -> 0x007d }
              r8.L$0 = r3     // Catch:{ all -> 0x007d }
              r8.L$1 = r2     // Catch:{ all -> 0x007d }
              r5 = 1
              r8.label = r5     // Catch:{ all -> 0x007d }
              java.lang.Object r4 = r4.invoke(r2, r8)     // Catch:{ all -> 0x007d }
              if (r4 != r1) goto L_0x005e
              return r1
          L_0x005e:
              r2.releaseIntercepted()
              kotlinx.coroutines.flow.FlowCollector<T> r2 = r3.collector
              boolean r4 = r2 instanceof kotlinx.coroutines.flow.SubscribedFlowCollector
              if (r4 == 0) goto L_0x007c
              kotlinx.coroutines.flow.SubscribedFlowCollector r2 = (kotlinx.coroutines.flow.SubscribedFlowCollector) r2
              r4 = 0
              r8.L$0 = r4
              r8.L$1 = r4
              r4 = 2
              r8.label = r4
              java.lang.Object r2 = r2.onSubscription(r8)
              if (r2 != r1) goto L_0x0079
              return r1
          L_0x0079:
              kotlin.Unit r1 = kotlin.Unit.INSTANCE
              return r1
          L_0x007c:
              goto L_0x0079
          L_0x007d:
              r1 = move-exception
              r2.releaseIntercepted()
              throw r1
          */
          throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.SubscribedFlowCollector.onSubscription(kotlin.coroutines.Continuation):java.lang.Object");
      }
  }
  