package androidx.leanback.widget;

import android.graphics.PointF;

/* JADX INFO: renamed from: androidx.leanback.widget.s, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0488s extends AbstractC0489t {

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ GridLayoutManager f8711s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0488s(GridLayoutManager gridLayoutManager) {
        super(gridLayoutManager);
        this.f8711s = gridLayoutManager;
    }

    @Override // N1.H
    public final PointF e(int i) {
        if (this.f4461b.D.I() == 0) {
            return null;
        }
        GridLayoutManager gridLayoutManager = this.f8711s;
        int iT = androidx.recyclerview.widget.a.T(gridLayoutManager.H(0));
        int i5 = ((gridLayoutManager.f8397S & 262144) == 0 ? i >= iT : i <= iT) ? 1 : -1;
        return gridLayoutManager.f8387I == 0 ? new PointF(i5, 0.0f) : new PointF(0.0f, i5);
    }
}
