package h.b.p.a0;

import java.util.List;

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

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final List<String> f4534l;
    public final int m;
    public int n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public t(h.b.p.a aVar, h.b.p.w wVar) {
        super(aVar, wVar, null, null, 12);
        g.h0.c.l.f(aVar, "json");
        g.h0.c.l.f(wVar, "value");
        this.f4533k = wVar;
        List<String> listF = g.c0.g.F(wVar.keySet());
        this.f4534l = listF;
        this.m = listF.size() * 2;
        this.n = -1;
    }

    @Override // h.b.p.a0.r, h.b.o.s0
    public String W(h.b.m.e eVar, int i2) {
        g.h0.c.l.f(eVar, "desc");
        return this.f4534l.get(i2 / 2);
    }

    @Override // h.b.p.a0.r, h.b.p.a0.b
    public h.b.p.h Z(String str) {
        g.h0.c.l.f(str, "tag");
        return this.n % 2 == 0 ? new h.b.p.r(str, true) : (h.b.p.h) g.c0.g.o(this.f4533k, str);
    }

    @Override // h.b.p.a0.r, h.b.p.a0.b, h.b.n.c
    public void a(h.b.m.e eVar) {
        g.h0.c.l.f(eVar, "descriptor");
    }

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

    @Override // h.b.p.a0.r
    /* JADX INFO: renamed from: e0 */
    public h.b.p.w c0() {
        return this.f4533k;
    }

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