package androidx.constraintlayout.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import defpackage.AbstractC4329;
import defpackage.AbstractC4444;
import defpackage.C2622;
import defpackage.C3556;

/* JADX INFO: loaded from: classes3.dex */
public class Barrier extends AbstractC4444 {

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public int f261;

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public C3556 f262;

    /* JADX INFO: 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.f262.f13621;
    }

    public int getMargin() {
        return this.f262.f13622;
    }

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

    public void setAllowsGoneWidget(boolean z) {
        this.f262.f13621 = z;
    }

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

    public void setMargin(int i) {
        this.f262.f13622 = i;
    }

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

    @Override // defpackage.AbstractC4444
    /* JADX INFO: renamed from: ˊᵫᵗ */
    public final void mo63(AttributeSet attributeSet) {
        super.mo63(attributeSet);
        C3556 c3556 = new C3556();
        c3556.f13623 = 0;
        c3556.f13621 = true;
        c3556.f13622 = 0;
        c3556.f13624 = false;
        this.f262 = c3556;
        if (attributeSet != null) {
            TypedArray typedArrayObtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, AbstractC4329.f16476);
            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.f262.f13621 = typedArrayObtainStyledAttributes.getBoolean(index, true);
                } else if (index == 27) {
                    this.f262.f13622 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
        this.f16949 = this.f262;
        m9458();
    }

    @Override // defpackage.AbstractC4444
    /* JADX INFO: renamed from: ᵻʽᵯ */
    public final void mo65(C2622 c2622, boolean z) {
        int i = this.f261;
        this.f263 = i;
        if (z) {
            if (i == 5) {
                this.f263 = 1;
            } else if (i == 6) {
                this.f263 = 0;
            }
        } else if (i == 5) {
            this.f263 = 0;
        } else if (i == 6) {
            this.f263 = 1;
        }
        if (c2622 instanceof C3556) {
            ((C3556) c2622).f13623 = this.f263;
        }
    }
}
