package defpackage;

/* JADX INFO: renamed from: ᵚᵗˏ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC2723 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public int f10438;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public long f10439;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final byte[] f10440;

    public AbstractC2723() {
        this.f10440 = new byte[4];
        this.f10438 = 0;
    }

    public AbstractC2723(AbstractC2723 abstractC2723) {
        this.f10440 = new byte[4];
        m6620(abstractC2723);
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final void m6620(AbstractC2723 abstractC2723) {
        byte[] bArr = abstractC2723.f10440;
        System.arraycopy(bArr, 0, this.f10440, 0, bArr.length);
        this.f10438 = abstractC2723.f10438;
        this.f10439 = abstractC2723.f10439;
    }

    /* JADX INFO: renamed from: ˊᵫᵗ */
    public abstract void mo1994(int i, byte[] bArr);

    /* JADX INFO: renamed from: ːˏᵟᵯ */
    public abstract int mo1995(int i, byte[] bArr);

    /* JADX INFO: renamed from: ᵨᵣ */
    public abstract int mo1996();

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final void m6621(byte[] bArr, int i, int i2) {
        int i3 = 0;
        int iMax = Math.max(0, i2);
        int i4 = this.f10438;
        byte[] bArr2 = this.f10440;
        if (i4 != 0) {
            int i5 = 0;
            while (true) {
                if (i5 >= iMax) {
                    i3 = i5;
                    break;
                }
                int i6 = this.f10438;
                int i7 = i6 + 1;
                this.f10438 = i7;
                int i8 = i5 + 1;
                bArr2[i6] = bArr[i5 + i];
                if (i7 == 4) {
                    mo1994(0, bArr2);
                    this.f10438 = 0;
                    i3 = i8;
                    break;
                }
                i5 = i8;
            }
        }
        int i9 = ((iMax - i3) & (-4)) + i3;
        while (i3 < i9) {
            mo1994(i + i3, bArr);
            i3 += 4;
        }
        while (i3 < iMax) {
            int i10 = this.f10438;
            this.f10438 = i10 + 1;
            bArr2[i10] = bArr[i3 + i];
            i3++;
        }
        this.f10439 += (long) iMax;
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ */
    public abstract void mo1998(AbstractC2723 abstractC2723);

    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public abstract AbstractC2723 mo1999();

    /* JADX INFO: renamed from: ᵵᵽ */
    public abstract void mo2000(long j);

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final void m6622(byte b) {
        int i = this.f10438;
        int i2 = i + 1;
        this.f10438 = i2;
        byte[] bArr = this.f10440;
        bArr[i] = b;
        if (i2 == bArr.length) {
            mo1994(0, bArr);
            this.f10438 = 0;
        }
        this.f10439++;
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final void m6623() {
        long j = this.f10439 << 3;
        byte b = -128;
        while (true) {
            m6622(b);
            if (this.f10438 == 0) {
                mo2000(j);
                mo2002();
                return;
            }
            b = 0;
        }
    }

    /* JADX INFO: renamed from: ᵻʽᵯ */
    public void mo2001() {
        this.f10439 = 0L;
        this.f10438 = 0;
        int i = 0;
        while (true) {
            byte[] bArr = this.f10440;
            if (i >= bArr.length) {
                return;
            }
            bArr[i] = 0;
            i++;
        }
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ */
    public abstract void mo2002();
}
