package androidx.constraintlayout.helper.widget;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import defpackage.AbstractC1282;
import defpackage.AbstractC3962;
import defpackage.C0425;
import defpackage.C4267;
import defpackage.C4753;
import java.util.ArrayList;

/* loaded from: classes3.dex */
public class Flow extends AbstractC1282 {

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

    public Flow(Context context) {
        super(context);
    }

    public Flow(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    public Flow(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
    }

    @Override // defpackage.AbstractC3075, android.view.View
    public final void onMeasure(int i, int i2) {
        mo63(this.f260, i, i2);
    }

    public void setFirstHorizontalBias(float f) {
        this.f260.f17619 = f;
        requestLayout();
    }

    public void setFirstHorizontalStyle(int i) {
        this.f260.f17621 = i;
        requestLayout();
    }

    public void setFirstVerticalBias(float f) {
        this.f260.f17651 = f;
        requestLayout();
    }

    public void setFirstVerticalStyle(int i) {
        this.f260.f17641 = i;
        requestLayout();
    }

    public void setHorizontalAlign(int i) {
        this.f260.f17648 = i;
        requestLayout();
    }

    public void setHorizontalBias(float f) {
        this.f260.f17634 = f;
        requestLayout();
    }

    public void setHorizontalGap(int i) {
        this.f260.f17616 = i;
        requestLayout();
    }

    public void setHorizontalStyle(int i) {
        this.f260.f17638 = i;
        requestLayout();
    }

    public void setLastHorizontalBias(float f) {
        this.f260.f17630 = f;
        requestLayout();
    }

    public void setLastHorizontalStyle(int i) {
        this.f260.f17639 = i;
        requestLayout();
    }

    public void setLastVerticalBias(float f) {
        this.f260.f17632 = f;
        requestLayout();
    }

    public void setLastVerticalStyle(int i) {
        this.f260.f17628 = i;
        requestLayout();
    }

    public void setMaxElementsWrap(int i) {
        this.f260.f17642 = i;
        requestLayout();
    }

    public void setOrientation(int i) {
        this.f260.f17636 = i;
        requestLayout();
    }

    public void setPadding(int i) {
        C4753 c4753 = this.f260;
        c4753.f17617 = i;
        c4753.f17650 = i;
        c4753.f17627 = i;
        c4753.f17649 = i;
        requestLayout();
    }

    public void setPaddingBottom(int i) {
        this.f260.f17650 = i;
        requestLayout();
    }

    public void setPaddingLeft(int i) {
        this.f260.f17624 = i;
        requestLayout();
    }

    public void setPaddingRight(int i) {
        this.f260.f17647 = i;
        requestLayout();
    }

    public void setPaddingTop(int i) {
        this.f260.f17617 = i;
        requestLayout();
    }

    public void setVerticalAlign(int i) {
        this.f260.f17644 = i;
        requestLayout();
    }

    public void setVerticalBias(float f) {
        this.f260.f17640 = f;
        requestLayout();
    }

    public void setVerticalGap(int i) {
        this.f260.f17631 = i;
        requestLayout();
    }

    public void setVerticalStyle(int i) {
        this.f260.f17637 = i;
        requestLayout();
    }

    public void setWrapMode(int i) {
        this.f260.f17643 = i;
        requestLayout();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:387:0x0686  */
    /* JADX WARN: Removed duplicated region for block: B:39:0x00c9  */
    /* JADX WARN: Removed duplicated region for block: B:401:0x0721  */
    /* JADX WARN: Removed duplicated region for block: B:407:0x072f  */
    /* JADX WARN: Removed duplicated region for block: B:408:0x0732  */
    /* JADX WARN: Removed duplicated region for block: B:415:0x074e  */
    /* JADX WARN: Removed duplicated region for block: B:416:0x0750  */
    /* JADX WARN: Removed duplicated region for block: B:426:0x0108 A[EDGE_INSN: B:426:0x0108->B:61:0x0108 BREAK  A[LOOP:1: B:55:0x00f1->B:60:0x0103], SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:42:0x00d4  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x00e0  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x00f9  */
    /* JADX WARN: Removed duplicated region for block: B:62:0x010a  */
    /* JADX WARN: Removed duplicated region for block: B:70:0x012e  */
    /* JADX WARN: Removed duplicated region for block: B:73:0x0139  */
    /* JADX WARN: Type inference failed for: r12v2 */
    /* JADX WARN: Type inference failed for: r12v3 */
    /* JADX WARN: Type inference failed for: r12v46 */
    @Override // defpackage.AbstractC1282
    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void mo63(defpackage.C4753 r39, int r40, int r41) {
        /*
            Method dump skipped, instructions count: 1892
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.constraintlayout.helper.widget.Flow.mo63(ᵵᵴˑᵡ, int, int):void");
    }

    @Override // defpackage.AbstractC3075
    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final void mo64(C0425 c0425, boolean z) {
        C4753 c4753 = this.f260;
        int i = c4753.f17627;
        if (i > 0 || c4753.f17649 > 0) {
            if (z) {
                c4753.f17624 = c4753.f17649;
                c4753.f17647 = i;
            } else {
                c4753.f17624 = i;
                c4753.f17647 = c4753.f17649;
            }
        }
    }

    @Override // defpackage.AbstractC1282, defpackage.AbstractC3075
    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final void mo65(AttributeSet attributeSet) {
        super.mo65(attributeSet);
        C4753 c4753 = new C4753();
        c4753.f17617 = 0;
        c4753.f17650 = 0;
        c4753.f17627 = 0;
        c4753.f17649 = 0;
        c4753.f17624 = 0;
        c4753.f17647 = 0;
        c4753.f17635 = false;
        c4753.f17633 = 0;
        c4753.f17646 = 0;
        c4753.f17620 = new C4267();
        c4753.f17625 = null;
        c4753.f17638 = -1;
        c4753.f17637 = -1;
        c4753.f17621 = -1;
        c4753.f17641 = -1;
        c4753.f17639 = -1;
        c4753.f17628 = -1;
        c4753.f17634 = 0.5f;
        c4753.f17640 = 0.5f;
        c4753.f17619 = 0.5f;
        c4753.f17651 = 0.5f;
        c4753.f17630 = 0.5f;
        c4753.f17632 = 0.5f;
        c4753.f17616 = 0;
        c4753.f17631 = 0;
        c4753.f17648 = 2;
        c4753.f17644 = 2;
        c4753.f17643 = 0;
        c4753.f17642 = -1;
        c4753.f17636 = 0;
        c4753.f17622 = new ArrayList();
        c4753.f17645 = null;
        c4753.f17629 = null;
        c4753.f17623 = null;
        c4753.f17618 = 0;
        this.f260 = c4753;
        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 == 0) {
                    this.f260.f17636 = typedArrayObtainStyledAttributes.getInt(index, 0);
                } else if (index == 1) {
                    C4753 c47532 = this.f260;
                    int dimensionPixelSize = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                    c47532.f17617 = dimensionPixelSize;
                    c47532.f17650 = dimensionPixelSize;
                    c47532.f17627 = dimensionPixelSize;
                    c47532.f17649 = dimensionPixelSize;
                } else if (index == 18) {
                    C4753 c47533 = this.f260;
                    int dimensionPixelSize2 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                    c47533.f17627 = dimensionPixelSize2;
                    c47533.f17624 = dimensionPixelSize2;
                    c47533.f17647 = dimensionPixelSize2;
                } else if (index == 19) {
                    this.f260.f17649 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                } else if (index == 2) {
                    this.f260.f17624 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                } else if (index == 3) {
                    this.f260.f17617 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                } else if (index == 4) {
                    this.f260.f17647 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                } else if (index == 5) {
                    this.f260.f17650 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                } else if (index == 54) {
                    this.f260.f17643 = typedArrayObtainStyledAttributes.getInt(index, 0);
                } else if (index == 44) {
                    this.f260.f17638 = typedArrayObtainStyledAttributes.getInt(index, 0);
                } else if (index == 53) {
                    this.f260.f17637 = typedArrayObtainStyledAttributes.getInt(index, 0);
                } else if (index == 38) {
                    this.f260.f17621 = typedArrayObtainStyledAttributes.getInt(index, 0);
                } else if (index == 46) {
                    this.f260.f17639 = typedArrayObtainStyledAttributes.getInt(index, 0);
                } else if (index == 40) {
                    this.f260.f17641 = typedArrayObtainStyledAttributes.getInt(index, 0);
                } else if (index == 48) {
                    this.f260.f17628 = typedArrayObtainStyledAttributes.getInt(index, 0);
                } else if (index == 42) {
                    this.f260.f17634 = typedArrayObtainStyledAttributes.getFloat(index, 0.5f);
                } else if (index == 37) {
                    this.f260.f17619 = typedArrayObtainStyledAttributes.getFloat(index, 0.5f);
                } else if (index == 45) {
                    this.f260.f17630 = typedArrayObtainStyledAttributes.getFloat(index, 0.5f);
                } else if (index == 39) {
                    this.f260.f17651 = typedArrayObtainStyledAttributes.getFloat(index, 0.5f);
                } else if (index == 47) {
                    this.f260.f17632 = typedArrayObtainStyledAttributes.getFloat(index, 0.5f);
                } else if (index == 51) {
                    this.f260.f17640 = typedArrayObtainStyledAttributes.getFloat(index, 0.5f);
                } else if (index == 41) {
                    this.f260.f17648 = typedArrayObtainStyledAttributes.getInt(index, 2);
                } else if (index == 50) {
                    this.f260.f17644 = typedArrayObtainStyledAttributes.getInt(index, 2);
                } else if (index == 43) {
                    this.f260.f17616 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                } else if (index == 52) {
                    this.f260.f17631 = typedArrayObtainStyledAttributes.getDimensionPixelSize(index, 0);
                } else if (index == 49) {
                    this.f260.f17642 = typedArrayObtainStyledAttributes.getInt(index, -1);
                }
            }
            typedArrayObtainStyledAttributes.recycle();
        }
        this.f11756 = this.f260;
        m7406();
    }
}
