package jq;

import hq.e;
import hq.j;
import java.util.List;

/* loaded from: classes3.dex */
public abstract class k0 implements hq.e {

    /* renamed from: a, reason: collision with root package name */
    private final hq.e f25226a;

    /* renamed from: b, reason: collision with root package name */
    private final int f25227b;

    public /* synthetic */ k0(hq.e eVar, kotlin.jvm.internal.k kVar) {
        this(eVar);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof k0)) {
            return false;
        }
        k0 k0Var = (k0) obj;
        return kotlin.jvm.internal.t.b(this.f25226a, k0Var.f25226a) && kotlin.jvm.internal.t.b(h(), k0Var.h());
    }

    @Override // hq.e
    public hq.i g() {
        return j.b.f22071a;
    }

    public int hashCode() {
        return (this.f25226a.hashCode() * 31) + h().hashCode();
    }

    @Override // hq.e
    public boolean i() {
        return e.a.b(this);
    }

    @Override // hq.e
    public boolean isInline() {
        return e.a.a(this);
    }

    @Override // hq.e
    public int j(String name) {
        Integer m10;
        kotlin.jvm.internal.t.g(name, "name");
        m10 = kotlin.text.x.m(name);
        if (m10 != null) {
            return m10.intValue();
        }
        throw new IllegalArgumentException(name + " is not a valid list index");
    }

    @Override // hq.e
    public int k() {
        return this.f25227b;
    }

    @Override // hq.e
    public String l(int i10) {
        return String.valueOf(i10);
    }

    @Override // hq.e
    public List m(int i10) {
        List k10;
        if (i10 >= 0) {
            k10 = sm.u.k();
            return k10;
        }
        throw new IllegalArgumentException(("Illegal index " + i10 + ", " + h() + " expects only non-negative indices").toString());
    }

    @Override // hq.e
    public hq.e n(int i10) {
        if (i10 >= 0) {
            return this.f25226a;
        }
        throw new IllegalArgumentException(("Illegal index " + i10 + ", " + h() + " expects only non-negative indices").toString());
    }

    @Override // hq.e
    public boolean o(int i10) {
        if (i10 >= 0) {
            return false;
        }
        throw new IllegalArgumentException(("Illegal index " + i10 + ", " + h() + " expects only non-negative indices").toString());
    }

    public String toString() {
        return h() + '(' + this.f25226a + ')';
    }

    private k0(hq.e eVar) {
        this.f25226a = eVar;
        this.f25227b = 1;
    }
}
