package X6FRs_4.YghfZG_14.PGPF6hQ_2;

import android.graphics.Rect;
import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
/* compiled from: OrientationHelper.java */
/* loaded from: classes.dex */
public abstract class Xgtqvk_8 {
    public int KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Rect f1410KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final RecyclerView.YghfZG_14 f1411KQgRr5e_0;

    /* compiled from: OrientationHelper.java */
    /* loaded from: classes.dex */
    public static class KQgRr5e_0 extends Xgtqvk_8 {
        public KQgRr5e_0(RecyclerView.YghfZG_14 yghfZG_14) {
            super(yghfZG_14, null);
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int IFxWkV_5() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.Xgtqvk_8();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int IMuAHx_6() {
            return (((Xgtqvk_8) this).f1411KQgRr5e_0.KNBe_11() - ((Xgtqvk_8) this).f1411KQgRr5e_0.Xgtqvk_8()) - ((Xgtqvk_8) this).f1411KQgRr5e_0.XnFJ5_9();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int KQgRr5e_0() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.KNBe_11();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int Mqv2r_3(View view) {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.PGPF6hQ_2(view) - ((ViewGroup.MarginLayoutParams) ((RecyclerView.LayoutParams) view.getLayoutParams())).leftMargin;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int PGPF6hQ_2(View view) {
            RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view.getLayoutParams();
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.Mqv2r_3(view) + ((ViewGroup.MarginLayoutParams) layoutParams).topMargin + ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int QxJ9d_1() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.KNBe_11() - ((Xgtqvk_8) this).f1411KQgRr5e_0.XnFJ5_9();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int X6FRs_4(View view) {
            ((Xgtqvk_8) this).f1411KQgRr5e_0.KQgRr5e_0(view, true, ((Xgtqvk_8) this).f1410KQgRr5e_0);
            return ((Xgtqvk_8) this).f1410KQgRr5e_0.right;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int IFxWkV_5(View view) {
            ((Xgtqvk_8) this).f1411KQgRr5e_0.KQgRr5e_0(view, true, ((Xgtqvk_8) this).f1410KQgRr5e_0);
            return ((Xgtqvk_8) this).f1410KQgRr5e_0.left;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public void KQgRr5e_0(int i) {
            ((Xgtqvk_8) this).f1411KQgRr5e_0.m951QxJ9d_1(i);
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int QxJ9d_1(View view) {
            RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view.getLayoutParams();
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.X6FRs_4(view) + ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin + ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int KQgRr5e_0(View view) {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.IFxWkV_5(view) + ((ViewGroup.MarginLayoutParams) ((RecyclerView.LayoutParams) view.getLayoutParams())).rightMargin;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int Mqv2r_3() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.EuDEkJe_12();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int PGPF6hQ_2() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.XnFJ5_9();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int X6FRs_4() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.Mqv2r_3();
        }
    }

    /* compiled from: OrientationHelper.java */
    /* loaded from: classes.dex */
    public static class QxJ9d_1 extends Xgtqvk_8 {
        public QxJ9d_1(RecyclerView.YghfZG_14 yghfZG_14) {
            super(yghfZG_14, null);
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int IFxWkV_5() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.Nm6q_10();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int IMuAHx_6() {
            return (((Xgtqvk_8) this).f1411KQgRr5e_0.PGPF6hQ_2() - ((Xgtqvk_8) this).f1411KQgRr5e_0.Nm6q_10()) - ((Xgtqvk_8) this).f1411KQgRr5e_0.FSaI4_7();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int KQgRr5e_0() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.PGPF6hQ_2();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int Mqv2r_3(View view) {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.IMuAHx_6(view) - ((ViewGroup.MarginLayoutParams) ((RecyclerView.LayoutParams) view.getLayoutParams())).topMargin;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int PGPF6hQ_2(View view) {
            RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view.getLayoutParams();
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.X6FRs_4(view) + ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin + ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int QxJ9d_1() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.PGPF6hQ_2() - ((Xgtqvk_8) this).f1411KQgRr5e_0.FSaI4_7();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int X6FRs_4(View view) {
            ((Xgtqvk_8) this).f1411KQgRr5e_0.KQgRr5e_0(view, true, ((Xgtqvk_8) this).f1410KQgRr5e_0);
            return ((Xgtqvk_8) this).f1410KQgRr5e_0.bottom;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int IFxWkV_5(View view) {
            ((Xgtqvk_8) this).f1411KQgRr5e_0.KQgRr5e_0(view, true, ((Xgtqvk_8) this).f1410KQgRr5e_0);
            return ((Xgtqvk_8) this).f1410KQgRr5e_0.top;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public void KQgRr5e_0(int i) {
            ((Xgtqvk_8) this).f1411KQgRr5e_0.PGPF6hQ_2(i);
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int QxJ9d_1(View view) {
            RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view.getLayoutParams();
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.Mqv2r_3(view) + ((ViewGroup.MarginLayoutParams) layoutParams).topMargin + ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int KQgRr5e_0(View view) {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.QxJ9d_1(view) + ((ViewGroup.MarginLayoutParams) ((RecyclerView.LayoutParams) view.getLayoutParams())).bottomMargin;
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int Mqv2r_3() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.Mqv2r_3();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int PGPF6hQ_2() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.FSaI4_7();
        }

        @Override // X6FRs_4.YghfZG_14.PGPF6hQ_2.Xgtqvk_8
        public int X6FRs_4() {
            return ((Xgtqvk_8) this).f1411KQgRr5e_0.EuDEkJe_12();
        }
    }

    public /* synthetic */ Xgtqvk_8(RecyclerView.YghfZG_14 yghfZG_14, KQgRr5e_0 kQgRr5e_0) {
        this(yghfZG_14);
    }

    public static Xgtqvk_8 QxJ9d_1(RecyclerView.YghfZG_14 yghfZG_14) {
        return new QxJ9d_1(yghfZG_14);
    }

    public int FSaI4_7() {
        if (Integer.MIN_VALUE == this.KQgRr5e_0) {
            return 0;
        }
        return IMuAHx_6() - this.KQgRr5e_0;
    }

    public abstract int IFxWkV_5();

    public abstract int IFxWkV_5(View view);

    public abstract int IMuAHx_6();

    public abstract int KQgRr5e_0();

    public abstract int KQgRr5e_0(View view);

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public void m653KQgRr5e_0() {
        this.KQgRr5e_0 = IMuAHx_6();
    }

    public abstract void KQgRr5e_0(int i);

    public abstract int Mqv2r_3();

    public abstract int Mqv2r_3(View view);

    public abstract int PGPF6hQ_2();

    public abstract int PGPF6hQ_2(View view);

    public abstract int QxJ9d_1();

    public abstract int QxJ9d_1(View view);

    public abstract int X6FRs_4();

    public abstract int X6FRs_4(View view);

    public Xgtqvk_8(RecyclerView.YghfZG_14 yghfZG_14) {
        this.KQgRr5e_0 = X6FRs_4.Xgtqvk_8.KQgRr5e_0.KQgRr5e_0.INVALID_ID;
        this.f1410KQgRr5e_0 = new Rect();
        this.f1411KQgRr5e_0 = yghfZG_14;
    }

    public static Xgtqvk_8 KQgRr5e_0(RecyclerView.YghfZG_14 yghfZG_14, int i) {
        if (i != 0) {
            if (i == 1) {
                return QxJ9d_1(yghfZG_14);
            }
            throw new IllegalArgumentException("invalid orientation");
        }
        return KQgRr5e_0(yghfZG_14);
    }

    public static Xgtqvk_8 KQgRr5e_0(RecyclerView.YghfZG_14 yghfZG_14) {
        return new KQgRr5e_0(yghfZG_14);
    }
}
