package defpackage;

import android.os.Looper;
import android.util.AndroidRuntimeException;
import java.util.ArrayList;

/* JADX INFO: renamed from: ˑᵣᵽᵺ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2107 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public float f8379;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public float f8380;

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public float f8381;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public boolean f8382;

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public C5256 f8383;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final ᵸˊʾᵜ f8384;

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public boolean f8385;

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final ArrayList f8386;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public float f8387;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public float f8388;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public float f8389;

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final ArrayList f8390;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final C3347 f8391;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public long f8392;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public boolean f8393;

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public static final C3333 f8377 = new C3333(1);

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public static final C3333 f8378 = new C3333(2);

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public static final C3333 f8374 = new C3333(3);

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public static final C3333 f8373 = new C3333(4);

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public static final C3333 f8376 = new C3333(5);

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public static final C3333 f8375 = new C3333(0);

    public C2107(C3347 c3347, ᵸˊʾᵜ r6) {
        this.f8388 = 0.0f;
        this.f8379 = Float.MAX_VALUE;
        this.f8382 = false;
        this.f8393 = false;
        this.f8389 = Float.MAX_VALUE;
        this.f8380 = -3.4028235E38f;
        this.f8392 = 0L;
        this.f8390 = new ArrayList();
        this.f8386 = new ArrayList();
        this.f8391 = c3347;
        this.f8384 = r6;
        if (r6 == f8374 || r6 == f8373 || r6 == f8376) {
            this.f8387 = 0.1f;
        } else if (r6 == f8375) {
            this.f8387 = 0.00390625f;
        } else if (r6 == f8377 || r6 == f8378) {
            this.f8387 = 0.002f;
        } else {
            this.f8387 = 1.0f;
        }
        this.f8383 = null;
        this.f8381 = Float.MAX_VALUE;
        this.f8385 = false;
    }

    public C2107(C3873 c3873) {
        this.f8388 = 0.0f;
        this.f8379 = Float.MAX_VALUE;
        this.f8382 = false;
        this.f8393 = false;
        this.f8389 = Float.MAX_VALUE;
        this.f8380 = -3.4028235E38f;
        this.f8392 = 0L;
        this.f8390 = new ArrayList();
        this.f8386 = new ArrayList();
        this.f8391 = null;
        this.f8384 = new C2543(c3873);
        this.f8387 = 1.0f;
        this.f8383 = null;
        this.f8381 = Float.MAX_VALUE;
        this.f8385 = false;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static C1820 m5616() {
        ThreadLocal threadLocal = C1820.f7239;
        if (threadLocal.get() == null) {
            threadLocal.set(new C1820(new C0767(3)));
        }
        return (C1820) threadLocal.get();
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void m5617(float f) {
        ArrayList arrayList;
        this.f8384.ˉᵵᵜ(this.f8391, f);
        int i = 0;
        while (true) {
            arrayList = this.f8386;
            if (i >= arrayList.size()) {
                break;
            }
            if (arrayList.get(i) != null) {
                C1606 c1606 = (C1606) arrayList.get(i);
                float f2 = this.f8379;
                C0737 c0737 = c1606.f6426;
                long jMax = Math.max(-1L, Math.min(c0737.f13767 + 1, Math.round(f2)));
                c0737.mo2636(jMax, c1606.f6429);
                c1606.f6429 = jMax;
            }
            i++;
        }
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            if (arrayList.get(size) == null) {
                arrayList.remove(size);
            }
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void m5618(float f) {
        if (this.f8393) {
            this.f8381 = f;
            return;
        }
        if (this.f8383 == null) {
            this.f8383 = new C5256(f);
        }
        C5256 c5256 = this.f8383;
        double d = f;
        c5256.f19814 = d;
        double d2 = (float) d;
        if (d2 > this.f8389) {
            C4468.m9515("Final position of the spring cannot be greater than the max value.");
            return;
        }
        if (d2 < this.f8380) {
            C4468.m9515("Final position of the spring cannot be less than the min value.");
            return;
        }
        double dAbs = Math.abs(this.f8387 * 0.75f);
        c5256.f19813 = dAbs;
        c5256.f19809 = dAbs * 62.5d;
        C0767 c0767 = m5616().f7243;
        c0767.getClass();
        if (Thread.currentThread() != ((Looper) c0767.f3432).getThread()) {
            throw new AndroidRuntimeException("Animations may only be started on the same thread as the animation handler");
        }
        boolean z = this.f8393;
        if (z || z) {
            return;
        }
        this.f8393 = true;
        if (!this.f8382) {
            this.f8379 = this.f8384.ˏːˆ(this.f8391);
        }
        float f2 = this.f8379;
        if (f2 > this.f8389 || f2 < this.f8380) {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ("Starting value need to be in between min value and max value");
        } else {
            m5616().m5000(this);
        }
    }
}
