package d3;

/* JADX INFO: renamed from: d3.o1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class RunnableC0810o1 implements Runnable {

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

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ X1 f12085r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ boolean f12086s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ C0824t1 f12087t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final /* synthetic */ Q2.a f12088u;

    public /* synthetic */ RunnableC0810o1(C0824t1 c0824t1, X1 x12, boolean z8, Q2.a aVar, int i) {
        this.f12084q = i;
        this.f12085r = x12;
        this.f12086s = z8;
        this.f12088u = aVar;
        this.f12087t = c0824t1;
    }

    @Override // java.lang.Runnable
    public final void run() throws Throwable {
        switch (this.f12084q) {
            case n4.u0.f15495q /* 0 */:
                C0824t1 c0824t1 = this.f12087t;
                K k8 = c0824t1.f12179t;
                if (k8 != null) {
                    c0824t1.L(k8, this.f12086s ? null : (T1) this.f12088u, this.f12085r);
                    c0824t1.U();
                } else {
                    Z z8 = ((C0817r0) c0824t1.f5146q).f12150y;
                    C0817r0.k(z8);
                    z8.f11875v.b("Discarding data. Failed to set user property");
                }
                break;
            case 1:
                C0824t1 c0824t12 = this.f12087t;
                K k9 = c0824t12.f12179t;
                if (k9 != null) {
                    c0824t12.L(k9, this.f12086s ? null : (C0828v) this.f12088u, this.f12085r);
                    c0824t12.U();
                } else {
                    Z z9 = ((C0817r0) c0824t12.f5146q).f12150y;
                    C0817r0.k(z9);
                    z9.f11875v.b("Discarding data. Failed to send event to service");
                }
                break;
            default:
                C0824t1 c0824t13 = this.f12087t;
                K k10 = c0824t13.f12179t;
                if (k10 != null) {
                    c0824t13.L(k10, this.f12086s ? null : (C0778e) this.f12088u, this.f12085r);
                    c0824t13.U();
                } else {
                    Z z10 = ((C0817r0) c0824t13.f5146q).f12150y;
                    C0817r0.k(z10);
                    z10.f11875v.b("Discarding data. Failed to send conditional user property to service");
                }
                break;
        }
    }
}
