package U4;

import B6.w;
import O6.p;
import Z6.InterfaceC0382w;
import a0.C0388b;
import c7.H;
import c7.InterfaceC0596d;
import com.google.android.gms.internal.measurement.C1;

/* JADX INFO: loaded from: classes.dex */
public final class k extends G6.i implements p {

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

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

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final /* synthetic */ n f6757w;

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

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((k) 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 k(this.f6757w, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        n nVar;
        F6.a aVar = F6.a.f2580q;
        int i = this.f6756v;
        if (i == 0) {
            C1.N(obj);
            n nVar2 = this.f6757w;
            InterfaceC0596d interfaceC0596dA = nVar2.f6770a.a();
            this.f6755u = nVar2;
            this.f6756v = 1;
            Object objI = H.i(interfaceC0596dA, this);
            if (objI == aVar) {
                return aVar;
            }
            nVar = nVar2;
            obj = objI;
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            nVar = this.f6755u;
            C1.N(obj);
        }
        n.a(nVar, new C0388b(w.q0(((C0388b) obj).a()), true));
        return A6.n.f457a;
    }
}
