package defpackage;

import com.google.android.gms.measurement.api.AppMeasurementSdk;
import defpackage.uv0;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.Boxing;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;

/* JADX INFO: renamed from: n83, reason: from Kotlin metadata and case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u00002\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0001H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"T", "Luv0;", AppMeasurementSdk.ConditionalUserProperty.VALUE, "", "<anonymous>", "(Luv0;)Z"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1$1$1", f = "Delay.kt", i = {0}, l = {395}, m = "invokeSuspend", n = {"$this$onSuccess_u2dWpGqRn0$iv"}, s = {"L$0"})
@vx8
final class C0627n83 extends SuspendLambda implements gr3<uv0<Object>, Continuation<? super Boolean>, Object> {
    public int a;
    public /* synthetic */ Object b;
    public final /* synthetic */ l43 c;

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

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

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

    /* JADX WARN: Removed duplicated region for block: B:17:0x0038  */
    /* JADX WARN: Removed duplicated region for block: B:22:0x0045  */
    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) throws Throwable {
        Object obj2;
        Object obj3;
        ck1 ck1Var = ck1.a;
        int i = this.a;
        if (i == 0) {
            s38.b(obj);
            obj2 = ((uv0) this.b).a;
            if (!(obj2 instanceof uv0.c)) {
                this.b = obj2;
                this.a = 1;
                if (this.c.emit(obj2, this) == ck1Var) {
                    return ck1Var;
                }
                obj3 = obj2;
            }
            if (obj2 instanceof uv0.a) {
                return Boxing.boxBoolean(true);
            }
            Throwable thA = uv0.a(obj2);
            if (thA == null) {
                return Boxing.boxBoolean(false);
            }
            throw thA;
        }
        if (i != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        obj3 = this.b;
        s38.b(obj);
        obj2 = obj3;
        if (obj2 instanceof uv0.a) {
        }
    }
}
