package O1;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public M(T t6, C0232h c0232h, E6.d dVar) {
        super(2, dVar);
        this.f4962v = t6;
        this.f4963w = c0232h;
    }

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

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f4961u;
        C0232h c0232h = this.f4963w;
        try {
            if (i == 0) {
                C1.N(obj);
                T t6 = this.f4962v;
                this.f4961u = 1;
                obj = T.b(t6, this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                C1.N(obj);
            }
            c0232h.a();
            return A6.n.f457a;
        } catch (Throwable th) {
            c0232h.a();
            throw th;
        }
    }
}
