package h.b.o;

/* JADX INFO: compiled from: PrimitiveArraysSerializers.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class u1 extends d1<g.s, g.t, t1> implements h.b.b<g.t> {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final u1 f4444c = new u1();

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public u1() {
        super(v1.a);
        f.a.y.a.H0(g.s.f4191b);
    }

    @Override // h.b.o.a
    public int j(Object obj) {
        int[] iArr = ((g.t) obj).f4193b;
        g.h0.c.l.f(iArr, "$this$collectionSize");
        return iArr.length;
    }

    @Override // h.b.o.p, h.b.o.a
    public void m(h.b.n.c cVar, int i2, Object obj, boolean z) {
        t1 t1Var = (t1) obj;
        g.h0.c.l.f(cVar, "decoder");
        g.h0.c.l.f(t1Var, "builder");
        int iJ = cVar.B(this.f4384b, i2).j();
        b1.c(t1Var, 0, 1, null);
        int[] iArr = t1Var.a;
        int i3 = t1Var.f4441b;
        t1Var.f4441b = i3 + 1;
        iArr[i3] = iJ;
    }

    @Override // h.b.o.a
    public Object n(Object obj) {
        int[] iArr = ((g.t) obj).f4193b;
        g.h0.c.l.f(iArr, "$this$toBuilder");
        return new t1(iArr, null);
    }

    @Override // h.b.o.d1
    public g.t q() {
        int[] iArr = new int[0];
        g.h0.c.l.f(iArr, "storage");
        return new g.t(iArr);
    }

    @Override // h.b.o.d1
    public void r(h.b.n.d dVar, g.t tVar, int i2) {
        int[] iArr = tVar.f4193b;
        g.h0.c.l.f(dVar, "encoder");
        g.h0.c.l.f(iArr, "content");
        for (int i3 = 0; i3 < i2; i3++) {
            dVar.h(this.f4384b, i3).x(iArr[i3]);
        }
    }
}
