package o;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Cq, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ThreadFactoryC0068Cq implements ThreadFactory {
    public final /* synthetic */ int a;
    public final Object b;

    public ThreadFactoryC0068Cq(Wp0 wp0) {
        this.a = 2;
        this.b = Executors.defaultThreadFactory();
    }

    @Override // java.util.concurrent.ThreadFactory
    public final Thread newThread(Runnable runnable) {
        switch (this.a) {
            case 0:
                Thread thread = new Thread(runnable);
                thread.setName("arch_disk_io_" + ((AtomicInteger) this.b).getAndIncrement());
                return thread;
            case 1:
                Thread threadNewThread = Executors.defaultThreadFactory().newThread(new RunnableC0864bx(runnable));
                threadNewThread.setName("awaitEvenIfOnMainThread task continuation executor" + ((AtomicLong) this.b).getAndIncrement());
                return threadNewThread;
            default:
                Thread threadNewThread2 = ((ThreadFactory) this.b).newThread(runnable);
                threadNewThread2.setName("ScionFrontendApi");
                return threadNewThread2;
        }
    }

    public ThreadFactoryC0068Cq() {
        this.a = 0;
        this.b = new AtomicInteger(0);
    }

    public ThreadFactoryC0068Cq(AtomicLong atomicLong) {
        this.a = 1;
        this.b = atomicLong;
    }
}
