package a.i.b.a.c.b.c;

import a.f.b.j;
import a.f.b.t;
import a.f.b.v;
import a.i.b.a.c.b.a.g;
import a.i.b.a.c.b.a.g.a;
import a.i.b.a.c.b.ab;
import a.i.b.a.c.b.ad;
import a.i.b.a.c.b.l;
import a.i.b.a.c.b.n;
import a.i.b.a.c.b.y;
import a.i.b.a.c.f.b;
import a.i.b.a.c.i.e.h;
import a.i.b.a.c.k.f;
import a.i.b.a.c.k.i;
import a.i.k;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.List;

public final class r extends j implements ad {
    static final /* synthetic */ k[] eQB = new k[]{(k) v.a(new t(v.aN(r.class), "fragments", "getFragments()Ljava/util/List;"))};
    final b BfP;
    private final f BiB;
    private final h BiC;
    final v BiD;

    static {
        AppMethodBeat.i(119466);
        AppMethodBeat.o(119466);
    }

    public final List<ab> getFragments() {
        AppMethodBeat.i(119467);
        List list = (List) a.i.b.a.c.k.h.a(this.BiB, eQB[0]);
        AppMethodBeat.o(119467);
        return list;
    }

    public final b dZF() {
        return this.BfP;
    }

    public r(v vVar, b bVar, i iVar) {
        j.p(vVar, "module");
        j.p(bVar, "fqName");
        j.p(iVar, "storageManager");
        a aVar = g.BfJ;
        super(a.eai(), bVar.ByQ.ehL());
        AppMethodBeat.i(119472);
        this.BiD = vVar;
        this.BfP = bVar;
        this.BiB = iVar.i((a.f.a.a) new a(this));
        this.BiC = (h) new a.i.b.a.c.i.e.g(iVar.i((a.f.a.a) new b(this)));
        AppMethodBeat.o(119472);
    }

    public final h dXR() {
        return this.BiC;
    }

    public final boolean equals(Object obj) {
        Object obj2;
        AppMethodBeat.i(119469);
        if (obj instanceof ad) {
            obj2 = obj;
        } else {
            obj2 = null;
        }
        ad adVar = (ad) obj2;
        if (adVar == null) {
            AppMethodBeat.o(119469);
            return false;
        } else if (j.j(this.BfP, adVar.dZF()) && j.j(this.BiD, adVar.dZG())) {
            AppMethodBeat.o(119469);
            return true;
        } else {
            AppMethodBeat.o(119469);
            return false;
        }
    }

    public final <R, D> R a(n<R, D> nVar, D d) {
        AppMethodBeat.i(119471);
        j.p(nVar, "visitor");
        Object a = nVar.a((ad) this, d);
        AppMethodBeat.o(119471);
        return a;
    }

    public final /* synthetic */ l dXW() {
        ad adVar;
        AppMethodBeat.i(119468);
        if (this.BfP.ByQ.ByV.isEmpty()) {
            adVar = null;
        } else {
            v vVar = this.BiD;
            b ehG = this.BfP.ehG();
            j.o(ehG, "fqName.parent()");
            adVar = vVar.g(ehG);
        }
        l lVar = (l) adVar;
        AppMethodBeat.o(119468);
        return lVar;
    }

    public final int hashCode() {
        AppMethodBeat.i(119470);
        int hashCode = (this.BiD.hashCode() * 31) + this.BfP.hashCode();
        AppMethodBeat.o(119470);
        return hashCode;
    }

    public final /* bridge */ /* synthetic */ y dZG() {
        return (y) this.BiD;
    }

    public final boolean isEmpty() {
        AppMethodBeat.i(119473);
        boolean isEmpty = getFragments().isEmpty();
        AppMethodBeat.o(119473);
        return isEmpty;
    }
}
