package l;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.PorterDuff;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.text.TextUtils;
import android.text.method.PasswordTransformationMethod;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.lang.ref.WeakReference;
import java.util.Arrays;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final TextView f29604a;

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

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public n3 f29609f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public n3 f29610g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public n3 f29611h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final j1 f29612i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public int f29613j = 0;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public int f29614k = -1;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public Typeface f29615l;

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

    public a1(TextView textView) {
        this.f29604a = textView;
        this.f29612i = new j1(textView);
    }

    public static n3 c(Context context, c0 c0Var, int i10) {
        ColorStateList colorStateListH;
        synchronized (c0Var) {
            colorStateListH = c0Var.f29657a.h(context, i10);
        }
        if (colorStateListH == null) {
            return null;
        }
        n3 n3Var = new n3();
        n3Var.f29785d = true;
        n3Var.f29782a = colorStateListH;
        return n3Var;
    }

    public final void a(Drawable drawable, n3 n3Var) {
        if (drawable == null || n3Var == null) {
            return;
        }
        c0.e(drawable, n3Var, this.f29604a.getDrawableState());
    }

    public final void b() {
        n3 n3Var = this.f29605b;
        TextView textView = this.f29604a;
        if (n3Var != null || this.f29606c != null || this.f29607d != null || this.f29608e != null) {
            Drawable[] compoundDrawables = textView.getCompoundDrawables();
            a(compoundDrawables[0], this.f29605b);
            a(compoundDrawables[1], this.f29606c);
            a(compoundDrawables[2], this.f29607d);
            a(compoundDrawables[3], this.f29608e);
        }
        if (this.f29609f == null && this.f29610g == null) {
            return;
        }
        Drawable[] compoundDrawablesRelative = textView.getCompoundDrawablesRelative();
        a(compoundDrawablesRelative[0], this.f29609f);
        a(compoundDrawablesRelative[2], this.f29610g);
    }

    public final void d(Context context, int i10) {
        String string;
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(i10, d.j.TextAppearance);
        p3 p3Var = new p3(context, typedArrayObtainStyledAttributes);
        int i11 = d.j.TextAppearance_textAllCaps;
        boolean zHasValue = typedArrayObtainStyledAttributes.hasValue(i11);
        TextView textView = this.f29604a;
        if (zHasValue) {
            textView.setAllCaps(typedArrayObtainStyledAttributes.getBoolean(i11, false));
        }
        int i12 = Build.VERSION.SDK_INT;
        int i13 = d.j.TextAppearance_android_textSize;
        if (typedArrayObtainStyledAttributes.hasValue(i13) && typedArrayObtainStyledAttributes.getDimensionPixelSize(i13, -1) == 0) {
            textView.setTextSize(0, 0.0f);
        }
        h(context, p3Var);
        if (i12 >= 26) {
            int i14 = d.j.TextAppearance_fontVariationSettings;
            if (typedArrayObtainStyledAttributes.hasValue(i14) && (string = typedArrayObtainStyledAttributes.getString(i14)) != null) {
                y0.d(textView, string);
            }
        }
        p3Var.e();
        Typeface typeface = this.f29615l;
        if (typeface != null) {
            textView.setTypeface(typeface, this.f29613j);
        }
    }

    public final void e(int i10, int i11, int i12, int i13) {
        j1 j1Var = this.f29612i;
        if (j1Var.i()) {
            DisplayMetrics displayMetrics = j1Var.f29744j.getResources().getDisplayMetrics();
            j1Var.j(TypedValue.applyDimension(i13, i10, displayMetrics), TypedValue.applyDimension(i13, i11, displayMetrics), TypedValue.applyDimension(i13, i12, displayMetrics));
            if (j1Var.g()) {
                j1Var.a();
            }
        }
    }

    public final void f(int[] iArr, int i10) {
        j1 j1Var = this.f29612i;
        if (j1Var.i()) {
            int length = iArr.length;
            if (length > 0) {
                int[] iArrCopyOf = new int[length];
                if (i10 == 0) {
                    iArrCopyOf = Arrays.copyOf(iArr, length);
                } else {
                    DisplayMetrics displayMetrics = j1Var.f29744j.getResources().getDisplayMetrics();
                    for (int i11 = 0; i11 < length; i11++) {
                        iArrCopyOf[i11] = Math.round(TypedValue.applyDimension(i10, iArr[i11], displayMetrics));
                    }
                }
                j1Var.f29740f = j1.b(iArrCopyOf);
                if (!j1Var.h()) {
                    throw new IllegalArgumentException("None of the preset sizes is valid: " + Arrays.toString(iArr));
                }
            } else {
                j1Var.f29741g = false;
            }
            if (j1Var.g()) {
                j1Var.a();
            }
        }
    }

    public final void g(int i10) {
        j1 j1Var = this.f29612i;
        if (j1Var.i()) {
            if (i10 == 0) {
                j1Var.f29735a = 0;
                j1Var.f29738d = -1.0f;
                j1Var.f29739e = -1.0f;
                j1Var.f29737c = -1.0f;
                j1Var.f29740f = new int[0];
                j1Var.f29736b = false;
                return;
            }
            if (i10 != 1) {
                throw new IllegalArgumentException(com.google.android.gms.measurement.internal.u1.g("Unknown auto-size text type: ", i10));
            }
            DisplayMetrics displayMetrics = j1Var.f29744j.getResources().getDisplayMetrics();
            j1Var.j(TypedValue.applyDimension(2, 12.0f, displayMetrics), TypedValue.applyDimension(2, 112.0f, displayMetrics), 1.0f);
            if (j1Var.g()) {
                j1Var.a();
            }
        }
    }

    @Nullable
    public ColorStateList getCompoundDrawableTintList() {
        n3 n3Var = this.f29611h;
        if (n3Var != null) {
            return n3Var.f29782a;
        }
        return null;
    }

    @Nullable
    public PorterDuff.Mode getCompoundDrawableTintMode() {
        n3 n3Var = this.f29611h;
        if (n3Var != null) {
            return n3Var.f29783b;
        }
        return null;
    }

    public final void h(Context context, p3 p3Var) {
        String string;
        int i10 = d.j.TextAppearance_android_textStyle;
        int i11 = this.f29613j;
        TypedArray typedArray = p3Var.f29809b;
        this.f29613j = typedArray.getInt(i10, i11);
        int i12 = Build.VERSION.SDK_INT;
        if (i12 >= 28) {
            int i13 = typedArray.getInt(d.j.TextAppearance_android_textFontWeight, -1);
            this.f29614k = i13;
            if (i13 != -1) {
                this.f29613j &= 2;
            }
        }
        int i14 = d.j.TextAppearance_android_fontFamily;
        if (!typedArray.hasValue(i14) && !typedArray.hasValue(d.j.TextAppearance_fontFamily)) {
            int i15 = d.j.TextAppearance_android_typeface;
            if (typedArray.hasValue(i15)) {
                this.f29616m = false;
                int i16 = typedArray.getInt(i15, 1);
                if (i16 == 1) {
                    this.f29615l = Typeface.SANS_SERIF;
                    return;
                } else if (i16 == 2) {
                    this.f29615l = Typeface.SERIF;
                    return;
                } else {
                    if (i16 != 3) {
                        return;
                    }
                    this.f29615l = Typeface.MONOSPACE;
                    return;
                }
            }
            return;
        }
        this.f29615l = null;
        int i17 = d.j.TextAppearance_fontFamily;
        if (typedArray.hasValue(i17)) {
            i14 = i17;
        }
        int i18 = this.f29614k;
        int i19 = this.f29613j;
        if (!context.isRestricted()) {
            try {
                Typeface font = p3Var.getFont(i14, this.f29613j, new v0(this, i18, i19, new WeakReference(this.f29604a)));
                if (font != null) {
                    if (i12 < 28 || this.f29614k == -1) {
                        this.f29615l = font;
                    } else {
                        this.f29615l = z0.a(Typeface.create(font, 0), this.f29614k, (this.f29613j & 2) != 0);
                    }
                }
                this.f29616m = this.f29615l == null;
            } catch (Resources.NotFoundException | UnsupportedOperationException unused) {
            }
        }
        if (this.f29615l != null || (string = typedArray.getString(i14)) == null) {
            return;
        }
        if (Build.VERSION.SDK_INT < 28 || this.f29614k == -1) {
            this.f29615l = Typeface.create(string, this.f29613j);
        } else {
            this.f29615l = z0.a(Typeface.create(string, 0), this.f29614k, (this.f29613j & 2) != 0);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:173:0x02ca  */
    /* JADX WARN: Removed duplicated region for block: B:175:0x02cf  */
    /* JADX WARN: Removed duplicated region for block: B:178:0x02d6  */
    /* JADX WARN: Removed duplicated region for block: B:185:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:27:0x00c3  */
    /* JADX WARN: Removed duplicated region for block: B:36:0x00e7  */
    @SuppressLint({"NewApi"})
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void loadFromAttributes(@Nullable AttributeSet attributeSet, int i10) {
        boolean z10;
        boolean z11;
        String string;
        String string2;
        int i11;
        int i12;
        float dimensionPixelSize;
        int i13;
        TextView textView = this.f29604a;
        Context context = textView.getContext();
        c0 c0VarA = c0.a();
        int[] iArr = d.j.AppCompatTextHelper;
        p3 p3VarD = p3.d(context, attributeSet, iArr, i10);
        androidx.core.view.s1.saveAttributeDataForStyleable(textView, textView.getContext(), iArr, attributeSet, p3VarD.f29809b, i10, 0);
        int i14 = d.j.AppCompatTextHelper_android_textAppearance;
        TypedArray typedArray = p3VarD.f29809b;
        int resourceId = typedArray.getResourceId(i14, -1);
        int i15 = d.j.AppCompatTextHelper_android_drawableLeft;
        if (typedArray.hasValue(i15)) {
            this.f29605b = c(context, c0VarA, typedArray.getResourceId(i15, 0));
        }
        int i16 = d.j.AppCompatTextHelper_android_drawableTop;
        if (typedArray.hasValue(i16)) {
            this.f29606c = c(context, c0VarA, typedArray.getResourceId(i16, 0));
        }
        int i17 = d.j.AppCompatTextHelper_android_drawableRight;
        if (typedArray.hasValue(i17)) {
            this.f29607d = c(context, c0VarA, typedArray.getResourceId(i17, 0));
        }
        int i18 = d.j.AppCompatTextHelper_android_drawableBottom;
        if (typedArray.hasValue(i18)) {
            this.f29608e = c(context, c0VarA, typedArray.getResourceId(i18, 0));
        }
        int i19 = d.j.AppCompatTextHelper_android_drawableStart;
        if (typedArray.hasValue(i19)) {
            this.f29609f = c(context, c0VarA, typedArray.getResourceId(i19, 0));
        }
        int i20 = d.j.AppCompatTextHelper_android_drawableEnd;
        if (typedArray.hasValue(i20)) {
            this.f29610g = c(context, c0VarA, typedArray.getResourceId(i20, 0));
        }
        p3VarD.e();
        boolean z12 = textView.getTransformationMethod() instanceof PasswordTransformationMethod;
        if (resourceId != -1) {
            TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(resourceId, d.j.TextAppearance);
            p3 p3Var = new p3(context, typedArrayObtainStyledAttributes);
            if (!z12) {
                int i21 = d.j.TextAppearance_textAllCaps;
                if (typedArrayObtainStyledAttributes.hasValue(i21)) {
                    z10 = typedArrayObtainStyledAttributes.getBoolean(i21, false);
                    z11 = true;
                } else {
                    z10 = false;
                    z11 = false;
                }
                h(context, p3Var);
                int i22 = Build.VERSION.SDK_INT;
                int i23 = d.j.TextAppearance_textLocale;
                string2 = typedArrayObtainStyledAttributes.hasValue(i23) ? typedArrayObtainStyledAttributes.getString(i23) : null;
                if (i22 >= 26) {
                    int i24 = d.j.TextAppearance_fontVariationSettings;
                    string = typedArrayObtainStyledAttributes.hasValue(i24) ? typedArrayObtainStyledAttributes.getString(i24) : null;
                    p3Var.e();
                }
            }
        } else {
            z10 = false;
            z11 = false;
            string = null;
            string2 = null;
        }
        TypedArray typedArrayObtainStyledAttributes2 = context.obtainStyledAttributes(attributeSet, d.j.TextAppearance, i10, 0);
        p3 p3Var2 = new p3(context, typedArrayObtainStyledAttributes2);
        if (!z12) {
            int i25 = d.j.TextAppearance_textAllCaps;
            if (typedArrayObtainStyledAttributes2.hasValue(i25)) {
                z10 = typedArrayObtainStyledAttributes2.getBoolean(i25, false);
                z11 = true;
            }
        }
        int i26 = Build.VERSION.SDK_INT;
        int i27 = d.j.TextAppearance_textLocale;
        if (typedArrayObtainStyledAttributes2.hasValue(i27)) {
            string2 = typedArrayObtainStyledAttributes2.getString(i27);
        }
        if (i26 >= 26) {
            int i28 = d.j.TextAppearance_fontVariationSettings;
            if (typedArrayObtainStyledAttributes2.hasValue(i28)) {
                string = typedArrayObtainStyledAttributes2.getString(i28);
            }
        }
        if (i26 >= 28) {
            int i29 = d.j.TextAppearance_android_textSize;
            if (typedArrayObtainStyledAttributes2.hasValue(i29) && typedArrayObtainStyledAttributes2.getDimensionPixelSize(i29, -1) == 0) {
                textView.setTextSize(0, 0.0f);
            }
        }
        h(context, p3Var2);
        p3Var2.e();
        if (!z12 && z11) {
            textView.setAllCaps(z10);
        }
        Typeface typeface = this.f29615l;
        if (typeface != null) {
            if (this.f29614k == -1) {
                textView.setTypeface(typeface, this.f29613j);
            } else {
                textView.setTypeface(typeface);
            }
        }
        if (string != null) {
            y0.d(textView, string);
        }
        if (string2 != null) {
            x0.b(textView, x0.a(string2));
        }
        j1 j1Var = this.f29612i;
        j1Var.loadFromAttributes(attributeSet, i10);
        if (f4.f29684c && j1Var.f29735a != 0) {
            int[] iArr2 = j1Var.f29740f;
            if (iArr2.length > 0) {
                if (y0.a(textView) != -1.0f) {
                    y0.b(textView, Math.round(j1Var.f29738d), Math.round(j1Var.f29739e), Math.round(j1Var.f29737c), 0);
                } else {
                    y0.c(textView, iArr2, 0);
                }
            }
        }
        TypedArray typedArrayObtainStyledAttributes3 = context.obtainStyledAttributes(attributeSet, d.j.AppCompatTextView);
        p3 p3Var3 = new p3(context, typedArrayObtainStyledAttributes3);
        int resourceId2 = typedArrayObtainStyledAttributes3.getResourceId(d.j.AppCompatTextView_drawableLeftCompat, -1);
        Drawable drawableB = resourceId2 != -1 ? c0VarA.b(context, resourceId2) : null;
        int resourceId3 = typedArrayObtainStyledAttributes3.getResourceId(d.j.AppCompatTextView_drawableTopCompat, -1);
        Drawable drawableB2 = resourceId3 != -1 ? c0VarA.b(context, resourceId3) : null;
        int resourceId4 = typedArrayObtainStyledAttributes3.getResourceId(d.j.AppCompatTextView_drawableRightCompat, -1);
        Drawable drawableB3 = resourceId4 != -1 ? c0VarA.b(context, resourceId4) : null;
        int resourceId5 = typedArrayObtainStyledAttributes3.getResourceId(d.j.AppCompatTextView_drawableBottomCompat, -1);
        Drawable drawableB4 = resourceId5 != -1 ? c0VarA.b(context, resourceId5) : null;
        int resourceId6 = typedArrayObtainStyledAttributes3.getResourceId(d.j.AppCompatTextView_drawableStartCompat, -1);
        Drawable drawableB5 = resourceId6 != -1 ? c0VarA.b(context, resourceId6) : null;
        int resourceId7 = typedArrayObtainStyledAttributes3.getResourceId(d.j.AppCompatTextView_drawableEndCompat, -1);
        Drawable drawableB6 = resourceId7 != -1 ? c0VarA.b(context, resourceId7) : null;
        if (drawableB5 != null || drawableB6 != null) {
            Drawable[] compoundDrawablesRelative = textView.getCompoundDrawablesRelative();
            if (drawableB5 == null) {
                drawableB5 = compoundDrawablesRelative[0];
            }
            if (drawableB2 == null) {
                drawableB2 = compoundDrawablesRelative[1];
            }
            if (drawableB6 == null) {
                drawableB6 = compoundDrawablesRelative[2];
            }
            if (drawableB4 == null) {
                drawableB4 = compoundDrawablesRelative[3];
            }
            textView.setCompoundDrawablesRelativeWithIntrinsicBounds(drawableB5, drawableB2, drawableB6, drawableB4);
        } else if (drawableB != null || drawableB2 != null || drawableB3 != null || drawableB4 != null) {
            Drawable[] compoundDrawablesRelative2 = textView.getCompoundDrawablesRelative();
            Drawable drawable = compoundDrawablesRelative2[0];
            if (drawable == null && compoundDrawablesRelative2[2] == null) {
                Drawable[] compoundDrawables = textView.getCompoundDrawables();
                if (drawableB == null) {
                    drawableB = compoundDrawables[0];
                }
                if (drawableB2 == null) {
                    drawableB2 = compoundDrawables[1];
                }
                if (drawableB3 == null) {
                    drawableB3 = compoundDrawables[2];
                }
                if (drawableB4 == null) {
                    drawableB4 = compoundDrawables[3];
                }
                textView.setCompoundDrawablesWithIntrinsicBounds(drawableB, drawableB2, drawableB3, drawableB4);
            } else {
                if (drawableB2 == null) {
                    drawableB2 = compoundDrawablesRelative2[1];
                }
                if (drawableB4 == null) {
                    drawableB4 = compoundDrawablesRelative2[3];
                }
                textView.setCompoundDrawablesRelativeWithIntrinsicBounds(drawable, drawableB2, compoundDrawablesRelative2[2], drawableB4);
            }
        }
        int i30 = d.j.AppCompatTextView_drawableTint;
        if (typedArrayObtainStyledAttributes3.hasValue(i30)) {
            u0.p.setCompoundDrawableTintList(textView, p3Var3.a(i30));
        }
        int i31 = d.j.AppCompatTextView_drawableTintMode;
        if (typedArrayObtainStyledAttributes3.hasValue(i31)) {
            i11 = -1;
            u0.p.setCompoundDrawableTintMode(textView, p1.c(typedArrayObtainStyledAttributes3.getInt(i31, -1), null));
        } else {
            i11 = -1;
        }
        int dimensionPixelSize2 = typedArrayObtainStyledAttributes3.getDimensionPixelSize(d.j.AppCompatTextView_firstBaselineToTopHeight, i11);
        int dimensionPixelSize3 = typedArrayObtainStyledAttributes3.getDimensionPixelSize(d.j.AppCompatTextView_lastBaselineToBottomHeight, i11);
        int i32 = d.j.AppCompatTextView_lineHeight;
        if (typedArrayObtainStyledAttributes3.hasValue(i32)) {
            TypedValue typedValuePeekValue = typedArrayObtainStyledAttributes3.peekValue(i32);
            if (typedValuePeekValue != null && typedValuePeekValue.type == 5) {
                int i33 = typedValuePeekValue.data;
                i13 = i33 & 15;
                dimensionPixelSize = TypedValue.complexToFloat(i33);
                i12 = -1;
                p3Var3.e();
                if (dimensionPixelSize2 != i12) {
                    u0.p.b(textView, dimensionPixelSize2);
                }
                if (dimensionPixelSize3 != i12) {
                    u0.p.c(textView, dimensionPixelSize3);
                }
                if (dimensionPixelSize == -1.0f) {
                    if (i13 == i12) {
                        u0.p.d(textView, (int) dimensionPixelSize);
                        return;
                    } else if (i26 >= 34) {
                        androidx.core.view.z0.i(textView, i13, dimensionPixelSize);
                        return;
                    } else {
                        u0.p.d(textView, Math.round(TypedValue.applyDimension(i13, dimensionPixelSize, textView.getResources().getDisplayMetrics())));
                        return;
                    }
                }
                return;
            }
            i12 = -1;
            dimensionPixelSize = typedArrayObtainStyledAttributes3.getDimensionPixelSize(i32, -1);
        } else {
            i12 = -1;
            dimensionPixelSize = -1.0f;
        }
        i13 = i12;
        p3Var3.e();
        if (dimensionPixelSize2 != i12) {
        }
        if (dimensionPixelSize3 != i12) {
        }
        if (dimensionPixelSize == -1.0f) {
        }
    }

    public void populateSurroundingTextIfNeeded(@NonNull TextView textView, @Nullable InputConnection inputConnection, @NonNull EditorInfo editorInfo) {
        int i10 = Build.VERSION.SDK_INT;
        if (i10 >= 30 || inputConnection == null) {
            return;
        }
        CharSequence text = textView.getText();
        if (i10 >= 30) {
            androidx.core.app.c0.m(editorInfo, text);
            return;
        }
        p0.g.checkNotNull(text);
        if (i10 >= 30) {
            androidx.core.app.c0.m(editorInfo, text);
            return;
        }
        int i11 = editorInfo.initialSelStart;
        int i12 = editorInfo.initialSelEnd;
        int i13 = i11 > i12 ? i12 : i11;
        if (i11 <= i12) {
            i11 = i12;
        }
        int length = text.length();
        if (i13 < 0 || i11 > length) {
            t0.b.a(editorInfo, null, 0, 0);
            return;
        }
        int i14 = editorInfo.inputType & 4095;
        if (i14 == 129 || i14 == 225 || i14 == 18) {
            t0.b.a(editorInfo, null, 0, 0);
            return;
        }
        if (length <= 2048) {
            t0.b.a(editorInfo, text, i13, i11);
            return;
        }
        int i15 = i11 - i13;
        int i16 = i15 > 1024 ? 0 : i15;
        int i17 = 2048 - i16;
        int iMin = Math.min(text.length() - i11, i17 - Math.min(i13, (int) (((double) i17) * 0.8d)));
        int iMin2 = Math.min(i13, i17 - iMin);
        int i18 = i13 - iMin2;
        if (Character.isLowSurrogate(text.charAt(i18))) {
            i18++;
            iMin2--;
        }
        if (Character.isHighSurrogate(text.charAt((i11 + iMin) - 1))) {
            iMin--;
        }
        int i19 = iMin2 + i16;
        t0.b.a(editorInfo, i16 != i15 ? TextUtils.concat(text.subSequence(i18, i18 + iMin2), text.subSequence(i11, iMin + i11)) : text.subSequence(i18, i19 + iMin + i18), iMin2, i19);
    }

    public void setCompoundDrawableTintList(@Nullable ColorStateList colorStateList) {
        if (this.f29611h == null) {
            this.f29611h = new n3();
        }
        n3 n3Var = this.f29611h;
        n3Var.f29782a = colorStateList;
        n3Var.f29785d = colorStateList != null;
        this.f29605b = n3Var;
        this.f29606c = n3Var;
        this.f29607d = n3Var;
        this.f29608e = n3Var;
        this.f29609f = n3Var;
        this.f29610g = n3Var;
    }

    public void setCompoundDrawableTintMode(@Nullable PorterDuff.Mode mode) {
        if (this.f29611h == null) {
            this.f29611h = new n3();
        }
        n3 n3Var = this.f29611h;
        n3Var.f29783b = mode;
        n3Var.f29784c = mode != null;
        this.f29605b = n3Var;
        this.f29606c = n3Var;
        this.f29607d = n3Var;
        this.f29608e = n3Var;
        this.f29609f = n3Var;
        this.f29610g = n3Var;
    }
}
