package androidx.constraintlayout.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import defpackage.AbstractC3075;
import defpackage.AbstractC3962;
import defpackage.C0425;
import defpackage.C3009;

/* loaded from: classes3.dex */
public class Barrier extends AbstractC3075 {

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public C3009 f261;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public int f262;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public int f263;

    public Barrier(Context context) {
        super(context);
        super.setVisibility(8);
    }

    public Barrier(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        super.setVisibility(8);
    }

    public Barrier(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        super.setVisibility(8);
    }

    public boolean getAllowsGoneWidget() {
        return this.f261.f11594;
    }

    public int getMargin() {
        return this.f261.f11592;
    }

    public int getType() {
        return this.f263;
    }

    public void setAllowsGoneWidget(boolean z) {
        this.f261.f11594 = z;
    }

    public void setDpMargin(int i) {
        this.f261.f11592 = (int) ((i * getResources().getDisplayMetrics().density) + 0.5f);
    }

    public void setMargin(int i) {
        this.f261.f11592 = i;
    }

    public void setType(int i) {
        this.f263 = i;
    }

    @Override // defpackage.AbstractC3075
    /* renamed from: ᵝᵵᵺ */
    public final void mo64(C0425 c0425, boolean z) {
        int i = this.f263;
        this.f262 = i;
        if (z) {
            if (i == 5) {
                this.f262 = 1;
            } else if (i == 6) {
                this.f262 = 0;
            }
        } else if (i == 5) {
            this.f262 = 0;
        } else if (i == 6) {
            this.f262 = 1;
        }
        if (c0425 instanceof C3009) {
            ((C3009) c0425).f11591 = this.f262;
        }
    }

    @Override // defpackage.AbstractC3075
    /* renamed from: ᵹᵝᵶ */
    public final void mo65(AttributeSet attributeSet) {
        super.mo65(attributeSet);
        C3009 c3009 = new C3009();
        c3009.f11591 = 0;
        c3009.f11594 = true;
        c3009.f11592 = 0;
        c3009.f11593 = false;
        this.f261 = c3009;
        if (attributeSet != null) {
            TypedArray typedArrayObtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, AbstractC3962.f14949);
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i);
                if (index == 26) {
                    setType(typedArrayObtainStyledAttributes.getInt(index, 0));
                } else if (index == 25) {
                    this.f261.f11594 = typedArrayObtainStyledAttributes.getBoolean(index, true);
                } else if (index == 27) {
                    this.f261.f11592 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
        this.f11756 = this.f261;
        m7406();
    }
}
