package l3; import android.R; import android.content.Context; import android.content.res.ColorStateList; import android.util.AttributeSet; import androidx.appcompat.widget.s; import androidx.core.widget.d; import c3.i; /* loaded from: classes2.dex */ public class a extends s { /* renamed from: f, reason: collision with root package name */ private static final int f11594f = i.f3559i; /* renamed from: g, reason: collision with root package name */ private static final int[][] f11595g = {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 f11596d; /* renamed from: e, reason: collision with root package name */ private boolean f11597e; public a(Context context, AttributeSet attributeSet) { this(context, attributeSet, c3.a.f3462r); } private ColorStateList getMaterialThemeColorsTintList() { if (this.f11596d == null) { int c10 = g3.a.c(this, c3.a.f3449e); int c11 = g3.a.c(this, c3.a.f3451g); int c12 = g3.a.c(this, c3.a.f3454j); int[][] iArr = f11595g; int[] iArr2 = new int[iArr.length]; iArr2[0] = g3.a.f(c12, c10, 1.0f); iArr2[1] = g3.a.f(c12, c11, 0.54f); iArr2[2] = g3.a.f(c12, c11, 0.38f); iArr2[3] = g3.a.f(c12, c11, 0.38f); this.f11596d = new ColorStateList(iArr, iArr2); } return this.f11596d; } @Override // android.widget.TextView, android.view.View protected void onAttachedToWindow() { super.onAttachedToWindow(); if (this.f11597e && d.b(this) == null) { setUseMaterialThemeColors(true); } } public void setUseMaterialThemeColors(boolean z10) { this.f11597e = 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 r7, android.util.AttributeSet r8, int r9) { /* r6 = this; int r4 = l3.a.f11594f android.content.Context r7 = com.google.android.material.internal.f.f(r7, r8, r9, r4) r6.(r7, r8, r9) android.content.Context r0 = r6.getContext() int[] r2 = c3.j.Z1 r7 = 0 int[] r5 = new int[r7] r1 = r8 r3 = r9 android.content.res.TypedArray r8 = com.google.android.material.internal.f.k(r0, r1, r2, r3, r4, r5) int r9 = c3.j.f3566a2 boolean r7 = r8.getBoolean(r9, r7) r6.f11597e = r7 r8.recycle() return */ throw new UnsupportedOperationException("Method not decompiled: l3.a.(android.content.Context, android.util.AttributeSet, int):void"); } }