package defpackage;

import defpackage.dw7;
import defpackage.uv0;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Luv0;", "", "result", "Le6a;", "<anonymous>", "(Luv0;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$1$1", f = "Delay.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
@vx8
final class h83 extends SuspendLambda implements gr3<uv0<? extends Object>, Continuation<? super e6a>, Object> {
    public /* synthetic */ Object a;
    public final /* synthetic */ dw7.h b;
    public final /* synthetic */ bv7 c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public h83(dw7.h hVar, bv7 bv7Var, Continuation continuation) {
        super(2, continuation);
        this.b = hVar;
        this.c = bv7Var;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Continuation create(Object obj, Continuation continuation) {
        h83 h83Var = new h83(this.b, this.c, continuation);
        h83Var.a = obj;
        return h83Var;
    }

    @Override // defpackage.gr3
    public final Object invoke(Object obj, Object obj2) throws Throwable {
        h83 h83Var = (h83) create(new uv0(((uv0) obj).a), (Continuation) obj2);
        e6a e6aVar = e6a.a;
        h83Var.invokeSuspend(e6aVar);
        return e6aVar;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) throws Throwable {
        ck1 ck1Var = ck1.a;
        s38.b(obj);
        Object obj2 = ((uv0) this.a).a;
        boolean z = obj2 instanceof uv0.c;
        dw7.h hVar = this.b;
        if (!z) {
            hVar.a = obj2;
        }
        if (z) {
            Throwable thA = uv0.a(obj2);
            if (thA != null) {
                throw thA;
            }
            this.c.h(new oz0());
            hVar.a = kq6.c;
        }
        return e6a.a;
    }
}
