package p138.p176.p177.p190.p198.p207;

import java.util.Arrays;
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 C3672 {

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

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

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

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public byte[] f11284;

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

    public C3672(int i, int i2) {
        this.f11281 = i;
        byte[] bArr = new byte[i2 + 3];
        this.f11284 = bArr;
        bArr[2] = 1;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m6018() {
        this.f11282 = false;
        this.f11283 = false;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m6019(byte[] bArr, int i, int i2) {
        if (this.f11282) {
            int i3 = i2 - i;
            byte[] bArr2 = this.f11284;
            int length = bArr2.length;
            int i4 = this.f11285;
            if (length < i4 + i3) {
                this.f11284 = Arrays.copyOf(bArr2, (i4 + i3) * 2);
            }
            System.arraycopy(bArr, i, this.f11284, this.f11285, i3);
            this.f11285 += i3;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean m6020(int i) {
        if (!this.f11282) {
            return false;
        }
        this.f11285 -= i;
        this.f11282 = false;
        this.f11283 = true;
        return true;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public void m6021(int i) {
        C0567.m1932(!this.f11282);
        boolean z = i == this.f11281;
        this.f11282 = z;
        if (z) {
            this.f11285 = 3;
            this.f11283 = false;
        }
    }
}
