package q;

import java.util.concurrent.CancellationException;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: q.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2763a extends C4.j implements J4.c {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public kotlin.jvm.internal.y f23256b;

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ C2799s0 f23260f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ long f23261j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ J4.c f23262k;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2763a(C2769d c2769d, Object obj, C2799s0 c2799s0, long j4, J4.c cVar, A4.d dVar) {
        super(1, dVar);
        this.f23258d = c2769d;
        this.f23259e = obj;
        this.f23260f = c2799s0;
        this.f23261j = j4;
        this.f23262k = cVar;
    }

    @Override // C4.a
    public final A4.d create(A4.d dVar) {
        return new C2763a(this.f23258d, this.f23259e, this.f23260f, this.f23261j, this.f23262k, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        kotlin.jvm.internal.y yVar;
        C2789n c2789n;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f23257c;
        C2769d c2769d = this.f23258d;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                c2769d.f23286c.f23391c = (AbstractC2798s) c2769d.f23284a.f23171a.invoke(this.f23259e);
                C2799s0 c2799s0 = this.f23260f;
                c2769d.f23288e.setValue(c2799s0.f23425c);
                c2769d.f23287d.setValue(Boolean.TRUE);
                C2789n c2789n2 = c2769d.f23286c;
                C2789n c2789n3 = new C2789n(c2789n2.f23389a, c2789n2.f23390b.getValue(), AbstractC2771e.i(c2789n2.f23391c), c2789n2.f23392d, Long.MIN_VALUE, c2789n2.f23394f);
                kotlin.jvm.internal.y yVar2 = new kotlin.jvm.internal.y();
                long j4 = this.f23261j;
                E.z zVar = new E.z(c2769d, c2789n3, this.f23262k, yVar2, 7);
                this.f23255a = c2789n3;
                this.f23256b = yVar2;
                this.f23257c = 1;
                if (AbstractC2771e.c(c2789n3, c2799s0, j4, zVar, this) == aVar) {
                    return aVar;
                }
                yVar = yVar2;
                c2789n = c2789n3;
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                yVar = this.f23256b;
                c2789n = this.f23255a;
                AbstractC2467b.l(obj);
            }
            EnumC2781j enumC2781j = yVar.f20130a ? EnumC2781j.f23351a : EnumC2781j.f23352b;
            C2769d.b(c2769d);
            return new C2783k(c2789n, enumC2781j);
        } catch (CancellationException e6) {
            C2769d.b(c2769d);
            throw e6;
        }
    }
}
