package R0;

import java.util.concurrent.ConcurrentLinkedQueue;

/* JADX INFO: loaded from: classes.dex */
public class d implements a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private ConcurrentLinkedQueue f1632a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final int f1633b;

    d() {
        this(64);
    }

    @Override // R0.a
    /* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
    public b a() {
        return (b) this.f1632a.poll();
    }

    @Override // R0.a
    /* JADX INFO: renamed from: d, reason: merged with bridge method [inline-methods] */
    public void b(b bVar) {
        if (bVar == null || this.f1632a.size() >= this.f1633b || this.f1632a.contains(bVar)) {
            return;
        }
        bVar.clear();
        this.f1632a.add(bVar);
    }

    d(int i2) {
        this.f1633b = i2;
        this.f1632a = new ConcurrentLinkedQueue();
    }
}
