package W;

import Z6.C0375o;
import Z6.InterfaceC0382w;
import c7.InterfaceC0596d;
import com.google.android.gms.internal.measurement.C1;

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

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ K f7055v;

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

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((C0356x) m((E6.d) obj2, (InterfaceC0382w) obj)).p(A6.n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new C0356x(this.f7055v, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f7054u;
        A6.n nVar = A6.n.f457a;
        K k8 = this.f7055v;
        if (i == 0) {
            C1.N(obj);
            this.f7054u = 1;
            Object objS = ((C0375o) k8.i.f1157r).s(this);
            if (objS != aVar) {
                objS = nVar;
            }
            if (objS != aVar) {
            }
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return nVar;
        }
        C1.N(obj);
        InterfaceC0596d interfaceC0596dE = c7.H.e(k8.h().f6972c, -1);
        A5.c cVar = new A5.c(5, k8);
        this.f7054u = 2;
        return interfaceC0596dE.o(cVar, this) == aVar ? aVar : nVar;
    }
}
