package o;

import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import java.util.Objects;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.vt0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class RunnableC2760vt0 implements Runnable {
    public final /* synthetic */ int l;
    public final /* synthetic */ C1531iw0 m;
    public final /* synthetic */ boolean n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Vt0 f762o;
    public final /* synthetic */ AbstractSafeParcelable p;

    public /* synthetic */ RunnableC2760vt0(Vt0 vt0, C1531iw0 c1531iw0, boolean z, AbstractSafeParcelable abstractSafeParcelable, int i) {
        this.l = i;
        this.m = c1531iw0;
        this.n = z;
        this.p = abstractSafeParcelable;
        this.f762o = vt0;
    }

    @Override // java.lang.Runnable
    public final void run() throws Throwable {
        switch (this.l) {
            case 0:
                Vt0 vt0 = this.f762o;
                InterfaceC2185pq0 interfaceC2185pq0 = vt0.d;
                if (interfaceC2185pq0 != null) {
                    C1531iw0 c1531iw0 = this.m;
                    Preconditions.checkNotNull(c1531iw0);
                    vt0.K(interfaceC2185pq0, this.n ? null : (C1910mv0) this.p, c1531iw0);
                    vt0.F();
                    break;
                } else {
                    Nq0 nq0 = ((Kr0) vt0.a).f;
                    Kr0.l(nq0);
                    nq0.f.b("Discarding data. Failed to set user property");
                    break;
                }
            case 1:
                Vt0 vt02 = this.f762o;
                InterfaceC2185pq0 interfaceC2185pq02 = vt02.d;
                if (interfaceC2185pq02 != null) {
                    C1531iw0 c1531iw02 = this.m;
                    Preconditions.checkNotNull(c1531iw02);
                    vt02.K(interfaceC2185pq02, this.n ? null : (No0) this.p, c1531iw02);
                    vt02.F();
                    break;
                } else {
                    Nq0 nq02 = ((Kr0) vt02.a).f;
                    Kr0.l(nq02);
                    nq02.f.b("Discarding data. Failed to send event to service");
                    break;
                }
            default:
                Vt0 vt03 = this.f762o;
                InterfaceC2185pq0 interfaceC2185pq03 = vt03.d;
                if (interfaceC2185pq03 != null) {
                    C1531iw0 c1531iw03 = this.m;
                    Preconditions.checkNotNull(c1531iw03);
                    vt03.K(interfaceC2185pq03, this.n ? null : (Xn0) this.p, c1531iw03);
                    vt03.F();
                    break;
                } else {
                    Nq0 nq03 = ((Kr0) vt03.a).f;
                    Kr0.l(nq03);
                    nq03.f.b("Discarding data. Failed to send conditional user property to service");
                    break;
                }
        }
    }

    public RunnableC2760vt0(Vt0 vt0, C1531iw0 c1531iw0, boolean z, Xn0 xn0) {
        this.l = 2;
        this.m = c1531iw0;
        this.n = z;
        this.p = xn0;
        Objects.requireNonNull(vt0);
        this.f762o = vt0;
    }
}
