package a0;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.SparseIntArray;
import androidx.constraintlayout.motion.widget.MotionLayout;
import java.util.HashMap;
import java.util.HashSet;

/* JADX INFO: loaded from: classes.dex */
public final class j extends c {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f103e = -1;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public String f104f = null;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public int f105g = -1;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f106h = 0;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public float f107i = Float.NaN;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public float f108j = Float.NaN;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public float f109k = Float.NaN;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public float f110l = Float.NaN;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public float f111m = Float.NaN;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public float f112n = Float.NaN;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public int f113o = 0;

    @Override // a0.c
    public final void a(HashMap map) {
    }

    @Override // a0.c
    /* JADX INFO: renamed from: b */
    public final c clone() {
        j jVar = new j();
        super.c(this);
        jVar.f104f = this.f104f;
        jVar.f105g = this.f105g;
        jVar.f106h = this.f106h;
        jVar.f107i = this.f107i;
        jVar.f108j = Float.NaN;
        jVar.f109k = this.f109k;
        jVar.f110l = this.f110l;
        jVar.f111m = this.f111m;
        jVar.f112n = this.f112n;
        return jVar;
    }

    @Override // a0.c
    public final /* bridge */ /* synthetic */ void d(HashSet hashSet) {
    }

    @Override // a0.c
    public final void e(Context context, AttributeSet attributeSet) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, androidx.constraintlayout.widget.s.KeyPosition);
        SparseIntArray sparseIntArray = i.f102a;
        int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
        for (int i10 = 0; i10 < indexCount; i10++) {
            int index = typedArrayObtainStyledAttributes.getIndex(i10);
            SparseIntArray sparseIntArray2 = i.f102a;
            switch (sparseIntArray2.get(index)) {
                case 1:
                    if (MotionLayout.f1093g1) {
                        int resourceId = typedArrayObtainStyledAttributes.getResourceId(index, this.f27b);
                        this.f27b = resourceId;
                        if (resourceId == -1) {
                            this.f28c = typedArrayObtainStyledAttributes.getString(index);
                        }
                    } else if (typedArrayObtainStyledAttributes.peekValue(index).type == 3) {
                        this.f28c = typedArrayObtainStyledAttributes.getString(index);
                    } else {
                        this.f27b = typedArrayObtainStyledAttributes.getResourceId(index, this.f27b);
                    }
                    break;
                case 2:
                    this.f26a = typedArrayObtainStyledAttributes.getInt(index, this.f26a);
                    break;
                case 3:
                    if (typedArrayObtainStyledAttributes.peekValue(index).type == 3) {
                        this.f104f = typedArrayObtainStyledAttributes.getString(index);
                    } else {
                        this.f104f = v.f.f33567c[typedArrayObtainStyledAttributes.getInteger(index, 0)];
                    }
                    break;
                case 4:
                    this.f103e = typedArrayObtainStyledAttributes.getInteger(index, this.f103e);
                    break;
                case 5:
                    this.f106h = typedArrayObtainStyledAttributes.getInt(index, this.f106h);
                    break;
                case 6:
                    this.f109k = typedArrayObtainStyledAttributes.getFloat(index, this.f109k);
                    break;
                case 7:
                    this.f110l = typedArrayObtainStyledAttributes.getFloat(index, this.f110l);
                    break;
                case 8:
                    float f10 = typedArrayObtainStyledAttributes.getFloat(index, this.f108j);
                    this.f107i = f10;
                    this.f108j = f10;
                    break;
                case 9:
                    this.f113o = typedArrayObtainStyledAttributes.getInt(index, this.f113o);
                    break;
                case 10:
                    this.f105g = typedArrayObtainStyledAttributes.getInt(index, this.f105g);
                    break;
                case 11:
                    this.f107i = typedArrayObtainStyledAttributes.getFloat(index, this.f107i);
                    break;
                case 12:
                    this.f108j = typedArrayObtainStyledAttributes.getFloat(index, this.f108j);
                    break;
                default:
                    Integer.toHexString(index);
                    sparseIntArray2.get(index);
                    break;
            }
        }
    }

    public final void h(Object obj, String str) {
        switch (str) {
            case "transitionEasing":
                this.f104f = obj.toString();
                break;
            case "percentWidth":
                this.f107i = c.g((Number) obj);
                break;
            case "percentHeight":
                this.f108j = c.g((Number) obj);
                break;
            case "drawPath":
                Number number = (Number) obj;
                this.f106h = number instanceof Integer ? ((Integer) number).intValue() : Integer.parseInt(number.toString());
                break;
            case "sizePercent":
                float fG = c.g((Number) obj);
                this.f107i = fG;
                this.f108j = fG;
                break;
            case "percentX":
                this.f109k = c.g((Number) obj);
                break;
            case "percentY":
                this.f110l = c.g((Number) obj);
                break;
        }
    }
}
