package ῲ.ⁱ.K.ῲ;

import android.os.Build;
import android.util.Log;
import android.util.SparseArray;
import android.view.View;
import androidx.constraintlayout.motion.widget.MotionLayout;
import androidx.constraintlayout.widget.ConstraintAttribute;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.DecimalFormat;
import java.util.Arrays;
import ඓ.K.K.K.C1293;
import ῲ.ⁱ.K.K.AbstractC2187;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.ⁱ.K.ῲ.ݜ  reason: contains not printable characters */
/* compiled from: SplineSet */
public abstract class AbstractC2113 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public float[] f7375 = new float[10];

    /* renamed from: ඓ  reason: contains not printable characters */
    public String f7376;

    /* renamed from: ῲ  reason: contains not printable characters */
    public int[] f7377 = new int[10];

    /* renamed from: K  reason: contains not printable characters */
    public AbstractC2187 f7378;

    /* renamed from: 㸾  reason: contains not printable characters */
    public int f7379;

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$ʬ  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2114 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5605(View view, float f) {
            int i = Build.VERSION.SDK_INT;
            view.setElevation((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$Ԕ  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2115 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5606(View view, float f) {
            view.setTranslationY((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$ඓ  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2116 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5607(View view, float f) {
            view.setPivotX((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$ᕣ  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2117 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5608(View view, float f) {
            view.setScaleX((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$ᨨ  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2118 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5609(View view, float f) {
            view.setRotationX((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$ⁱ  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2120 extends AbstractC2113 {

        /* renamed from: 㴹  reason: contains not printable characters */
        public boolean f7382 = false;

        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5613(View view, float f) {
            if (view instanceof MotionLayout) {
                ((MotionLayout) view).setProgress((float) this.f7378.m5739((double) f, 0));
            } else if (!this.f7382) {
                Method method = null;
                try {
                    method = view.getClass().getMethod("setProgress", Float.TYPE);
                } catch (NoSuchMethodException unused) {
                    this.f7382 = true;
                }
                if (method != null) {
                    try {
                        method.invoke(view, Float.valueOf((float) this.f7378.m5739((double) f, 0)));
                    } catch (IllegalAccessException e) {
                        Log.e("SplineSet", "unable to setProgress", e);
                    } catch (InvocationTargetException e2) {
                        Log.e("SplineSet", "unable to setProgress", e2);
                    }
                }
            }
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$K  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2121 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5614(View view, float f) {
            view.setAlpha((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$㑃  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2122 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5615(View view, float f) {
            view.setScaleY((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$㗗  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2123 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5616(View view, float f) {
            int i = Build.VERSION.SDK_INT;
            view.setTranslationZ((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$㳳  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2124 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5617(View view, float f) {
            view.setRotationY((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$㴹  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2125 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5618(View view, float f) {
            view.setPivotY((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$㸾  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2126 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5619(View view, float f) {
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$㿎  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2127 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5620(View view, float f) {
            view.setRotation((float) this.f7378.m5739((double) f, 0));
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$䁗  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2128 extends AbstractC2113 {
        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5621(View view, float f) {
            view.setTranslationX((float) this.f7378.m5739((double) f, 0));
        }
    }

    public String toString() {
        String str = this.f7376;
        DecimalFormat decimalFormat = new DecimalFormat("##.##");
        for (int i = 0; i < this.f7379; i++) {
            StringBuilder r0 = C1293.m3402(str, "[");
            r0.append(this.f7377[i]);
            r0.append(" , ");
            r0.append(decimalFormat.format((double) this.f7375[i]));
            r0.append("] ");
            str = r0.toString();
        }
        return str;
    }

    /* renamed from: K  reason: contains not printable characters */
    public float m5601(float f) {
        return (float) this.f7378.m5739((double) f, 0);
    }

    /* renamed from: K  reason: contains not printable characters */
    public abstract void m5604(View view, float f);

    /* renamed from: K  reason: contains not printable characters */
    public void m5603(int i, float f) {
        int[] iArr = this.f7377;
        if (iArr.length < this.f7379 + 1) {
            this.f7377 = Arrays.copyOf(iArr, iArr.length * 2);
            float[] fArr = this.f7375;
            this.f7375 = Arrays.copyOf(fArr, fArr.length * 2);
        }
        int[] iArr2 = this.f7377;
        int i2 = this.f7379;
        iArr2[i2] = i;
        this.f7375[i2] = f;
        this.f7379 = i2 + 1;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5602(int i) {
        int i2 = this.f7379;
        if (i2 != 0) {
            int[] iArr = this.f7377;
            float[] fArr = this.f7375;
            int[] iArr2 = new int[(iArr.length + 10)];
            iArr2[0] = i2 - 1;
            iArr2[1] = 0;
            int i3 = 2;
            while (i3 > 0) {
                int i4 = i3 - 1;
                int i5 = iArr2[i4];
                i3 = i4 - 1;
                int i6 = iArr2[i3];
                if (i5 < i6) {
                    int i7 = iArr[i6];
                    int i8 = i5;
                    int i9 = i8;
                    while (i8 < i6) {
                        if (iArr[i8] <= i7) {
                            C2369.m6338(iArr, fArr, i9, i8);
                            i9++;
                        }
                        i8++;
                    }
                    C2369.m6338(iArr, fArr, i9, i6);
                    int i10 = i3 + 1;
                    iArr2[i3] = i9 - 1;
                    int i11 = i10 + 1;
                    iArr2[i10] = i5;
                    int i12 = i11 + 1;
                    iArr2[i11] = i6;
                    i3 = i12 + 1;
                    iArr2[i12] = i9 + 1;
                }
            }
            int i13 = 1;
            for (int i14 = 1; i14 < this.f7379; i14++) {
                int[] iArr3 = this.f7377;
                if (iArr3[i14 - 1] != iArr3[i14]) {
                    i13++;
                }
            }
            double[] dArr = new double[i13];
            double[][] dArr2 = (double[][]) Array.newInstance(double.class, i13, 1);
            int i15 = 0;
            for (int i16 = 0; i16 < this.f7379; i16++) {
                if (i16 > 0) {
                    int[] iArr4 = this.f7377;
                    if (iArr4[i16] == iArr4[i16 - 1]) {
                    }
                }
                dArr[i15] = ((double) this.f7377[i16]) * 0.01d;
                dArr2[i15][0] = (double) this.f7375[i16];
                i15++;
            }
            this.f7378 = AbstractC2187.m5736(i, dArr, dArr2);
        }
    }

    /* renamed from: ῲ.ⁱ.K.ῲ.ݜ$ῲ  reason: contains not printable characters */
    /* compiled from: SplineSet */
    public static class C2119 extends AbstractC2113 {

        /* renamed from: ⁱ  reason: contains not printable characters */
        public float[] f7380;

        /* renamed from: 㴹  reason: contains not printable characters */
        public SparseArray<ConstraintAttribute> f7381;

        public C2119(String str, SparseArray<ConstraintAttribute> sparseArray) {
            String str2 = str.split(",")[1];
            this.f7381 = sparseArray;
        }

        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5610(int i) {
            int size = this.f7381.size();
            int r1 = this.f7381.valueAt(0).m543();
            double[] dArr = new double[size];
            this.f7380 = new float[r1];
            double[][] dArr2 = (double[][]) Array.newInstance(double.class, size, r1);
            for (int i2 = 0; i2 < size; i2++) {
                dArr[i2] = ((double) this.f7381.keyAt(i2)) * 0.01d;
                this.f7381.valueAt(i2).m547(this.f7380);
                int i3 = 0;
                while (true) {
                    float[] fArr = this.f7380;
                    if (i3 >= fArr.length) {
                        break;
                    }
                    dArr2[i2][i3] = (double) fArr[i3];
                    i3++;
                }
            }
            this.f7378 = AbstractC2187.m5736(i, dArr, dArr2);
        }

        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5611(int i, float f) {
            throw new RuntimeException("don't call for custom attribute call setPoint(pos, ConstraintAttribute)");
        }

        @Override // ῲ.ⁱ.K.ῲ.AbstractC2113
        /* renamed from: K  reason: contains not printable characters */
        public void m5612(View view, float f) {
            this.f7378.m5741((double) f, this.f7380);
            this.f7381.valueAt(0).m545(view, this.f7380);
        }
    }
}
