package o;

import java.util.ArrayList;
import java.util.List;
import java.util.RandomAccess;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Rr0 extends AbstractC2665ut0 {
    private static final Rr0 zzg;
    private Ct0 zzb;
    private Ct0 zzd;
    private Dt0 zze;
    private Dt0 zzf;

    static {
        Rr0 rr0 = new Rr0();
        zzg = rr0;
        AbstractC2665ut0.m(Rr0.class, rr0);
    }

    public Rr0() {
        Nt0 nt0 = Nt0.p;
        this.zzb = nt0;
        this.zzd = nt0;
        C1337gu0 c1337gu0 = C1337gu0.p;
        this.zze = c1337gu0;
        this.zzf = c1337gu0;
    }

    public static Qr0 x() {
        return (Qr0) zzg.h();
    }

    public static Rr0 y() {
        return zzg;
    }

    public final void A() {
        this.zzb = Nt0.p;
    }

    public final void B(List list) {
        RandomAccess randomAccess = this.zzd;
        if (!((Ps0) randomAccess).l) {
            Nt0 nt0 = (Nt0) randomAccess;
            int i = nt0.n;
            this.zzd = nt0.g(i + i);
        }
        Ns0.c(list, this.zzd);
    }

    public final void C() {
        this.zzd = Nt0.p;
    }

    public final void D(ArrayList arrayList) {
        Dt0 dt0 = this.zze;
        if (!((Ps0) dt0).l) {
            int size = dt0.size();
            this.zze = dt0.g(size + size);
        }
        Ns0.c(arrayList, this.zze);
    }

    public final void E() {
        this.zze = C1337gu0.p;
    }

    public final void F(Iterable iterable) {
        Dt0 dt0 = this.zzf;
        if (!((Ps0) dt0).l) {
            int size = dt0.size();
            this.zzf = dt0.g(size + size);
        }
        Ns0.c(iterable, this.zzf);
    }

    public final void G() {
        this.zzf = C1337gu0.p;
    }

    @Override // o.AbstractC2665ut0
    public final Object o(int i) {
        int i2 = i - 1;
        if (i2 == 0) {
            return (byte) 1;
        }
        if (i2 == 2) {
            return new C1527iu0(zzg, "\u0004\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0004\u0000\u0001\u0015\u0002\u0015\u0003\u001b\u0004\u001b", new Object[]{"zzb", "zzd", "zze", C2566tr0.class, "zzf", Ur0.class});
        }
        if (i2 == 3) {
            return new Rr0();
        }
        if (i2 == 4) {
            return new Qr0(zzg);
        }
        if (i2 == 5) {
            return zzg;
        }
        throw null;
    }

    public final List p() {
        return this.zzb;
    }

    public final int q() {
        return ((Nt0) this.zzb).size();
    }

    public final List r() {
        return this.zzd;
    }

    public final int s() {
        return ((Nt0) this.zzd).size();
    }

    public final Dt0 t() {
        return this.zze;
    }

    public final int u() {
        return this.zze.size();
    }

    public final List v() {
        return this.zzf;
    }

    public final int w() {
        return this.zzf.size();
    }

    public final void z(Iterable iterable) {
        RandomAccess randomAccess = this.zzb;
        if (!((Ps0) randomAccess).l) {
            Nt0 nt0 = (Nt0) randomAccess;
            int i = nt0.n;
            this.zzb = nt0.g(i + i);
        }
        Ns0.c(iterable, this.zzb);
    }
}
