package eo;

import dn.l;
import fo.n;
import io.y;
import io.z;
import java.util.Map;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import tn.e1;
import tn.m;

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

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

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

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

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

    /* renamed from: e, reason: collision with root package name */
    private final gp.h f17273e;

    /* loaded from: classes3.dex */
    static final class a extends v implements l {
        a() {
            super(1);
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final n invoke(y typeParameter) {
            t.g(typeParameter, "typeParameter");
            Integer num = (Integer) h.this.f17272d.get(typeParameter);
            if (num == null) {
                return null;
            }
            h hVar = h.this;
            return new n(eo.a.h(eo.a.a(hVar.f17269a, hVar), hVar.f17270b.getAnnotations()), typeParameter, hVar.f17271c + num.intValue(), hVar.f17270b);
        }
    }

    public h(g c10, m containingDeclaration, z typeParameterOwner, int i10) {
        t.g(c10, "c");
        t.g(containingDeclaration, "containingDeclaration");
        t.g(typeParameterOwner, "typeParameterOwner");
        this.f17269a = c10;
        this.f17270b = containingDeclaration;
        this.f17271c = i10;
        this.f17272d = pp.a.d(typeParameterOwner.getTypeParameters());
        this.f17273e = c10.e().h(new a());
    }

    @Override // eo.k
    public e1 a(y javaTypeParameter) {
        t.g(javaTypeParameter, "javaTypeParameter");
        n nVar = (n) this.f17273e.invoke(javaTypeParameter);
        return nVar != null ? nVar : this.f17269a.f().a(javaTypeParameter);
    }
}
