package defpackage;

import defpackage.dw7;
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\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0002\u001a\u00020\u00002\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Le6a;", "it", "<anonymous>", "(V)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$1$2", f = "Delay.kt", i = {}, l = {293}, m = "invokeSuspend", n = {}, s = {})
@vx8
final class i83 extends SuspendLambda implements gr3<e6a, Continuation<? super e6a>, Object> {
    public int a;
    public final /* synthetic */ dw7.h b;
    public final /* synthetic */ l43 c;

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

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

    @Override // defpackage.gr3
    public final Object invoke(Object obj, Object obj2) {
        return ((i83) create((e6a) obj, (Continuation) obj2)).invokeSuspend(e6a.a);
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        ck1 ck1Var = ck1.a;
        int i = this.a;
        e6a e6aVar = e6a.a;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
            return e6aVar;
        }
        s38.b(obj);
        dw7.h hVar = this.b;
        Object obj2 = hVar.a;
        if (obj2 != null) {
            hVar.a = null;
            if (obj2 == kq6.a) {
                obj2 = null;
            }
            this.a = 1;
            if (this.c.emit(obj2, this) == ck1Var) {
                return ck1Var;
            }
        }
        return e6aVar;
    }
}
