package k.a.p;

import java.util.Iterator;
import k.a.n.j;
import k.a.n.k;

/* JADX INFO: compiled from: Enums.kt */
/* JADX INFO: loaded from: classes.dex */
public final class x extends d1 {

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    private final k.a.n.j f905m;
    private final j.i n;

    /* JADX INFO: compiled from: Enums.kt */
    static final class a extends j.p0.d.s implements j.p0.c.a<k.a.n.f[]> {
        final /* synthetic */ int b;
        final /* synthetic */ String d;
        final /* synthetic */ x e;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(int i2, String str, x xVar) {
            super(0);
            this.b = i2;
            this.d = str;
            this.e = xVar;
        }

        @Override // j.p0.c.a
        /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
        public final k.a.n.f[] invoke() {
            int i2 = this.b;
            k.a.n.f[] fVarArr = new k.a.n.f[i2];
            for (int i3 = 0; i3 < i2; i3++) {
                fVarArr[i3] = k.a.n.i.d(this.d + '.' + this.e.e(i3), k.d.a, new k.a.n.f[0], null, 8, null);
            }
            return fVarArr;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public x(String str, int i2) {
        super(str, null, i2, 2, null);
        j.p0.d.r.f(str, "name");
        this.f905m = j.b.a;
        this.n = j.k.b(new a(i2, str, this));
    }

    private final k.a.n.f[] s() {
        return (k.a.n.f[]) this.n.getValue();
    }

    @Override // k.a.p.d1, k.a.n.f
    public k.a.n.j c() {
        return this.f905m;
    }

    @Override // k.a.p.d1
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || !(obj instanceof k.a.n.f)) {
            return false;
        }
        k.a.n.f fVar = (k.a.n.f) obj;
        return fVar.c() == j.b.a && j.p0.d.r.a(b(), fVar.b()) && j.p0.d.r.a(b1.a(this), b1.a(fVar));
    }

    @Override // k.a.p.d1
    public int hashCode() {
        int iHashCode = b().hashCode();
        Iterator<String> it = k.a.n.h.b(this).iterator();
        int iHashCode2 = 1;
        while (it.hasNext()) {
            int i2 = iHashCode2 * 31;
            String next = it.next();
            iHashCode2 = i2 + (next != null ? next.hashCode() : 0);
        }
        return (iHashCode * 31) + iHashCode2;
    }

    @Override // k.a.p.d1, k.a.n.f
    public k.a.n.f j(int i2) {
        return s()[i2];
    }

    @Override // k.a.p.d1
    public String toString() {
        return j.k0.w.C(k.a.n.h.b(this), ", ", b() + '(', ")", 0, null, null, 56, null);
    }
}
