package O1;

import java.io.Serializable;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class F extends C4.j implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public Serializable f5319a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f5320b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ kotlin.jvm.internal.C f5321c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ O f5322d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ kotlin.jvm.internal.A f5323e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public F(kotlin.jvm.internal.C c6, O o6, kotlin.jvm.internal.A a6, A4.d dVar) {
        super(1, dVar);
        this.f5321c = c6;
        this.f5322d = o6;
        this.f5323e = a6;
    }

    @Override // C4.a
    public final A4.d create(A4.d dVar) {
        return new F(this.f5321c, this.f5322d, this.f5323e, dVar);
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        return ((F) create((A4.d) obj)).invokeSuspend(C3137A.f25453a);
    }

    /* JADX WARN: Code restructure failed: missing block: B:28:0x006a, code lost:
    
        if (r9 != r0) goto L30;
     */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        kotlin.jvm.internal.C c6;
        kotlin.jvm.internal.A a6;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f5320b;
        kotlin.jvm.internal.A a7 = this.f5323e;
        kotlin.jvm.internal.C c7 = this.f5321c;
        O o6 = this.f5322d;
        try {
        } catch (C0562b unused) {
            Object obj2 = c7.f20115a;
            this.f5319a = a7;
            this.f5320b = 3;
            obj = o6.h(obj2, true, this);
        }
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            this.f5319a = c7;
            this.f5320b = 1;
            obj = o6.g(this);
            if (obj == aVar) {
                return aVar;
            }
            c6 = c7;
        } else {
            if (i6 != 1) {
                if (i6 == 2) {
                    a6 = (kotlin.jvm.internal.A) this.f5319a;
                    AbstractC2467b.l(obj);
                    a6.f20113a = ((Number) obj).intValue();
                    return C3137A.f25453a;
                }
                if (i6 != 3) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                a7 = (kotlin.jvm.internal.A) this.f5319a;
                AbstractC2467b.l(obj);
                a7.f20113a = ((Number) obj).intValue();
                return C3137A.f25453a;
            }
            c6 = (kotlin.jvm.internal.C) this.f5319a;
            AbstractC2467b.l(obj);
        }
        c6.f20115a = obj;
        Y yE = o6.e();
        this.f5319a = a7;
        this.f5320b = 2;
        obj = yE.a();
        if (obj == aVar) {
            return aVar;
        }
        a6 = a7;
        a6.f20113a = ((Number) obj).intValue();
        return C3137A.f25453a;
    }
}
