package f3; import android.R; import android.content.Context; import android.content.res.ColorStateList; import android.util.AttributeSet; import androidx.appcompat.widget.g; import androidx.core.widget.d; import c3.i; /* loaded from: classes2.dex */ public class a extends g { /* renamed from: f, reason: collision with root package name */ private static final int f9555f = i.f3558h; /* renamed from: g, reason: collision with root package name */ private static final int[][] f9556g = {new int[]{R.attr.state_enabled, R.attr.state_checked}, new int[]{R.attr.state_enabled, -16842912}, new int[]{-16842910, R.attr.state_checked}, new int[]{-16842910, -16842912}}; /* renamed from: d, reason: collision with root package name */ private ColorStateList f9557d; /* renamed from: e, reason: collision with root package name */ private boolean f9558e; public a(Context context, AttributeSet attributeSet) { this(context, attributeSet, c3.a.f3446b); } private ColorStateList getMaterialThemeColorsTintList() { if (this.f9557d == null) { int[][] iArr = f9556g; int[] iArr2 = new int[iArr.length]; int c10 = g3.a.c(this, c3.a.f3449e); int c11 = g3.a.c(this, c3.a.f3454j); int c12 = g3.a.c(this, c3.a.f3451g); iArr2[0] = g3.a.f(c11, c10, 1.0f); iArr2[1] = g3.a.f(c11, c12, 0.54f); iArr2[2] = g3.a.f(c11, c12, 0.38f); iArr2[3] = g3.a.f(c11, c12, 0.38f); this.f9557d = new ColorStateList(iArr, iArr2); } return this.f9557d; } @Override // android.widget.TextView, android.view.View protected void onAttachedToWindow() { super.onAttachedToWindow(); if (this.f9558e && d.b(this) == null) { setUseMaterialThemeColors(true); } } public void setUseMaterialThemeColors(boolean z10) { this.f9558e = z10; if (z10) { d.c(this, getMaterialThemeColorsTintList()); } else { d.c(this, null); } } /* JADX WARN: Illegal instructions before constructor call */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ public a(android.content.Context r8, android.util.AttributeSet r9, int r10) { /* r7 = this; int r4 = f3.a.f9555f android.content.Context r8 = com.google.android.material.internal.f.f(r8, r9, r10, r4) r7.(r8, r9, r10) android.content.Context r8 = r7.getContext() int[] r2 = c3.j.W1 r6 = 0 int[] r5 = new int[r6] r0 = r8 r1 = r9 r3 = r10 android.content.res.TypedArray r9 = com.google.android.material.internal.f.k(r0, r1, r2, r3, r4, r5) int r10 = c3.j.X1 boolean r0 = r9.hasValue(r10) if (r0 == 0) goto L28 android.content.res.ColorStateList r8 = m3.c.a(r8, r9, r10) androidx.core.widget.d.c(r7, r8) L28: int r8 = c3.j.Y1 boolean r8 = r9.getBoolean(r8, r6) r7.f9558e = r8 r9.recycle() return */ throw new UnsupportedOperationException("Method not decompiled: f3.a.(android.content.Context, android.util.AttributeSet, int):void"); } }