package p037.p057;

/* JADX INFO: renamed from: މ.ށ.ނ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C1719 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int[] f5580;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public int f5581;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public int f5582;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public int f5583;

    public C1719() {
        int iHighestOneBit = Integer.bitCount(8) != 1 ? Integer.highestOneBit(7) << 1 : 8;
        this.f5583 = iHighestOneBit - 1;
        this.f5580 = new int[iHighestOneBit];
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int m3352() {
        return (this.f5582 - this.f5581) & this.f5583;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m3353(int i) {
        int[] iArr = this.f5580;
        int i2 = this.f5582;
        iArr[i2] = i;
        int i3 = this.f5583 & (i2 + 1);
        this.f5582 = i3;
        int i4 = this.f5581;
        if (i3 == i4) {
            int length = iArr.length;
            int i5 = length - i4;
            int i6 = length << 1;
            if (i6 < 0) {
                throw new RuntimeException("Max array capacity exceeded");
            }
            int[] iArr2 = new int[i6];
            System.arraycopy(iArr, i4, iArr2, 0, i5);
            System.arraycopy(this.f5580, 0, iArr2, i5, this.f5581);
            this.f5580 = iArr2;
            this.f5581 = 0;
            this.f5582 = length;
            this.f5583 = i6 - 1;
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public int m3354(int i) {
        if (i < 0 || i >= m3352()) {
            throw new ArrayIndexOutOfBoundsException();
        }
        return this.f5580[this.f5583 & (this.f5581 + i)];
    }
}
