package sn;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import ko.a0;
import kotlin.jvm.internal.t;
import qn.j;
import sm.u;
import sm.y0;
import sm.z;

/* loaded from: classes3.dex */
public final class l {

    /* renamed from: a, reason: collision with root package name */
    public static final l f35951a;

    /* renamed from: b, reason: collision with root package name */
    private static final Set f35952b;

    /* renamed from: c, reason: collision with root package name */
    private static final Set f35953c;

    /* renamed from: d, reason: collision with root package name */
    private static final Set f35954d;

    /* renamed from: e, reason: collision with root package name */
    private static final Set f35955e;

    /* renamed from: f, reason: collision with root package name */
    private static final Set f35956f;

    /* renamed from: g, reason: collision with root package name */
    private static final Set f35957g;

    /* renamed from: h, reason: collision with root package name */
    private static final Set f35958h;

    static {
        Set l10;
        Set k10;
        Set k11;
        Set k12;
        Set k13;
        Set k14;
        Set k15;
        Set k16;
        Set k17;
        Set k18;
        Set k19;
        Set k20;
        Set k21;
        Set k22;
        Set k23;
        Set k24;
        Set k25;
        l lVar = new l();
        f35951a = lVar;
        a0 a0Var = a0.f26060a;
        l10 = y0.l(a0Var.f("Collection", "toArray()[Ljava/lang/Object;", "toArray([Ljava/lang/Object;)[Ljava/lang/Object;"), "java/lang/annotation/Annotation.annotationType()Ljava/lang/Class;");
        f35952b = l10;
        k10 = y0.k(lVar.b(), a0Var.f("List", "sort(Ljava/util/Comparator;)V", "reversed()Ljava/util/List;"));
        k11 = y0.k(k10, a0Var.e("String", "codePointAt(I)I", "codePointBefore(I)I", "codePointCount(II)I", "compareToIgnoreCase(Ljava/lang/String;)I", "concat(Ljava/lang/String;)Ljava/lang/String;", "contains(Ljava/lang/CharSequence;)Z", "contentEquals(Ljava/lang/CharSequence;)Z", "contentEquals(Ljava/lang/StringBuffer;)Z", "endsWith(Ljava/lang/String;)Z", "equalsIgnoreCase(Ljava/lang/String;)Z", "getBytes()[B", "getBytes(II[BI)V", "getBytes(Ljava/lang/String;)[B", "getBytes(Ljava/nio/charset/Charset;)[B", "getChars(II[CI)V", "indexOf(I)I", "indexOf(II)I", "indexOf(Ljava/lang/String;)I", "indexOf(Ljava/lang/String;I)I", "intern()Ljava/lang/String;", "isEmpty()Z", "lastIndexOf(I)I", "lastIndexOf(II)I", "lastIndexOf(Ljava/lang/String;)I", "lastIndexOf(Ljava/lang/String;I)I", "matches(Ljava/lang/String;)Z", "offsetByCodePoints(II)I", "regionMatches(ILjava/lang/String;II)Z", "regionMatches(ZILjava/lang/String;II)Z", "replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "replace(CC)Ljava/lang/String;", "replaceFirst(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;", "split(Ljava/lang/String;I)[Ljava/lang/String;", "split(Ljava/lang/String;)[Ljava/lang/String;", "startsWith(Ljava/lang/String;I)Z", "startsWith(Ljava/lang/String;)Z", "substring(II)Ljava/lang/String;", "substring(I)Ljava/lang/String;", "toCharArray()[C", "toLowerCase()Ljava/lang/String;", "toLowerCase(Ljava/util/Locale;)Ljava/lang/String;", "toUpperCase()Ljava/lang/String;", "toUpperCase(Ljava/util/Locale;)Ljava/lang/String;", "trim()Ljava/lang/String;", "isBlank()Z", "lines()Ljava/util/stream/Stream;", "repeat(I)Ljava/lang/String;"));
        k12 = y0.k(k11, a0Var.e("Double", "isInfinite()Z", "isNaN()Z"));
        k13 = y0.k(k12, a0Var.e("Float", "isInfinite()Z", "isNaN()Z"));
        k14 = y0.k(k13, a0Var.e("Enum", "getDeclaringClass()Ljava/lang/Class;", "finalize()V"));
        k15 = y0.k(k14, a0Var.e("CharSequence", "isEmpty()Z"));
        f35953c = k15;
        f35954d = a0Var.f("List", "getFirst()Ljava/lang/Object;", "getLast()Ljava/lang/Object;");
        k16 = y0.k(a0Var.e("CharSequence", "codePoints()Ljava/util/stream/IntStream;", "chars()Ljava/util/stream/IntStream;"), a0Var.f("Iterator", "forEachRemaining(Ljava/util/function/Consumer;)V"));
        k17 = y0.k(k16, a0Var.e("Iterable", "forEach(Ljava/util/function/Consumer;)V", "spliterator()Ljava/util/Spliterator;"));
        k18 = y0.k(k17, a0Var.e("Throwable", "setStackTrace([Ljava/lang/StackTraceElement;)V", "fillInStackTrace()Ljava/lang/Throwable;", "getLocalizedMessage()Ljava/lang/String;", "printStackTrace()V", "printStackTrace(Ljava/io/PrintStream;)V", "printStackTrace(Ljava/io/PrintWriter;)V", "getStackTrace()[Ljava/lang/StackTraceElement;", "initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;", "getSuppressed()[Ljava/lang/Throwable;", "addSuppressed(Ljava/lang/Throwable;)V"));
        k19 = y0.k(k18, a0Var.f("Collection", "spliterator()Ljava/util/Spliterator;", "parallelStream()Ljava/util/stream/Stream;", "stream()Ljava/util/stream/Stream;", "removeIf(Ljava/util/function/Predicate;)Z"));
        k20 = y0.k(k19, a0Var.f("List", "replaceAll(Ljava/util/function/UnaryOperator;)V", "addFirst(Ljava/lang/Object;)V", "addLast(Ljava/lang/Object;)V", "removeFirst()Ljava/lang/Object;", "removeLast()Ljava/lang/Object;"));
        k21 = y0.k(k20, a0Var.f("Map", "getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "forEach(Ljava/util/function/BiConsumer;)V", "replaceAll(Ljava/util/function/BiFunction;)V", "merge(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "computeIfPresent(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "replace(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z", "replace(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "computeIfAbsent(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;", "compute(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;"));
        f35955e = k21;
        k22 = y0.k(a0Var.f("Collection", "removeIf(Ljava/util/function/Predicate;)Z"), a0Var.f("List", "replaceAll(Ljava/util/function/UnaryOperator;)V", "sort(Ljava/util/Comparator;)V"));
        k23 = y0.k(k22, a0Var.f("Map", "computeIfAbsent(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;", "computeIfPresent(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "compute(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "merge(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "remove(Ljava/lang/Object;Ljava/lang/Object;)Z", "replaceAll(Ljava/util/function/BiFunction;)V", "replace(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "replace(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z"));
        f35956f = k23;
        Set a10 = lVar.a();
        String[] b10 = a0Var.b("D");
        k24 = y0.k(a10, a0Var.e("Float", (String[]) Arrays.copyOf(b10, b10.length)));
        String[] b11 = a0Var.b("[C", "[CII", "[III", "[BIILjava/lang/String;", "[BIILjava/nio/charset/Charset;", "[BLjava/lang/String;", "[BLjava/nio/charset/Charset;", "[BII", "[B", "Ljava/lang/StringBuffer;", "Ljava/lang/StringBuilder;");
        k25 = y0.k(k24, a0Var.e("String", (String[]) Arrays.copyOf(b11, b11.length)));
        f35957g = k25;
        String[] b12 = a0Var.b("Ljava/lang/String;Ljava/lang/Throwable;ZZ");
        f35958h = a0Var.e("Throwable", (String[]) Arrays.copyOf(b12, b12.length));
    }

    private l() {
    }

    private final Set a() {
        List n10;
        a0 a0Var = a0.f26060a;
        yo.e eVar = yo.e.BOOLEAN;
        yo.e eVar2 = yo.e.BYTE;
        n10 = u.n(eVar, eVar2, yo.e.DOUBLE, yo.e.FLOAT, eVar2, yo.e.INT, yo.e.LONG, yo.e.SHORT);
        LinkedHashSet linkedHashSet = new LinkedHashSet();
        Iterator it = n10.iterator();
        while (it.hasNext()) {
            String e10 = ((yo.e) it.next()).getWrapperFqName().g().e();
            t.f(e10, "asString(...)");
            String[] b10 = a0Var.b("Ljava/lang/String;");
            z.A(linkedHashSet, a0Var.e(e10, (String[]) Arrays.copyOf(b10, b10.length)));
        }
        return linkedHashSet;
    }

    private final Set b() {
        List<yo.e> n10;
        a0 a0Var = a0.f26060a;
        n10 = u.n(yo.e.BOOLEAN, yo.e.CHAR);
        LinkedHashSet linkedHashSet = new LinkedHashSet();
        for (yo.e eVar : n10) {
            String e10 = eVar.getWrapperFqName().g().e();
            t.f(e10, "asString(...)");
            z.A(linkedHashSet, a0Var.e(e10, eVar.getJavaKeywordName() + "Value()" + eVar.getDesc()));
        }
        return linkedHashSet;
    }

    public final Set c() {
        return f35954d;
    }

    public final Set d() {
        return f35952b;
    }

    public final Set e() {
        return f35957g;
    }

    public final Set f() {
        return f35953c;
    }

    public final Set g() {
        return f35956f;
    }

    public final Set h() {
        return f35958h;
    }

    public final Set i() {
        return f35955e;
    }

    public final boolean j(ro.d fqName) {
        t.g(fqName, "fqName");
        return t.b(fqName, j.a.f34002i) || qn.j.e(fqName);
    }

    public final boolean k(ro.d fqName) {
        t.g(fqName, "fqName");
        if (j(fqName)) {
            return true;
        }
        ro.b n10 = c.f35881a.n(fqName);
        if (n10 == null) {
            return false;
        }
        try {
            return Serializable.class.isAssignableFrom(Class.forName(n10.b().b()));
        } catch (ClassNotFoundException unused) {
            return false;
        }
    }
}
