package d3;

import android.os.Looper;
import e4.RunnableC0880k;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;

/* JADX INFO: loaded from: classes.dex */
public final class Q0 implements Executor {

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

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final Object f11656r;

    public /* synthetic */ Q0(int i, Object obj) {
        this.f11655q = i;
        this.f11656r = obj;
    }

    @Override // java.util.concurrent.Executor
    public final void execute(Runnable runnable) {
        switch (this.f11655q) {
            case n4.u0.f15495q /* 0 */:
                C0815q0 c0815q0 = ((C0817r0) ((Y0) this.f11656r).f5146q).f12151z;
                C0817r0.k(c0815q0);
                c0815q0.O(runnable);
                break;
            case 1:
                ((Y2.e) this.f11656r).post(runnable);
                break;
            default:
                ((ExecutorService) this.f11656r).execute(new RunnableC0880k(runnable, 1));
                break;
        }
    }

    public Q0() {
        this.f11655q = 1;
        Y2.e eVar = new Y2.e(Looper.getMainLooper());
        Looper.getMainLooper();
        this.f11656r = eVar;
    }
}
