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

import java.util.Arrays;

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

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

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

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

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

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

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

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