package x2;

import java.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
public final class m {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final byte[] f34529f = {0, 0, 1};

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public boolean f34530a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f34531b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f34532c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f34533d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public byte[] f34534e;

    public final void a(int i10, int i11, byte[] bArr) {
        if (this.f34530a) {
            int i12 = i11 - i10;
            byte[] bArr2 = this.f34534e;
            int length = bArr2.length;
            int i13 = this.f34532c;
            if (length < i13 + i12) {
                this.f34534e = Arrays.copyOf(bArr2, (i13 + i12) * 2);
            }
            System.arraycopy(bArr, i10, this.f34534e, this.f34532c, i12);
            this.f34532c += i12;
        }
    }
}
