package co;

import gp.m;
import hp.m0;
import java.util.Collection;
import java.util.Map;
import kn.l;
import kotlin.jvm.internal.g0;
import kotlin.jvm.internal.p0;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import sm.c0;
import sm.q0;
import tn.z0;

/* loaded from: classes3.dex */
public class b implements kotlin.reflect.jvm.internal.impl.descriptors.annotations.c, p002do.g {

    /* renamed from: f, reason: collision with root package name */
    static final /* synthetic */ l[] f12111f = {p0.h(new g0(p0.b(b.class), "type", "getType()Lorg/jetbrains/kotlin/types/SimpleType;"))};

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

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

    /* renamed from: c, reason: collision with root package name */
    private final gp.i f12114c;

    /* renamed from: d, reason: collision with root package name */
    private final io.b f12115d;

    /* renamed from: e, reason: collision with root package name */
    private final boolean f12116e;

    /* loaded from: classes3.dex */
    static final class a extends v implements dn.a {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ eo.g f12117p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ b f12118q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(eo.g gVar, b bVar) {
            super(0);
            this.f12117p = gVar;
            this.f12118q = bVar;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final m0 invoke() {
            m0 q10 = this.f12117p.d().m().o(this.f12118q.d()).q();
            t.f(q10, "getDefaultType(...)");
            return q10;
        }
    }

    public b(eo.g c10, io.a aVar, ro.c fqName) {
        z0 NO_SOURCE;
        io.b bVar;
        Collection b10;
        Object d02;
        t.g(c10, "c");
        t.g(fqName, "fqName");
        this.f12112a = fqName;
        if (aVar == null || (NO_SOURCE = c10.a().t().a(aVar)) == null) {
            NO_SOURCE = z0.f36441a;
            t.f(NO_SOURCE, "NO_SOURCE");
        }
        this.f12113b = NO_SOURCE;
        this.f12114c = c10.e().b(new a(c10, this));
        if (aVar == null || (b10 = aVar.b()) == null) {
            bVar = null;
        } else {
            d02 = c0.d0(b10);
            bVar = (io.b) d02;
        }
        this.f12115d = bVar;
        boolean z10 = false;
        if (aVar != null && aVar.f()) {
            z10 = true;
        }
        this.f12116e = z10;
    }

    @Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.c
    public Map a() {
        Map i10;
        i10 = q0.i();
        return i10;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public final io.b b() {
        return this.f12115d;
    }

    @Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.c
    /* renamed from: c, reason: merged with bridge method [inline-methods] */
    public m0 getType() {
        return (m0) m.a(this.f12114c, this, f12111f[0]);
    }

    @Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.c
    public ro.c d() {
        return this.f12112a;
    }

    @Override // p002do.g
    public boolean f() {
        return this.f12116e;
    }

    @Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.c
    public z0 getSource() {
        return this.f12113b;
    }
}
