package e1;

import java.util.ArrayList;
import r3.w;
import r3.z;

/* JADX INFO: loaded from: classes.dex */
public abstract class k implements b {

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final g f25412m = new g("scaleX", 8);

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final g f25413n = new g("scaleY", 9);

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public static final g f25414o = new g("rotation", 10);

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public static final g f25415p = new g("rotationX", 11);

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public static final g f25416q = new g("rotationY", 12);

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public static final g f25417r = new g("alpha", 2);

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Object f25421d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final o0.i f25422e;

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

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public float f25424g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public float f25425h;

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final ArrayList f25428k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final ArrayList f25429l;

    public k(l lVar) {
        this.f25418a = 0.0f;
        this.f25419b = Float.MAX_VALUE;
        this.f25420c = false;
        this.f25423f = false;
        this.f25424g = Float.MAX_VALUE;
        this.f25425h = -3.4028235E38f;
        this.f25426i = 0L;
        this.f25428k = new ArrayList();
        this.f25429l = new ArrayList();
        this.f25421d = null;
        this.f25422e = new h(lVar);
        this.f25427j = 1.0f;
    }

    public static f a() {
        ThreadLocal threadLocal = f.f25399i;
        if (threadLocal.get() == null) {
            threadLocal.set(new f(new xyz.stream.utils.f(1)));
        }
        return (f) threadLocal.get();
    }

    public final void b(float f10) {
        ArrayList arrayList;
        this.f25422e.r(this.f25421d, f10);
        int i10 = 0;
        while (true) {
            arrayList = this.f25429l;
            if (i10 >= arrayList.size()) {
                break;
            }
            if (arrayList.get(i10) != null) {
                w wVar = (w) arrayList.get(i10);
                float f11 = this.f25419b;
                z zVar = wVar.f32430g;
                long jMax = Math.max(-1L, Math.min(zVar.f32455d0 + 1, Math.round(f11)));
                zVar.C(jMax, wVar.f32424a);
                wVar.f32424a = jMax;
            }
            i10++;
        }
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            if (arrayList.get(size) == null) {
                arrayList.remove(size);
            }
        }
    }

    public k(Object obj, o0.i iVar) {
        this.f25418a = 0.0f;
        this.f25419b = Float.MAX_VALUE;
        this.f25420c = false;
        this.f25423f = false;
        this.f25424g = Float.MAX_VALUE;
        this.f25425h = -3.4028235E38f;
        this.f25426i = 0L;
        this.f25428k = new ArrayList();
        this.f25429l = new ArrayList();
        this.f25421d = obj;
        this.f25422e = iVar;
        if (iVar == f25414o || iVar == f25415p || iVar == f25416q) {
            this.f25427j = 0.1f;
            return;
        }
        if (iVar == f25417r) {
            this.f25427j = 0.00390625f;
        } else if (iVar == f25412m || iVar == f25413n) {
            this.f25427j = 0.002f;
        } else {
            this.f25427j = 1.0f;
        }
    }
}
