package defpackage;

import android.util.Property;
import j$.util.Objects;
import java.lang.reflect.Method;
import java.util.HashMap;

/* JADX INFO: renamed from: ᵴᵼˋ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4687 implements Cloneable {

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public static final Class[] f17795;

    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public static final HashMap f17796;

    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    public static final HashMap f17797;

    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public static final Class[] f17798;

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public static final Class[] f17799;

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public final Object[] f17800;

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public String f17801;

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public InterfaceC3548 f17802;

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public float f17803;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public Method f17804;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public Property f17805;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public Method f17806;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public Class f17807;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public C0791 f17808;

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public C0791 f17809;

    static {
        Class cls = Float.TYPE;
        Class cls2 = Double.TYPE;
        Class cls3 = Integer.TYPE;
        f17795 = new Class[]{cls, Float.class, cls2, cls3, Double.class, Integer.class};
        f17799 = new Class[]{cls3, Integer.class, cls, cls2, Float.class, Double.class};
        f17798 = new Class[]{cls2, Double.class, cls, cls3, Float.class, Integer.class};
        f17797 = new HashMap();
        f17796 = new HashMap();
    }

    public C4687(Property property, float... fArr) {
        this.f17804 = null;
        this.f17806 = null;
        this.f17808 = null;
        this.f17800 = new Object[1];
        this.f17805 = property;
        if (property != null) {
            this.f17801 = property.getName();
        }
        m9816(fArr);
    }

    public C4687(String str, float... fArr) {
        this.f17804 = null;
        this.f17806 = null;
        this.f17808 = null;
        this.f17800 = new Object[1];
        this.f17801 = str;
        m9816(fArr);
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public static String m9812(String str, String str2) {
        if (str2 == null || str2.length() == 0) {
            return str;
        }
        return str + Character.toUpperCase(str2.charAt(0)) + str2.substring(1);
    }

    public final String toString() {
        return this.f17801 + ": " + this.f17808.toString();
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final C4687 clone() {
        C4687 c4687;
        try {
            c4687 = (C4687) super.clone();
            c4687.f17801 = this.f17801;
            c4687.f17805 = this.f17805;
            c4687.f17808 = this.f17808.clone();
            c4687.f17802 = this.f17802;
        } catch (CloneNotSupportedException unused) {
            c4687 = null;
        }
        c4687.f17809 = c4687.f17808;
        return c4687;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final Method m9814(Class cls, String str, Class cls2) {
        String strM9812 = m9812(str, this.f17801);
        Method method = null;
        if (cls2 == null) {
            try {
                method = cls.getMethod(strM9812, null);
            } catch (NoSuchMethodException unused) {
            }
        } else {
            for (Class cls3 : cls2.equals(Float.class) ? f17795 : cls2.equals(Integer.class) ? f17799 : cls2.equals(Double.class) ? f17798 : new Class[]{cls2}) {
                Class[] clsArr = {cls3};
                try {
                    try {
                        Method method2 = cls.getMethod(strM9812, clsArr);
                        this.f17807 = cls3;
                        return method2;
                    } catch (NoSuchMethodException unused2) {
                    }
                } catch (NoSuchMethodException unused3) {
                    method = cls.getDeclaredMethod(strM9812, clsArr);
                    method.setAccessible(true);
                    this.f17807 = cls3;
                    return method;
                }
            }
        }
        if (method == null) {
            m9812(str, this.f17801);
            Objects.toString(cls2);
            Objects.toString(cls);
        }
        return method;
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final Method m9815(Class cls, HashMap map, String str, Class cls2) {
        Method methodM9814;
        boolean zContainsKey;
        synchronized (map) {
            try {
                HashMap map2 = (HashMap) map.get(cls);
                methodM9814 = null;
                if (map2 != null) {
                    zContainsKey = map2.containsKey(this.f17801);
                    if (zContainsKey) {
                        methodM9814 = (Method) map2.get(this.f17801);
                    }
                } else {
                    zContainsKey = false;
                }
                if (!zContainsKey) {
                    methodM9814 = m9814(cls, str, cls2);
                    if (map2 == null) {
                        map2 = new HashMap();
                        map.put(cls, map2);
                    }
                    map2.put(this.f17801, methodM9814);
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return methodM9814;
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final void m9816(float... fArr) {
        this.f17807 = Float.TYPE;
        int length = fArr.length;
        C5514[] c5514Arr = new C5514[Math.max(length, 2)];
        if (length == 1) {
            c5514Arr[0] = new C5514(0.0f);
            float f = fArr[0];
            c5514Arr[1] = new C5514(1.0f, f);
            Float.isNaN(f);
        } else {
            c5514Arr[0] = new C5514(0.0f, fArr[0]);
            for (int i = 1; i < length; i++) {
                float f2 = fArr[i];
                c5514Arr[i] = new C5514(i / (length - 1), f2);
                Float.isNaN(f2);
            }
        }
        C0791 c0791 = new C0791(c5514Arr);
        this.f17808 = c0791;
        this.f17809 = c0791;
    }
}
