package defpackage;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseIntArray;
import androidx.constraintlayout.widget.j;

/* JADX INFO: loaded from: classes.dex */
public class l35 extends m35 {
    public String e;
    public int f;
    public int g;
    public float h;
    public float i;
    public float j;
    public float k;
    public int l;

    public static class a {
        public static final SparseIntArray a;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            a = sparseIntArray;
            sparseIntArray.append(4, 1);
            sparseIntArray.append(2, 2);
            sparseIntArray.append(11, 3);
            sparseIntArray.append(0, 4);
            sparseIntArray.append(1, 5);
            sparseIntArray.append(8, 6);
            sparseIntArray.append(9, 7);
            sparseIntArray.append(3, 9);
            sparseIntArray.append(10, 8);
            sparseIntArray.append(7, 11);
            sparseIntArray.append(6, 12);
            sparseIntArray.append(5, 10);
        }
    }

    @Override // defpackage.w25
    /* JADX INFO: renamed from: a */
    public final w25 clone() {
        l35 l35Var = new l35();
        l35Var.d = -1;
        l35Var.e = null;
        l35Var.f = -1;
        l35Var.g = 0;
        l35Var.h = Float.NaN;
        l35Var.i = Float.NaN;
        l35Var.j = Float.NaN;
        l35Var.k = Float.NaN;
        l35Var.l = 0;
        super.b(this);
        l35Var.e = this.e;
        l35Var.f = this.f;
        l35Var.g = this.g;
        l35Var.h = this.h;
        l35Var.i = Float.NaN;
        l35Var.j = this.j;
        l35Var.k = this.k;
        return l35Var;
    }

    @Override // defpackage.w25
    public final void d(Context context, AttributeSet attributeSet) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, j.m.h);
        SparseIntArray sparseIntArray = a.a;
        int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
        for (int i = 0; i < indexCount; i++) {
            int index = typedArrayObtainStyledAttributes.getIndex(i);
            SparseIntArray sparseIntArray2 = a.a;
            switch (sparseIntArray2.get(index)) {
                case 1:
                    int i2 = oa6.ar;
                    if (typedArrayObtainStyledAttributes.peekValue(index).type == 3) {
                        typedArrayObtainStyledAttributes.getString(index);
                    } else {
                        this.b = typedArrayObtainStyledAttributes.getResourceId(index, this.b);
                    }
                    break;
                case 2:
                    this.a = typedArrayObtainStyledAttributes.getInt(index, this.a);
                    break;
                case 3:
                    if (typedArrayObtainStyledAttributes.peekValue(index).type == 3) {
                        this.e = typedArrayObtainStyledAttributes.getString(index);
                    } else {
                        this.e = ph2.c[typedArrayObtainStyledAttributes.getInteger(index, 0)];
                    }
                    break;
                case 4:
                    this.d = typedArrayObtainStyledAttributes.getInteger(index, this.d);
                    break;
                case 5:
                    this.g = typedArrayObtainStyledAttributes.getInt(index, this.g);
                    break;
                case 6:
                    this.j = typedArrayObtainStyledAttributes.getFloat(index, this.j);
                    break;
                case 7:
                    this.k = typedArrayObtainStyledAttributes.getFloat(index, this.k);
                    break;
                case 8:
                    float f = typedArrayObtainStyledAttributes.getFloat(index, this.i);
                    this.h = f;
                    this.i = f;
                    break;
                case 9:
                    this.l = typedArrayObtainStyledAttributes.getInt(index, this.l);
                    break;
                case 10:
                    this.f = typedArrayObtainStyledAttributes.getInt(index, this.f);
                    break;
                case 11:
                    this.h = typedArrayObtainStyledAttributes.getFloat(index, this.h);
                    break;
                case 12:
                    this.i = typedArrayObtainStyledAttributes.getFloat(index, this.i);
                    break;
                default:
                    Log.e("KeyPosition", "unused attribute 0x" + Integer.toHexString(index) + "   " + sparseIntArray2.get(index));
                    break;
            }
        }
        if (this.a == -1) {
            Log.e("KeyPosition", "no frame position");
        }
    }
}
