package p138.p176.p177.p190.p198;

import p000.p001.p002.p003.p004.C0567;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ೲ.ޑ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3577 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final byte[] f10603;

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

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

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

    public C3577(byte[] bArr) {
        this.f10603 = bArr;
        this.f10604 = bArr.length;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int m5905(int i) {
        int i2 = this.f10605;
        int iMin = Math.min(i, 8 - this.f10606);
        int i3 = i2 + 1;
        int i4 = ((this.f10603[i2] & 255) >> this.f10606) & (255 >> (8 - iMin));
        while (iMin < i) {
            i4 |= (this.f10603[i3] & 255) << iMin;
            iMin += 8;
            i3++;
        }
        int i5 = i4 & ((-1) >>> (32 - i));
        m5907(i);
        return i5;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean m5906() {
        boolean z = (((this.f10603[this.f10605] & 255) >> this.f10606) & 1) == 1;
        m5907(1);
        return z;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public void m5907(int i) {
        int i2;
        int i3 = i / 8;
        int i4 = this.f10605 + i3;
        this.f10605 = i4;
        int i5 = (i - (i3 * 8)) + this.f10606;
        this.f10606 = i5;
        boolean z = true;
        if (i5 > 7) {
            this.f10605 = i4 + 1;
            this.f10606 = i5 - 8;
        }
        int i6 = this.f10605;
        if (i6 < 0 || (i6 >= (i2 = this.f10604) && (i6 != i2 || this.f10606 != 0))) {
            z = false;
        }
        C0567.m1932(z);
    }
}
