package org.greenrobot.eventbus;

import android.os.Looper;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.greenrobot.eventbus.g;
import org.greenrobot.eventbus.h;

/* JADX INFO: compiled from: EventBusBuilder.java */
/* JADX INFO: loaded from: classes.dex */
public class d {

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

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    List<org.greenrobot.eventbus.r.b> f1108j;

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    h f1110l;
    boolean a = true;
    boolean b = true;
    boolean c = true;
    boolean d = true;
    boolean f = true;

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

    d() {
    }

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

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

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