package m5;

import l5.AbstractC2458c;

/* JADX INFO: loaded from: classes3.dex */
public final class q extends AbstractC2565a {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final l5.e f21269f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final int f21270g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f21271h;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public q(AbstractC2458c json, l5.e value) {
        super(json, null);
        kotlin.jvm.internal.o.h(json, "json");
        kotlin.jvm.internal.o.h(value, "value");
        this.f21269f = value;
        this.f21270g = value.f20336a.size();
        this.f21271h = -1;
    }

    @Override // m5.AbstractC2565a
    public final String R(i5.g descriptor, int i6) {
        kotlin.jvm.internal.o.h(descriptor, "descriptor");
        return String.valueOf(i6);
    }

    @Override // m5.AbstractC2565a
    public final l5.m T() {
        return this.f21269f;
    }

    @Override // j5.a
    public final int k(i5.g descriptor) {
        kotlin.jvm.internal.o.h(descriptor, "descriptor");
        int i6 = this.f21271h;
        if (i6 >= this.f21270g - 1) {
            return -1;
        }
        int i7 = i6 + 1;
        this.f21271h = i7;
        return i7;
    }

    @Override // m5.AbstractC2565a
    public final l5.m o(String tag) {
        kotlin.jvm.internal.o.h(tag, "tag");
        return (l5.m) this.f21269f.f20336a.get(Integer.parseInt(tag));
    }
}
