package y;

import b0.t;

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

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

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

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int[] f7027f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public long[] f7028g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public boolean[] f7029h;

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public boolean[] f7031j;

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public t f7033l;

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

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public j f7035n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public long f7036o;

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

    k() {
    }

    public void a(t tVar) {
        tVar.e(this.f7033l.f3092a, 0, this.f7032k);
        this.f7033l.B(0);
        this.f7034m = false;
    }

    public void b(v.f fVar) {
        fVar.readFully(this.f7033l.f3092a, 0, this.f7032k);
        this.f7033l.B(0);
        this.f7034m = false;
    }

    public long c(int i2) {
        return this.f7028g[i2] + ((long) this.f7027f[i2]);
    }

    public void d(int i2) {
        t tVar = this.f7033l;
        if (tVar == null || tVar.d() < i2) {
            this.f7033l = new t(i2);
        }
        this.f7032k = i2;
        this.f7030i = true;
        this.f7034m = true;
    }

    public void e(int i2) {
        this.f7025d = i2;
        int[] iArr = this.f7026e;
        if (iArr == null || iArr.length < i2) {
            int i3 = (i2 * 125) / 100;
            this.f7026e = new int[i3];
            this.f7027f = new int[i3];
            this.f7028g = new long[i3];
            this.f7029h = new boolean[i3];
            this.f7031j = new boolean[i3];
        }
    }

    public void f() {
        this.f7025d = 0;
        this.f7036o = 0L;
        this.f7030i = false;
        this.f7034m = false;
        this.f7035n = null;
    }
}
