package kotlin.reflect.w.internal;

import g.h.a.i;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.j;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function10;
import kotlin.jvm.functions.Function11;
import kotlin.jvm.functions.Function12;
import kotlin.jvm.functions.Function13;
import kotlin.jvm.functions.Function14;
import kotlin.jvm.functions.Function15;
import kotlin.jvm.functions.Function16;
import kotlin.jvm.functions.Function17;
import kotlin.jvm.functions.Function18;
import kotlin.jvm.functions.Function19;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function20;
import kotlin.jvm.functions.Function21;
import kotlin.jvm.functions.Function22;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.functions.Function4;
import kotlin.jvm.functions.Function5;
import kotlin.jvm.functions.Function6;
import kotlin.jvm.functions.Function7;
import kotlin.jvm.functions.Function8;
import kotlin.jvm.functions.Function9;
import kotlin.jvm.internal.FunctionBase;
import kotlin.jvm.internal.Lambda;
import kotlin.jvm.internal.e0;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.z;
import kotlin.reflect.KCallable;
import kotlin.reflect.KFunction;
import kotlin.reflect.KParameter;
import kotlin.reflect.KProperty;
import kotlin.reflect.w.internal.JvmFunctionSignature;
import kotlin.reflect.w.internal.calls.AnnotationConstructorCaller;
import kotlin.reflect.w.internal.calls.Caller;
import kotlin.reflect.w.internal.calls.CallerImpl;
import kotlin.reflect.w.internal.y0.d.h1;
import kotlin.reflect.w.internal.y0.d.q;
import kotlin.reflect.w.internal.y0.d.w;
import kotlin.reflect.w.internal.y0.g.a0.b.d;
import kotlin.reflect.w.internal.y0.h.e;
import kotlin.reflect.w.internal.y0.k.h;
import kotlin.reflect.w.internal.y0.n.h0;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;

/* JADX INFO: renamed from: r.i0.w.b.t, reason: from Kotlin metadata */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0000\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00032\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00042\u00020\u0005B)\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\u0002¢\u0006\u0002\u0010\fB\u0017\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\r\u001a\u00020\u000e¢\u0006\u0002\u0010\u000fB5\b\u0002\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\u000e\u0012\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u0002¢\u0006\u0002\u0010\u0012J.\u00102\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u000304032\n\u00105\u001a\u0006\u0012\u0002\b\u0003042\u0006\u0010\r\u001a\u00020\u000e2\u0006\u00106\u001a\u00020)H\u0002J\u0010\u00107\u001a\u0002082\u0006\u00105\u001a\u000209H\u0002J\u0010\u0010:\u001a\u0002082\u0006\u00105\u001a\u000209H\u0002J\u0010\u0010;\u001a\u0002082\u0006\u00105\u001a\u000209H\u0002J\u0013\u0010<\u001a\u00020)2\b\u0010=\u001a\u0004\u0018\u00010\u0002H\u0096\u0002J\b\u0010>\u001a\u00020\u0014H\u0016J\b\u0010?\u001a\u00020\tH\u0016R\u0014\u0010\u0013\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016R\u0016\u0010\u000b\u001a\u0004\u0018\u00010\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0018R\u001f\u0010\u0019\u001a\u0006\u0012\u0002\b\u00030\u001a8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001b\u0010\u001cR\u0014\u0010\u0006\u001a\u00020\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001f\u0010 R!\u0010!\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001a8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b#\u0010\u001e\u001a\u0004\b\"\u0010\u001cR\u001b\u0010\r\u001a\u00020\u000e8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b&\u0010'\u001a\u0004\b$\u0010%R\u0014\u0010(\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b(\u0010*R\u0014\u0010+\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b+\u0010*R\u0014\u0010,\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b,\u0010*R\u0014\u0010-\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b-\u0010*R\u0014\u0010.\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b.\u0010*R\u0014\u0010/\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b/\u0010*R\u0014\u0010\b\u001a\u00020\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b0\u00101R\u0010\u0010\u0011\u001a\u0004\u0018\u00010\u0002X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006@"}, d2 = {"Lkotlin/reflect/jvm/internal/KFunctionImpl;", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "", "Lkotlin/reflect/KFunction;", "Lkotlin/jvm/internal/FunctionBase;", "Lkotlin/reflect/jvm/internal/FunctionWithAllInvokes;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "name", "", "signature", "boundReceiver", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;)V", "descriptorInitialValue", "rawBoundReceiver", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;Ljava/lang/Object;)V", "arity", "", "getArity", "()I", "getBoundReceiver", "()Ljava/lang/Object;", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "caller$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazyVal;", "getContainer", "()Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "defaultCaller", "getDefaultCaller", "defaultCaller$delegate", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;", "descriptor$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "isBound", "", "()Z", "isExternal", "isInfix", "isInline", "isOperator", "isSuspend", "getName", "()Ljava/lang/String;", "createConstructorCaller", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "member", "isDefault", "createInstanceMethodCaller", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", "Ljava/lang/reflect/Method;", "createJvmStaticInObjectCaller", "createStaticMethodCaller", "equals", "other", "hashCode", "toString", "kotlin-reflection"}, k = 1, mv = {1, 7, 1}, xi = 48)
public final class KFunctionImpl extends KCallableImpl<Object> implements FunctionBase<Object>, KFunction<Object>, Function0, Function1, Function10, Function11, Function12, Function13, Function14, Function15, Function16, Function17, Function18, Function19, Function2, Function20, Function21, Function22, Function3, Function4, Function5, Function6, Function7, Function8, Function9, KCallable {

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public static final /* synthetic */ KProperty<Object>[] f6382p = {e0.c(new z(e0.a(KFunctionImpl.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;")), e0.c(new z(e0.a(KFunctionImpl.class), "caller", "getCaller()Lkotlin/reflect/jvm/internal/calls/Caller;")), e0.c(new z(e0.a(KFunctionImpl.class), "defaultCaller", "getDefaultCaller()Lkotlin/reflect/jvm/internal/calls/Caller;"))};

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final KDeclarationContainerImpl f6383q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final String f6384r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final Object f6385s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final n0 f6386t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final o0 f6387u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final o0 f6388v;

    /* JADX INFO: renamed from: r.i0.w.b.t$a */
    @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u0012\u0012\u0002\b\u0003 \u0002*\b\u0012\u0002\b\u0003\u0018\u00010\u00010\u0001H\n¢\u0006\u0002\b\u0003"}, d2 = {"<anonymous>", "Lkotlin/reflect/jvm/internal/calls/Caller;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    public static final class a extends Lambda implements Function0<Caller<? extends Member>> {
        public a() {
            super(0);
        }

        @Override // kotlin.jvm.functions.Function0
        public Caller<? extends Member> invoke() {
            Object objM;
            Caller callerS;
            Caller bVar;
            AnnotationConstructorCaller.a aVar = AnnotationConstructorCaller.a.POSITIONAL_CALL;
            RuntimeTypeMapper runtimeTypeMapper = RuntimeTypeMapper.a;
            JvmFunctionSignature jvmFunctionSignatureD = RuntimeTypeMapper.d(KFunctionImpl.this.o());
            if (jvmFunctionSignatureD instanceof JvmFunctionSignature.d) {
                if (KFunctionImpl.this.p()) {
                    Class<?> clsJ = KFunctionImpl.this.f6383q.j();
                    List<KParameter> parameters = KFunctionImpl.this.getParameters();
                    ArrayList arrayList = new ArrayList(i.H(parameters, 10));
                    Iterator<T> it = parameters.iterator();
                    while (it.hasNext()) {
                        String name = ((KParameter) it.next()).getName();
                        o.c(name);
                        arrayList.add(name);
                    }
                    return new AnnotationConstructorCaller(clsJ, arrayList, aVar, AnnotationConstructorCaller.b.KOTLIN, null, 16);
                }
                KDeclarationContainerImpl kDeclarationContainerImpl = KFunctionImpl.this.f6383q;
                String str = ((JvmFunctionSignature.d) jvmFunctionSignatureD).a.f7647b;
                Objects.requireNonNull(kDeclarationContainerImpl);
                o.f(str, "desc");
                objM = kDeclarationContainerImpl.y(kDeclarationContainerImpl.j(), kDeclarationContainerImpl.u(str));
            } else if (jvmFunctionSignatureD instanceof JvmFunctionSignature.e) {
                KDeclarationContainerImpl kDeclarationContainerImpl2 = KFunctionImpl.this.f6383q;
                d.b bVar2 = ((JvmFunctionSignature.e) jvmFunctionSignatureD).a;
                objM = kDeclarationContainerImpl2.m(bVar2.a, bVar2.f7647b);
            } else if (jvmFunctionSignatureD instanceof JvmFunctionSignature.c) {
                objM = ((JvmFunctionSignature.c) jvmFunctionSignatureD).a;
            } else {
                if (!(jvmFunctionSignatureD instanceof JvmFunctionSignature.b)) {
                    if (!(jvmFunctionSignatureD instanceof JvmFunctionSignature.a)) {
                        throw new NoWhenBranchMatchedException();
                    }
                    List<Method> list = ((JvmFunctionSignature.a) jvmFunctionSignatureD).f6254b;
                    Class<?> clsJ2 = KFunctionImpl.this.f6383q.j();
                    ArrayList arrayList2 = new ArrayList(i.H(list, 10));
                    Iterator<T> it2 = list.iterator();
                    while (it2.hasNext()) {
                        arrayList2.add(((Method) it2.next()).getName());
                    }
                    return new AnnotationConstructorCaller(clsJ2, arrayList2, aVar, AnnotationConstructorCaller.b.JAVA, list);
                }
                objM = ((JvmFunctionSignature.b) jvmFunctionSignatureD).a;
            }
            if (objM instanceof Constructor) {
                KFunctionImpl kFunctionImpl = KFunctionImpl.this;
                callerS = KFunctionImpl.r(kFunctionImpl, (Constructor) objM, kFunctionImpl.o(), false);
            } else {
                if (!(objM instanceof Method)) {
                    StringBuilder sbF = g.a.a.a.a.F("Could not compute caller for function: ");
                    sbF.append(KFunctionImpl.this.o());
                    sbF.append(" (member = ");
                    sbF.append(objM);
                    sbF.append(')');
                    throw new KotlinReflectionInternalError(sbF.toString());
                }
                Method method = (Method) objM;
                if (!Modifier.isStatic(method.getModifiers())) {
                    KFunctionImpl kFunctionImpl2 = KFunctionImpl.this;
                    if (kFunctionImpl2.q()) {
                        callerS = new CallerImpl.g.a(method, kFunctionImpl2.t());
                    } else {
                        bVar = new CallerImpl.g.d(method);
                        callerS = bVar;
                    }
                } else if (KFunctionImpl.this.o().getAnnotations().g(v0.a) != null) {
                    bVar = KFunctionImpl.this.q() ? new CallerImpl.g.b(method) : new CallerImpl.g.e(method);
                    callerS = bVar;
                } else {
                    callerS = KFunctionImpl.s(KFunctionImpl.this, method);
                }
            }
            return i.t0(callerS, KFunctionImpl.this.o(), false);
        }
    }

    /* JADX INFO: renamed from: r.i0.w.b.t$b */
    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "Lkotlin/reflect/jvm/internal/calls/Caller;", "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    public static final class b extends Lambda implements Function0<Caller<? extends Member>> {
        public b() {
            super(0);
        }

        /* JADX WARN: Removed duplicated region for block: B:43:0x017f  */
        /* JADX WARN: Type inference fix 'apply assigned field type' failed
        java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$ArrayArg
        	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
        	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
        	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
        	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
        	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
        	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
        	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
         */
        @Override // kotlin.jvm.functions.Function0
        /*
            Code decompiled incorrectly, please refer to instructions dump.
            To view partially-correct add '--show-bad-code' argument
        */
        public kotlin.reflect.w.internal.calls.Caller<? extends java.lang.reflect.Member> invoke() {
            /*
                Method dump skipped, instruction units count: 407
                To view this dump add '--comments-level debug' option
            */
            throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.w.internal.KFunctionImpl.b.invoke():java.lang.Object");
        }
    }

    /* JADX INFO: renamed from: r.i0.w.b.t$c */
    @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\n \u0002*\u0004\u0018\u00010\u00010\u0001H\n¢\u0006\u0002\b\u0003"}, d2 = {"<anonymous>", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    public static final class c extends Lambda implements Function0<w> {

        /* JADX INFO: renamed from: m, reason: collision with root package name */
        public final /* synthetic */ String f6392m;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public c(String str) {
            super(0);
            this.f6392m = str;
        }

        @Override // kotlin.jvm.functions.Function0
        public w invoke() throws IOException {
            Collection<w> collectionP;
            KFunctionImpl kFunctionImpl = KFunctionImpl.this;
            KDeclarationContainerImpl kDeclarationContainerImpl = kFunctionImpl.f6383q;
            String str = this.f6392m;
            String str2 = kFunctionImpl.f6384r;
            Objects.requireNonNull(kDeclarationContainerImpl);
            o.f(str, "name");
            o.f(str2, "signature");
            if (o.a(str, "<init>")) {
                collectionP = j.i0(kDeclarationContainerImpl.o());
            } else {
                e eVarI = e.i(str);
                o.e(eVarI, "identifier(name)");
                collectionP = kDeclarationContainerImpl.p(eVarI);
            }
            Collection<w> collection = collectionP;
            ArrayList arrayList = new ArrayList();
            for (Object obj : collection) {
                RuntimeTypeMapper runtimeTypeMapper = RuntimeTypeMapper.a;
                if (o.a(RuntimeTypeMapper.d((w) obj).getF6258b(), str2)) {
                    arrayList.add(obj);
                }
            }
            if (arrayList.size() == 1) {
                return (w) j.Z(arrayList);
            }
            String strC = j.C(collection, "\n", null, null, 0, null, q.f6376f, 30);
            StringBuilder sbL = g.a.a.a.a.L("Function '", str, "' (JVM signature: ", str2, ") not resolved in ");
            sbL.append(kDeclarationContainerImpl);
            sbL.append(AbstractJsonLexerKt.COLON);
            sbL.append(strC.length() == 0 ? " no members found" : '\n' + strC);
            throw new KotlinReflectionInternalError(sbL.toString());
        }
    }

    public KFunctionImpl(KDeclarationContainerImpl kDeclarationContainerImpl, String str, String str2, w wVar, Object obj) {
        this.f6383q = kDeclarationContainerImpl;
        this.f6384r = str2;
        this.f6385s = obj;
        this.f6386t = i.F2(wVar, new c(str));
        this.f6387u = i.E2(new a());
        this.f6388v = i.E2(new b());
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public KFunctionImpl(KDeclarationContainerImpl kDeclarationContainerImpl, w wVar) {
        o.f(kDeclarationContainerImpl, "container");
        o.f(wVar, "descriptor");
        String strE = wVar.getName().e();
        o.e(strE, "descriptor.name.asString()");
        RuntimeTypeMapper runtimeTypeMapper = RuntimeTypeMapper.a;
        this(kDeclarationContainerImpl, strE, RuntimeTypeMapper.d(wVar).getF6258b(), wVar, kotlin.jvm.internal.d.NO_RECEIVER);
    }

    public static final CallerImpl r(KFunctionImpl kFunctionImpl, Constructor constructor, w wVar, boolean z2) {
        Objects.requireNonNull(kFunctionImpl);
        if (!z2) {
            o.f(wVar, "descriptor");
            kotlin.reflect.w.internal.y0.d.d dVar = wVar instanceof kotlin.reflect.w.internal.y0.d.d ? (kotlin.reflect.w.internal.y0.d.d) wVar : null;
            boolean z3 = false;
            if (dVar != null && !q.e(dVar.getVisibility())) {
                kotlin.reflect.w.internal.y0.d.e eVarA = dVar.A();
                o.e(eVarA, "constructorDescriptor.constructedClass");
                if (!kotlin.reflect.w.internal.y0.k.j.b(eVarA) && !h.v(dVar.A())) {
                    List<h1> listH = dVar.h();
                    o.e(listH, "constructorDescriptor.valueParameters");
                    if (!listH.isEmpty()) {
                        Iterator<T> it = listH.iterator();
                        while (true) {
                            if (!it.hasNext()) {
                                break;
                            }
                            h0 type = ((h1) it.next()).getType();
                            o.e(type, "it.type");
                            if (i.f3(type)) {
                                z3 = true;
                                break;
                            }
                        }
                    }
                }
            }
            if (z3) {
                return kFunctionImpl.q() ? new CallerImpl.a(constructor, kFunctionImpl.t()) : new CallerImpl.b(constructor);
            }
        }
        return kFunctionImpl.q() ? new CallerImpl.c(constructor, kFunctionImpl.t()) : new CallerImpl.d(constructor);
    }

    public static final CallerImpl.g s(KFunctionImpl kFunctionImpl, Method method) {
        return kFunctionImpl.q() ? new CallerImpl.g.c(method, kFunctionImpl.t()) : new CallerImpl.g.f(method);
    }

    public boolean equals(Object other) {
        KFunctionImpl kFunctionImplB = v0.b(other);
        return kFunctionImplB != null && o.a(this.f6383q, kFunctionImplB.f6383q) && o.a(getF6282r(), kFunctionImplB.getF6282r()) && o.a(this.f6384r, kFunctionImplB.f6384r) && o.a(this.f6385s, kFunctionImplB.f6385s);
    }

    @Override // kotlin.jvm.internal.FunctionBase
    public int getArity() {
        return i.Y0(l());
    }

    @Override // kotlin.reflect.KCallable
    /* JADX INFO: renamed from: getName */
    public String getF6282r() {
        String strE = o().getName().e();
        o.e(strE, "descriptor.name.asString()");
        return strE;
    }

    public int hashCode() {
        return this.f6384r.hashCode() + ((getF6282r().hashCode() + (this.f6383q.hashCode() * 31)) * 31);
    }

    @Override // kotlin.jvm.functions.Function0
    public Object invoke() {
        return call(new Object[0]);
    }

    @Override // kotlin.reflect.KFunction
    public boolean isExternal() {
        return o().isExternal();
    }

    @Override // kotlin.reflect.KFunction
    public boolean isInfix() {
        return o().isInfix();
    }

    @Override // kotlin.reflect.KFunction
    public boolean isInline() {
        return o().isInline();
    }

    @Override // kotlin.reflect.KFunction
    public boolean isOperator() {
        return o().isOperator();
    }

    @Override // kotlin.reflect.KCallable
    public boolean isSuspend() {
        return o().isSuspend();
    }

    @Override // kotlin.reflect.w.internal.KCallableImpl
    public Caller<?> l() {
        o0 o0Var = this.f6387u;
        KProperty<Object> kProperty = f6382p[1];
        Object objInvoke = o0Var.invoke();
        o.e(objInvoke, "<get-caller>(...)");
        return (Caller) objInvoke;
    }

    @Override // kotlin.reflect.w.internal.KCallableImpl
    /* JADX INFO: renamed from: m, reason: from getter */
    public KDeclarationContainerImpl getF6383q() {
        return this.f6383q;
    }

    @Override // kotlin.reflect.w.internal.KCallableImpl
    public Caller<?> n() {
        o0 o0Var = this.f6388v;
        KProperty<Object> kProperty = f6382p[2];
        return (Caller) o0Var.invoke();
    }

    @Override // kotlin.reflect.w.internal.KCallableImpl
    public boolean q() {
        return !o.a(this.f6385s, kotlin.jvm.internal.d.NO_RECEIVER);
    }

    public final Object t() {
        return i.F(this.f6385s, o());
    }

    public String toString() {
        ReflectionObjectRenderer reflectionObjectRenderer = ReflectionObjectRenderer.a;
        return ReflectionObjectRenderer.c(o());
    }

    @Override // kotlin.reflect.w.internal.KCallableImpl
    /* JADX INFO: renamed from: u, reason: merged with bridge method [inline-methods] */
    public w o() {
        n0 n0Var = this.f6386t;
        KProperty<Object> kProperty = f6382p[0];
        Object objInvoke = n0Var.invoke();
        o.e(objInvoke, "<get-descriptor>(...)");
        return (w) objInvoke;
    }

    @Override // kotlin.jvm.functions.Function1
    public Object invoke(Object obj) {
        return call(obj);
    }

    @Override // kotlin.jvm.functions.Function2
    public Object invoke(Object obj, Object obj2) {
        return call(obj, obj2);
    }

    @Override // kotlin.jvm.functions.Function3
    public Object invoke(Object obj, Object obj2, Object obj3) {
        return call(obj, obj2, obj3);
    }
}
