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

import a.f.b.j;
import a.i.b.a.c.a.c;
import a.i.b.a.c.a.g;
import a.i.b.a.c.b.ab;
import a.i.b.a.c.b.ap;
import a.i.b.a.c.b.ap.a;
import a.i.b.a.c.b.ar;
import a.i.b.a.c.b.e;
import a.i.b.a.c.b.h;
import a.i.b.a.c.f.f;
import a.i.b.a.c.i.d;
import a.i.b.a.c.l.b;
import a.i.b.a.c.l.w;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

final class b$a extends b {
    final /* synthetic */ b BcO;

    public b$a(b bVar) {
        this.BcO = bVar;
        super(b.c(bVar));
        AppMethodBeat.i(119144);
        AppMethodBeat.o(119144);
    }

    public final Collection<w> dYr() {
        a.i.b.a.c.f.b bVar;
        AppMethodBeat.i(119140);
        ArrayList arrayList = new ArrayList(2);
        a aVar = new a(this, arrayList);
        ab abVar;
        f avX;
        switch (c.eQZ[this.BcO.BcN.ordinal()]) {
            case 1:
                bVar = g.AZV;
                j.o(bVar, "BUILT_INS_PACKAGE_FQ_NAME");
                abVar = (ab) e(bVar);
                avX = f.avX("Function");
                j.o(avX, "Name.identifier(\"Function\")");
                aVar.a(abVar, avX);
                break;
            case 2:
                abVar = b.a(this.BcO);
                avX = f.avX("KFunction");
                j.o(avX, "Name.identifier(\"KFunction\")");
                aVar.a(abVar, avX);
                break;
            default:
                abVar = b.a(this.BcO);
                avX = f.avX(this.BcO.BcN.BcX);
                j.o(avX, "Name.identifier(functionKind.classNamePrefix)");
                aVar.a(abVar, avX);
                break;
        }
        switch (c.pCY[this.BcO.BcN.ordinal()]) {
            case 1:
                bVar = g.AZV;
                j.o(bVar, "BUILT_INS_PACKAGE_FQ_NAME");
                aVar.a((ab) e(bVar), b$b.Function.SN(this.BcO.AVt));
                break;
            case 2:
                bVar = d.BDS;
                j.o(bVar, "COROUTINES_PACKAGE_FQ_NAME_RELEASE");
                aVar.a((ab) e(bVar), b$b.SuspendFunction.SN(this.BcO.AVt));
                break;
        }
        Collection m = a.a.j.m(arrayList);
        AppMethodBeat.o(119140);
        return m;
    }

    private final c e(a.i.b.a.c.f.b bVar) {
        AppMethodBeat.i(119141);
        Collection arrayList = new ArrayList();
        for (Object next : b.a(this.BcO).dZE().g(bVar).getFragments()) {
            if (next instanceof c) {
                arrayList.add(next);
            }
        }
        c cVar = (c) a.a.j.fJ((List) arrayList);
        AppMethodBeat.o(119141);
        return cVar;
    }

    public final List<ar> getParameters() {
        AppMethodBeat.i(119142);
        List b = b.b(this.BcO);
        AppMethodBeat.o(119142);
        return b;
    }

    public final boolean dYu() {
        return true;
    }

    public final ap dYv() {
        return (ap) a.BeT;
    }

    public final /* bridge */ /* synthetic */ h dYs() {
        return (h) this.BcO;
    }

    public final /* bridge */ /* synthetic */ e dYt() {
        return (e) this.BcO;
    }

    public final String toString() {
        AppMethodBeat.i(119143);
        String bVar = this.BcO.toString();
        AppMethodBeat.o(119143);
        return bVar;
    }
}
