package V5;

import A6.j;
import A6.n;
import O6.p;
import Z6.InterfaceC0382w;
import c7.K;
import com.google.android.gms.internal.measurement.C1;
import y5.C1763h;

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

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public final /* synthetic */ i f6878A;

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public h(String str, String str2, String str3, String str4, i iVar, E6.d dVar) {
        super(2, dVar);
        this.f6881w = str;
        this.f6882x = str2;
        this.f6883y = str3;
        this.f6884z = str4;
        this.f6878A = iVar;
    }

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

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new h(this.f6881w, this.f6882x, this.f6883y, this.f6884z, this.f6878A, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        Object objA;
        F6.a aVar = F6.a.f2580q;
        int i = this.f6880v;
        n nVar = n.f457a;
        i iVar = this.f6878A;
        K k8 = iVar.f6886e;
        if (i == 0) {
            C1.N(obj);
            String str = this.f6881w;
            if (str.length() != 0) {
                String str2 = this.f6882x;
                if (str2.length() != 0) {
                    String str3 = this.f6883y;
                    if (str3.length() != 0) {
                        String str4 = this.f6884z;
                        if (str4.length() != 0) {
                            if (str3.equals(str4)) {
                                this.f6880v = 1;
                                objA = iVar.f6885d.a(str2, str, str3, this);
                                if (objA != aVar) {
                                }
                                return aVar;
                            }
                            C1763h c1763h = new C1763h(g.f6875s);
                            k8.getClass();
                            k8.g(null, c1763h);
                            return nVar;
                        }
                    }
                }
            }
            C1763h c1763h2 = new C1763h(g.f6874r);
            k8.getClass();
            k8.g(null, c1763h2);
            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 = ((j) obj).f449q;
        if (!(objA instanceof A6.i)) {
            C1763h c1763h3 = new C1763h(g.f6876t);
            k8.getClass();
            k8.g(null, c1763h3);
        }
        Throwable thA = j.a(objA);
        if (thA != null) {
            this.f6879u = objA;
            this.f6880v = 2;
            if (iVar.f(thA, this) == aVar) {
                return aVar;
            }
        }
        return nVar;
    }
}
