package defpackage;

/* renamed from: ᵹᵥ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final /* synthetic */ class RunnableC5061 implements Runnable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final /* synthetic */ ScheduledExecutorServiceC3827 f18895;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f18896;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final /* synthetic */ C2931 f18897;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ Runnable f18898;

    public /* synthetic */ RunnableC5061(ScheduledExecutorServiceC3827 scheduledExecutorServiceC3827, Runnable runnable, C2931 c2931, int i) {
        this.f18896 = i;
        this.f18895 = scheduledExecutorServiceC3827;
        this.f18898 = runnable;
        this.f18897 = c2931;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i = this.f18896;
        final C2931 c2931 = this.f18897;
        final Runnable runnable = this.f18898;
        ScheduledExecutorServiceC3827 scheduledExecutorServiceC3827 = this.f18895;
        switch (i) {
            case 0:
                final int i2 = 0;
                scheduledExecutorServiceC3827.f14223.execute(new Runnable() { // from class: ᵽᵜˇ
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        int i3 = i2;
                        C2931 c29312 = c2931;
                        Runnable runnable2 = runnable;
                        switch (i3) {
                            case 0:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e) {
                                    ((ScheduledFutureC1422) c29312.f11366).mo2504(e);
                                    throw e;
                                }
                            case 1:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e2) {
                                    ((ScheduledFutureC1422) c29312.f11366).mo2504(e2);
                                    return;
                                }
                            default:
                                ScheduledFutureC1422 scheduledFutureC1422 = (ScheduledFutureC1422) c29312.f11366;
                                try {
                                    runnable2.run();
                                    scheduledFutureC1422.m6181(null);
                                    return;
                                } catch (Exception e3) {
                                    scheduledFutureC1422.mo2504(e3);
                                    return;
                                }
                        }
                    }
                });
                break;
            case 1:
                final int i3 = 2;
                scheduledExecutorServiceC3827.f14223.execute(new Runnable() { // from class: ᵽᵜˇ
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        int i32 = i3;
                        C2931 c29312 = c2931;
                        Runnable runnable2 = runnable;
                        switch (i32) {
                            case 0:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e) {
                                    ((ScheduledFutureC1422) c29312.f11366).mo2504(e);
                                    throw e;
                                }
                            case 1:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e2) {
                                    ((ScheduledFutureC1422) c29312.f11366).mo2504(e2);
                                    return;
                                }
                            default:
                                ScheduledFutureC1422 scheduledFutureC1422 = (ScheduledFutureC1422) c29312.f11366;
                                try {
                                    runnable2.run();
                                    scheduledFutureC1422.m6181(null);
                                    return;
                                } catch (Exception e3) {
                                    scheduledFutureC1422.mo2504(e3);
                                    return;
                                }
                        }
                    }
                });
                break;
            default:
                final int i4 = 1;
                scheduledExecutorServiceC3827.f14223.execute(new Runnable() { // from class: ᵽᵜˇ
                    @Override // java.lang.Runnable
                    public final void run() throws Exception {
                        int i32 = i4;
                        C2931 c29312 = c2931;
                        Runnable runnable2 = runnable;
                        switch (i32) {
                            case 0:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e) {
                                    ((ScheduledFutureC1422) c29312.f11366).mo2504(e);
                                    throw e;
                                }
                            case 1:
                                try {
                                    runnable2.run();
                                    return;
                                } catch (Exception e2) {
                                    ((ScheduledFutureC1422) c29312.f11366).mo2504(e2);
                                    return;
                                }
                            default:
                                ScheduledFutureC1422 scheduledFutureC1422 = (ScheduledFutureC1422) c29312.f11366;
                                try {
                                    runnable2.run();
                                    scheduledFutureC1422.m6181(null);
                                    return;
                                } catch (Exception e3) {
                                    scheduledFutureC1422.mo2504(e3);
                                    return;
                                }
                        }
                    }
                });
                break;
        }
    }
}
