package androidx.constraintlayout.widget;

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

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

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

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

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

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

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

    public final void a(Context context, AttributeSet attributeSet) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, s.PropertySet);
        this.f1452a = true;
        int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
        for (int i10 = 0; i10 < indexCount; i10++) {
            int index = typedArrayObtainStyledAttributes.getIndex(i10);
            if (index == s.PropertySet_android_alpha) {
                this.f1455d = typedArrayObtainStyledAttributes.getFloat(index, this.f1455d);
            } else if (index == s.PropertySet_android_visibility) {
                int i11 = typedArrayObtainStyledAttributes.getInt(index, this.f1453b);
                this.f1453b = i11;
                this.f1453b = o.f1472h[i11];
            } else if (index == s.PropertySet_visibilityMode) {
                this.f1454c = typedArrayObtainStyledAttributes.getInt(index, this.f1454c);
            } else if (index == s.PropertySet_motionProgress) {
                this.f1456e = typedArrayObtainStyledAttributes.getFloat(index, this.f1456e);
            }
        }
        typedArrayObtainStyledAttributes.recycle();
    }
}
