package o;

import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class OG extends Q {
    public final Y l;
    public final int m;
    public final int n;

    public OG(Y y, int i, int i2) {
        this.l = y;
        this.m = i;
        AbstractC2798wI.j(i, i2, y.a());
        this.n = i2 - i;
    }

    @Override // o.AbstractC2864x
    public final int a() {
        return this.n;
    }

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

    @Override // o.Q, java.util.List
    public final List subList(int i, int i2) {
        AbstractC2798wI.j(i, i2, this.n);
        int i3 = this.m;
        return new OG(this.l, i + i3, i3 + i2);
    }
}
