package ῲ.ⁱ.ῲ;

/* renamed from: ῲ.ⁱ.ῲ.㴹  reason: contains not printable characters */
/* compiled from: Pools */
public class C2079<T> {

    /* renamed from: ῲ  reason: contains not printable characters */
    public int f7162;

    /* renamed from: K  reason: contains not printable characters */
    public final Object[] f7163;

    public C2079(int i) {
        if (i > 0) {
            this.f7163 = new Object[i];
            return;
        }
        throw new IllegalArgumentException("The max pool size must be > 0");
    }

    /* renamed from: K  reason: contains not printable characters */
    public T m5440() {
        int i = this.f7162;
        if (i <= 0) {
            return null;
        }
        int i2 = i - 1;
        Object[] objArr = this.f7163;
        T t = (T) objArr[i2];
        objArr[i2] = null;
        this.f7162 = i - 1;
        return t;
    }

    /* renamed from: K  reason: contains not printable characters */
    public boolean m5442(T t) {
        int i = this.f7162;
        Object[] objArr = this.f7163;
        if (i >= objArr.length) {
            return false;
        }
        objArr[i] = t;
        this.f7162 = i + 1;
        return true;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5441(T[] tArr, int i) {
        if (i > tArr.length) {
            i = tArr.length;
        }
        for (int i2 = 0; i2 < i; i2++) {
            T t = tArr[i2];
            int i3 = this.f7162;
            Object[] objArr = this.f7163;
            if (i3 < objArr.length) {
                objArr[i3] = t;
                this.f7162 = i3 + 1;
            }
        }
    }
}
