package defpackage;

import java.util.List;
import kotlin.reflect.KClass;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.KFunction;
import kotlin.reflect.KMutableProperty0;
import kotlin.reflect.KMutableProperty1;
import kotlin.reflect.KMutableProperty2;
import kotlin.reflect.KProperty0;
import kotlin.reflect.KProperty1;
import kotlin.reflect.KProperty2;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeParameter;
import kotlin.reflect.KTypeProjection;
import kotlin.reflect.KVariance;

/* JADX INFO: loaded from: classes3.dex */
public class kw7 {
    private static final String KOTLIN_JVM_FUNCTIONS = "kotlin.jvm.functions.";

    public KFunction function(wr3 wr3Var) {
        return wr3Var;
    }

    public KClass getOrCreateKotlinClass(Class cls) {
        return new p01(cls);
    }

    public KDeclarationContainer getOrCreateKotlinPackage(Class cls, String str) {
        return new c07(cls);
    }

    public KType mutableCollectionType(KType kType) {
        uz9 uz9Var = (uz9) kType;
        KClassifier classifier = kType.getA();
        List<KTypeProjection> arguments = kType.getB();
        uz9Var.getClass();
        return new uz9(classifier, arguments, uz9Var.c | 2);
    }

    public KMutableProperty0 mutableProperty0(mf6 mf6Var) {
        return mf6Var;
    }

    public KMutableProperty1 mutableProperty1(of6 of6Var) {
        return of6Var;
    }

    public KMutableProperty2 mutableProperty2(qf6 qf6Var) {
        return qf6Var;
    }

    public KProperty0 property0(ek7 ek7Var) {
        return ek7Var;
    }

    public KProperty1 property1(gk7 gk7Var) {
        return gk7Var;
    }

    public KProperty2 property2(ik7 ik7Var) {
        return ik7Var;
    }

    public String renderLambdaToString(u55 u55Var) {
        return renderLambdaToString((tr3) u55Var);
    }

    public void setUpperBounds(KTypeParameter kTypeParameter, List list) {
        mz9 mz9Var = (mz9) kTypeParameter;
        mz9Var.getClass();
        cr4.g(list, "upperBounds");
        if (mz9Var.c == null) {
            mz9Var.c = list;
            return;
        }
        throw new IllegalStateException(("Upper bounds of type parameter '" + mz9Var + "' have already been initialized.").toString());
    }

    public KType typeOf(KClassifier kClassifier, List list, boolean z) {
        cr4.g(kClassifier, "classifier");
        cr4.g(list, "arguments");
        return new uz9(kClassifier, list, z ? 1 : 0);
    }

    public KTypeParameter typeParameter(Object obj, String str, KVariance kVariance, boolean z) {
        return new mz9(obj, kVariance);
    }

    public String renderLambdaToString(tr3 tr3Var) {
        String string = tr3Var.getClass().getGenericInterfaces()[0].toString();
        return string.startsWith(KOTLIN_JVM_FUNCTIONS) ? string.substring(21) : string;
    }
}
