package e4;

import d3.V0;
import n4.u0;

/* JADX INFO: renamed from: e4.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class RunnableC0873d implements Runnable {

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

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

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

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

    public /* synthetic */ RunnableC0873d(ScheduledExecutorServiceC0875f scheduledExecutorServiceC0875f, Runnable runnable, V0 v02, int i) {
        this.f12452q = i;
        this.f12453r = scheduledExecutorServiceC0875f;
        this.f12454s = runnable;
        this.f12455t = v02;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f12452q) {
            case u0.f15495q /* 0 */:
                ScheduledExecutorServiceC0875f scheduledExecutorServiceC0875f = this.f12453r;
                final V0 v02 = this.f12455t;
                final Runnable runnable = this.f12454s;
                final int i = 0;
                scheduledExecutorServiceC0875f.f12459q.execute(new Runnable() { // from class: e4.b
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        switch (i) {
                            case u0.f15495q /* 0 */:
                                try {
                                    runnable.run();
                                    return;
                                } catch (Exception e8) {
                                    ((ScheduledFutureC0877h) v02.f11784r).k(e8);
                                    throw e8;
                                }
                            case 1:
                                try {
                                    runnable.run();
                                    return;
                                } catch (Exception e9) {
                                    ((ScheduledFutureC0877h) v02.f11784r).k(e9);
                                    return;
                                }
                            default:
                                Runnable runnable2 = runnable;
                                ScheduledFutureC0877h scheduledFutureC0877h = (ScheduledFutureC0877h) v02.f11784r;
                                try {
                                    runnable2.run();
                                    scheduledFutureC0877h.j(null);
                                    return;
                                } catch (Exception e10) {
                                    scheduledFutureC0877h.k(e10);
                                    return;
                                }
                        }
                    }
                });
                break;
            case 1:
                ScheduledExecutorServiceC0875f scheduledExecutorServiceC0875f2 = this.f12453r;
                final V0 v03 = this.f12455t;
                final Runnable runnable2 = this.f12454s;
                final int i5 = 2;
                scheduledExecutorServiceC0875f2.f12459q.execute(new Runnable() { // from class: e4.b
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        switch (i5) {
                            case u0.f15495q /* 0 */:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e8) {
                                    ((ScheduledFutureC0877h) v03.f11784r).k(e8);
                                    throw e8;
                                }
                            case 1:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e9) {
                                    ((ScheduledFutureC0877h) v03.f11784r).k(e9);
                                    return;
                                }
                            default:
                                Runnable runnable22 = runnable2;
                                ScheduledFutureC0877h scheduledFutureC0877h = (ScheduledFutureC0877h) v03.f11784r;
                                try {
                                    runnable22.run();
                                    scheduledFutureC0877h.j(null);
                                    return;
                                } catch (Exception e10) {
                                    scheduledFutureC0877h.k(e10);
                                    return;
                                }
                        }
                    }
                });
                break;
            default:
                ScheduledExecutorServiceC0875f scheduledExecutorServiceC0875f3 = this.f12453r;
                final V0 v04 = this.f12455t;
                final Runnable runnable3 = this.f12454s;
                final int i8 = 1;
                scheduledExecutorServiceC0875f3.f12459q.execute(new Runnable() { // from class: e4.b
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        switch (i8) {
                            case u0.f15495q /* 0 */:
                                try {
                                    runnable3.run();
                                    return;
                                } catch (Exception e8) {
                                    ((ScheduledFutureC0877h) v04.f11784r).k(e8);
                                    throw e8;
                                }
                            case 1:
                                try {
                                    runnable3.run();
                                    return;
                                } catch (Exception e9) {
                                    ((ScheduledFutureC0877h) v04.f11784r).k(e9);
                                    return;
                                }
                            default:
                                Runnable runnable22 = runnable3;
                                ScheduledFutureC0877h scheduledFutureC0877h = (ScheduledFutureC0877h) v04.f11784r;
                                try {
                                    runnable22.run();
                                    scheduledFutureC0877h.j(null);
                                    return;
                                } catch (Exception e10) {
                                    scheduledFutureC0877h.k(e10);
                                    return;
                                }
                        }
                    }
                });
                break;
        }
    }
}
