package on;

import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.List;
import kotlin.jvm.internal.t;
import on.e;
import on.f;
import sm.o;
import sm.u;

/* loaded from: classes3.dex */
public abstract class h implements e {

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

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

    /* renamed from: c, reason: collision with root package name */
    private final Type f31581c;

    /* loaded from: classes3.dex */
    public static final class a extends h implements d {

        /* renamed from: d, reason: collision with root package name */
        private final Object f31582d;

        /* JADX WARN: Illegal instructions before constructor call */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public a(Method unboxMethod, Object obj) {
            super(unboxMethod, r0, null);
            List k10;
            t.g(unboxMethod, "unboxMethod");
            k10 = u.k();
            this.f31582d = obj;
        }

        @Override // on.e
        public Object call(Object[] args) {
            t.g(args, "args");
            c(args);
            return b(this.f31582d, args);
        }
    }

    /* loaded from: classes3.dex */
    public static final class b extends h {
        /* JADX WARN: Illegal instructions before constructor call */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public b(Method unboxMethod) {
            super(unboxMethod, r0, null);
            List e10;
            t.g(unboxMethod, "unboxMethod");
            e10 = sm.t.e(unboxMethod.getDeclaringClass());
        }

        @Override // on.e
        public Object call(Object[] args) {
            t.g(args, "args");
            c(args);
            Object obj = args[0];
            f.d dVar = f.f31565e;
            return b(obj, args.length <= 1 ? new Object[0] : o.r(args, 1, args.length));
        }
    }

    public /* synthetic */ h(Method method, List list, kotlin.jvm.internal.k kVar) {
        this(method, list);
    }

    @Override // on.e
    public final List a() {
        return this.f31580b;
    }

    protected final Object b(Object obj, Object[] args) {
        t.g(args, "args");
        return this.f31579a.invoke(obj, Arrays.copyOf(args, args.length));
    }

    public void c(Object[] objArr) {
        e.a.a(this, objArr);
    }

    @Override // on.e
    /* renamed from: d, reason: merged with bridge method [inline-methods] */
    public final Method getMember() {
        return null;
    }

    @Override // on.e
    public final Type getReturnType() {
        return this.f31581c;
    }

    private h(Method method, List list) {
        this.f31579a = method;
        this.f31580b = list;
        Class<?> returnType = method.getReturnType();
        t.f(returnType, "getReturnType(...)");
        this.f31581c = returnType;
    }
}
