package defpackage;

import android.os.SystemClock;
import android.util.Log;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/* renamed from: ᵺᵸʗᴵ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C5154 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final int f19188;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final ThreadPoolExecutor f19189;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final ArrayBlockingQueue f19190;

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

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final ᵶˉᵹʣ f19192;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final double f19193;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final double f19194;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public int f19195;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public long f19196;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final ʽˋːᵜ f19197;

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

    public C5154(ʽˋːᵜ r9, C4767 c4767, ᵶˉᵹʣ r11) {
        double d = c4767.f17719;
        double d2 = c4767.f17714;
        this.f19193 = d;
        this.f19194 = d2;
        this.f19191 = c4767.f17715 * 1000;
        this.f19197 = r9;
        this.f19192 = r11;
        this.f19198 = SystemClock.elapsedRealtime();
        int i = (int) d;
        this.f19188 = i;
        ArrayBlockingQueue arrayBlockingQueue = new ArrayBlockingQueue(i);
        this.f19190 = arrayBlockingQueue;
        this.f19189 = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, arrayBlockingQueue);
        this.f19195 = 0;
        this.f19196 = 0L;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final int m10633() {
        if (this.f19196 == 0) {
            this.f19196 = System.currentTimeMillis();
        }
        int iCurrentTimeMillis = (int) ((System.currentTimeMillis() - this.f19196) / this.f19191);
        int size = this.f19190.size();
        int i = this.f19195;
        int iMin = size == this.f19188 ? Math.min(100, i + iCurrentTimeMillis) : Math.max(0, i - iCurrentTimeMillis);
        if (this.f19195 != iMin) {
            this.f19195 = iMin;
            this.f19196 = System.currentTimeMillis();
        }
        return iMin;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m10634(C4759 c4759, C1353 c1353) {
        Log.isLoggable("FirebaseCrashlytics", 3);
        this.f19197.ᵿʗᵝʽ(new C0196(c4759.f17676, EnumC2576.f10003), new C2523(SystemClock.elapsedRealtime() - this.f19198 < 2000, this, c1353, c4759));
    }
}
