package W;

import com.google.android.gms.internal.measurement.C1;
import n4.u0;

/* JADX INFO: renamed from: W.q, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0350q extends G6.i implements O6.q {

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final /* synthetic */ int f7026u = 1;

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

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public /* synthetic */ Object f7028w;

    public /* synthetic */ C0350q(int i, E6.d dVar) {
        super(i, dVar);
    }

    @Override // O6.q
    public final Object j(Object obj, Object obj2, Object obj3) {
        switch (this.f7026u) {
            case u0.f15495q /* 0 */:
                return new C0350q((K) this.f7028w, (E6.d) obj3).p(A6.n.f457a);
            default:
                ((Boolean) obj2).getClass();
                C0350q c0350q = new C0350q(3, (E6.d) obj3);
                c0350q.f7028w = (Y.c) obj;
                return c0350q.p(A6.n.f457a);
        }
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        switch (this.f7026u) {
            case u0.f15495q /* 0 */:
                F6.a aVar = F6.a.f2580q;
                int i = this.f7027v;
                if (i == 0) {
                    C1.N(obj);
                    this.f7027v = 1;
                    if (K.c((K) this.f7028w, this) == aVar) {
                        return aVar;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    C1.N(obj);
                }
                return A6.n.f457a;
            default:
                F6.a aVar2 = F6.a.f2580q;
                int i5 = this.f7027v;
                if (i5 != 0) {
                    if (i5 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    C1.N(obj);
                    return obj;
                }
                C1.N(obj);
                Y.c cVar = (Y.c) this.f7028w;
                this.f7027v = 1;
                cVar.getClass();
                Object objA = Y.c.a(cVar, this);
                return objA == aVar2 ? aVar2 : objA;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0350q(K k8, E6.d dVar) {
        super(3, dVar);
        this.f7028w = k8;
    }
}
