package ῲ.ⁱ.K.ῲ;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseIntArray;
import androidx.constraintlayout.motion.widget.MotionLayout;
import androidx.constraintlayout.widget.R$styleable;
import java.util.HashMap;
import ඓ.K.K.K.C1293;
import ῲ.ⁱ.K.K.C2184;

/* renamed from: ῲ.ⁱ.K.ῲ.ᨨ  reason: contains not printable characters */
/* compiled from: KeyPosition */
public class C2137 extends AbstractC2162 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public float f7467 = Float.NaN;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public float f7468 = Float.NaN;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public float f7469 = Float.NaN;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public int f7470 = -1;

    /* renamed from: 㑃  reason: contains not printable characters */
    public float f7471 = Float.NaN;

    /* renamed from: 㗗  reason: contains not printable characters */
    public int f7472 = 0;

    /* renamed from: 㳳  reason: contains not printable characters */
    public float f7473 = Float.NaN;

    /* renamed from: 㴹  reason: contains not printable characters */
    public String f7474 = null;

    /* renamed from: 㿎  reason: contains not printable characters */
    public int f7475 = 0;

    /* renamed from: 䁗  reason: contains not printable characters */
    public float f7476 = Float.NaN;

    /* renamed from: ῲ.ⁱ.K.ῲ.ᨨ$K  reason: contains not printable characters */
    /* compiled from: KeyPosition */
    public static class C2138 {

        /* renamed from: K  reason: contains not printable characters */
        public static SparseIntArray f7477 = new SparseIntArray();

        static {
            f7477.append(R$styleable.KeyPosition_motionTarget, 1);
            f7477.append(R$styleable.KeyPosition_framePosition, 2);
            f7477.append(R$styleable.KeyPosition_transitionEasing, 3);
            f7477.append(R$styleable.KeyPosition_curveFit, 4);
            f7477.append(R$styleable.KeyPosition_drawPath, 5);
            f7477.append(R$styleable.KeyPosition_percentX, 6);
            f7477.append(R$styleable.KeyPosition_percentY, 7);
            f7477.append(R$styleable.KeyPosition_keyPositionType, 9);
            f7477.append(R$styleable.KeyPosition_sizePercent, 8);
            f7477.append(R$styleable.KeyPosition_percentWidth, 11);
            f7477.append(R$styleable.KeyPosition_percentHeight, 12);
            f7477.append(R$styleable.KeyPosition_pathMotionArc, 10);
        }

        /* renamed from: K  reason: contains not printable characters */
        public static /* synthetic */ void m5657(C2137 r8, TypedArray typedArray) {
            int indexCount = typedArray.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = typedArray.getIndex(i);
                switch (f7477.get(index)) {
                    case 1:
                        if (!MotionLayout.f691) {
                            if (typedArray.peekValue(index).type == 3) {
                                r8.f7329 = typedArray.getString(index);
                                break;
                            } else {
                                r8.f7330 = typedArray.getResourceId(index, r8.f7330);
                                break;
                            }
                        } else {
                            r8.f7330 = typedArray.getResourceId(index, r8.f7330);
                            if (r8.f7330 == -1) {
                                r8.f7329 = typedArray.getString(index);
                                break;
                            } else {
                                break;
                            }
                        }
                    case 2:
                        r8.f7331 = typedArray.getInt(index, r8.f7331);
                        break;
                    case 3:
                        if (typedArray.peekValue(index).type == 3) {
                            r8.f7474 = typedArray.getString(index);
                            break;
                        } else {
                            r8.f7474 = C2184.f7594[typedArray.getInteger(index, 0)];
                            break;
                        }
                    case 4:
                        r8.f7520 = typedArray.getInteger(index, r8.f7520);
                        break;
                    case 5:
                        r8.f7475 = typedArray.getInt(index, r8.f7475);
                        break;
                    case 6:
                        r8.f7468 = typedArray.getFloat(index, r8.f7468);
                        break;
                    case 7:
                        r8.f7471 = typedArray.getFloat(index, r8.f7471);
                        break;
                    case 8:
                        float f = typedArray.getFloat(index, r8.f7473);
                        r8.f7469 = f;
                        r8.f7473 = f;
                        break;
                    case 9:
                        r8.f7472 = typedArray.getInt(index, r8.f7472);
                        break;
                    case 10:
                        r8.f7470 = typedArray.getInt(index, r8.f7470);
                        break;
                    case 11:
                        r8.f7469 = typedArray.getFloat(index, r8.f7469);
                        break;
                    case 12:
                        r8.f7473 = typedArray.getFloat(index, r8.f7473);
                        break;
                    default:
                        StringBuilder r4 = C1293.m3416("unused attribute 0x");
                        r4.append(Integer.toHexString(index));
                        r4.append("   ");
                        r4.append(f7477.get(index));
                        Log.e("KeyPosition", r4.toString());
                        break;
                }
            }
            if (r8.f7331 == -1) {
                Log.e("KeyPosition", "no frame position");
            }
        }
    }

    @Override // ῲ.ⁱ.K.ῲ.AbstractC2109
    /* renamed from: K  reason: contains not printable characters */
    public void m5655(Context context, AttributeSet attributeSet) {
        C2138.m5657(this, context.obtainStyledAttributes(attributeSet, R$styleable.KeyPosition));
    }

    @Override // ῲ.ⁱ.K.ῲ.AbstractC2109
    /* renamed from: K  reason: contains not printable characters */
    public void m5656(HashMap<String, AbstractC2113> hashMap) {
    }
}
