package N2;

import android.os.Build;
import android.os.StrictMode;
import com.google.firebase.concurrent.ExecutorsRegistrar;
import com.google.firebase.messaging.FirebaseMessaging;
import java.util.Collections;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class g implements Z2.a {

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

    public /* synthetic */ g(int i) {
        this.f2198a = i;
    }

    @Override // Z2.a
    public final Object get() {
        switch (this.f2198a) {
            case 0:
                return Collections.EMPTY_SET;
            case 1:
                return null;
            case 2:
                o oVar = ExecutorsRegistrar.f5810a;
                StrictMode.ThreadPolicy.Builder builderDetectNetwork = new StrictMode.ThreadPolicy.Builder().detectNetwork();
                int i = Build.VERSION.SDK_INT;
                builderDetectNetwork.detectResourceMismatches();
                if (i >= 26) {
                    builderDetectNetwork.detectUnbufferedIo();
                }
                return new O2.g(Executors.newFixedThreadPool(4, new O2.a("Firebase Background", 10, builderDetectNetwork.penaltyLog().build())), (ScheduledExecutorService) ExecutorsRegistrar.f5813d.get());
            case 3:
                o oVar2 = ExecutorsRegistrar.f5810a;
                return new O2.g(Executors.newFixedThreadPool(Math.max(2, Runtime.getRuntime().availableProcessors()), new O2.a("Firebase Lite", 0, new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build())), (ScheduledExecutorService) ExecutorsRegistrar.f5813d.get());
            case 4:
                o oVar3 = ExecutorsRegistrar.f5810a;
                return new O2.g(Executors.newCachedThreadPool(new O2.a("Firebase Blocking", 11, null)), (ScheduledExecutorService) ExecutorsRegistrar.f5813d.get());
            case 5:
                o oVar4 = ExecutorsRegistrar.f5810a;
                return Executors.newSingleThreadScheduledExecutor(new O2.a("Firebase Scheduler", 0, null));
            default:
                S.g gVar = FirebaseMessaging.f5845l;
                return null;
        }
    }
}
