package com.google.android.gms.internal.ads;

import java.util.Arrays;

/* JADX INFO: loaded from: classes2.dex */
public final class ka {

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

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

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

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

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

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