package p037.p058.p064;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import androidx.constraintlayout.widget.Barrier;
import androidx.constraintlayout.widget.ConstraintLayout;
import p037.p058.p064.C1779;

/* JADX INFO: renamed from: މ.ނ.ހ.ނ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1785 extends ViewGroup {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public C1779 f6019;

    /* JADX INFO: renamed from: މ.ނ.ހ.ނ$֏, reason: contains not printable characters */
    public static class C1786 extends ConstraintLayout.C0075 {

        /* JADX INFO: renamed from: ၚ, reason: contains not printable characters */
        public float f6020;

        /* JADX INFO: renamed from: ၛ, reason: contains not printable characters */
        public boolean f6021;

        /* JADX INFO: renamed from: ၜ, reason: contains not printable characters */
        public float f6022;

        /* JADX INFO: renamed from: ၝ, reason: contains not printable characters */
        public float f6023;

        /* JADX INFO: renamed from: ၡ, reason: contains not printable characters */
        public float f6024;

        /* JADX INFO: renamed from: ၥ, reason: contains not printable characters */
        public float f6025;

        /* JADX INFO: renamed from: ၦ, reason: contains not printable characters */
        public float f6026;

        /* JADX INFO: renamed from: ၮ, reason: contains not printable characters */
        public float f6027;

        /* JADX INFO: renamed from: ၯ, reason: contains not printable characters */
        public float f6028;

        /* JADX INFO: renamed from: ၰ, reason: contains not printable characters */
        public float f6029;

        /* JADX INFO: renamed from: ၵ, reason: contains not printable characters */
        public float f6030;

        /* JADX INFO: renamed from: ၶ, reason: contains not printable characters */
        public float f6031;

        /* JADX INFO: renamed from: ၷ, reason: contains not printable characters */
        public float f6032;

        public C1786(int i, int i2) {
            super(i, i2);
            this.f6020 = 1.0f;
            this.f6021 = false;
            this.f6022 = 0.0f;
            this.f6023 = 0.0f;
            this.f6024 = 0.0f;
            this.f6025 = 0.0f;
            this.f6026 = 1.0f;
            this.f6027 = 1.0f;
            this.f6028 = 0.0f;
            this.f6029 = 0.0f;
            this.f6030 = 0.0f;
            this.f6031 = 0.0f;
            this.f6032 = 0.0f;
        }

        public C1786(Context context, AttributeSet attributeSet) {
            super(context, attributeSet);
            this.f6020 = 1.0f;
            this.f6021 = false;
            this.f6022 = 0.0f;
            this.f6023 = 0.0f;
            this.f6024 = 0.0f;
            this.f6025 = 0.0f;
            this.f6026 = 1.0f;
            this.f6027 = 1.0f;
            this.f6028 = 0.0f;
            this.f6029 = 0.0f;
            this.f6030 = 0.0f;
            this.f6031 = 0.0f;
            this.f6032 = 0.0f;
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C1790.ConstraintSet);
            int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = typedArrayObtainStyledAttributes.getIndex(i);
                if (index == C1790.ConstraintSet_android_alpha) {
                    this.f6020 = typedArrayObtainStyledAttributes.getFloat(index, this.f6020);
                } else if (index == C1790.ConstraintSet_android_elevation) {
                    this.f6022 = typedArrayObtainStyledAttributes.getFloat(index, this.f6022);
                    this.f6021 = true;
                } else if (index == C1790.ConstraintSet_android_rotationX) {
                    this.f6024 = typedArrayObtainStyledAttributes.getFloat(index, this.f6024);
                } else if (index == C1790.ConstraintSet_android_rotationY) {
                    this.f6025 = typedArrayObtainStyledAttributes.getFloat(index, this.f6025);
                } else if (index == C1790.ConstraintSet_android_rotation) {
                    this.f6023 = typedArrayObtainStyledAttributes.getFloat(index, this.f6023);
                } else if (index == C1790.ConstraintSet_android_scaleX) {
                    this.f6026 = typedArrayObtainStyledAttributes.getFloat(index, this.f6026);
                } else if (index == C1790.ConstraintSet_android_scaleY) {
                    this.f6027 = typedArrayObtainStyledAttributes.getFloat(index, this.f6027);
                } else if (index == C1790.ConstraintSet_android_transformPivotX) {
                    this.f6028 = typedArrayObtainStyledAttributes.getFloat(index, this.f6028);
                } else if (index == C1790.ConstraintSet_android_transformPivotY) {
                    this.f6029 = typedArrayObtainStyledAttributes.getFloat(index, this.f6029);
                } else if (index == C1790.ConstraintSet_android_translationX) {
                    this.f6030 = typedArrayObtainStyledAttributes.getFloat(index, this.f6030);
                } else if (index == C1790.ConstraintSet_android_translationY) {
                    this.f6031 = typedArrayObtainStyledAttributes.getFloat(index, this.f6031);
                } else if (index == C1790.ConstraintSet_android_translationZ) {
                    this.f6032 = typedArrayObtainStyledAttributes.getFloat(index, this.f6032);
                }
            }
        }
    }

    @Override // android.view.ViewGroup
    public ViewGroup.LayoutParams generateDefaultLayoutParams() {
        return new C1786(-2, -2);
    }

    @Override // android.view.ViewGroup
    public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
        return new C1786(getContext(), attributeSet);
    }

    @Override // android.view.ViewGroup
    public ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return new ConstraintLayout.C0075(layoutParams);
    }

    public C1779 getConstraintSet() {
        if (this.f6019 == null) {
            this.f6019 = new C1779();
        }
        C1779 c1779 = this.f6019;
        if (c1779 == null) {
            throw null;
        }
        int childCount = getChildCount();
        c1779.f5922.clear();
        for (int i = 0; i < childCount; i++) {
            View childAt = getChildAt(i);
            C1786 c1786 = (C1786) childAt.getLayoutParams();
            int id = childAt.getId();
            if (c1779.f5921 && id == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
            if (!c1779.f5922.containsKey(Integer.valueOf(id))) {
                c1779.f5922.put(Integer.valueOf(id), new C1779.C1780());
            }
            C1779.C1780 c1780 = c1779.f5922.get(Integer.valueOf(id));
            if (childAt instanceof AbstractC1775) {
                AbstractC1775 abstractC1775 = (AbstractC1775) childAt;
                c1780.m3534(id, c1786);
                if (abstractC1775 instanceof Barrier) {
                    C1779.C1781 c1781 = c1780.f5926;
                    c1781.f5985 = 1;
                    Barrier barrier = (Barrier) abstractC1775;
                    c1781.f5983 = barrier.getType();
                    c1780.f5926.f5986 = barrier.getReferencedIds();
                    c1780.f5926.f5984 = barrier.getMargin();
                }
            }
            c1780.m3534(id, c1786);
        }
        return this.f6019;
    }

    @Override // android.view.ViewGroup, android.view.View
    public void onLayout(boolean z, int i, int i2, int i3, int i4) {
    }
}
