package m5;

import java.util.List;
import l5.AbstractC2458c;
import x4.AbstractC3229F;
import x4.AbstractC3251q;

/* JADX INFO: loaded from: classes3.dex */
public final class r extends p {

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final l5.y f21272j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final List f21273k;
    public final int l;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public r(AbstractC2458c json, l5.y value) {
        super(json, value, (String) null, 12);
        kotlin.jvm.internal.o.h(json, "json");
        kotlin.jvm.internal.o.h(value, "value");
        this.f21272j = value;
        List listC0 = AbstractC3251q.C0(value.f20366a.keySet());
        this.f21273k = listC0;
        this.l = listC0.size() * 2;
        this.f21274m = -1;
    }

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

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

    @Override // m5.p
    /* JADX INFO: renamed from: Y */
    public final l5.y T() {
        return this.f21272j;
    }

    @Override // m5.p, m5.AbstractC2565a, j5.a
    public final void c(i5.g descriptor) {
        kotlin.jvm.internal.o.h(descriptor, "descriptor");
    }

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

    @Override // m5.p, m5.AbstractC2565a
    public final l5.m o(String tag) {
        kotlin.jvm.internal.o.h(tag, "tag");
        return this.f21274m % 2 == 0 ? l5.n.b(tag) : (l5.m) AbstractC3229F.t(tag, this.f21272j);
    }
}
