package o;

import androidx.recyclerview.widget.RecyclerView;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Fx, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0153Fx extends AbstractC1445i10 {
    public final /* synthetic */ C0205Hx a;

    public C0153Fx(C0205Hx c0205Hx) {
        this.a = c0205Hx;
    }

    @Override // o.AbstractC1445i10
    public final void b(RecyclerView recyclerView, int i, int i2) {
        int iComputeHorizontalScrollOffset = recyclerView.computeHorizontalScrollOffset();
        int iComputeVerticalScrollOffset = recyclerView.computeVerticalScrollOffset();
        C0205Hx c0205Hx = this.a;
        int i3 = c0205Hx.a;
        int iComputeVerticalScrollRange = c0205Hx.s.computeVerticalScrollRange();
        int i4 = c0205Hx.r;
        c0205Hx.t = iComputeVerticalScrollRange - i4 > 0 && i4 >= i3;
        int iComputeHorizontalScrollRange = c0205Hx.s.computeHorizontalScrollRange();
        int i5 = c0205Hx.q;
        boolean z = iComputeHorizontalScrollRange - i5 > 0 && i5 >= i3;
        c0205Hx.u = z;
        boolean z2 = c0205Hx.t;
        if (!z2 && !z) {
            if (c0205Hx.v != 0) {
                c0205Hx.f(0);
                return;
            }
            return;
        }
        if (z2) {
            float f = i4;
            c0205Hx.l = (int) ((((f / 2.0f) + iComputeVerticalScrollOffset) * f) / iComputeVerticalScrollRange);
            c0205Hx.k = Math.min(i4, (i4 * i4) / iComputeVerticalScrollRange);
        }
        if (c0205Hx.u) {
            float f2 = iComputeHorizontalScrollOffset;
            float f3 = i5;
            c0205Hx.f151o = (int) ((((f3 / 2.0f) + f2) * f3) / iComputeHorizontalScrollRange);
            c0205Hx.n = Math.min(i5, (i5 * i5) / iComputeHorizontalScrollRange);
        }
        int i6 = c0205Hx.v;
        if (i6 == 0 || i6 == 1) {
            c0205Hx.f(1);
        }
    }
}
