package h.b.p.a0;

/* JADX INFO: compiled from: TreeJsonDecoder.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class s extends b {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final h.b.p.b f4530f;

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public s(h.b.p.a aVar, h.b.p.b bVar) {
        super(aVar, bVar, null);
        g.h0.c.l.f(aVar, "json");
        g.h0.c.l.f(bVar, "value");
        this.f4530f = bVar;
        this.f4531g = bVar.size();
        this.f4532h = -1;
    }

    @Override // h.b.o.s0
    public String W(h.b.m.e eVar, int i2) {
        g.h0.c.l.f(eVar, "desc");
        return String.valueOf(i2);
    }

    @Override // h.b.p.a0.b
    public h.b.p.h Z(String str) {
        g.h0.c.l.f(str, "tag");
        h.b.p.b bVar = this.f4530f;
        return bVar.f4547b.get(Integer.parseInt(str));
    }

    @Override // h.b.p.a0.b
    public h.b.p.h c0() {
        return this.f4530f;
    }

    @Override // h.b.n.c
    public int x(h.b.m.e eVar) {
        g.h0.c.l.f(eVar, "descriptor");
        int i2 = this.f4532h;
        if (i2 >= this.f4531g - 1) {
            return -1;
        }
        int i3 = i2 + 1;
        this.f4532h = i3;
        return i3;
    }
}
