package m4;

import java.util.concurrent.Executor;

/* JADX INFO: loaded from: classes3.dex */
public final class J0 implements Executor {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final l2.c f20653a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Executor f20654b;

    public J0(l2.c cVar) {
        A4.g.o(cVar, "executorPool");
        this.f20653a = cVar;
    }

    @Override // java.util.concurrent.Executor
    public final void execute(Runnable runnable) {
        Executor executor;
        synchronized (this) {
            try {
                if (this.f20654b == null) {
                    Executor executor2 = (Executor) f2.a((e2) this.f20653a.f20267b);
                    Executor executor3 = this.f20654b;
                    if (executor2 == null) {
                        throw new NullPointerException(L4.a.X("%s.getObject()", executor3));
                    }
                    this.f20654b = executor2;
                }
                executor = this.f20654b;
            } catch (Throwable th) {
                throw th;
            }
        }
        executor.execute(runnable);
    }
}
