package a.i.b.a.b;

import a.f.b.j;
import a.i.b.a.c.b.am;
import a.i.b.a.c.d.b.a.b;
import a.i.b.a.c.d.b.n;
import a.i.b.a.c.d.b.n.c;
import a.i.b.a.c.e.b.a.d;
import a.i.b.a.c.e.b.a.g;
import a.i.b.a.c.f.f;
import a.k.m;
import a.l;
import com.google.firebase.analytics.FirebaseAnalytics$b;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.ttpic.baseutils.IOUtils;
import java.lang.annotation.Annotation;

@l(dWo = {1, 1, 13}, dWp = {"\u0000V\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u0000 \"2\u00020\u0001:\u0001\"B\u001b\b\u0002\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0013\u0010\u0013\u001a\u00020\u00142\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016H\u0002J\b\u0010\u0017\u001a\u00020\u0018H\u0016J\u001a\u0010\u0019\u001a\u00020\u001a2\u0006\u0010\u001b\u001a\u00020\u001c2\b\u0010\u001d\u001a\u0004\u0018\u00010\u001eH\u0016J\b\u0010\u001f\u001a\u00020\u0010H\u0016J\u001a\u0010 \u001a\u00020\u001a2\u0006\u0010\u001b\u001a\u00020!2\b\u0010\u001d\u001a\u0004\u0018\u00010\u001eH\u0016R\u0014\u0010\u0004\u001a\u00020\u0005X\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0014\u0010\t\u001a\u00020\n8VX\u0004¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR\u0015\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u000f\u001a\u00020\u00108VX\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012¨\u0006#"}, dWq = {"Lkotlin/reflect/jvm/internal/components/ReflectKotlinClass;", "Lkotlin/reflect/jvm/internal/impl/load/kotlin/KotlinJvmBinaryClass;", "klass", "Ljava/lang/Class;", "classHeader", "Lkotlin/reflect/jvm/internal/impl/load/kotlin/header/KotlinClassHeader;", "(Ljava/lang/Class;Lorg/jetbrains/kotlin/load/kotlin/header/KotlinClassHeader;)V", "getClassHeader", "()Lorg/jetbrains/kotlin/load/kotlin/header/KotlinClassHeader;", "classId", "Lkotlin/reflect/jvm/internal/impl/name/ClassId;", "getClassId", "()Lorg/jetbrains/kotlin/name/ClassId;", "getKlass", "()Ljava/lang/Class;", "location", "", "getLocation", "()Ljava/lang/String;", "equals", "", "other", "", "hashCode", "", "loadClassAnnotations", "", "visitor", "Lkotlin/reflect/jvm/internal/impl/load/kotlin/KotlinJvmBinaryClass$AnnotationVisitor;", "cachedContents", "", "toString", "visitMembers", "Lkotlin/reflect/jvm/internal/impl/load/kotlin/KotlinJvmBinaryClass$MemberVisitor;", "Factory", "descriptors.runtime"})
public final class e implements n {
    public static final a AZu = new a();
    public final Class<?> AZs;
    public final a.i.b.a.c.d.b.a.a AZt;

    @l(dWo = {1, 1, 13}, dWp = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0014\u0010\u0003\u001a\u0004\u0018\u00010\u00042\n\u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u0006¨\u0006\u0007"}, dWq = {"Lkotlin/reflect/jvm/internal/components/ReflectKotlinClass$Factory;", "", "()V", "create", "Lkotlin/reflect/jvm/internal/components/ReflectKotlinClass;", "klass", "Ljava/lang/Class;", "descriptors.runtime"})
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(byte b) {
            this();
        }

        public static e aV(Class<?> cls) {
            a.i.b.a.c.d.b.a.a aVar;
            byte b = (byte) 1;
            AppMethodBeat.i(119032);
            j.p(cls, "klass");
            b bVar = new b();
            b bVar2 = b.AZq;
            b.a(cls, (c) bVar);
            if (bVar.Bsv == null || bVar.Bsu == null) {
                aVar = null;
            } else {
                d dVar;
                g gVar = new g(bVar.Bsu, (bVar.Bsi & 8) != 0);
                if (gVar.ehy()) {
                    if (!(bVar.Bsv == a.i.b.a.c.d.b.a.a.a.CLASS || bVar.Bsv == a.i.b.a.c.d.b.a.a.a.FILE_FACADE || bVar.Bsv == a.i.b.a.c.d.b.a.a.a.MULTIFILE_CLASS_PART)) {
                        b = (byte) 0;
                    }
                    if (b != (byte) 0 && bVar.Bsf == null) {
                        aVar = null;
                    }
                } else {
                    bVar.Bsg = bVar.Bsf;
                    bVar.Bsf = null;
                }
                a.i.b.a.c.d.b.a.a.a aVar2 = bVar.Bsv;
                if (bVar.Bse != null) {
                    dVar = bVar.Bse;
                } else {
                    dVar = d.Byp;
                }
                aVar = new a.i.b.a.c.d.b.a.a(aVar2, gVar, dVar, bVar.Bsf, bVar.Bsg, bVar.strings, bVar.Bsh, bVar.Bsi, bVar.packageName);
            }
            if (aVar == null) {
                AppMethodBeat.o(119032);
                return null;
            }
            e eVar = new e(cls, aVar, (byte) 0);
            AppMethodBeat.o(119032);
            return eVar;
        }
    }

    static {
        AppMethodBeat.i(119040);
        AppMethodBeat.o(119040);
    }

    private e(Class<?> cls, a.i.b.a.c.d.b.a.a aVar) {
        this.AZs = cls;
        this.AZt = aVar;
    }

    public /* synthetic */ e(Class cls, a.i.b.a.c.d.b.a.a aVar, byte b) {
        this(cls, aVar);
    }

    public final a.i.b.a.c.d.b.a.a dXA() {
        return this.AZt;
    }

    public final String getLocation() {
        AppMethodBeat.i(119033);
        StringBuilder stringBuilder = new StringBuilder();
        String name = this.AZs.getName();
        j.o(name, "klass.name");
        String stringBuilder2 = stringBuilder.append(m.a(name, '.', IOUtils.DIR_SEPARATOR_UNIX)).append(".class").toString();
        AppMethodBeat.o(119033);
        return stringBuilder2;
    }

    public final a.i.b.a.c.f.a dWY() {
        AppMethodBeat.i(119034);
        a.i.b.a.c.f.a bb = a.i.b.a.e.b.bb(this.AZs);
        AppMethodBeat.o(119034);
        return bb;
    }

    public final void a(c cVar) {
        AppMethodBeat.i(119035);
        j.p(cVar, "visitor");
        b bVar = b.AZq;
        b.a(this.AZs, cVar);
        AppMethodBeat.o(119035);
    }

    public final void a(a.i.b.a.c.d.b.n.e eVar) {
        f avX;
        l lVar;
        n.f a;
        int i;
        int length;
        c cVar;
        int i2;
        a.i.b.a.c.d.b.n.a a2;
        AppMethodBeat.i(119036);
        j.p(eVar, "visitor");
        b bVar = b.AZq;
        Class cls = this.AZs;
        j.p(cls, "klass");
        j.p(eVar, "memberVisitor");
        for (Object obj : cls.getDeclaredMethods()) {
            j.o(obj, FirebaseAnalytics$b.METHOD);
            avX = f.avX(obj.getName());
            j.o(avX, "Name.identifier(method.name)");
            lVar = l.AZG;
            a = eVar.a(avX, l.e(obj));
            for (Object obj2 : obj.getDeclaredAnnotations()) {
                cVar = (c) a;
                j.o(obj2, "annotation");
                b.a(cVar, obj2);
            }
            Annotation[][] parameterAnnotations = obj.getParameterAnnotations();
            j.o(parameterAnnotations, "method.parameterAnnotations");
            length = parameterAnnotations.length;
            for (i = 0; i < length; i++) {
                for (Annotation annotation : parameterAnnotations[i]) {
                    Class a3 = a.f.a.a(a.f.a.a(annotation));
                    a.i.b.a.c.f.a bb = a.i.b.a.e.b.bb(a3);
                    j.o(annotation, "annotation");
                    a2 = a.a(i, bb, (am) new a(annotation));
                    if (a2 != null) {
                        b.AZq.a(a2, annotation, a3);
                    }
                }
            }
            a.zn();
        }
        for (Object obj3 : cls.getDeclaredConstructors()) {
            avX = f.avZ("<init>");
            j.o(avX, "Name.special(\"<init>\")");
            lVar = l.AZG;
            j.o(obj3, "constructor");
            a = eVar.a(avX, l.a(obj3));
            for (Object obj22 : obj3.getDeclaredAnnotations()) {
                cVar = (c) a;
                j.o(obj22, "annotation");
                b.a(cVar, obj22);
            }
            Annotation[][] parameterAnnotations2 = obj3.getParameterAnnotations();
            j.o(parameterAnnotations2, "parameterAnnotations");
            if (((((Object[]) parameterAnnotations2).length == 0 ? 1 : null) == null ? 1 : null) != null) {
                length = obj3.getParameterTypes().length - ((Object[]) parameterAnnotations2).length;
                int length2 = parameterAnnotations2.length;
                for (i2 = 0; i2 < length2; i2++) {
                    for (Annotation annotation2 : parameterAnnotations2[i2]) {
                        Class a4 = a.f.a.a(a.f.a.a(annotation2));
                        int i3 = i2 + length;
                        a.i.b.a.c.f.a bb2 = a.i.b.a.e.b.bb(a4);
                        j.o(annotation2, "annotation");
                        a2 = a.a(i3, bb2, (am) new a(annotation2));
                        if (a2 != null) {
                            b.AZq.a(a2, annotation2, a4);
                        }
                    }
                }
            }
            a.zn();
        }
        for (Object obj4 : cls.getDeclaredFields()) {
            j.o(obj4, "field");
            f avX2 = f.avX(obj4.getName());
            j.o(avX2, "Name.identifier(field.name)");
            l lVar2 = l.AZG;
            c b = eVar.b(avX2, l.d(obj4));
            for (Object obj5 : obj4.getDeclaredAnnotations()) {
                j.o(obj5, "annotation");
                b.a(b, obj5);
            }
            b.zn();
        }
        AppMethodBeat.o(119036);
    }

    public final boolean equals(Object obj) {
        AppMethodBeat.i(119037);
        if ((obj instanceof e) && j.j(this.AZs, ((e) obj).AZs)) {
            AppMethodBeat.o(119037);
            return true;
        }
        AppMethodBeat.o(119037);
        return false;
    }

    public final int hashCode() {
        AppMethodBeat.i(119038);
        int hashCode = this.AZs.hashCode();
        AppMethodBeat.o(119038);
        return hashCode;
    }

    public final String toString() {
        AppMethodBeat.i(119039);
        String str = getClass().getName() + ": " + this.AZs;
        AppMethodBeat.o(119039);
        return str;
    }
}
