package e.s.c;

import e.s.b.u;
import e.s.b.v;
import e.s.b.w;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
public final class e implements e.u.b<Object>, d {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final Map<Class<?>, Integer> f6021a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final HashMap<String, String> f6022b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final HashMap<String, String> f6023c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final HashMap<String, String> f6024d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final Class<?> f6025e;

    static {
        Map<Class<?>, Integer> mapSingletonMap;
        List listD = e.o.c.d(e.s.b.a.class, e.s.b.l.class, e.s.b.p.class, e.s.b.q.class, e.s.b.r.class, e.s.b.s.class, e.s.b.t.class, u.class, v.class, w.class, e.s.b.b.class, e.s.b.c.class, e.s.b.d.class, e.s.b.e.class, e.s.b.f.class, e.s.b.g.class, e.s.b.h.class, e.s.b.i.class, e.s.b.j.class, e.s.b.k.class, e.s.b.m.class, e.s.b.n.class, e.s.b.o.class);
        ArrayList arrayList = new ArrayList(d.a.u.a.h(listD, 10));
        int i2 = 0;
        for (Object obj : listD) {
            int i3 = i2 + 1;
            if (i2 < 0) {
                throw new ArithmeticException("Index overflow has happened.");
            }
            arrayList.add(new e.e((Class) obj, Integer.valueOf(i2)));
            i2 = i3;
        }
        k.e(arrayList, "$this$toMap");
        int size = arrayList.size();
        if (size == 0) {
            mapSingletonMap = e.o.g.f5966b;
        } else if (size != 1) {
            mapSingletonMap = new LinkedHashMap<>(d.a.u.a.u(arrayList.size()));
            e.o.c.k(arrayList, mapSingletonMap);
        } else {
            e.e eVar = (e.e) arrayList.get(0);
            k.e(eVar, "pair");
            mapSingletonMap = Collections.singletonMap(eVar.f5944b, eVar.f5945c);
            k.d(mapSingletonMap, "java.util.Collections.si…(pair.first, pair.second)");
        }
        f6021a = mapSingletonMap;
        HashMap<String, String> map = new HashMap<>();
        map.put("boolean", "kotlin.Boolean");
        map.put("char", "kotlin.Char");
        map.put("byte", "kotlin.Byte");
        map.put("short", "kotlin.Short");
        map.put("int", "kotlin.Int");
        map.put("float", "kotlin.Float");
        map.put("long", "kotlin.Long");
        map.put("double", "kotlin.Double");
        f6022b = map;
        HashMap<String, String> map2 = new HashMap<>();
        map2.put("java.lang.Boolean", "kotlin.Boolean");
        map2.put("java.lang.Character", "kotlin.Char");
        map2.put("java.lang.Byte", "kotlin.Byte");
        map2.put("java.lang.Short", "kotlin.Short");
        map2.put("java.lang.Integer", "kotlin.Int");
        map2.put("java.lang.Float", "kotlin.Float");
        map2.put("java.lang.Long", "kotlin.Long");
        map2.put("java.lang.Double", "kotlin.Double");
        f6023c = map2;
        HashMap<String, String> map3 = new HashMap<>();
        map3.put("java.lang.Object", "kotlin.Any");
        map3.put("java.lang.String", "kotlin.String");
        map3.put("java.lang.CharSequence", "kotlin.CharSequence");
        map3.put("java.lang.Throwable", "kotlin.Throwable");
        map3.put("java.lang.Cloneable", "kotlin.Cloneable");
        map3.put("java.lang.Number", "kotlin.Number");
        map3.put("java.lang.Comparable", "kotlin.Comparable");
        map3.put("java.lang.Enum", "kotlin.Enum");
        map3.put("java.lang.annotation.Annotation", "kotlin.Annotation");
        map3.put("java.lang.Iterable", "kotlin.collections.Iterable");
        map3.put("java.util.Iterator", "kotlin.collections.Iterator");
        map3.put("java.util.Collection", "kotlin.collections.Collection");
        map3.put("java.util.List", "kotlin.collections.List");
        map3.put("java.util.Set", "kotlin.collections.Set");
        map3.put("java.util.ListIterator", "kotlin.collections.ListIterator");
        map3.put("java.util.Map", "kotlin.collections.Map");
        map3.put("java.util.Map$Entry", "kotlin.collections.Map.Entry");
        map3.put("kotlin.jvm.internal.StringCompanionObject", "kotlin.String.Companion");
        map3.put("kotlin.jvm.internal.EnumCompanionObject", "kotlin.Enum.Companion");
        map3.putAll(map);
        map3.putAll(map2);
        Collection<String> collectionValues = map.values();
        k.d(collectionValues, "primitiveFqNames.values");
        for (String str : collectionValues) {
            StringBuilder sb = new StringBuilder();
            sb.append("kotlin.jvm.internal.");
            k.d(str, "kotlinName");
            sb.append(e.w.h.x(str, '.', null, 2));
            sb.append("CompanionObject");
            map3.put(sb.toString(), str + ".Companion");
        }
        for (Map.Entry<Class<?>, Integer> entry : f6021a.entrySet()) {
            Class<?> key = entry.getKey();
            int iIntValue = entry.getValue().intValue();
            map3.put(key.getName(), "kotlin.Function" + iIntValue);
        }
        f6024d = map3;
        LinkedHashMap linkedHashMap = new LinkedHashMap(d.a.u.a.u(map3.size()));
        Iterator<T> it = map3.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry entry2 = (Map.Entry) it.next();
            linkedHashMap.put(entry2.getKey(), e.w.h.x((String) entry2.getValue(), '.', null, 2));
        }
    }

    public e(Class<?> cls) {
        k.e(cls, "jClass");
        this.f6025e = cls;
    }

    @Override // e.s.c.d
    public Class<?> a() {
        return this.f6025e;
    }

    public boolean equals(Object obj) {
        return (obj instanceof e) && k.a(d.a.u.a.m(this), d.a.u.a.m((e.u.b) obj));
    }

    public int hashCode() {
        return d.a.u.a.m(this).hashCode();
    }

    public String toString() {
        return this.f6025e.toString() + " (Kotlin reflection is not available)";
    }
}
