package h.b.o;

import h.b.m.k;
import java.lang.annotation.Annotation;
import java.util.List;

/* JADX INFO: compiled from: CollectionDescriptors.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public abstract class r0 implements h.b.m.e {
    public final String a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final h.b.m.e f4433b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final h.b.m.e f4434c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final int f4435d = 2;

    public r0(String str, h.b.m.e eVar, h.b.m.e eVar2, g.h0.c.g gVar) {
        this.a = str;
        this.f4433b = eVar;
        this.f4434c = eVar2;
    }

    @Override // h.b.m.e
    public String a() {
        return this.a;
    }

    @Override // h.b.m.e
    public boolean c() {
        return false;
    }

    @Override // h.b.m.e
    public int d(String str) {
        g.h0.c.l.f(str, "name");
        Integer numN = g.m0.f.N(str);
        if (numN != null) {
            return numN.intValue();
        }
        throw new IllegalArgumentException(d.b.a.a.a.p(str, " is not a valid map index"));
    }

    @Override // h.b.m.e
    public h.b.m.j e() {
        return k.c.a;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof r0)) {
            return false;
        }
        r0 r0Var = (r0) obj;
        return g.h0.c.l.a(this.a, r0Var.a) && g.h0.c.l.a(this.f4433b, r0Var.f4433b) && g.h0.c.l.a(this.f4434c, r0Var.f4434c);
    }

    @Override // h.b.m.e
    public int f() {
        return this.f4435d;
    }

    @Override // h.b.m.e
    public String g(int i2) {
        return String.valueOf(i2);
    }

    @Override // h.b.m.e
    public List<Annotation> getAnnotations() {
        return g.c0.l.f4067b;
    }

    @Override // h.b.m.e
    public List<Annotation> h(int i2) {
        if (i2 >= 0) {
            return g.c0.l.f4067b;
        }
        throw new IllegalArgumentException(d.b.a.a.a.v(d.b.a.a.a.C("Illegal index ", i2, ", "), this.a, " expects only non-negative indices").toString());
    }

    public int hashCode() {
        return this.f4434c.hashCode() + ((this.f4433b.hashCode() + (this.a.hashCode() * 31)) * 31);
    }

    @Override // h.b.m.e
    public h.b.m.e i(int i2) {
        if (!(i2 >= 0)) {
            throw new IllegalArgumentException(d.b.a.a.a.v(d.b.a.a.a.C("Illegal index ", i2, ", "), this.a, " expects only non-negative indices").toString());
        }
        int i3 = i2 % 2;
        if (i3 == 0) {
            return this.f4433b;
        }
        if (i3 == 1) {
            return this.f4434c;
        }
        throw new IllegalStateException("Unreached".toString());
    }

    @Override // h.b.m.e
    public boolean isInline() {
        return false;
    }

    @Override // h.b.m.e
    public boolean j(int i2) {
        if (i2 >= 0) {
            return false;
        }
        throw new IllegalArgumentException(d.b.a.a.a.v(d.b.a.a.a.C("Illegal index ", i2, ", "), this.a, " expects only non-negative indices").toString());
    }

    public String toString() {
        return this.a + '(' + this.f4433b + ", " + this.f4434c + ')';
    }
}
