package e.a.q;

import e.a.o.j;
import e.a.o.k;
import java.util.Iterator;

/* JADX INFO: compiled from: Enums.kt */
/* JADX INFO: loaded from: classes.dex */
@d.n
public final class x extends c1 {
    private final e.a.o.j m;
    private final d.i n;

    /* JADX INFO: compiled from: Enums.kt */
    @d.n
    static final class a extends d.n0.c.t implements d.n0.b.a<e.a.o.f[]> {

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        final /* synthetic */ int f2917d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        final /* synthetic */ String f2918e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        final /* synthetic */ x f2919f;

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

        @Override // d.n0.b.a
        /* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
        public final e.a.o.f[] a() {
            int i = this.f2917d;
            e.a.o.f[] fVarArr = new e.a.o.f[i];
            for (int i2 = 0; i2 < i; i2++) {
                fVarArr[i2] = e.a.o.i.d(this.f2918e + '.' + this.f2919f.h(i2), k.d.f2795a, new e.a.o.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 i) {
        super(str, null, i, 2, null);
        d.n0.c.s.e(str, "name");
        this.m = j.b.f2791a;
        this.n = d.k.b(new a(i, str, this));
    }

    private final e.a.o.f[] t() {
        return (e.a.o.f[]) this.n.getValue();
    }

    @Override // e.a.q.c1, e.a.o.f
    public e.a.o.j e() {
        return this.m;
    }

    @Override // e.a.q.c1
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || !(obj instanceof e.a.o.f)) {
            return false;
        }
        e.a.o.f fVar = (e.a.o.f) obj;
        return fVar.e() == j.b.f2791a && d.n0.c.s.a(a(), fVar.a()) && d.n0.c.s.a(a1.a(this), a1.a(fVar));
    }

    @Override // e.a.q.c1
    public int hashCode() {
        int iHashCode = a().hashCode();
        Iterator<String> it = e.a.o.h.b(this).iterator();
        int iHashCode2 = 1;
        while (it.hasNext()) {
            int i = iHashCode2 * 31;
            String next = it.next();
            iHashCode2 = i + (next != null ? next.hashCode() : 0);
        }
        return (iHashCode * 31) + iHashCode2;
    }

    @Override // e.a.q.c1, e.a.o.f
    public e.a.o.f k(int i) {
        return t()[i];
    }

    @Override // e.a.q.c1
    public String toString() {
        return d.j0.x.s(e.a.o.h.b(this), ", ", a() + '(', ")", 0, null, null, 56, null);
    }
}
