package kotlin.reflect.jvm.internal.impl.renderer;

import hp.e0;
import hp.h1;
import java.util.Set;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import kotlin.reflect.jvm.internal.impl.renderer.b;
import rm.n0;
import sm.x0;
import tn.d1;
import tn.i1;

/* loaded from: classes3.dex */
public abstract class c {

    /* renamed from: a */
    public static final k f26352a;

    /* renamed from: b */
    public static final c f26353b;

    /* renamed from: c */
    public static final c f26354c;

    /* renamed from: d */
    public static final c f26355d;

    /* renamed from: e */
    public static final c f26356e;

    /* renamed from: f */
    public static final c f26357f;

    /* renamed from: g */
    public static final c f26358g;

    /* renamed from: h */
    public static final c f26359h;

    /* renamed from: i */
    public static final c f26360i;

    /* renamed from: j */
    public static final c f26361j;

    /* renamed from: k */
    public static final c f26362k;

    /* loaded from: classes3.dex */
    static final class a extends v implements dn.l {

        /* renamed from: p */
        public static final a f26363p = new a();

        a() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            Set d10;
            t.g(withOptions, "$this$withOptions");
            withOptions.e(false);
            d10 = x0.d();
            withOptions.c(d10);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes3.dex */
    static final class b extends v implements dn.l {

        /* renamed from: p */
        public static final b f26364p = new b();

        b() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            Set d10;
            t.g(withOptions, "$this$withOptions");
            withOptions.e(false);
            d10 = x0.d();
            withOptions.c(d10);
            withOptions.h(true);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* renamed from: kotlin.reflect.jvm.internal.impl.renderer.c$c */
    /* loaded from: classes3.dex */
    static final class C0568c extends v implements dn.l {

        /* renamed from: p */
        public static final C0568c f26365p = new C0568c();

        C0568c() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            t.g(withOptions, "$this$withOptions");
            withOptions.e(false);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes3.dex */
    static final class d extends v implements dn.l {

        /* renamed from: p */
        public static final d f26366p = new d();

        d() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            Set d10;
            t.g(withOptions, "$this$withOptions");
            d10 = x0.d();
            withOptions.c(d10);
            withOptions.g(b.C0567b.f26350a);
            withOptions.d(kotlin.reflect.jvm.internal.impl.renderer.k.ONLY_NON_SYNTHESIZED);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes3.dex */
    static final class e extends v implements dn.l {

        /* renamed from: p */
        public static final e f26367p = new e();

        e() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            t.g(withOptions, "$this$withOptions");
            withOptions.i(true);
            withOptions.g(b.a.f26349a);
            withOptions.c(kotlin.reflect.jvm.internal.impl.renderer.e.ALL);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes3.dex */
    static final class f extends v implements dn.l {

        /* renamed from: p */
        public static final f f26368p = new f();

        f() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            t.g(withOptions, "$this$withOptions");
            withOptions.c(kotlin.reflect.jvm.internal.impl.renderer.e.ALL_EXCEPT_ANNOTATIONS);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes3.dex */
    static final class g extends v implements dn.l {

        /* renamed from: p */
        public static final g f26369p = new g();

        g() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            t.g(withOptions, "$this$withOptions");
            withOptions.c(kotlin.reflect.jvm.internal.impl.renderer.e.ALL);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes3.dex */
    static final class h extends v implements dn.l {

        /* renamed from: p */
        public static final h f26370p = new h();

        h() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            t.g(withOptions, "$this$withOptions");
            withOptions.l(m.HTML);
            withOptions.c(kotlin.reflect.jvm.internal.impl.renderer.e.ALL);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes3.dex */
    static final class i extends v implements dn.l {

        /* renamed from: p */
        public static final i f26371p = new i();

        i() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            Set d10;
            t.g(withOptions, "$this$withOptions");
            withOptions.e(false);
            d10 = x0.d();
            withOptions.c(d10);
            withOptions.g(b.C0567b.f26350a);
            withOptions.p(true);
            withOptions.d(kotlin.reflect.jvm.internal.impl.renderer.k.NONE);
            withOptions.k(true);
            withOptions.j(true);
            withOptions.h(true);
            withOptions.b(true);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes3.dex */
    static final class j extends v implements dn.l {

        /* renamed from: p */
        public static final j f26372p = new j();

        j() {
            super(1);
        }

        public final void a(kotlin.reflect.jvm.internal.impl.renderer.f withOptions) {
            t.g(withOptions, "$this$withOptions");
            withOptions.g(b.C0567b.f26350a);
            withOptions.d(kotlin.reflect.jvm.internal.impl.renderer.k.ONLY_NON_SYNTHESIZED);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((kotlin.reflect.jvm.internal.impl.renderer.f) obj);
            return n0.f34904a;
        }
    }

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

        /* loaded from: classes3.dex */
        public /* synthetic */ class a {

            /* renamed from: a */
            public static final /* synthetic */ int[] f26373a;

            static {
                int[] iArr = new int[tn.f.values().length];
                try {
                    iArr[tn.f.CLASS.ordinal()] = 1;
                } catch (NoSuchFieldError unused) {
                }
                try {
                    iArr[tn.f.INTERFACE.ordinal()] = 2;
                } catch (NoSuchFieldError unused2) {
                }
                try {
                    iArr[tn.f.ENUM_CLASS.ordinal()] = 3;
                } catch (NoSuchFieldError unused3) {
                }
                try {
                    iArr[tn.f.OBJECT.ordinal()] = 4;
                } catch (NoSuchFieldError unused4) {
                }
                try {
                    iArr[tn.f.ANNOTATION_CLASS.ordinal()] = 5;
                } catch (NoSuchFieldError unused5) {
                }
                try {
                    iArr[tn.f.ENUM_ENTRY.ordinal()] = 6;
                } catch (NoSuchFieldError unused6) {
                }
                f26373a = iArr;
            }
        }

        private k() {
        }

        public /* synthetic */ k(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final String a(tn.i classifier) {
            t.g(classifier, "classifier");
            if (classifier instanceof d1) {
                return "typealias";
            }
            if (!(classifier instanceof tn.e)) {
                throw new AssertionError("Unexpected classifier: " + classifier);
            }
            tn.e eVar = (tn.e) classifier;
            if (eVar.v()) {
                return "companion object";
            }
            switch (a.f26373a[eVar.g().ordinal()]) {
                case 1:
                    return "class";
                case 2:
                    return "interface";
                case 3:
                    return "enum class";
                case 4:
                    return "object";
                case 5:
                    return "annotation class";
                case 6:
                    return "enum entry";
                default:
                    throw new rm.t();
            }
        }

        public final c b(dn.l changeOptions) {
            t.g(changeOptions, "changeOptions");
            kotlin.reflect.jvm.internal.impl.renderer.g gVar = new kotlin.reflect.jvm.internal.impl.renderer.g();
            changeOptions.invoke(gVar);
            gVar.m0();
            return new kotlin.reflect.jvm.internal.impl.renderer.d(gVar);
        }
    }

    /* loaded from: classes3.dex */
    public interface l {

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

            /* renamed from: a */
            public static final a f26374a = new a();

            private a() {
            }

            @Override // kotlin.reflect.jvm.internal.impl.renderer.c.l
            public void a(i1 parameter, int i10, int i11, StringBuilder builder) {
                t.g(parameter, "parameter");
                t.g(builder, "builder");
                if (i10 != i11 - 1) {
                    builder.append(", ");
                }
            }

            @Override // kotlin.reflect.jvm.internal.impl.renderer.c.l
            public void b(int i10, StringBuilder builder) {
                t.g(builder, "builder");
                builder.append("(");
            }

            @Override // kotlin.reflect.jvm.internal.impl.renderer.c.l
            public void c(i1 parameter, int i10, int i11, StringBuilder builder) {
                t.g(parameter, "parameter");
                t.g(builder, "builder");
            }

            @Override // kotlin.reflect.jvm.internal.impl.renderer.c.l
            public void d(int i10, StringBuilder builder) {
                t.g(builder, "builder");
                builder.append(")");
            }
        }

        void a(i1 i1Var, int i10, int i11, StringBuilder sb2);

        void b(int i10, StringBuilder sb2);

        void c(i1 i1Var, int i10, int i11, StringBuilder sb2);

        void d(int i10, StringBuilder sb2);
    }

    static {
        k kVar = new k(null);
        f26352a = kVar;
        f26353b = kVar.b(C0568c.f26365p);
        f26354c = kVar.b(a.f26363p);
        f26355d = kVar.b(b.f26364p);
        f26356e = kVar.b(d.f26366p);
        f26357f = kVar.b(i.f26371p);
        f26358g = kVar.b(f.f26368p);
        f26359h = kVar.b(g.f26369p);
        f26360i = kVar.b(j.f26372p);
        f26361j = kVar.b(e.f26367p);
        f26362k = kVar.b(h.f26370p);
    }

    public static /* synthetic */ String s(c cVar, kotlin.reflect.jvm.internal.impl.descriptors.annotations.c cVar2, kotlin.reflect.jvm.internal.impl.descriptors.annotations.e eVar, int i10, Object obj) {
        if (obj != null) {
            throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: renderAnnotation");
        }
        if ((i10 & 2) != 0) {
            eVar = null;
        }
        return cVar.r(cVar2, eVar);
    }

    public abstract String q(tn.m mVar);

    public abstract String r(kotlin.reflect.jvm.internal.impl.descriptors.annotations.c cVar, kotlin.reflect.jvm.internal.impl.descriptors.annotations.e eVar);

    public abstract String t(String str, String str2, qn.g gVar);

    public abstract String u(ro.d dVar);

    public abstract String v(ro.f fVar, boolean z10);

    public abstract String w(e0 e0Var);

    public abstract String x(h1 h1Var);

    public final c y(dn.l changeOptions) {
        t.g(changeOptions, "changeOptions");
        t.e(this, "null cannot be cast to non-null type org.jetbrains.kotlin.renderer.DescriptorRendererImpl");
        kotlin.reflect.jvm.internal.impl.renderer.g q10 = ((kotlin.reflect.jvm.internal.impl.renderer.d) this).f0().q();
        changeOptions.invoke(q10);
        q10.m0();
        return new kotlin.reflect.jvm.internal.impl.renderer.d(q10);
    }
}
