package defpackage;

/* renamed from: ᵙˆˆᵡ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC2573 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public long f9986;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final byte[] f9987;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public int f9988;

    public AbstractC2573() {
        this.f9987 = new byte[4];
        this.f9988 = 0;
    }

    public AbstractC2573(AbstractC2573 abstractC2573) {
        this.f9987 = new byte[4];
        m6468(abstractC2573);
    }

    /* renamed from: ˇʼʤˎ */
    public abstract int mo5394();

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final void m6467(byte[] bArr, int i, int i2) {
        int i3 = 0;
        int iMax = Math.max(0, i2);
        int i4 = this.f9988;
        byte[] bArr2 = this.f9987;
        if (i4 != 0) {
            int i5 = 0;
            while (true) {
                if (i5 >= iMax) {
                    i3 = i5;
                    break;
                }
                int i6 = this.f9988;
                int i7 = i6 + 1;
                this.f9988 = i7;
                int i8 = i5 + 1;
                bArr2[i6] = bArr[i5 + i];
                if (i7 == 4) {
                    mo5402(0, bArr2);
                    this.f9988 = 0;
                    i3 = i8;
                    break;
                }
                i5 = i8;
            }
        }
        int i9 = ((iMax - i3) & (-4)) + i3;
        while (i3 < i9) {
            mo5402(i + i3, bArr);
            i3 += 4;
        }
        while (i3 < iMax) {
            int i10 = this.f9988;
            this.f9988 = i10 + 1;
            bArr2[i10] = bArr[i3 + i];
            i3++;
        }
        this.f9986 += iMax;
    }

    /* renamed from: ˎˏʜʾ */
    public abstract void mo5395(long j);

    /* renamed from: ˏˋٴ */
    public abstract void mo5396();

    /* renamed from: ˏᵙ */
    public abstract int mo5397(int i, byte[] bArr);

    /* renamed from: ᵝᵵᵺ */
    public void mo5398() {
        this.f9986 = 0L;
        this.f9988 = 0;
        int i = 0;
        while (true) {
            byte[] bArr = this.f9987;
            if (i >= bArr.length) {
                return;
            }
            bArr[i] = 0;
            i++;
        }
    }

    /* renamed from: ᵥᵯˎ */
    public abstract AbstractC2573 mo5399();

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m6468(AbstractC2573 abstractC2573) {
        byte[] bArr = abstractC2573.f9987;
        System.arraycopy(bArr, 0, this.f9987, 0, bArr.length);
        this.f9988 = abstractC2573.f9988;
        this.f9986 = abstractC2573.f9986;
    }

    /* renamed from: ᵶᵷᵕ */
    public abstract void mo5401(AbstractC2573 abstractC2573);

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final void m6469(byte b) {
        int i = this.f9988;
        int i2 = i + 1;
        this.f9988 = i2;
        byte[] bArr = this.f9987;
        bArr[i] = b;
        if (i2 == bArr.length) {
            mo5402(0, bArr);
            this.f9988 = 0;
        }
        this.f9986++;
    }

    /* renamed from: ᵹᵝᵶ */
    public abstract void mo5402(int i, byte[] bArr);

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final void m6470() {
        long j = this.f9986 << 3;
        byte b = Byte.MIN_VALUE;
        while (true) {
            m6469(b);
            if (this.f9988 == 0) {
                mo5395(j);
                mo5396();
                return;
            }
            b = 0;
        }
    }
}
