package o;

import android.graphics.Rect;
import android.view.View;
import android.view.ViewGroup;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class PU extends AbstractC1624jv {
    public final /* synthetic */ int d;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ PU(AbstractC1157f10 abstractC1157f10, int i) {
        super(abstractC1157f10);
        this.d = i;
    }

    @Override // o.AbstractC1624jv
    public final int b(View view) {
        int right;
        int i;
        switch (this.d) {
            case 0:
                C1253g10 c1253g10 = (C1253g10) view.getLayoutParams();
                ((AbstractC1157f10) this.b).getClass();
                right = view.getRight() + ((C1253g10) view.getLayoutParams()).b.right;
                i = ((ViewGroup.MarginLayoutParams) c1253g10).rightMargin;
                break;
            default:
                C1253g10 c1253g102 = (C1253g10) view.getLayoutParams();
                ((AbstractC1157f10) this.b).getClass();
                right = view.getBottom() + ((C1253g10) view.getLayoutParams()).b.bottom;
                i = ((ViewGroup.MarginLayoutParams) c1253g102).bottomMargin;
                break;
        }
        return right + i;
    }

    @Override // o.AbstractC1624jv
    public final int c(View view) {
        int iA;
        int i;
        switch (this.d) {
            case 0:
                C1253g10 c1253g10 = (C1253g10) view.getLayoutParams();
                ((AbstractC1157f10) this.b).getClass();
                iA = AbstractC1157f10.A(view) + ((ViewGroup.MarginLayoutParams) c1253g10).leftMargin;
                i = ((ViewGroup.MarginLayoutParams) c1253g10).rightMargin;
                break;
            default:
                C1253g10 c1253g102 = (C1253g10) view.getLayoutParams();
                ((AbstractC1157f10) this.b).getClass();
                iA = AbstractC1157f10.z(view) + ((ViewGroup.MarginLayoutParams) c1253g102).topMargin;
                i = ((ViewGroup.MarginLayoutParams) c1253g102).bottomMargin;
                break;
        }
        return iA + i;
    }

    @Override // o.AbstractC1624jv
    public final int d(View view) {
        int iZ;
        int i;
        switch (this.d) {
            case 0:
                C1253g10 c1253g10 = (C1253g10) view.getLayoutParams();
                ((AbstractC1157f10) this.b).getClass();
                iZ = AbstractC1157f10.z(view) + ((ViewGroup.MarginLayoutParams) c1253g10).topMargin;
                i = ((ViewGroup.MarginLayoutParams) c1253g10).bottomMargin;
                break;
            default:
                C1253g10 c1253g102 = (C1253g10) view.getLayoutParams();
                ((AbstractC1157f10) this.b).getClass();
                iZ = AbstractC1157f10.A(view) + ((ViewGroup.MarginLayoutParams) c1253g102).leftMargin;
                i = ((ViewGroup.MarginLayoutParams) c1253g102).rightMargin;
                break;
        }
        return iZ + i;
    }

    @Override // o.AbstractC1624jv
    public final int e(View view) {
        int left;
        int i;
        switch (this.d) {
            case 0:
                C1253g10 c1253g10 = (C1253g10) view.getLayoutParams();
                ((AbstractC1157f10) this.b).getClass();
                left = view.getLeft() - ((C1253g10) view.getLayoutParams()).b.left;
                i = ((ViewGroup.MarginLayoutParams) c1253g10).leftMargin;
                break;
            default:
                C1253g10 c1253g102 = (C1253g10) view.getLayoutParams();
                ((AbstractC1157f10) this.b).getClass();
                left = view.getTop() - ((C1253g10) view.getLayoutParams()).b.top;
                i = ((ViewGroup.MarginLayoutParams) c1253g102).topMargin;
                break;
        }
        return left - i;
    }

    @Override // o.AbstractC1624jv
    public final int f() {
        switch (this.d) {
            case 0:
                return ((AbstractC1157f10) this.b).n;
            default:
                return ((AbstractC1157f10) this.b).f519o;
        }
    }

    @Override // o.AbstractC1624jv
    public final int g() {
        int i;
        int iF;
        switch (this.d) {
            case 0:
                AbstractC1157f10 abstractC1157f10 = (AbstractC1157f10) this.b;
                i = abstractC1157f10.n;
                iF = abstractC1157f10.F();
                break;
            default:
                AbstractC1157f10 abstractC1157f102 = (AbstractC1157f10) this.b;
                i = abstractC1157f102.f519o;
                iF = abstractC1157f102.D();
                break;
        }
        return i - iF;
    }

    @Override // o.AbstractC1624jv
    public final int h() {
        switch (this.d) {
            case 0:
                return ((AbstractC1157f10) this.b).F();
            default:
                return ((AbstractC1157f10) this.b).D();
        }
    }

    @Override // o.AbstractC1624jv
    public final int i() {
        switch (this.d) {
            case 0:
                return ((AbstractC1157f10) this.b).l;
            default:
                return ((AbstractC1157f10) this.b).m;
        }
    }

    @Override // o.AbstractC1624jv
    public final int j() {
        switch (this.d) {
            case 0:
                return ((AbstractC1157f10) this.b).m;
            default:
                return ((AbstractC1157f10) this.b).l;
        }
    }

    @Override // o.AbstractC1624jv
    public final int k() {
        switch (this.d) {
            case 0:
                return ((AbstractC1157f10) this.b).E();
            default:
                return ((AbstractC1157f10) this.b).G();
        }
    }

    @Override // o.AbstractC1624jv
    public final int l() {
        int iE;
        int iF;
        switch (this.d) {
            case 0:
                AbstractC1157f10 abstractC1157f10 = (AbstractC1157f10) this.b;
                iE = abstractC1157f10.n - abstractC1157f10.E();
                iF = abstractC1157f10.F();
                break;
            default:
                AbstractC1157f10 abstractC1157f102 = (AbstractC1157f10) this.b;
                iE = abstractC1157f102.f519o - abstractC1157f102.G();
                iF = abstractC1157f102.D();
                break;
        }
        return iE - iF;
    }

    @Override // o.AbstractC1624jv
    public final int m(View view) {
        switch (this.d) {
            case 0:
                AbstractC1157f10 abstractC1157f10 = (AbstractC1157f10) this.b;
                Rect rect = (Rect) this.c;
                abstractC1157f10.K(view, rect);
                return rect.right;
            default:
                AbstractC1157f10 abstractC1157f102 = (AbstractC1157f10) this.b;
                Rect rect2 = (Rect) this.c;
                abstractC1157f102.K(view, rect2);
                return rect2.bottom;
        }
    }

    @Override // o.AbstractC1624jv
    public final int n(View view) {
        switch (this.d) {
            case 0:
                AbstractC1157f10 abstractC1157f10 = (AbstractC1157f10) this.b;
                Rect rect = (Rect) this.c;
                abstractC1157f10.K(view, rect);
                return rect.left;
            default:
                AbstractC1157f10 abstractC1157f102 = (AbstractC1157f10) this.b;
                Rect rect2 = (Rect) this.c;
                abstractC1157f102.K(view, rect2);
                return rect2.top;
        }
    }

    @Override // o.AbstractC1624jv
    public final void o(int i) {
        switch (this.d) {
            case 0:
                ((AbstractC1157f10) this.b).O(i);
                break;
            default:
                ((AbstractC1157f10) this.b).P(i);
                break;
        }
    }
}
