package h.b.o;

/* JADX INFO: compiled from: PrimitiveArraysSerializers.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class g extends d1<Boolean, boolean[], f> implements h.b.b<boolean[]> {

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

    public g() {
        super(h.a);
    }

    @Override // h.b.o.a
    public int j(Object obj) {
        boolean[] zArr = (boolean[]) obj;
        g.h0.c.l.f(zArr, "<this>");
        return zArr.length;
    }

    @Override // h.b.o.p, h.b.o.a
    public void m(h.b.n.c cVar, int i2, Object obj, boolean z) {
        f fVar = (f) obj;
        g.h0.c.l.f(cVar, "decoder");
        g.h0.c.l.f(fVar, "builder");
        boolean zS = cVar.s(this.f4384b, i2);
        b1.c(fVar, 0, 1, null);
        boolean[] zArr = fVar.a;
        int i3 = fVar.f4388b;
        fVar.f4388b = i3 + 1;
        zArr[i3] = zS;
    }

    @Override // h.b.o.a
    public Object n(Object obj) {
        boolean[] zArr = (boolean[]) obj;
        g.h0.c.l.f(zArr, "<this>");
        return new f(zArr);
    }

    @Override // h.b.o.d1
    public boolean[] q() {
        return new boolean[0];
    }

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