package W5;

import Z6.InterfaceC0382w;
import c7.K;
import com.google.android.gms.internal.measurement.C1;
import java.util.Locale;
import y5.C1763h;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public y(A a3, String str, int i, E6.d dVar) {
        super(2, dVar);
        this.f7185v = a3;
        this.f7186w = str;
        this.f7187x = i;
    }

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

    /* JADX WARN: Type inference failed for: r6v7, types: [java.lang.Object, java.util.List] */
    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        Object objA;
        F6.a aVar = F6.a.f2580q;
        int i = this.f7184u;
        A a3 = this.f7185v;
        if (i == 0) {
            C1.N(obj);
            Locale locale = Locale.getDefault();
            P6.g.d(locale, "getDefault(...)");
            String upperCase = this.f7186w.toUpperCase(locale);
            P6.g.d(upperCase, "toUpperCase(...)");
            this.f7184u = 1;
            objA = a3.f7139d.a(upperCase, this.f7187x, 50, this);
            if (objA == aVar) {
                return aVar;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            objA = ((A6.j) obj).f449q;
        }
        if (!(objA instanceof A6.i)) {
            C1763h c1763h = new C1763h(new t(((k5.m) objA).f13982c));
            K k8 = a3.i;
            k8.getClass();
            k8.g(null, c1763h);
        }
        return A6.n.f457a;
    }
}
