package o;

import android.graphics.PointF;
import android.graphics.Rect;
import android.util.Property;
import android.view.View;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Sg, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0473Sg extends Property {
    public final /* synthetic */ int a;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C0473Sg(String str, int i, Class cls) {
        super(cls, str);
        this.a = i;
    }

    @Override // android.util.Property
    public final Object get(Object obj) {
        switch (this.a) {
            case 0:
                return null;
            case 1:
                return null;
            case 2:
                return null;
            case 3:
                return null;
            case 4:
                return null;
            case 5:
                return Float.valueOf(AbstractC2362rk0.a.m((View) obj));
            default:
                return ((View) obj).getClipBounds();
        }
    }

    @Override // android.util.Property
    public final void set(Object obj, Object obj2) {
        switch (this.a) {
            case 0:
                C0551Vg c0551Vg = (C0551Vg) obj;
                PointF pointF = (PointF) obj2;
                c0551Vg.getClass();
                c0551Vg.a = Math.round(pointF.x);
                int iRound = Math.round(pointF.y);
                c0551Vg.b = iRound;
                int i = c0551Vg.f + 1;
                c0551Vg.f = i;
                if (i == c0551Vg.g) {
                    AbstractC2362rk0.a(c0551Vg.e, c0551Vg.a, iRound, c0551Vg.c, c0551Vg.d);
                    c0551Vg.f = 0;
                    c0551Vg.g = 0;
                    break;
                }
                break;
            case 1:
                C0551Vg c0551Vg2 = (C0551Vg) obj;
                PointF pointF2 = (PointF) obj2;
                c0551Vg2.getClass();
                c0551Vg2.c = Math.round(pointF2.x);
                int iRound2 = Math.round(pointF2.y);
                c0551Vg2.d = iRound2;
                int i2 = c0551Vg2.g + 1;
                c0551Vg2.g = i2;
                if (c0551Vg2.f == i2) {
                    AbstractC2362rk0.a(c0551Vg2.e, c0551Vg2.a, c0551Vg2.b, c0551Vg2.c, iRound2);
                    c0551Vg2.f = 0;
                    c0551Vg2.g = 0;
                    break;
                }
                break;
            case 2:
                View view = (View) obj;
                PointF pointF3 = (PointF) obj2;
                AbstractC2362rk0.a(view, view.getLeft(), view.getTop(), Math.round(pointF3.x), Math.round(pointF3.y));
                break;
            case 3:
                View view2 = (View) obj;
                PointF pointF4 = (PointF) obj2;
                AbstractC2362rk0.a(view2, Math.round(pointF4.x), Math.round(pointF4.y), view2.getRight(), view2.getBottom());
                break;
            case 4:
                View view3 = (View) obj;
                PointF pointF5 = (PointF) obj2;
                int iRound3 = Math.round(pointF5.x);
                int iRound4 = Math.round(pointF5.y);
                AbstractC2362rk0.a(view3, iRound3, iRound4, view3.getWidth() + iRound3, view3.getHeight() + iRound4);
                break;
            case 5:
                float fFloatValue = ((Float) obj2).floatValue();
                AbstractC2362rk0.a.v((View) obj, fFloatValue);
                break;
            default:
                ((View) obj).setClipBounds((Rect) obj2);
                break;
        }
    }
}
