package x2;

import java.util.Arrays;

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

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

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

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

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

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

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