package androidx.constraintlayout.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.SparseIntArray;

/* JADX INFO: loaded from: classes.dex */
public final class n {

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public static final SparseIntArray f1457o;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public boolean f1458a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public float f1459b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public float f1460c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public float f1461d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public float f1462e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public float f1463f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public float f1464g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public float f1465h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public int f1466i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public float f1467j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public float f1468k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public float f1469l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public boolean f1470m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public float f1471n;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        f1457o = sparseIntArray;
        sparseIntArray.append(s.Transform_android_rotation, 1);
        sparseIntArray.append(s.Transform_android_rotationX, 2);
        sparseIntArray.append(s.Transform_android_rotationY, 3);
        sparseIntArray.append(s.Transform_android_scaleX, 4);
        sparseIntArray.append(s.Transform_android_scaleY, 5);
        sparseIntArray.append(s.Transform_android_transformPivotX, 6);
        sparseIntArray.append(s.Transform_android_transformPivotY, 7);
        sparseIntArray.append(s.Transform_android_translationX, 8);
        sparseIntArray.append(s.Transform_android_translationY, 9);
        sparseIntArray.append(s.Transform_android_translationZ, 10);
        sparseIntArray.append(s.Transform_android_elevation, 11);
        sparseIntArray.append(s.Transform_transformPivotTarget, 12);
    }

    public final void a(n nVar) {
        this.f1458a = nVar.f1458a;
        this.f1459b = nVar.f1459b;
        this.f1460c = nVar.f1460c;
        this.f1461d = nVar.f1461d;
        this.f1462e = nVar.f1462e;
        this.f1463f = nVar.f1463f;
        this.f1464g = nVar.f1464g;
        this.f1465h = nVar.f1465h;
        this.f1466i = nVar.f1466i;
        this.f1467j = nVar.f1467j;
        this.f1468k = nVar.f1468k;
        this.f1469l = nVar.f1469l;
        this.f1470m = nVar.f1470m;
        this.f1471n = nVar.f1471n;
    }

    public final void b(Context context, AttributeSet attributeSet) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, s.Transform);
        this.f1458a = true;
        int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
        for (int i10 = 0; i10 < indexCount; i10++) {
            int index = typedArrayObtainStyledAttributes.getIndex(i10);
            switch (f1457o.get(index)) {
                case 1:
                    this.f1459b = typedArrayObtainStyledAttributes.getFloat(index, this.f1459b);
                    break;
                case 2:
                    this.f1460c = typedArrayObtainStyledAttributes.getFloat(index, this.f1460c);
                    break;
                case 3:
                    this.f1461d = typedArrayObtainStyledAttributes.getFloat(index, this.f1461d);
                    break;
                case 4:
                    this.f1462e = typedArrayObtainStyledAttributes.getFloat(index, this.f1462e);
                    break;
                case 5:
                    this.f1463f = typedArrayObtainStyledAttributes.getFloat(index, this.f1463f);
                    break;
                case 6:
                    this.f1464g = typedArrayObtainStyledAttributes.getDimension(index, this.f1464g);
                    break;
                case 7:
                    this.f1465h = typedArrayObtainStyledAttributes.getDimension(index, this.f1465h);
                    break;
                case 8:
                    this.f1467j = typedArrayObtainStyledAttributes.getDimension(index, this.f1467j);
                    break;
                case 9:
                    this.f1468k = typedArrayObtainStyledAttributes.getDimension(index, this.f1468k);
                    break;
                case 10:
                    this.f1469l = typedArrayObtainStyledAttributes.getDimension(index, this.f1469l);
                    break;
                case 11:
                    this.f1470m = true;
                    this.f1471n = typedArrayObtainStyledAttributes.getDimension(index, this.f1471n);
                    break;
                case 12:
                    this.f1466i = o.l(typedArrayObtainStyledAttributes, index, this.f1466i);
                    break;
            }
        }
        typedArrayObtainStyledAttributes.recycle();
    }
}
