package o;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public class BX implements L60, InterfaceC0446Rf {
    public final String a;
    public final ED b;
    public final int c;
    public int d = -1;
    public final String[] e;
    public final List[] f;
    public final boolean[] g;
    public Object h;
    public final Object i;
    public final Object j;
    public final Object k;

    public BX(String str, ED ed, int i) {
        this.a = str;
        this.b = ed;
        this.c = i;
        String[] strArr = new String[i];
        for (int i2 = 0; i2 < i; i2++) {
            strArr[i2] = "[UNINITIALIZED]";
        }
        this.e = strArr;
        int i3 = this.c;
        this.f = new List[i3];
        this.g = new boolean[i3];
        this.h = C0358Nv.l;
        final int i4 = 0;
        this.i = AbstractC2001nt0.y(2, new NC(this) { // from class: o.AX
            public final /* synthetic */ BX m;

            {
                this.m = this;
            }

            /* JADX WARN: Type inference failed for: r1v0, types: [java.lang.Object, o.zK] */
            @Override // o.NC
            public final Object a() {
                switch (i4) {
                    case 0:
                        return this.m.b.b();
                    default:
                        BX bx = this.m;
                        return Integer.valueOf(AbstractC2378rs0.X(bx, (L60[]) bx.j.getValue()));
                }
            }
        });
        this.j = AbstractC2001nt0.y(2, new K0(this));
        final int i5 = 1;
        this.k = AbstractC2001nt0.y(2, new NC(this) { // from class: o.AX
            public final /* synthetic */ BX m;

            {
                this.m = this;
            }

            /* JADX WARN: Type inference failed for: r1v0, types: [java.lang.Object, o.zK] */
            @Override // o.NC
            public final Object a() {
                switch (i5) {
                    case 0:
                        return this.m.b.b();
                    default:
                        BX bx = this.m;
                        return Integer.valueOf(AbstractC2378rs0.X(bx, (L60[]) bx.j.getValue()));
                }
            }
        });
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Object, java.util.Map] */
    @Override // o.L60
    public final int a(String str) {
        Integer num = (Integer) this.h.get(str);
        if (num != null) {
            return num.intValue();
        }
        return -3;
    }

    @Override // o.L60
    public final String b() {
        return this.a;
    }

    @Override // o.L60
    public final AbstractC2841wm0 c() {
        return C1585jb0.u;
    }

    @Override // o.L60
    public final int d() {
        return this.c;
    }

    @Override // o.L60
    public final String e(int i) {
        return this.e[i];
    }

    /* JADX WARN: Type inference failed for: r2v2, types: [java.lang.Object, o.zK] */
    /* JADX WARN: Type inference failed for: r6v3, types: [java.lang.Object, o.zK] */
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof BX) {
            L60 l60 = (L60) obj;
            if (this.a.equals(l60.b()) && Arrays.equals((L60[]) this.j.getValue(), (L60[]) ((BX) obj).j.getValue())) {
                int iD = l60.d();
                int i = this.c;
                if (i == iD) {
                    for (int i2 = 0; i2 < i; i2++) {
                        if (F3.c(j(i2).b(), l60.j(i2).b()) && F3.c(j(i2).c(), l60.j(i2).c())) {
                        }
                    }
                    return true;
                }
            }
        }
        return false;
    }

    @Override // o.L60
    public boolean f() {
        return false;
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Object, java.util.Map] */
    @Override // o.InterfaceC0446Rf
    public final Set g() {
        return this.h.keySet();
    }

    @Override // o.L60
    public final List getAnnotations() {
        return C0332Mv.l;
    }

    @Override // o.L60
    public final boolean h() {
        return false;
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Object, o.zK] */
    public int hashCode() {
        return ((Number) this.k.getValue()).intValue();
    }

    @Override // o.L60
    public final List i(int i) {
        List list = this.f[i];
        return list == null ? C0332Mv.l : list;
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Object, o.zK] */
    @Override // o.L60
    public final L60 j(int i) {
        return ((EJ[]) this.i.getValue())[i].d();
    }

    public final void k(String str, boolean z) {
        int i = this.d + 1;
        this.d = i;
        String[] strArr = this.e;
        strArr[i] = str;
        this.g[i] = z;
        this.f[i] = null;
        if (i == this.c - 1) {
            HashMap map = new HashMap();
            int length = strArr.length;
            for (int i2 = 0; i2 < length; i2++) {
                map.put(strArr[i2], Integer.valueOf(i2));
            }
            this.h = map;
        }
    }

    public final String toString() {
        return AbstractC3117zi.i0(AbstractC0940cn0.K(0, this.c), ", ", this.a.concat("("), ")", new S1(12, this), 24);
    }
}
