package O1;

import O1.g;
import O1.h;
import android.os.Looper;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/* JADX INFO: loaded from: classes2.dex */
public class d {

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    private static final ExecutorService f1503m = Executors.newCachedThreadPool();

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    boolean f1508e;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    boolean f1510g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    boolean f1511h;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    List f1513j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    g f1514k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    h f1515l;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    boolean f1504a = true;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    boolean f1505b = true;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    boolean f1506c = true;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    boolean f1507d = true;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    boolean f1509f = true;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    ExecutorService f1512i = f1503m;

    d() {
    }

    Object a() {
        try {
            return Looper.getMainLooper();
        } catch (RuntimeException unused) {
            return null;
        }
    }

    g b() {
        g gVar = this.f1514k;
        return gVar != null ? gVar : (!g.a.c() || a() == null) ? new g.b() : new g.a("EventBus");
    }

    h c() {
        Object objA;
        h hVar = this.f1515l;
        if (hVar != null) {
            return hVar;
        }
        if (!g.a.c() || (objA = a()) == null) {
            return null;
        }
        return new h.a((Looper) objA);
    }
}
