package defpackage;

import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.util.TypedValue;
import java.io.IOException;
import java.util.ArrayDeque;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

/* renamed from: ᵔˎᵫʦ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2217 extends AbstractC2671 {

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public static final PorterDuff.Mode f8709 = PorterDuff.Mode.SRC_IN;

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final float[] f8710;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final Rect f8711;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final Matrix f8712;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public boolean f8713;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public C5063 f8714;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public boolean f8715;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public ColorFilter f8716;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public PorterDuffColorFilter f8717;

    public C2217() {
        this.f8713 = true;
        this.f8710 = new float[9];
        this.f8712 = new Matrix();
        this.f8711 = new Rect();
        C5063 c5063 = new C5063();
        c5063.f18907 = null;
        c5063.f18914 = f8709;
        c5063.f18910 = new C0385();
        this.f8714 = c5063;
    }

    public C2217(C5063 c5063) {
        this.f8713 = true;
        this.f8710 = new float[9];
        this.f8712 = new Matrix();
        this.f8711 = new Rect();
        this.f8714 = c5063;
        this.f8717 = m5878(c5063.f18907, c5063.f18914);
    }

    @Override // android.graphics.drawable.Drawable
    public final boolean canApplyTheme() {
        Drawable drawable = this.f10372;
        if (drawable == null) {
            return false;
        }
        drawable.canApplyTheme();
        return false;
    }

    @Override // android.graphics.drawable.Drawable
    public final void draw(Canvas canvas) {
        Paint paint;
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.draw(canvas);
            return;
        }
        Rect rect = this.f8711;
        copyBounds(rect);
        if (rect.width() <= 0 || rect.height() <= 0) {
            return;
        }
        ColorFilter colorFilter = this.f8716;
        if (colorFilter == null) {
            colorFilter = this.f8717;
        }
        Matrix matrix = this.f8712;
        canvas.getMatrix(matrix);
        float[] fArr = this.f8710;
        matrix.getValues(fArr);
        float fAbs = Math.abs(fArr[0]);
        float fAbs2 = Math.abs(fArr[4]);
        float fAbs3 = Math.abs(fArr[1]);
        float fAbs4 = Math.abs(fArr[3]);
        if (fAbs3 != 0.0f || fAbs4 != 0.0f) {
            fAbs = 1.0f;
            fAbs2 = 1.0f;
        }
        int iWidth = (int) (rect.width() * fAbs);
        int iMin = Math.min(2048, iWidth);
        int iMin2 = Math.min(2048, (int) (rect.height() * fAbs2));
        if (iMin <= 0 || iMin2 <= 0) {
            return;
        }
        int iSave = canvas.save();
        canvas.translate(rect.left, rect.top);
        if (isAutoMirrored() && getLayoutDirection() == 1) {
            canvas.translate(rect.width(), 0.0f);
            canvas.scale(-1.0f, 1.0f);
        }
        rect.offsetTo(0, 0);
        C5063 c5063 = this.f8714;
        Bitmap bitmap = c5063.f18906;
        if (bitmap == null || iMin != bitmap.getWidth() || iMin2 != c5063.f18906.getHeight()) {
            c5063.f18906 = Bitmap.createBitmap(iMin, iMin2, Bitmap.Config.ARGB_8888);
            c5063.f18912 = true;
        }
        boolean z = this.f8713;
        C5063 c50632 = this.f8714;
        if (!z) {
            c50632.f18906.eraseColor(0);
            Canvas canvas2 = new Canvas(c50632.f18906);
            C0385 c0385 = c50632.f18910;
            c0385.m1838(c0385.f2223, C0385.f2220, canvas2, iMin, iMin2);
        } else if (c50632.f18912 || c50632.f18905 != c50632.f18907 || c50632.f18913 != c50632.f18914 || c50632.f18911 != c50632.f18903 || c50632.f18908 != c50632.f18910.getRootAlpha()) {
            C5063 c50633 = this.f8714;
            c50633.f18906.eraseColor(0);
            Canvas canvas3 = new Canvas(c50633.f18906);
            C0385 c03852 = c50633.f18910;
            c03852.m1838(c03852.f2223, C0385.f2220, canvas3, iMin, iMin2);
            C5063 c50634 = this.f8714;
            c50634.f18905 = c50634.f18907;
            c50634.f18913 = c50634.f18914;
            c50634.f18908 = c50634.f18910.getRootAlpha();
            c50634.f18911 = c50634.f18903;
            c50634.f18912 = false;
        }
        C5063 c50635 = this.f8714;
        if (c50635.f18910.getRootAlpha() >= 255 && colorFilter == null) {
            paint = null;
        } else {
            if (c50635.f18904 == null) {
                Paint paint2 = new Paint();
                c50635.f18904 = paint2;
                paint2.setFilterBitmap(true);
            }
            c50635.f18904.setAlpha(c50635.f18910.getRootAlpha());
            c50635.f18904.setColorFilter(colorFilter);
            paint = c50635.f18904;
        }
        canvas.drawBitmap(c50635.f18906, (Rect) null, rect, paint);
        canvas.restoreToCount(iSave);
    }

    @Override // android.graphics.drawable.Drawable
    public final int getAlpha() {
        Drawable drawable = this.f10372;
        return drawable != null ? drawable.getAlpha() : this.f8714.f18910.getRootAlpha();
    }

    @Override // android.graphics.drawable.Drawable
    public final int getChangingConfigurations() {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            return drawable.getChangingConfigurations();
        }
        return this.f8714.getChangingConfigurations() | super.getChangingConfigurations();
    }

    @Override // android.graphics.drawable.Drawable
    public final ColorFilter getColorFilter() {
        Drawable drawable = this.f10372;
        return drawable != null ? drawable.getColorFilter() : this.f8716;
    }

    @Override // android.graphics.drawable.Drawable
    public final Drawable.ConstantState getConstantState() {
        if (this.f10372 != null && Build.VERSION.SDK_INT >= 24) {
            return new C3411(this.f10372.getConstantState());
        }
        this.f8714.f18909 = getChangingConfigurations();
        return this.f8714;
    }

    @Override // android.graphics.drawable.Drawable
    public final int getIntrinsicHeight() {
        Drawable drawable = this.f10372;
        return drawable != null ? drawable.getIntrinsicHeight() : (int) this.f8714.f18910.f2226;
    }

    @Override // android.graphics.drawable.Drawable
    public final int getIntrinsicWidth() {
        Drawable drawable = this.f10372;
        return drawable != null ? drawable.getIntrinsicWidth() : (int) this.f8714.f18910.f2234;
    }

    @Override // android.graphics.drawable.Drawable
    public final int getOpacity() {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            return drawable.getOpacity();
        }
        return -3;
    }

    @Override // android.graphics.drawable.Drawable
    public final void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet) throws XmlPullParserException, IOException {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.inflate(resources, xmlPullParser, attributeSet);
        } else {
            inflate(resources, xmlPullParser, attributeSet, null);
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) {
        int i;
        char c;
        int i2;
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.inflate(resources, xmlPullParser, attributeSet, theme);
            return;
        }
        C5063 c5063 = this.f8714;
        c5063.f18910 = new C0385();
        TypedArray typedArray = ˋˌ.ᵧᵾˀˈ(resources, theme, attributeSet, ˏᵭᵔᵬ.ᵥᵯˎ);
        C5063 c50632 = this.f8714;
        C0385 c0385 = c50632.f18910;
        int i3 = !ˋˌ.ˑᵱ(xmlPullParser, "tintMode") ? -1 : typedArray.getInt(6, -1);
        PorterDuff.Mode mode = PorterDuff.Mode.SRC_IN;
        if (i3 == 3) {
            mode = PorterDuff.Mode.SRC_OVER;
        } else if (i3 != 5) {
            if (i3 != 9) {
                switch (i3) {
                    case 14:
                        mode = PorterDuff.Mode.MULTIPLY;
                        break;
                    case 15:
                        mode = PorterDuff.Mode.SCREEN;
                        break;
                    case 16:
                        mode = PorterDuff.Mode.ADD;
                        break;
                }
            } else {
                mode = PorterDuff.Mode.SRC_ATOP;
            }
        }
        c50632.f18914 = mode;
        ColorStateList colorStateListM8087 = null;
        int i4 = 1;
        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "tint") != null) {
            TypedValue typedValue = new TypedValue();
            typedArray.getValue(1, typedValue);
            int i5 = typedValue.type;
            if (i5 == 2) {
                throw new UnsupportedOperationException("Failed to resolve attribute at index 1: " + typedValue);
            }
            if (i5 < 28 || i5 > 31) {
                Resources resources2 = typedArray.getResources();
                int resourceId = typedArray.getResourceId(1, 0);
                ThreadLocal threadLocal = AbstractC3551.f13305;
                try {
                    colorStateListM8087 = AbstractC3551.m8087(resources2, resources2.getXml(resourceId), theme);
                } catch (Exception unused) {
                }
            } else {
                colorStateListM8087 = ColorStateList.valueOf(typedValue.data);
            }
        }
        ColorStateList colorStateList = colorStateListM8087;
        if (colorStateList != null) {
            c50632.f18907 = colorStateList;
        }
        boolean z = c50632.f18903;
        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "autoMirrored") != null) {
            z = typedArray.getBoolean(5, z);
        }
        c50632.f18903 = z;
        float f = c0385.f2232;
        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "viewportWidth") != null) {
            f = typedArray.getFloat(7, f);
        }
        c0385.f2232 = f;
        float f2 = c0385.f2233;
        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "viewportHeight") != null) {
            f2 = typedArray.getFloat(8, f2);
        }
        c0385.f2233 = f2;
        if (c0385.f2232 <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires viewportWidth > 0");
        }
        if (f2 <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires viewportHeight > 0");
        }
        c0385.f2234 = typedArray.getDimension(3, c0385.f2234);
        float dimension = typedArray.getDimension(2, c0385.f2226);
        c0385.f2226 = dimension;
        if (c0385.f2234 <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires width > 0");
        }
        if (dimension <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires height > 0");
        }
        float alpha = c0385.getAlpha();
        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "alpha") != null) {
            alpha = typedArray.getFloat(4, alpha);
        }
        c0385.setAlpha(alpha);
        String string = typedArray.getString(0);
        if (string != null) {
            c0385.f2229 = string;
            c0385.f2230.put(string, c0385);
        }
        typedArray.recycle();
        c5063.f18909 = getChangingConfigurations();
        c5063.f18912 = true;
        C5063 c50633 = this.f8714;
        C0385 c03852 = c50633.f18910;
        ArrayDeque arrayDeque = new ArrayDeque();
        C1913 c1913 = c03852.f2223;
        C1200 c1200 = c03852.f2230;
        arrayDeque.push(c1913);
        int eventType = xmlPullParser.getEventType();
        int depth = xmlPullParser.getDepth() + 1;
        boolean z2 = true;
        while (eventType != i4 && (xmlPullParser.getDepth() >= depth || eventType != 3)) {
            if (eventType == 2) {
                String name = xmlPullParser.getName();
                C1913 c19132 = (C1913) arrayDeque.peek();
                i = depth;
                if ("path".equals(name)) {
                    C2455 c2455 = new C2455();
                    c2455.f9576 = 0.0f;
                    c2455.f9578 = 1.0f;
                    c2455.f9585 = 1.0f;
                    c2455.f9580 = 0.0f;
                    c2455.f9583 = 1.0f;
                    c2455.f9584 = 0.0f;
                    Paint.Cap cap = Paint.Cap.BUTT;
                    c2455.f9577 = cap;
                    Paint.Join join = Paint.Join.MITER;
                    c2455.f9582 = join;
                    c2455.f9581 = 4.0f;
                    TypedArray typedArray2 = ˋˌ.ᵧᵾˀˈ(resources, theme, attributeSet, ˏᵭᵔᵬ.ˏᵙ);
                    if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "pathData") != null) {
                        String string2 = typedArray2.getString(0);
                        if (string2 != null) {
                            c2455.f1785 = string2;
                        }
                        String string3 = typedArray2.getString(2);
                        if (string3 != null) {
                            c2455.f1784 = ˁˈᵸ.ᵪʩ(string3);
                        }
                        c2455.f9579 = ˋˌ.ᵯٴᵦ(typedArray2, xmlPullParser, theme, "fillColor", 1);
                        float f3 = c2455.f9585;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "fillAlpha") != null) {
                            f3 = typedArray2.getFloat(12, f3);
                        }
                        c2455.f9585 = f3;
                        int i6 = xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeLineCap") != null ? typedArray2.getInt(8, -1) : -1;
                        c2455.f9577 = i6 != 0 ? i6 != 1 ? i6 != 2 ? c2455.f9577 : Paint.Cap.SQUARE : Paint.Cap.ROUND : cap;
                        int i7 = xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeLineJoin") != null ? typedArray2.getInt(9, -1) : -1;
                        c2455.f9582 = i7 != 0 ? i7 != 1 ? i7 != 2 ? c2455.f9582 : Paint.Join.BEVEL : Paint.Join.ROUND : join;
                        float f4 = c2455.f9581;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeMiterLimit") != null) {
                            f4 = typedArray2.getFloat(10, f4);
                        }
                        c2455.f9581 = f4;
                        c2455.f9586 = ˋˌ.ᵯٴᵦ(typedArray2, xmlPullParser, theme, "strokeColor", 3);
                        float f5 = c2455.f9578;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeAlpha") != null) {
                            f5 = typedArray2.getFloat(11, f5);
                        }
                        c2455.f9578 = f5;
                        float f6 = c2455.f9576;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeWidth") != null) {
                            f6 = typedArray2.getFloat(4, f6);
                        }
                        c2455.f9576 = f6;
                        float f7 = c2455.f9583;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "trimPathEnd") != null) {
                            f7 = typedArray2.getFloat(6, f7);
                        }
                        c2455.f9583 = f7;
                        float f8 = c2455.f9584;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "trimPathOffset") != null) {
                            f8 = typedArray2.getFloat(7, f8);
                        }
                        c2455.f9584 = f8;
                        float f9 = c2455.f9580;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "trimPathStart") != null) {
                            f9 = typedArray2.getFloat(5, f9);
                        }
                        c2455.f9580 = f9;
                        int i8 = c2455.f1783;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "fillType") != null) {
                            i8 = typedArray2.getInt(13, i8);
                        }
                        c2455.f1783 = i8;
                    }
                    typedArray2.recycle();
                    c19132.f7704.add(c2455);
                    if (c2455.getPathName() != null) {
                        c1200.put(c2455.getPathName(), c2455);
                    }
                    c50633.f18909 = c50633.f18909;
                    z2 = false;
                    c = '\b';
                } else {
                    c = '\b';
                    if ("clip-path".equals(name)) {
                        C4893 c4893 = new C4893();
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "pathData") != null) {
                            TypedArray typedArray3 = ˋˌ.ᵧᵾˀˈ(resources, theme, attributeSet, ˏᵭᵔᵬ.ᵻᵢﹳᵰ);
                            String string4 = typedArray3.getString(0);
                            if (string4 != null) {
                                c4893.f1785 = string4;
                            }
                            String string5 = typedArray3.getString(1);
                            if (string5 != null) {
                                c4893.f1784 = ˁˈᵸ.ᵪʩ(string5);
                            }
                            c4893.f1783 = !ˋˌ.ˑᵱ(xmlPullParser, "fillType") ? 0 : typedArray3.getInt(2, 0);
                            typedArray3.recycle();
                        }
                        c19132.f7704.add(c4893);
                        if (c4893.getPathName() != null) {
                            c1200.put(c4893.getPathName(), c4893);
                        }
                        c50633.f18909 = c50633.f18909;
                    } else if ("group".equals(name)) {
                        C1913 c19133 = new C1913();
                        TypedArray typedArray4 = ˋˌ.ᵧᵾˀˈ(resources, theme, attributeSet, ˏᵭᵔᵬ.ᵴᵳ);
                        float f10 = c19133.f7701;
                        if (ˋˌ.ˑᵱ(xmlPullParser, "rotation")) {
                            f10 = typedArray4.getFloat(5, f10);
                        }
                        c19133.f7701 = f10;
                        c19133.f7708 = typedArray4.getFloat(1, c19133.f7708);
                        c19133.f7698 = typedArray4.getFloat(2, c19133.f7698);
                        float f11 = c19133.f7700;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "scaleX") != null) {
                            f11 = typedArray4.getFloat(3, f11);
                        }
                        c19133.f7700 = f11;
                        float f12 = c19133.f7699;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "scaleY") != null) {
                            f12 = typedArray4.getFloat(4, f12);
                        }
                        c19133.f7699 = f12;
                        float f13 = c19133.f7707;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "translateX") != null) {
                            f13 = typedArray4.getFloat(6, f13);
                        }
                        c19133.f7707 = f13;
                        float f14 = c19133.f7702;
                        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "translateY") != null) {
                            f14 = typedArray4.getFloat(7, f14);
                        }
                        c19133.f7702 = f14;
                        String string6 = typedArray4.getString(0);
                        if (string6 != null) {
                            c19133.f7706 = string6;
                        }
                        c19133.m5382();
                        typedArray4.recycle();
                        c19132.f7704.add(c19133);
                        arrayDeque.push(c19133);
                        if (c19133.getGroupName() != null) {
                            c1200.put(c19133.getGroupName(), c19133);
                        }
                        c50633.f18909 = c50633.f18909;
                    }
                }
                i2 = 1;
            } else {
                i = depth;
                c = '\b';
                i2 = 1;
                if (eventType == 3 && "group".equals(xmlPullParser.getName())) {
                    arrayDeque.pop();
                }
            }
            eventType = xmlPullParser.next();
            i4 = i2;
            depth = i;
        }
        if (z2) {
            throw new XmlPullParserException("no path defined");
        }
        this.f8717 = m5878(c5063.f18907, c5063.f18914);
    }

    @Override // android.graphics.drawable.Drawable
    public final void invalidateSelf() {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.invalidateSelf();
        } else {
            super.invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final boolean isAutoMirrored() {
        Drawable drawable = this.f10372;
        return drawable != null ? drawable.isAutoMirrored() : this.f8714.f18903;
    }

    @Override // android.graphics.drawable.Drawable
    public final boolean isStateful() {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            return drawable.isStateful();
        }
        if (super.isStateful()) {
            return true;
        }
        C5063 c5063 = this.f8714;
        if (c5063 == null) {
            return false;
        }
        C0385 c0385 = c5063.f18910;
        if (c0385.f2228 == null) {
            c0385.f2228 = Boolean.valueOf(c0385.f2223.mo3235());
        }
        if (c0385.f2228.booleanValue()) {
            return true;
        }
        ColorStateList colorStateList = this.f8714.f18907;
        return colorStateList != null && colorStateList.isStateful();
    }

    @Override // android.graphics.drawable.Drawable
    public final Drawable mutate() {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.mutate();
            return this;
        }
        if (!this.f8715 && super.mutate() == this) {
            C5063 c5063 = this.f8714;
            C5063 c50632 = new C5063();
            c50632.f18907 = null;
            c50632.f18914 = f8709;
            if (c5063 != null) {
                c50632.f18909 = c5063.f18909;
                C0385 c0385 = new C0385(c5063.f18910);
                c50632.f18910 = c0385;
                if (c5063.f18910.f2221 != null) {
                    c0385.f2221 = new Paint(c5063.f18910.f2221);
                }
                if (c5063.f18910.f2235 != null) {
                    c50632.f18910.f2235 = new Paint(c5063.f18910.f2235);
                }
                c50632.f18907 = c5063.f18907;
                c50632.f18914 = c5063.f18914;
                c50632.f18903 = c5063.f18903;
            }
            this.f8714 = c50632;
            this.f8715 = true;
        }
        return this;
    }

    @Override // android.graphics.drawable.Drawable
    public final void onBoundsChange(Rect rect) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.setBounds(rect);
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final boolean onStateChange(int[] iArr) {
        boolean z;
        PorterDuff.Mode mode;
        Drawable drawable = this.f10372;
        if (drawable != null) {
            return drawable.setState(iArr);
        }
        C5063 c5063 = this.f8714;
        ColorStateList colorStateList = c5063.f18907;
        if (colorStateList == null || (mode = c5063.f18914) == null) {
            z = false;
        } else {
            this.f8717 = m5878(colorStateList, mode);
            invalidateSelf();
            z = true;
        }
        C0385 c0385 = c5063.f18910;
        if (c0385.f2228 == null) {
            c0385.f2228 = Boolean.valueOf(c0385.f2223.mo3235());
        }
        if (c0385.f2228.booleanValue()) {
            boolean zMo3236 = c5063.f18910.f2223.mo3236(iArr);
            c5063.f18912 |= zMo3236;
            if (zMo3236) {
                invalidateSelf();
                return true;
            }
        }
        return z;
    }

    @Override // android.graphics.drawable.Drawable
    public final void scheduleSelf(Runnable runnable, long j) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.scheduleSelf(runnable, j);
        } else {
            super.scheduleSelf(runnable, j);
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final void setAlpha(int i) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.setAlpha(i);
        } else if (this.f8714.f18910.getRootAlpha() != i) {
            this.f8714.f18910.setRootAlpha(i);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final void setAutoMirrored(boolean z) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.setAutoMirrored(z);
        } else {
            this.f8714.f18903 = z;
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final void setColorFilter(ColorFilter colorFilter) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.setColorFilter(colorFilter);
        } else {
            this.f8716 = colorFilter;
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final void setTint(int i) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.setTint(i);
        } else {
            setTintList(ColorStateList.valueOf(i));
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final void setTintList(ColorStateList colorStateList) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.setTintList(colorStateList);
            return;
        }
        C5063 c5063 = this.f8714;
        if (c5063.f18907 != colorStateList) {
            c5063.f18907 = colorStateList;
            this.f8717 = m5878(colorStateList, c5063.f18914);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final void setTintMode(PorterDuff.Mode mode) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.setTintMode(mode);
            return;
        }
        C5063 c5063 = this.f8714;
        if (c5063.f18914 != mode) {
            c5063.f18914 = mode;
            this.f8717 = m5878(c5063.f18907, mode);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final boolean setVisible(boolean z, boolean z2) {
        Drawable drawable = this.f10372;
        return drawable != null ? drawable.setVisible(z, z2) : super.setVisible(z, z2);
    }

    @Override // android.graphics.drawable.Drawable
    public final void unscheduleSelf(Runnable runnable) {
        Drawable drawable = this.f10372;
        if (drawable != null) {
            drawable.unscheduleSelf(runnable);
        } else {
            super.unscheduleSelf(runnable);
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final PorterDuffColorFilter m5878(ColorStateList colorStateList, PorterDuff.Mode mode) {
        if (colorStateList == null || mode == null) {
            return null;
        }
        return new PorterDuffColorFilter(colorStateList.getColorForState(getState(), 0), mode);
    }
}
