package P0;

import java.util.Arrays;
import x0.v;

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

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

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final boolean f5263a = true;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f5264b = 65536;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f5267e = 0;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public a[] f5268f = new a[100];

    public final synchronized void a(int i) {
        boolean z8 = i < this.f5265c;
        this.f5265c = i;
        if (z8) {
            b();
        }
    }

    public final synchronized void b() {
        int iMax = Math.max(0, v.f(this.f5265c, this.f5264b) - this.f5266d);
        int i = this.f5267e;
        if (iMax >= i) {
            return;
        }
        Arrays.fill(this.f5268f, iMax, i, (Object) null);
        this.f5267e = iMax;
    }
}
