package A5;

import A6.n;
import O6.p;
import Z6.InterfaceC0382w;
import c7.K;
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 Object f435u;

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

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

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ String f438x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final /* synthetic */ l f439y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final /* synthetic */ String f440z;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public k(String str, String str2, l lVar, String str3, E6.d dVar) {
        super(2, dVar);
        this.f437w = str;
        this.f438x = str2;
        this.f439y = lVar;
        this.f440z = str3;
    }

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

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new k(this.f437w, this.f438x, this.f439y, this.f440z, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        Object objA;
        F6.a aVar = F6.a.f2580q;
        int i = this.f436v;
        n nVar = n.f457a;
        l lVar = this.f439y;
        if (i == 0) {
            C1.N(obj);
            String str = this.f438x;
            String str2 = this.f437w;
            if (str2.equals(str)) {
                this.f436v = 1;
                objA = lVar.f441d.a(this.f440z, str2, this);
                if (objA != aVar) {
                }
                return aVar;
            }
            return nVar;
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return nVar;
        }
        C1.N(obj);
        objA = ((A6.j) obj).f449q;
        if (!(objA instanceof A6.i)) {
            Boolean bool = Boolean.TRUE;
            K k8 = lVar.f442e;
            k8.getClass();
            k8.g(null, bool);
        }
        Throwable thA = A6.j.a(objA);
        if (thA != null) {
            this.f435u = objA;
            this.f436v = 2;
            if (lVar.f(thA, this) == aVar) {
                return aVar;
            }
        }
        return nVar;
    }
}
