package nn;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import kotlin.reflect.jvm.internal.impl.protobuf.i;
import nn.l;
import po.a;
import qo.d;
import tn.t0;

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

    /* loaded from: classes3.dex */
    public static final class a extends m {

        /* renamed from: a, reason: collision with root package name */
        private final Field f30207a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public a(Field field) {
            super(null);
            kotlin.jvm.internal.t.g(field, "field");
            this.f30207a = field;
        }

        @Override // nn.m
        public String a() {
            StringBuilder sb2 = new StringBuilder();
            String name = this.f30207a.getName();
            kotlin.jvm.internal.t.f(name, "getName(...)");
            sb2.append(bo.a0.b(name));
            sb2.append("()");
            Class<?> type = this.f30207a.getType();
            kotlin.jvm.internal.t.f(type, "getType(...)");
            sb2.append(yn.d.b(type));
            return sb2.toString();
        }

        public final Field b() {
            return this.f30207a;
        }
    }

    /* loaded from: classes3.dex */
    public static final class b extends m {

        /* renamed from: a, reason: collision with root package name */
        private final Method f30208a;

        /* renamed from: b, reason: collision with root package name */
        private final Method f30209b;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public b(Method getterMethod, Method method) {
            super(null);
            kotlin.jvm.internal.t.g(getterMethod, "getterMethod");
            this.f30208a = getterMethod;
            this.f30209b = method;
        }

        @Override // nn.m
        public String a() {
            return n0.a(this.f30208a);
        }

        public final Method b() {
            return this.f30208a;
        }

        public final Method c() {
            return this.f30209b;
        }
    }

    /* loaded from: classes3.dex */
    public static final class c extends m {

        /* renamed from: a, reason: collision with root package name */
        private final t0 f30210a;

        /* renamed from: b, reason: collision with root package name */
        private final mo.n f30211b;

        /* renamed from: c, reason: collision with root package name */
        private final a.d f30212c;

        /* renamed from: d, reason: collision with root package name */
        private final oo.c f30213d;

        /* renamed from: e, reason: collision with root package name */
        private final oo.g f30214e;

        /* renamed from: f, reason: collision with root package name */
        private final String f30215f;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public c(t0 descriptor, mo.n proto, a.d signature, oo.c nameResolver, oo.g typeTable) {
            super(null);
            String str;
            kotlin.jvm.internal.t.g(descriptor, "descriptor");
            kotlin.jvm.internal.t.g(proto, "proto");
            kotlin.jvm.internal.t.g(signature, "signature");
            kotlin.jvm.internal.t.g(nameResolver, "nameResolver");
            kotlin.jvm.internal.t.g(typeTable, "typeTable");
            this.f30210a = descriptor;
            this.f30211b = proto;
            this.f30212c = signature;
            this.f30213d = nameResolver;
            this.f30214e = typeTable;
            if (signature.A()) {
                str = nameResolver.getString(signature.v().r()) + nameResolver.getString(signature.v().q());
            } else {
                d.a d10 = qo.i.d(qo.i.f34072a, proto, nameResolver, typeTable, false, 8, null);
                if (d10 == null) {
                    throw new h0("No field signature for property: " + descriptor);
                }
                String d11 = d10.d();
                str = bo.a0.b(d11) + c() + "()" + d10.e();
            }
            this.f30215f = str;
        }

        private final String c() {
            String str;
            tn.m b10 = this.f30210a.b();
            kotlin.jvm.internal.t.f(b10, "getContainingDeclaration(...)");
            if (kotlin.jvm.internal.t.b(this.f30210a.getVisibility(), tn.t.f36413d) && (b10 instanceof fp.d)) {
                mo.c X0 = ((fp.d) b10).X0();
                i.f classModuleName = po.a.f32946i;
                kotlin.jvm.internal.t.f(classModuleName, "classModuleName");
                Integer num = (Integer) oo.e.a(X0, classModuleName);
                if (num == null || (str = this.f30213d.getString(num.intValue())) == null) {
                    str = "main";
                }
                return '$' + ro.g.b(str);
            }
            if (!kotlin.jvm.internal.t.b(this.f30210a.getVisibility(), tn.t.f36410a) || !(b10 instanceof tn.k0)) {
                return "";
            }
            t0 t0Var = this.f30210a;
            kotlin.jvm.internal.t.e(t0Var, "null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor");
            fp.f X = ((fp.j) t0Var).X();
            if (!(X instanceof ko.n)) {
                return "";
            }
            ko.n nVar = (ko.n) X;
            if (nVar.f() == null) {
                return "";
            }
            return '$' + nVar.h().e();
        }

        @Override // nn.m
        public String a() {
            return this.f30215f;
        }

        public final t0 b() {
            return this.f30210a;
        }

        public final oo.c d() {
            return this.f30213d;
        }

        public final mo.n e() {
            return this.f30211b;
        }

        public final a.d f() {
            return this.f30212c;
        }

        public final oo.g g() {
            return this.f30214e;
        }
    }

    /* loaded from: classes3.dex */
    public static final class d extends m {

        /* renamed from: a, reason: collision with root package name */
        private final l.e f30216a;

        /* renamed from: b, reason: collision with root package name */
        private final l.e f30217b;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public d(l.e getterSignature, l.e eVar) {
            super(null);
            kotlin.jvm.internal.t.g(getterSignature, "getterSignature");
            this.f30216a = getterSignature;
            this.f30217b = eVar;
        }

        @Override // nn.m
        public String a() {
            return this.f30216a.a();
        }

        public final l.e b() {
            return this.f30216a;
        }

        public final l.e c() {
            return this.f30217b;
        }
    }

    private m() {
    }

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

    public abstract String a();
}
