package e;

import C0.C0109j;
import O1.C0576p;
import V4.C;
import Y4.C0838d;
import Y4.C0849o;
import kotlin.jvm.internal.y;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: e.k, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1957k extends C4.j implements J4.e {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ C1958l f16251c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ J4.e f16252d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ C0109j f16253e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1957k(C1958l c1958l, J4.e eVar, C0109j c0109j, A4.d dVar) {
        super(2, dVar);
        this.f16251c = c1958l;
        this.f16252d = eVar;
        this.f16253e = c0109j;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C1957k(this.f16251c, this.f16252d, this.f16253e, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C1957k) create((C) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        y yVar;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f16250b;
        boolean z6 = true;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            if (this.f16251c.f14498a) {
                y yVar2 = new y();
                C0849o c0849o = new C0849o(new C0838d((X4.e) this.f16253e.f607c, z6), new C0576p(yVar2, null, 2));
                this.f16249a = yVar2;
                this.f16250b = 1;
                if (this.f16252d.invoke(c0849o, this) == aVar) {
                    return aVar;
                }
                yVar = yVar2;
            }
            return C3137A.f25453a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        yVar = this.f16249a;
        AbstractC2467b.l(obj);
        if (!yVar.f20130a) {
            throw new IllegalStateException("You must collect the progress flow");
        }
        return C3137A.f25453a;
    }
}
