content: package kotlinx.coroutines.flow;
  
  import java.util.ArrayList;
  import java.util.LinkedHashSet;
  import java.util.List;
  import java.util.Set;
  import kotlin.Metadata;
  import kotlin.coroutines.Continuation;
  
  @Metadata(d1 = {"\u0000(\n\u0002\b\u0003\n\u0002\u0010\u001f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0010!\n\u0002\b\u0002\n\u0002\u0010\"\n\u0002\u0010#\n\u0002\b\u0002\u001a;\u0010\u0000\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0010\b\u0001\u0010\u0001*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u0003*\b\u0012\u0004\u0012\u0002H\u00020\u00042\u0006\u0010\u0005\u001a\u0002H\u0001H@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u001a7\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\u00020\b\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00042\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\tH@ø\u0001\u0000¢\u0006\u0002\u0010\n\u001a7\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\f\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00042\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\rH@ø\u0001\u0000¢\u0006\u0002\u0010\u000e\u0002\u0004\n\u0002\b\u0019¨\u0006\u000f"}, d2 = {"toCollection", "C", "T", "", "Lkotlinx/coroutines/flow/Flow;", "destination", "(Lkotlinx/coroutines/flow/Flow;Ljava/util/Collection;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "toList", "", "", "(Lkotlinx/coroutines/flow/Flow;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "toSet", "", "", "(Lkotlinx/coroutines/flow/Flow;Ljava/util/Set;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 5, mv = {1, 6, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
  /* compiled from: Collection.kt */
  final /* synthetic */ class FlowKt__CollectionKt {
      /* JADX WARNING: Removed duplicated region for block: B:10:0x002d  */
      /* JADX WARNING: Removed duplicated region for block: B:11:0x0035  */
      /* JADX WARNING: Removed duplicated region for block: B:8:0x0025  */
      /* Code decompiled incorrectly, please refer to instructions dump. */
      public static final <T, C extends java.util.Collection<? super T>> java.lang.Object toCollection(kotlinx.coroutines.flow.Flow<? extends T> r4, C r5, kotlin.coroutines.Continuation<? super C> r6) {
          /*
              boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1
              if (r0 == 0) goto L_0x0014
              r0 = r6
              kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1 r0 = (kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1) r0
              int r1 = r0.label
              r2 = -2147483648(0xffffffff80000000, float:-0.0)
              r1 = r1 & r2
              if (r1 == 0) goto L_0x0014
              int r6 = r0.label
              int r6 = r6 - r2
              r0.label = r6
              goto L_0x0019
          L_0x0014:
              kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1 r0 = new kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1
              r0.<init>(r6)
          L_0x0019:
              r6 = r0
              java.lang.Object r0 = r6.result
              java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
              int r2 = r6.label
              switch(r2) {
                  case 0: goto L_0x0035;
                  case 1: goto L_0x002d;
                  default: goto L_0x0025;
              }
          L_0x0025:
              java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
              java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
              r4.<init>(r5)
              throw r4
          L_0x002d:
              java.lang.Object r4 = r6.L$0
              java.util.Collection r4 = (java.util.Collection) r4
              kotlin.ResultKt.throwOnFailure(r0)
              goto L_0x004c
          L_0x0035:
              kotlin.ResultKt.throwOnFailure(r0)
              kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$2 r2 = new kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$2
              r2.<init>(r5)
              kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
              r6.L$0 = r5
              r3 = 1
              r6.label = r3
              java.lang.Object r4 = r4.collect(r2, r6)
              if (r4 != r1) goto L_0x004b
              return r1
          L_0x004b:
              r4 = r5
          L_0x004c:
              return r4
          */
          throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__CollectionKt.toCollection(kotlinx.coroutines.flow.Flow, java.util.Collection, kotlin.coroutines.Continuation):java.lang.Object");
      }
  
      public static final <T> Object toList(Flow<? extends T> $this$toList, List<T> destination, Continuation<? super List<? extends T>> $completion) {
          return FlowKt.toCollection($this$toList, destination, $completion);
      }
  
      public static /* synthetic */ Object toList$default(Flow flow, List list, Continuation continuation, int i, Object obj) {
          if ((i & 1) != 0) {
              list = new ArrayList();
          }
          return FlowKt.toList(flow, list, continuation);
      }
  
      public static final <T> Object toSet(Flow<? extends T> $this$toSet, Set<T> destination, Continuation<? super Set<? extends T>> $completion) {
          return FlowKt.toCollection($this$toSet, destination, $completion);
      }
  
      public static /* synthetic */ Object toSet$default(Flow flow, Set set, Continuation continuation, int i, Object obj) {
          if ((i & 1) != 0) {
              set = new LinkedHashSet();
          }
          return FlowKt.toSet(flow, set, continuation);
      }
  }
  