content: package kotlinx.coroutines.flow;
  
  import kotlin.Metadata;
  import kotlin.ResultKt;
  import kotlin.Unit;
  import kotlin.coroutines.Continuation;
  import kotlin.coroutines.intrinsics.IntrinsicsKt;
  import kotlin.coroutines.jvm.internal.DebugMetadata;
  import kotlin.coroutines.jvm.internal.SuspendLambda;
  import kotlin.jvm.functions.Function1;
  import kotlin.jvm.functions.Function3;
  
  @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0003\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H@"}, d2 = {"<anonymous>", "", "T", "Lkotlinx/coroutines/flow/FlowCollector;", "e", ""}, k = 3, mv = {1, 6, 0}, xi = 48)
  @DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__MigrationKt$onErrorReturn$2", f = "Migration.kt", i = {}, l = {306}, m = "invokeSuspend", n = {}, s = {})
  /* compiled from: Migration.kt */
  final class FlowKt__MigrationKt$onErrorReturn$2 extends SuspendLambda implements Function3<FlowCollector<? super T>, Throwable, Continuation<? super Unit>, Object> {
      final /* synthetic */ T $fallback;
      final /* synthetic */ Function1<Throwable, Boolean> $predicate;
      private /* synthetic */ Object L$0;
      /* synthetic */ Object L$1;
      int label;
  
      /* JADX INFO: super call moved to the top of the method (can break code semantics) */
      FlowKt__MigrationKt$onErrorReturn$2(Function1<? super Throwable, Boolean> function1, T t, Continuation<? super FlowKt__MigrationKt$onErrorReturn$2> continuation) {
          super(3, continuation);
          this.$predicate = function1;
          this.$fallback = t;
      }
  
      public final Object invoke(FlowCollector<? super T> flowCollector, Throwable th, Continuation<? super Unit> continuation) {
          FlowKt__MigrationKt$onErrorReturn$2 flowKt__MigrationKt$onErrorReturn$2 = new FlowKt__MigrationKt$onErrorReturn$2(this.$predicate, this.$fallback, continuation);
          flowKt__MigrationKt$onErrorReturn$2.L$0 = flowCollector;
          flowKt__MigrationKt$onErrorReturn$2.L$1 = th;
          return flowKt__MigrationKt$onErrorReturn$2.invokeSuspend(Unit.INSTANCE);
      }
  
      public final Object invokeSuspend(Object obj) {
          Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
          switch (this.label) {
              case 0:
                  ResultKt.throwOnFailure(obj);
                  FlowCollector flowCollector = (FlowCollector) this.L$0;
                  Throwable th = (Throwable) this.L$1;
                  if (this.$predicate.invoke(th).booleanValue()) {
                      this.L$0 = null;
                      this.label = 1;
                      if (flowCollector.emit(this.$fallback, this) != coroutine_suspended) {
                          break;
                      } else {
                          return coroutine_suspended;
                      }
                  } else {
                      throw th;
                  }
              case 1:
                  ResultKt.throwOnFailure(obj);
                  break;
              default:
                  throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
          }
          return Unit.INSTANCE;
      }
  }
  