package o;

import java.util.Iterator;
import java.util.ListIterator;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class NG extends PG {
    public final transient int n;

    /* renamed from: o, reason: collision with root package name */
    public final transient int f254o;
    public final /* synthetic */ PG p;

    public NG(PG pg, int i, int i2) {
        this.p = pg;
        this.n = i;
        this.f254o = i2;
    }

    @Override // o.JG
    public final Object[] b() {
        return this.p.b();
    }

    @Override // o.JG
    public final int c() {
        return this.p.d() + this.n + this.f254o;
    }

    @Override // o.JG
    public final int d() {
        return this.p.d() + this.n;
    }

    @Override // java.util.List
    public final Object get(int i) {
        AbstractC0662Zn.l(i, this.f254o);
        return this.p.get(i + this.n);
    }

    @Override // o.PG, java.util.List
    /* renamed from: i */
    public final PG subList(int i, int i2) {
        AbstractC0662Zn.n(i, i2, this.f254o);
        int i3 = this.n;
        return this.p.subList(i + i3, i2 + i3);
    }

    @Override // o.PG, o.JG, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable
    public final Iterator iterator() {
        return listIterator(0);
    }

    @Override // o.PG, java.util.List
    public final ListIterator listIterator() {
        return listIterator(0);
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.List
    public final int size() {
        return this.f254o;
    }

    @Override // o.PG, java.util.List
    public final /* bridge */ /* synthetic */ ListIterator listIterator(int i) {
        return listIterator(i);
    }
}
