package defpackage;

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

/* renamed from: ᵠˀᵛ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3104 implements Cloneable {

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public static final HashMap f11842;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public static final Class[] f11843;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public static final Class[] f11844;

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public static final HashMap f11845;

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public static final Class[] f11846;

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final Object[] f11847;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public float f11848;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public C3369 f11849;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public InterfaceC0599 f11850;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public C3369 f11851;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public Property f11852;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public Class f11853;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public String f11854;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public Method f11855;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public Method f11856;

    static {
        Class cls = Float.TYPE;
        Class cls2 = Double.TYPE;
        Class cls3 = Integer.TYPE;
        f11844 = new Class[]{cls, Float.class, cls2, cls3, Double.class, Integer.class};
        f11843 = new Class[]{cls3, Integer.class, cls, cls2, Float.class, Double.class};
        f11846 = new Class[]{cls2, Double.class, cls, cls3, Float.class, Integer.class};
        f11842 = new HashMap();
        f11845 = new HashMap();
    }

    public C3104(Property property, float... fArr) {
        this.f11856 = null;
        this.f11855 = null;
        this.f11851 = null;
        this.f11847 = new Object[1];
        this.f11852 = property;
        if (property != null) {
            this.f11854 = property.getName();
        }
        m7438(fArr);
    }

    public C3104(String str, float... fArr) {
        this.f11856 = null;
        this.f11855 = null;
        this.f11851 = null;
        this.f11847 = new Object[1];
        this.f11854 = str;
        m7438(fArr);
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static String m7435(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.f11854 + ": " + this.f11851.toString();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final Method m7436(Class cls, String str, Class cls2) throws NoSuchMethodException, SecurityException {
        String strM7435 = m7435(str, this.f11854);
        Method method = null;
        if (cls2 == null) {
            try {
                method = cls.getMethod(strM7435, null);
            } catch (NoSuchMethodException unused) {
            }
        } else {
            for (Class cls3 : cls2.equals(Float.class) ? f11844 : cls2.equals(Integer.class) ? f11843 : cls2.equals(Double.class) ? f11846 : new Class[]{cls2}) {
                Class[] clsArr = {cls3};
                try {
                    try {
                        Method method2 = cls.getMethod(strM7435, clsArr);
                        this.f11853 = cls3;
                        return method2;
                    } catch (NoSuchMethodException unused2) {
                    }
                } catch (NoSuchMethodException unused3) {
                    method = cls.getDeclaredMethod(strM7435, clsArr);
                    method.setAccessible(true);
                    this.f11853 = cls3;
                    return method;
                }
            }
        }
        if (method == null) {
            m7435(str, this.f11854);
            Objects.toString(cls2);
            Objects.toString(cls);
        }
        return method;
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final Method m7437(Class cls, HashMap map, String str, Class cls2) {
        Method methodM7436;
        boolean zContainsKey;
        synchronized (map) {
            try {
                HashMap map2 = (HashMap) map.get(cls);
                methodM7436 = null;
                if (map2 != null) {
                    zContainsKey = map2.containsKey(this.f11854);
                    if (zContainsKey) {
                        methodM7436 = (Method) map2.get(this.f11854);
                    }
                } else {
                    zContainsKey = false;
                }
                if (!zContainsKey) {
                    methodM7436 = m7436(cls, str, cls2);
                    if (map2 == null) {
                        map2 = new HashMap();
                        map.put(cls, map2);
                    }
                    map2.put(this.f11854, methodM7436);
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return methodM7436;
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final void m7438(float... fArr) {
        this.f11853 = Float.TYPE;
        int length = fArr.length;
        C3805[] c3805Arr = new C3805[Math.max(length, 2)];
        if (length == 1) {
            c3805Arr[0] = new C3805(0.0f);
            float f = fArr[0];
            c3805Arr[1] = new C3805(1.0f, f);
            Float.isNaN(f);
        } else {
            c3805Arr[0] = new C3805(0.0f, fArr[0]);
            for (int i = 1; i < length; i++) {
                float f2 = fArr[i];
                c3805Arr[i] = new C3805(i / (length - 1), f2);
                Float.isNaN(f2);
            }
        }
        C3369 c3369 = new C3369(c3805Arr);
        this.f11851 = c3369;
        this.f11849 = c3369;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final C3104 clone() {
        C3104 c3104;
        try {
            c3104 = (C3104) super.clone();
            c3104.f11854 = this.f11854;
            c3104.f11852 = this.f11852;
            c3104.f11851 = this.f11851.clone();
            c3104.f11850 = this.f11850;
        } catch (CloneNotSupportedException unused) {
            c3104 = null;
        }
        c3104.f11849 = c3104.f11851;
        return c3104;
    }
}
