package p037.p065.p066;

import java.util.List;
import p037.p065.p066.AbstractC1819;
import p037.p065.p066.InterfaceC1822;

/* JADX INFO: renamed from: މ.ރ.ށ.ޅ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1815 extends C1821<Float> implements InterfaceC1822.InterfaceC1823 {
    public C1815(AbstractC1819.C1820... c1820Arr) {
        super(c1820Arr);
    }

    @Override // p037.p065.p066.InterfaceC1822
    public C1815 clone() {
        List<AbstractC1819<T>> list = this.f6099;
        int size = list.size();
        AbstractC1819.C1820[] c1820Arr = new AbstractC1819.C1820[size];
        for (int i = 0; i < size; i++) {
            c1820Arr[i] = ((AbstractC1819.C1820) ((AbstractC1819) list.get(i))).clone();
        }
        return new C1815(c1820Arr);
    }

    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$PrimitiveArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    @Override // p037.p065.p066.InterfaceC1822.InterfaceC1823
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public float mo3594(float f) {
        if (f <= 0.0f) {
            AbstractC1819.C1820 c1820 = (AbstractC1819.C1820) this.f6099.get(0);
            AbstractC1819.C1820 c18202 = (AbstractC1819.C1820) this.f6099.get(1);
            float f2 = c1820.f6096;
            float f3 = c18202.f6096;
            float f4 = c1820.f6094;
            float f5 = c18202.f6094;
            InterfaceC1818 interfaceC1818 = c18202.f6095;
            if (interfaceC1818 != null) {
                f = interfaceC1818.getInterpolation(f);
            }
            float f6 = (f - f4) / (f5 - f4);
            InterfaceC1828<T> interfaceC1828 = this.f6100;
            return interfaceC1828 == 0 ? ((f3 - f2) * f6) + f2 : ((Float) interfaceC1828.evaluate(f6, Float.valueOf(f2), Float.valueOf(f3))).floatValue();
        }
        if (f >= 1.0f) {
            AbstractC1819.C1820 c18203 = (AbstractC1819.C1820) this.f6099.get(this.f6097 - 2);
            AbstractC1819.C1820 c18204 = (AbstractC1819.C1820) this.f6099.get(this.f6097 - 1);
            float f7 = c18203.f6096;
            float f8 = c18204.f6096;
            float f9 = c18203.f6094;
            float f10 = c18204.f6094;
            InterfaceC1818 interfaceC18182 = c18204.f6095;
            if (interfaceC18182 != null) {
                f = interfaceC18182.getInterpolation(f);
            }
            float f11 = (f - f9) / (f10 - f9);
            InterfaceC1828<T> interfaceC18282 = this.f6100;
            return interfaceC18282 == 0 ? ((f8 - f7) * f11) + f7 : ((Float) interfaceC18282.evaluate(f11, Float.valueOf(f7), Float.valueOf(f8))).floatValue();
        }
        AbstractC1819.C1820 c18205 = (AbstractC1819.C1820) this.f6099.get(0);
        int i = 1;
        while (true) {
            int i2 = this.f6097;
            if (i >= i2) {
                return Float.valueOf(((AbstractC1819.C1820) ((AbstractC1819) this.f6099.get(i2 - 1))).f6096).floatValue();
            }
            AbstractC1819.C1820 c18206 = (AbstractC1819.C1820) this.f6099.get(i);
            float f12 = c18206.f6094;
            if (f < f12) {
                InterfaceC1818 interfaceC18183 = c18206.f6095;
                float f13 = c18205.f6094;
                float interpolation = (f - f13) / (f12 - f13);
                float f14 = c18205.f6096;
                float f15 = c18206.f6096;
                if (interfaceC18183 != null) {
                    interpolation = interfaceC18183.getInterpolation(interpolation);
                }
                InterfaceC1828<T> interfaceC18283 = this.f6100;
                return interfaceC18283 == 0 ? ((f15 - f14) * interpolation) + f14 : ((Float) interfaceC18283.evaluate(interpolation, Float.valueOf(f14), Float.valueOf(f15))).floatValue();
            }
            i++;
            c18205 = c18206;
        }
    }

    @Override // p037.p065.p066.InterfaceC1822
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public Float mo3595(float f) {
        return Float.valueOf(mo3594(f));
    }
}
