package eo;

import dn.l;
import java.util.Iterator;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.g;
import qn.j;
import rp.p;
import sm.c0;

/* loaded from: classes3.dex */
public final class d implements kotlin.reflect.jvm.internal.impl.descriptors.annotations.g {

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

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

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

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

    /* 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 kotlin.reflect.jvm.internal.impl.descriptors.annotations.c invoke(io.a annotation) {
            t.g(annotation, "annotation");
            return co.c.f12119a.e(annotation, d.this.f17255p, d.this.f17257r);
        }
    }

    public d(g c10, io.d annotationOwner, boolean z10) {
        t.g(c10, "c");
        t.g(annotationOwner, "annotationOwner");
        this.f17255p = c10;
        this.f17256q = annotationOwner;
        this.f17257r = z10;
        this.f17258s = c10.a().u().h(new a());
    }

    @Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.g
    public boolean isEmpty() {
        return this.f17256q.getAnnotations().isEmpty() && !this.f17256q.m();
    }

    @Override // java.lang.Iterable
    public Iterator iterator() {
        rp.h S;
        rp.h x10;
        rp.h A;
        rp.h q10;
        S = c0.S(this.f17256q.getAnnotations());
        x10 = p.x(S, this.f17258s);
        A = p.A(x10, co.c.f12119a.a(j.a.f34034y, this.f17256q, this.f17255p));
        q10 = p.q(A);
        return q10.iterator();
    }

    @Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.g
    public kotlin.reflect.jvm.internal.impl.descriptors.annotations.c j(ro.c fqName) {
        kotlin.reflect.jvm.internal.impl.descriptors.annotations.c cVar;
        t.g(fqName, "fqName");
        io.a j10 = this.f17256q.j(fqName);
        return (j10 == null || (cVar = (kotlin.reflect.jvm.internal.impl.descriptors.annotations.c) this.f17258s.invoke(j10)) == null) ? co.c.f12119a.a(fqName, this.f17256q, this.f17255p) : cVar;
    }

    @Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.g
    public boolean p0(ro.c cVar) {
        return g.b.b(this, cVar);
    }

    public /* synthetic */ d(g gVar, io.d dVar, boolean z10, int i10, kotlin.jvm.internal.k kVar) {
        this(gVar, dVar, (i10 & 4) != 0 ? false : z10);
    }
}
