package defpackage;

import java.util.Arrays;

/* renamed from: ᵤᵔˈ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3433 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public long f12836;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final boolean[] f12837 = new boolean[15];

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public long f12838;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public long f12839;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public long f12840;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public long f12841;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public int f12842;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public long f12843;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m7810() {
        this.f12843 = 0L;
        this.f12836 = 0L;
        this.f12838 = 0L;
        this.f12842 = 0;
        Arrays.fill(this.f12837, false);
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final boolean m7811() {
        return this.f12843 > 15 && this.f12842 == 0;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m7812(long j) {
        long j2 = this.f12843;
        if (j2 == 0) {
            this.f12840 = j;
        } else if (j2 == 1) {
            long j3 = j - this.f12840;
            this.f12841 = j3;
            this.f12838 = j3;
            this.f12836 = 1L;
        } else {
            long j4 = j - this.f12839;
            int i = (int) (j2 % 15);
            long jAbs = Math.abs(j4 - this.f12841);
            boolean[] zArr = this.f12837;
            if (jAbs <= 1000000) {
                this.f12836++;
                this.f12838 += j4;
                if (zArr[i]) {
                    zArr[i] = false;
                    this.f12842--;
                }
            } else if (!zArr[i]) {
                zArr[i] = true;
                this.f12842++;
            }
        }
        this.f12843++;
        this.f12839 = j;
    }
}
