package ῲ.㴪.K.K;

import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.graphics.Shader;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.VectorDrawable;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.util.Xml;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.progressindicator.BaseProgressIndicator;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import ῲ.ᨨ.ʬ.C1708;
import ῲ.ᨨ.ῲ.ῲ.C1802;
import ῲ.㴹.C2284;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.㴪.K.K.ⁱ  reason: contains not printable characters */
/* compiled from: VectorDrawableCompat */
public class C2261 extends AbstractC2272 {

    /* renamed from: ᕣ  reason: contains not printable characters */
    public static final PorterDuff.Mode f7773 = PorterDuff.Mode.SRC_IN;

    /* renamed from: ʬ  reason: contains not printable characters */
    public C2270 f7774;

    /* renamed from: ඓ  reason: contains not printable characters */
    public ColorFilter f7775;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public final Matrix f7776;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public boolean f7777;

    /* renamed from: 㳳  reason: contains not printable characters */
    public final Rect f7778;

    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean f7779;

    /* renamed from: 㸾  reason: contains not printable characters */
    public PorterDuffColorFilter f7780;

    /* renamed from: 㿎  reason: contains not printable characters */
    public final float[] f7781;

    /* renamed from: ῲ.㴪.K.K.ⁱ$ඓ  reason: contains not printable characters */
    /* compiled from: VectorDrawableCompat */
    public static abstract class AbstractC2263 {
        public AbstractC2263() {
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m5884() {
            return false;
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m5885(int[] iArr) {
            return false;
        }

        public /* synthetic */ AbstractC2263(C2267 k) {
        }
    }

    /* renamed from: ῲ.㴪.K.K.ⁱ$ῲ  reason: contains not printable characters */
    /* compiled from: VectorDrawableCompat */
    public static class C2265 extends AbstractC2268 {
        public C2265() {
        }

        @Override // ῲ.㴪.K.K.C2261.AbstractC2268
        /* renamed from: ῲ  reason: contains not printable characters */
        public boolean m5886() {
            return true;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5887(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            if (C2369.m6346(xmlPullParser, "pathData")) {
                TypedArray r2 = C2369.m6305(resources, theme, attributeSet, C2271.f7851);
                String string = r2.getString(0);
                if (string != null) {
                    this.f7813 = string;
                }
                String string2 = r2.getString(1);
                if (string2 != null) {
                    this.f7814 = C2369.m6288(string2);
                }
                this.f7812 = C2369.m6277(r2, xmlPullParser, "fillType", 2, 0);
                r2.recycle();
            }
        }

        public C2265(C2265 r1) {
            super(r1);
        }
    }

    /* renamed from: ῲ.㴪.K.K.ⁱ$㿎  reason: contains not printable characters */
    /* compiled from: VectorDrawableCompat */
    public static class C2270 extends Drawable.ConstantState {

        /* renamed from: ʬ  reason: contains not printable characters */
        public ColorStateList f7829;

        /* renamed from: ඓ  reason: contains not printable characters */
        public boolean f7830;

        /* renamed from: ᕣ  reason: contains not printable characters */
        public boolean f7831;

        /* renamed from: ᨨ  reason: contains not printable characters */
        public int f7832;

        /* renamed from: ῲ  reason: contains not printable characters */
        public C2266 f7833;

        /* renamed from: ⁱ  reason: contains not printable characters */
        public ColorStateList f7834;

        /* renamed from: K  reason: contains not printable characters */
        public int f7835;

        /* renamed from: 㑃  reason: contains not printable characters */
        public Paint f7836;

        /* renamed from: 㳳  reason: contains not printable characters */
        public boolean f7837;

        /* renamed from: 㴹  reason: contains not printable characters */
        public Bitmap f7838;

        /* renamed from: 㸾  reason: contains not printable characters */
        public PorterDuff.Mode f7839;

        /* renamed from: 㿎  reason: contains not printable characters */
        public PorterDuff.Mode f7840;

        public C2270(C2270 r4) {
            this.f7829 = null;
            this.f7839 = C2261.f7773;
            if (r4 != null) {
                this.f7835 = r4.f7835;
                this.f7833 = new C2266(r4.f7833);
                Paint paint = r4.f7833.f7799;
                if (paint != null) {
                    this.f7833.f7799 = new Paint(paint);
                }
                Paint paint2 = r4.f7833.f7809;
                if (paint2 != null) {
                    this.f7833.f7809 = new Paint(paint2);
                }
                this.f7829 = r4.f7829;
                this.f7839 = r4.f7839;
                this.f7830 = r4.f7830;
            }
        }

        public int getChangingConfigurations() {
            return this.f7835;
        }

        public Drawable newDrawable() {
            return new C2261(this);
        }

        /* renamed from: ʬ  reason: contains not printable characters */
        public void m5898(int i, int i2) {
            this.f7838.eraseColor(0);
            this.f7833.m5888(new Canvas(this.f7838), i, i2, null);
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public boolean m5901() {
            return this.f7833.getRootAlpha() < 255;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5903(Canvas canvas, ColorFilter colorFilter, Rect rect) {
            canvas.drawBitmap(this.f7838, (Rect) null, rect, m5902(colorFilter));
        }

        /* renamed from: 㸾  reason: contains not printable characters */
        public void m5907() {
            this.f7834 = this.f7829;
            this.f7840 = this.f7839;
            this.f7832 = this.f7833.getRootAlpha();
            this.f7837 = this.f7830;
            this.f7831 = false;
        }

        public Drawable newDrawable(Resources resources) {
            return new C2261(this);
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public void m5900(int i, int i2) {
            if (this.f7838 == null || !m5905(i, i2)) {
                this.f7838 = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888);
                this.f7831 = true;
            }
        }

        /* renamed from: K  reason: contains not printable characters */
        public Paint m5902(ColorFilter colorFilter) {
            if (!m5901() && colorFilter == null) {
                return null;
            }
            if (this.f7836 == null) {
                this.f7836 = new Paint();
                this.f7836.setFilterBitmap(true);
            }
            this.f7836.setAlpha(this.f7833.getRootAlpha());
            this.f7836.setColorFilter(colorFilter);
            return this.f7836;
        }

        /* renamed from: ʬ  reason: contains not printable characters */
        public boolean m5899() {
            return this.f7833.m5890();
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m5905(int i, int i2) {
            return i == this.f7838.getWidth() && i2 == this.f7838.getHeight();
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m5904() {
            return !this.f7831 && this.f7834 == this.f7829 && this.f7840 == this.f7839 && this.f7837 == this.f7830 && this.f7832 == this.f7833.getRootAlpha();
        }

        public C2270() {
            this.f7829 = null;
            this.f7839 = C2261.f7773;
            this.f7833 = new C2266();
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m5906(int[] iArr) {
            boolean r2 = this.f7833.m5891(iArr);
            this.f7831 |= r2;
            return r2;
        }
    }

    public C2261() {
        this.f7777 = true;
        this.f7781 = new float[9];
        this.f7776 = new Matrix();
        this.f7778 = new Rect();
        this.f7774 = new C2270();
    }

    public static C2261 createFromXmlInner(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        C2261 r0 = new C2261();
        r0.inflate(resources, xmlPullParser, attributeSet, theme);
        return r0;
    }

    public boolean canApplyTheme() {
        Drawable drawable = this.f7853;
        if (drawable == null) {
            return false;
        }
        int i = Build.VERSION.SDK_INT;
        drawable.canApplyTheme();
        return false;
    }

    public void draw(Canvas canvas) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            drawable.draw(canvas);
            return;
        }
        copyBounds(this.f7778);
        if (this.f7778.width() > 0 && this.f7778.height() > 0) {
            ColorFilter colorFilter = this.f7775;
            if (colorFilter == null) {
                colorFilter = this.f7780;
            }
            canvas.getMatrix(this.f7776);
            this.f7776.getValues(this.f7781);
            float abs = Math.abs(this.f7781[0]);
            float abs2 = Math.abs(this.f7781[4]);
            boolean z = true;
            float abs3 = Math.abs(this.f7781[1]);
            float abs4 = Math.abs(this.f7781[3]);
            if (!(abs3 == 0.0f && abs4 == 0.0f)) {
                abs = 1.0f;
                abs2 = 1.0f;
            }
            int min = Math.min((int) RecyclerView.AbstractC0269.FLAG_MOVED, (int) (((float) this.f7778.width()) * abs));
            int min2 = Math.min((int) RecyclerView.AbstractC0269.FLAG_MOVED, (int) (((float) this.f7778.height()) * abs2));
            if (min > 0 && min2 > 0) {
                int save = canvas.save();
                Rect rect = this.f7778;
                canvas.translate((float) rect.left, (float) rect.top);
                int i = Build.VERSION.SDK_INT;
                if (!isAutoMirrored() || C2369.m6278((Drawable) this) != 1) {
                    z = false;
                }
                if (z) {
                    canvas.translate((float) this.f7778.width(), 0.0f);
                    canvas.scale(-1.0f, 1.0f);
                }
                this.f7778.offsetTo(0, 0);
                this.f7774.m5900(min, min2);
                if (!this.f7777) {
                    this.f7774.m5898(min, min2);
                } else if (!this.f7774.m5904()) {
                    this.f7774.m5898(min, min2);
                    this.f7774.m5907();
                }
                this.f7774.m5903(canvas, colorFilter, this.f7778);
                canvas.restoreToCount(save);
            }
        }
    }

    public int getAlpha() {
        Drawable drawable = this.f7853;
        if (drawable == null) {
            return this.f7774.f7833.getRootAlpha();
        }
        int i = Build.VERSION.SDK_INT;
        return drawable.getAlpha();
    }

    public int getChangingConfigurations() {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            return drawable.getChangingConfigurations();
        }
        return super.getChangingConfigurations() | this.f7774.getChangingConfigurations();
    }

    public ColorFilter getColorFilter() {
        Drawable drawable = this.f7853;
        if (drawable == null) {
            return this.f7775;
        }
        int i = Build.VERSION.SDK_INT;
        return drawable.getColorFilter();
    }

    public Drawable.ConstantState getConstantState() {
        Drawable drawable = this.f7853;
        if (drawable != null && Build.VERSION.SDK_INT >= 24) {
            return new C2264(drawable.getConstantState());
        }
        this.f7774.f7835 = getChangingConfigurations();
        return this.f7774;
    }

    public int getIntrinsicHeight() {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            return drawable.getIntrinsicHeight();
        }
        return (int) this.f7774.f7833.f7807;
    }

    public int getIntrinsicWidth() {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            return drawable.getIntrinsicWidth();
        }
        return (int) this.f7774.f7833.f7801;
    }

    public int getOpacity() {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            return drawable.getOpacity();
        }
        return -3;
    }

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

    public void invalidateSelf() {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            drawable.invalidateSelf();
        } else {
            super.invalidateSelf();
        }
    }

    public boolean isAutoMirrored() {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            return C2369.m6271(drawable);
        }
        return this.f7774.f7830;
    }

    public boolean isStateful() {
        C2270 r0;
        ColorStateList colorStateList;
        Drawable drawable = this.f7853;
        if (drawable != null) {
            return drawable.isStateful();
        }
        return super.isStateful() || ((r0 = this.f7774) != null && (r0.m5899() || ((colorStateList = this.f7774.f7829) != null && colorStateList.isStateful())));
    }

    public Drawable mutate() {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            drawable.mutate();
            return this;
        }
        if (!this.f7779 && super.mutate() == this) {
            this.f7774 = new C2270(this.f7774);
            this.f7779 = true;
        }
        return this;
    }

    public void onBoundsChange(Rect rect) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            drawable.setBounds(rect);
        }
    }

    public boolean onStateChange(int[] iArr) {
        PorterDuff.Mode mode;
        Drawable drawable = this.f7853;
        if (drawable != null) {
            return drawable.setState(iArr);
        }
        boolean z = false;
        C2270 r1 = this.f7774;
        ColorStateList colorStateList = r1.f7829;
        if (!(colorStateList == null || (mode = r1.f7839) == null)) {
            this.f7780 = m5880(colorStateList, mode);
            invalidateSelf();
            z = true;
        }
        if (!r1.m5899() || !r1.m5906(iArr)) {
            return z;
        }
        invalidateSelf();
        return true;
    }

    public void scheduleSelf(Runnable runnable, long j) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            drawable.scheduleSelf(runnable, j);
        } else {
            super.scheduleSelf(runnable, j);
        }
    }

    public void setAlpha(int i) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            drawable.setAlpha(i);
        } else if (this.f7774.f7833.getRootAlpha() != i) {
            this.f7774.f7833.setRootAlpha(i);
            invalidateSelf();
        }
    }

    public void setAutoMirrored(boolean z) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            int i = Build.VERSION.SDK_INT;
            drawable.setAutoMirrored(z);
            return;
        }
        this.f7774.f7830 = z;
    }

    public void setColorFilter(ColorFilter colorFilter) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            drawable.setColorFilter(colorFilter);
            return;
        }
        this.f7775 = colorFilter;
        invalidateSelf();
    }

    public void setTint(int i) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            C2369.m6284(drawable, i);
        } else {
            setTintList(ColorStateList.valueOf(i));
        }
    }

    public void setTintList(ColorStateList colorStateList) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            C2369.m6329(drawable, colorStateList);
            return;
        }
        C2270 r0 = this.f7774;
        if (r0.f7829 != colorStateList) {
            r0.f7829 = colorStateList;
            this.f7780 = m5880(colorStateList, r0.f7839);
            invalidateSelf();
        }
    }

    public void setTintMode(PorterDuff.Mode mode) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            C2369.m6330(drawable, mode);
            return;
        }
        C2270 r0 = this.f7774;
        if (r0.f7839 != mode) {
            r0.f7839 = mode;
            this.f7780 = m5880(r0.f7829, mode);
            invalidateSelf();
        }
    }

    public boolean setVisible(boolean z, boolean z2) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            return drawable.setVisible(z, z2);
        }
        return super.setVisible(z, z2);
    }

    public void unscheduleSelf(Runnable runnable) {
        Drawable drawable = this.f7853;
        if (drawable != null) {
            drawable.unscheduleSelf(runnable);
        } else {
            super.unscheduleSelf(runnable);
        }
    }

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

    /* renamed from: ῲ.㴪.K.K.ⁱ$ᨨ  reason: contains not printable characters */
    /* compiled from: VectorDrawableCompat */
    public static class C2264 extends Drawable.ConstantState {

        /* renamed from: K  reason: contains not printable characters */
        public final Drawable.ConstantState f7794;

        public C2264(Drawable.ConstantState constantState) {
            this.f7794 = constantState;
        }

        public boolean canApplyTheme() {
            return this.f7794.canApplyTheme();
        }

        public int getChangingConfigurations() {
            return this.f7794.getChangingConfigurations();
        }

        public Drawable newDrawable() {
            C2261 r0 = new C2261();
            r0.f7853 = (VectorDrawable) this.f7794.newDrawable();
            return r0;
        }

        public Drawable newDrawable(Resources resources) {
            C2261 r0 = new C2261();
            r0.f7853 = (VectorDrawable) this.f7794.newDrawable(resources);
            return r0;
        }

        public Drawable newDrawable(Resources resources, Resources.Theme theme) {
            C2261 r0 = new C2261();
            r0.f7853 = (VectorDrawable) this.f7794.newDrawable(resources, theme);
            return r0;
        }
    }

    /* renamed from: ῲ.㴪.K.K.ⁱ$㴹  reason: contains not printable characters */
    /* compiled from: VectorDrawableCompat */
    public static abstract class AbstractC2268 extends AbstractC2263 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public int f7812 = 0;

        /* renamed from: ῲ  reason: contains not printable characters */
        public String f7813;

        /* renamed from: K  reason: contains not printable characters */
        public C1708[] f7814 = null;

        /* renamed from: 㸾  reason: contains not printable characters */
        public int f7815;

        public AbstractC2268() {
            super(null);
        }

        public C1708[] getPathData() {
            return this.f7814;
        }

        public String getPathName() {
            return this.f7813;
        }

        public void setPathData(C1708[] r7) {
            if (!C2369.m6347(this.f7814, r7)) {
                this.f7814 = C2369.m6349(r7);
                return;
            }
            C1708[] r0 = this.f7814;
            for (int i = 0; i < r7.length; i++) {
                r0[i].f6000 = r7[i].f6000;
                for (int i2 = 0; i2 < r7[i].f5999.length; i2++) {
                    r0[i].f5999[i2] = r7[i].f5999[i2];
                }
            }
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public boolean m5892() {
            return false;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5893(Path path) {
            path.reset();
            C1708[] r0 = this.f7814;
            if (r0 != null) {
                C1708.m4379(r0, path);
            }
        }

        public AbstractC2268(AbstractC2268 r2) {
            super(null);
            this.f7813 = r2.f7813;
            this.f7815 = r2.f7815;
            this.f7814 = C2369.m6349(r2.f7814);
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:12:0x0036 A[Catch:{ XmlPullParserException -> 0x0048, IOException -> 0x0043 }] */
    /* JADX WARNING: Removed duplicated region for block: B:14:0x003b A[Catch:{ XmlPullParserException -> 0x0048, IOException -> 0x0043 }] */
    /* renamed from: K  reason: contains not printable characters */
    public static C2261 m5879(Resources resources, int i, Resources.Theme theme) {
        int next;
        if (Build.VERSION.SDK_INT >= 24) {
            C2261 r0 = new C2261();
            r0.f7853 = C2369.m6280(resources, i, theme);
            new C2264(r0.f7853.getConstantState());
            return r0;
        }
        try {
            XmlResourceParser xml = resources.getXml(i);
            AttributeSet asAttributeSet = Xml.asAttributeSet(xml);
            while (true) {
                next = xml.next();
                if (next == 2 || next == 1) {
                    if (next != 2) {
                        return createFromXmlInner(resources, (XmlPullParser) xml, asAttributeSet, theme);
                    }
                    throw new XmlPullParserException("No start tag found");
                }
            }
            if (next != 2) {
            }
        } catch (XmlPullParserException e) {
            Log.e("VectorDrawableCompat", "parser error", e);
            return null;
        } catch (IOException e2) {
            Log.e("VectorDrawableCompat", "parser error", e2);
            return null;
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:33:0x00b1  */
    /* JADX WARNING: Removed duplicated region for block: B:36:0x00be  */
    /* JADX WARNING: Removed duplicated region for block: B:39:0x00e2  */
    /* JADX WARNING: Removed duplicated region for block: B:89:0x0261  */
    @Override // android.graphics.drawable.Drawable
    public void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        ColorStateList colorStateList;
        Drawable drawable = this.f7853;
        if (drawable != null) {
            int i = Build.VERSION.SDK_INT;
            drawable.inflate(resources, xmlPullParser, attributeSet, theme);
            return;
        }
        C2270 r6 = this.f7774;
        r6.f7833 = new C2266();
        TypedArray r7 = C2369.m6305(resources, theme, attributeSet, C2271.f7847);
        C2270 r8 = this.f7774;
        C2266 r9 = r8.f7833;
        int r0 = C2369.m6277(r7, xmlPullParser, "tintMode", 6, -1);
        PorterDuff.Mode mode = PorterDuff.Mode.SRC_IN;
        if (r0 == 3) {
            mode = PorterDuff.Mode.SRC_OVER;
        } else if (r0 != 5) {
            if (r0 != 9) {
                switch (r0) {
                    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;
            }
        }
        r8.f7839 = mode;
        if (C2369.m6346(xmlPullParser, "tint")) {
            TypedValue typedValue = new TypedValue();
            r7.getValue(1, typedValue);
            int i2 = typedValue.type;
            if (i2 == 2) {
                throw new UnsupportedOperationException("Failed to resolve attribute at index " + 1 + ": " + typedValue);
            } else if (i2 < 28 || i2 > 31) {
                Resources resources2 = r7.getResources();
                try {
                    colorStateList = C2369.m6303(resources2, resources2.getXml(r7.getResourceId(1, 0)), theme);
                } catch (Exception e) {
                    Log.e("CSLCompat", "Failed to inflate ColorStateList.", e);
                }
                if (colorStateList != null) {
                    r8.f7829 = colorStateList;
                }
                boolean z = r8.f7830;
                if (C2369.m6346(xmlPullParser, "autoMirrored")) {
                    z = r7.getBoolean(5, z);
                }
                r8.f7830 = z;
                r9.f7800 = C2369.m6290(r7, xmlPullParser, "viewportWidth", 7, r9.f7800);
                r9.f7805 = C2369.m6290(r7, xmlPullParser, "viewportHeight", 8, r9.f7805);
                if (r9.f7800 <= 0.0f) {
                    throw new XmlPullParserException(r7.getPositionDescription() + "<vector> tag requires viewportWidth > 0");
                } else if (r9.f7805 > 0.0f) {
                    r9.f7801 = r7.getDimension(3, r9.f7801);
                    r9.f7807 = r7.getDimension(2, r9.f7807);
                    if (r9.f7801 <= 0.0f) {
                        throw new XmlPullParserException(r7.getPositionDescription() + "<vector> tag requires width > 0");
                    } else if (r9.f7807 > 0.0f) {
                        r9.setAlpha(C2369.m6290(r7, xmlPullParser, "alpha", 4, r9.getAlpha()));
                        String string = r7.getString(0);
                        if (string != null) {
                            r9.f7797 = string;
                            r9.f7798.put(string, r9);
                        }
                        r7.recycle();
                        r6.f7835 = getChangingConfigurations();
                        r6.f7831 = true;
                        C2270 r02 = this.f7774;
                        C2266 r72 = r02.f7833;
                        ArrayDeque arrayDeque = new ArrayDeque();
                        arrayDeque.push(r72.f7810);
                        int eventType = xmlPullParser.getEventType();
                        int depth = xmlPullParser.getDepth() + 1;
                        boolean z2 = true;
                        for (int i3 = 1; eventType != i3 && (xmlPullParser.getDepth() >= depth || eventType != 3); i3 = 1) {
                            if (eventType == 2) {
                                String name = xmlPullParser.getName();
                                C2269 r10 = (C2269) arrayDeque.peek();
                                if ("path".equals(name)) {
                                    C2262 r92 = new C2262();
                                    r92.m5881(resources, attributeSet, theme, xmlPullParser);
                                    r10.f7820.add(r92);
                                    if (r92.getPathName() != null) {
                                        r72.f7798.put(r92.getPathName(), r92);
                                    }
                                    r02.f7835 = r92.f7815 | r02.f7835;
                                    z2 = false;
                                } else if ("clip-path".equals(name)) {
                                    C2265 r93 = new C2265();
                                    r93.m5887(resources, attributeSet, theme, xmlPullParser);
                                    r10.f7820.add(r93);
                                    if (r93.getPathName() != null) {
                                        r72.f7798.put(r93.getPathName(), r93);
                                    }
                                    r02.f7835 = r93.f7815 | r02.f7835;
                                } else if ("group".equals(name)) {
                                    C2269 r94 = new C2269();
                                    r94.m5895(resources, attributeSet, theme, xmlPullParser);
                                    r10.f7820.add(r94);
                                    arrayDeque.push(r94);
                                    if (r94.getGroupName() != null) {
                                        r72.f7798.put(r94.getGroupName(), r94);
                                    }
                                    r02.f7835 = r94.f7818 | r02.f7835;
                                }
                            } else if (eventType == 3 && "group".equals(xmlPullParser.getName())) {
                                arrayDeque.pop();
                            }
                            eventType = xmlPullParser.next();
                        }
                        if (!z2) {
                            this.f7780 = m5880(r6.f7829, r6.f7839);
                            return;
                        }
                        throw new XmlPullParserException("no path defined");
                    } else {
                        throw new XmlPullParserException(r7.getPositionDescription() + "<vector> tag requires height > 0");
                    }
                } else {
                    throw new XmlPullParserException(r7.getPositionDescription() + "<vector> tag requires viewportHeight > 0");
                }
            } else {
                colorStateList = ColorStateList.valueOf(typedValue.data);
                if (colorStateList != null) {
                }
                boolean z3 = r8.f7830;
                if (C2369.m6346(xmlPullParser, "autoMirrored")) {
                }
                r8.f7830 = z3;
                r9.f7800 = C2369.m6290(r7, xmlPullParser, "viewportWidth", 7, r9.f7800);
                r9.f7805 = C2369.m6290(r7, xmlPullParser, "viewportHeight", 8, r9.f7805);
                if (r9.f7800 <= 0.0f) {
                }
            }
        }
        colorStateList = null;
        if (colorStateList != null) {
        }
        boolean z32 = r8.f7830;
        if (C2369.m6346(xmlPullParser, "autoMirrored")) {
        }
        r8.f7830 = z32;
        r9.f7800 = C2369.m6290(r7, xmlPullParser, "viewportWidth", 7, r9.f7800);
        r9.f7805 = C2369.m6290(r7, xmlPullParser, "viewportHeight", 8, r9.f7805);
        if (r9.f7800 <= 0.0f) {
        }
    }

    public C2261(C2270 r2) {
        this.f7777 = true;
        this.f7781 = new float[9];
        this.f7776 = new Matrix();
        this.f7778 = new Rect();
        this.f7774 = r2;
        this.f7780 = m5880(r2.f7829, r2.f7839);
    }

    /* renamed from: ῲ.㴪.K.K.ⁱ$ʬ  reason: contains not printable characters */
    /* compiled from: VectorDrawableCompat */
    public static class C2262 extends AbstractC2268 {

        /* renamed from: Ԕ  reason: contains not printable characters */
        public Paint.Cap f7782 = Paint.Cap.BUTT;

        /* renamed from: ؿ  reason: contains not printable characters */
        public float f7783 = 4.0f;

        /* renamed from: ඓ  reason: contains not printable characters */
        public int[] f7784;

        /* renamed from: ᕣ  reason: contains not printable characters */
        public float f7785 = 0.0f;

        /* renamed from: ᨨ  reason: contains not printable characters */
        public float f7786 = 1.0f;

        /* renamed from: ⁱ  reason: contains not printable characters */
        public float f7787 = 0.0f;

        /* renamed from: 㑃  reason: contains not printable characters */
        public float f7788 = 1.0f;

        /* renamed from: 㗗  reason: contains not printable characters */
        public Paint.Join f7789 = Paint.Join.MITER;

        /* renamed from: 㳳  reason: contains not printable characters */
        public float f7790 = 1.0f;

        /* renamed from: 㴹  reason: contains not printable characters */
        public C1802 f7791;

        /* renamed from: 㿎  reason: contains not printable characters */
        public C1802 f7792;

        /* renamed from: 䁗  reason: contains not printable characters */
        public float f7793 = 0.0f;

        public C2262() {
        }

        public float getFillAlpha() {
            return this.f7790;
        }

        public int getFillColor() {
            return this.f7792.f6154;
        }

        public float getStrokeAlpha() {
            return this.f7786;
        }

        public int getStrokeColor() {
            return this.f7791.f6154;
        }

        public float getStrokeWidth() {
            return this.f7787;
        }

        public float getTrimPathEnd() {
            return this.f7788;
        }

        public float getTrimPathOffset() {
            return this.f7793;
        }

        public float getTrimPathStart() {
            return this.f7785;
        }

        public void setFillAlpha(float f) {
            this.f7790 = f;
        }

        public void setFillColor(int i) {
            this.f7792.f6154 = i;
        }

        public void setStrokeAlpha(float f) {
            this.f7786 = f;
        }

        public void setStrokeColor(int i) {
            this.f7791.f6154 = i;
        }

        public void setStrokeWidth(float f) {
            this.f7787 = f;
        }

        public void setTrimPathEnd(float f) {
            this.f7788 = f;
        }

        public void setTrimPathOffset(float f) {
            this.f7793 = f;
        }

        public void setTrimPathStart(float f) {
            this.f7785 = f;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5881(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            TypedArray r8 = C2369.m6305(resources, theme, attributeSet, C2271.f7841);
            this.f7784 = null;
            if (C2369.m6346(xmlPullParser, "pathData")) {
                String string = r8.getString(0);
                if (string != null) {
                    this.f7813 = string;
                }
                String string2 = r8.getString(2);
                if (string2 != null) {
                    this.f7814 = C2369.m6288(string2);
                }
                this.f7792 = C2369.m6322(r8, xmlPullParser, theme, "fillColor", 1, 0);
                this.f7790 = C2369.m6290(r8, xmlPullParser, "fillAlpha", 12, this.f7790);
                int r0 = C2369.m6277(r8, xmlPullParser, "strokeLineCap", 8, -1);
                Paint.Cap cap = this.f7782;
                if (r0 == 0) {
                    cap = Paint.Cap.BUTT;
                } else if (r0 == 1) {
                    cap = Paint.Cap.ROUND;
                } else if (r0 == 2) {
                    cap = Paint.Cap.SQUARE;
                }
                this.f7782 = cap;
                int r02 = C2369.m6277(r8, xmlPullParser, "strokeLineJoin", 9, -1);
                Paint.Join join = this.f7789;
                if (r02 == 0) {
                    join = Paint.Join.MITER;
                } else if (r02 == 1) {
                    join = Paint.Join.ROUND;
                } else if (r02 == 2) {
                    join = Paint.Join.BEVEL;
                }
                this.f7789 = join;
                this.f7783 = C2369.m6290(r8, xmlPullParser, "strokeMiterLimit", 10, this.f7783);
                this.f7791 = C2369.m6322(r8, xmlPullParser, theme, "strokeColor", 3, 0);
                this.f7786 = C2369.m6290(r8, xmlPullParser, "strokeAlpha", 11, this.f7786);
                this.f7787 = C2369.m6290(r8, xmlPullParser, "strokeWidth", 4, this.f7787);
                this.f7788 = C2369.m6290(r8, xmlPullParser, "trimPathEnd", 6, this.f7788);
                this.f7793 = C2369.m6290(r8, xmlPullParser, "trimPathOffset", 7, this.f7793);
                this.f7785 = C2369.m6290(r8, xmlPullParser, "trimPathStart", 5, this.f7785);
                this.f7812 = C2369.m6277(r8, xmlPullParser, "fillType", 13, this.f7812);
            }
            r8.recycle();
        }

        public C2262(C2262 r3) {
            super(r3);
            this.f7784 = r3.f7784;
            this.f7791 = r3.f7791;
            this.f7787 = r3.f7787;
            this.f7786 = r3.f7786;
            this.f7792 = r3.f7792;
            this.f7812 = r3.f7812;
            this.f7790 = r3.f7790;
            this.f7785 = r3.f7785;
            this.f7788 = r3.f7788;
            this.f7793 = r3.f7793;
            this.f7782 = r3.f7782;
            this.f7789 = r3.f7789;
            this.f7783 = r3.f7783;
        }

        @Override // ῲ.㴪.K.K.C2261.AbstractC2263
        /* renamed from: K  reason: contains not printable characters */
        public boolean m5882() {
            return this.f7792.m4677() || this.f7791.m4677();
        }

        @Override // ῲ.㴪.K.K.C2261.AbstractC2263
        /* renamed from: K  reason: contains not printable characters */
        public boolean m5883(int[] iArr) {
            return this.f7791.m4680(iArr) | this.f7792.m4680(iArr);
        }
    }

    /* renamed from: ῲ.㴪.K.K.ⁱ$ⁱ  reason: contains not printable characters */
    /* compiled from: VectorDrawableCompat */
    public static class C2266 {

        /* renamed from: ᓣ  reason: contains not printable characters */
        public static final Matrix f7795 = new Matrix();

        /* renamed from: ʬ  reason: contains not printable characters */
        public final Matrix f7796;

        /* renamed from: Ԕ  reason: contains not printable characters */
        public String f7797;

        /* renamed from: ؿ  reason: contains not printable characters */
        public final C2284<String, Object> f7798;

        /* renamed from: ඓ  reason: contains not printable characters */
        public Paint f7799;

        /* renamed from: ᕣ  reason: contains not printable characters */
        public float f7800;

        /* renamed from: ᨨ  reason: contains not printable characters */
        public float f7801;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final Path f7802;

        /* renamed from: ⁱ  reason: contains not printable characters */
        public int f7803;

        /* renamed from: K  reason: contains not printable characters */
        public final Path f7804;

        /* renamed from: 㑃  reason: contains not printable characters */
        public float f7805;

        /* renamed from: 㗗  reason: contains not printable characters */
        public Boolean f7806;

        /* renamed from: 㳳  reason: contains not printable characters */
        public float f7807;

        /* renamed from: 㴹  reason: contains not printable characters */
        public PathMeasure f7808;

        /* renamed from: 㸾  reason: contains not printable characters */
        public Paint f7809;

        /* renamed from: 㿎  reason: contains not printable characters */
        public final C2269 f7810;

        /* renamed from: 䁗  reason: contains not printable characters */
        public int f7811;

        public C2266() {
            this.f7796 = new Matrix();
            this.f7801 = 0.0f;
            this.f7807 = 0.0f;
            this.f7800 = 0.0f;
            this.f7805 = 0.0f;
            this.f7811 = BaseProgressIndicator.MAX_ALPHA;
            this.f7797 = null;
            this.f7806 = null;
            this.f7798 = new C2284<>();
            this.f7810 = new C2269();
            this.f7804 = new Path();
            this.f7802 = new Path();
        }

        public float getAlpha() {
            return ((float) getRootAlpha()) / 255.0f;
        }

        public int getRootAlpha() {
            return this.f7811;
        }

        public void setAlpha(float f) {
            setRootAlpha((int) (f * 255.0f));
        }

        public void setRootAlpha(int i) {
            this.f7811 = i;
        }

        /* JADX DEBUG: Multi-variable search result rejected for r13v16, resolved type: android.graphics.PathMeasure */
        /* JADX WARN: Multi-variable type inference failed */
        /* JADX WARN: Type inference failed for: r11v0 */
        /* JADX WARN: Type inference failed for: r11v1, types: [boolean] */
        /* JADX WARN: Type inference failed for: r11v2 */
        /* JADX WARNING: Unknown variable types count: 1 */
        /* renamed from: K  reason: contains not printable characters */
        public final void m5889(C2269 r17, Matrix matrix, Canvas canvas, int i, int i2, ColorFilter colorFilter) {
            C2266 r5;
            C2266 r7 = this;
            r17.f7822.set(matrix);
            r17.f7822.preConcat(r17.f7824);
            canvas.save();
            ?? r11 = 0;
            int i3 = 0;
            while (i3 < r17.f7820.size()) {
                AbstractC2263 r0 = r17.f7820.get(i3);
                if (r0 instanceof C2269) {
                    m5889((C2269) r0, r17.f7822, canvas, i, i2, colorFilter);
                } else if (r0 instanceof AbstractC2268) {
                    AbstractC2268 r02 = (AbstractC2268) r0;
                    float f = ((float) i) / r7.f7800;
                    float f2 = ((float) i2) / r7.f7805;
                    float min = Math.min(f, f2);
                    Matrix matrix2 = r17.f7822;
                    r7.f7796.set(matrix2);
                    r7.f7796.postScale(f, f2);
                    float[] fArr = {0.0f, 1.0f, 1.0f, 0.0f};
                    matrix2.mapVectors(fArr);
                    char c = r11 == true ? 1 : 0;
                    char c2 = r11 == true ? 1 : 0;
                    char c3 = r11 == true ? 1 : 0;
                    float f3 = (fArr[r11] * fArr[3]) - (fArr[1] * fArr[2]);
                    float max = Math.max((float) Math.hypot((double) fArr[c], (double) fArr[1]), (float) Math.hypot((double) fArr[2], (double) fArr[3]));
                    float abs = max > 0.0f ? Math.abs(f3) / max : 0.0f;
                    if (abs == 0.0f) {
                        r5 = this;
                    } else {
                        r5 = this;
                        r02.m5893(r5.f7804);
                        Path path = r5.f7804;
                        r5.f7802.reset();
                        if (r02.m5892()) {
                            r5.f7802.setFillType(r02.f7812 == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
                            r5.f7802.addPath(path, r5.f7796);
                            canvas.clipPath(r5.f7802);
                        } else {
                            C2262 r03 = (C2262) r02;
                            if (!(r03.f7785 == 0.0f && r03.f7788 == 1.0f)) {
                                float f4 = r03.f7785;
                                float f5 = r03.f7793;
                                float f6 = (f4 + f5) % 1.0f;
                                float f7 = (r03.f7788 + f5) % 1.0f;
                                if (r5.f7808 == null) {
                                    r5.f7808 = new PathMeasure();
                                }
                                r5.f7808.setPath(r5.f7804, r11);
                                float length = r5.f7808.getLength();
                                float f8 = f6 * length;
                                float f9 = f7 * length;
                                path.reset();
                                if (f8 > f9) {
                                    r5.f7808.getSegment(f8, length, path, true);
                                    r5.f7808.getSegment(0.0f, f9, path, true);
                                } else {
                                    r5.f7808.getSegment(f8, f9, path, true);
                                }
                                path.rLineTo(0.0f, 0.0f);
                            }
                            r5.f7802.addPath(path, r5.f7796);
                            if (r03.f7792.m4681()) {
                                C1802 k = r03.f7792;
                                if (r5.f7799 == null) {
                                    r5.f7799 = new Paint(1);
                                    r5.f7799.setStyle(Paint.Style.FILL);
                                }
                                Paint paint = r5.f7799;
                                if (k.m4678()) {
                                    Shader r4 = k.m4679();
                                    r4.setLocalMatrix(r5.f7796);
                                    paint.setShader(r4);
                                    paint.setAlpha(Math.round(r03.f7790 * 255.0f));
                                } else {
                                    paint.setShader(null);
                                    paint.setAlpha(BaseProgressIndicator.MAX_ALPHA);
                                    paint.setColor(C2261.m5878(k.f6154, r03.f7790));
                                }
                                paint.setColorFilter(colorFilter);
                                r5.f7802.setFillType(r03.f7812 == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
                                canvas.drawPath(r5.f7802, paint);
                            }
                            if (r03.f7791.m4681()) {
                                C1802 k2 = r03.f7791;
                                if (r5.f7809 == null) {
                                    r5.f7809 = new Paint(1);
                                    r5.f7809.setStyle(Paint.Style.STROKE);
                                }
                                Paint paint2 = r5.f7809;
                                Paint.Join join = r03.f7789;
                                if (join != null) {
                                    paint2.setStrokeJoin(join);
                                }
                                Paint.Cap cap = r03.f7782;
                                if (cap != null) {
                                    paint2.setStrokeCap(cap);
                                }
                                paint2.setStrokeMiter(r03.f7783);
                                if (k2.m4678()) {
                                    Shader r42 = k2.m4679();
                                    r42.setLocalMatrix(r5.f7796);
                                    paint2.setShader(r42);
                                    paint2.setAlpha(Math.round(r03.f7786 * 255.0f));
                                } else {
                                    paint2.setShader(null);
                                    paint2.setAlpha(BaseProgressIndicator.MAX_ALPHA);
                                    paint2.setColor(C2261.m5878(k2.f6154, r03.f7786));
                                }
                                paint2.setColorFilter(colorFilter);
                                paint2.setStrokeWidth(r03.f7787 * abs * min);
                                canvas.drawPath(r5.f7802, paint2);
                            }
                        }
                    }
                    i3++;
                    r7 = r5;
                    r11 = 0;
                }
                r5 = r7;
                i3++;
                r7 = r5;
                r11 = 0;
            }
            canvas.restore();
        }

        public C2266(C2266 r4) {
            this.f7796 = new Matrix();
            this.f7801 = 0.0f;
            this.f7807 = 0.0f;
            this.f7800 = 0.0f;
            this.f7805 = 0.0f;
            this.f7811 = BaseProgressIndicator.MAX_ALPHA;
            this.f7797 = null;
            this.f7806 = null;
            this.f7798 = new C2284<>();
            this.f7810 = new C2269(r4.f7810, this.f7798);
            this.f7804 = new Path(r4.f7804);
            this.f7802 = new Path(r4.f7802);
            this.f7801 = r4.f7801;
            this.f7807 = r4.f7807;
            this.f7800 = r4.f7800;
            this.f7805 = r4.f7805;
            this.f7803 = r4.f7803;
            this.f7811 = r4.f7811;
            this.f7797 = r4.f7797;
            String str = r4.f7797;
            if (str != null) {
                this.f7798.put(str, this);
            }
            this.f7806 = r4.f7806;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5888(Canvas canvas, int i, int i2, ColorFilter colorFilter) {
            m5889(this.f7810, f7795, canvas, i, i2, colorFilter);
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m5890() {
            if (this.f7806 == null) {
                this.f7806 = Boolean.valueOf(this.f7810.m5896());
            }
            return this.f7806.booleanValue();
        }

        /* renamed from: K  reason: contains not printable characters */
        public boolean m5891(int[] iArr) {
            return this.f7810.m5897(iArr);
        }
    }

    /* renamed from: ῲ.㴪.K.K.ⁱ$㸾  reason: contains not printable characters */
    /* compiled from: VectorDrawableCompat */
    public static class C2269 extends AbstractC2263 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public float f7816 = 0.0f;

        /* renamed from: ඓ  reason: contains not printable characters */
        public float f7817 = 0.0f;

        /* renamed from: ᕣ  reason: contains not printable characters */
        public int f7818;

        /* renamed from: ᨨ  reason: contains not printable characters */
        public float f7819 = 0.0f;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final ArrayList<AbstractC2263> f7820 = new ArrayList<>();

        /* renamed from: ⁱ  reason: contains not printable characters */
        public float f7821 = 1.0f;

        /* renamed from: K  reason: contains not printable characters */
        public final Matrix f7822 = new Matrix();

        /* renamed from: 㑃  reason: contains not printable characters */
        public int[] f7823;

        /* renamed from: 㳳  reason: contains not printable characters */
        public final Matrix f7824 = new Matrix();

        /* renamed from: 㴹  reason: contains not printable characters */
        public float f7825 = 1.0f;

        /* renamed from: 㸾  reason: contains not printable characters */
        public float f7826 = 0.0f;

        /* renamed from: 㿎  reason: contains not printable characters */
        public float f7827 = 0.0f;

        /* renamed from: 䁗  reason: contains not printable characters */
        public String f7828 = null;

        public C2269(C2269 r5, C2284<String, Object> k) {
            super(null);
            AbstractC2268 r2;
            this.f7816 = r5.f7816;
            this.f7826 = r5.f7826;
            this.f7817 = r5.f7817;
            this.f7825 = r5.f7825;
            this.f7821 = r5.f7821;
            this.f7827 = r5.f7827;
            this.f7819 = r5.f7819;
            this.f7823 = r5.f7823;
            this.f7828 = r5.f7828;
            this.f7818 = r5.f7818;
            String str = this.f7828;
            if (str != null) {
                k.put(str, this);
            }
            this.f7824.set(r5.f7824);
            ArrayList<AbstractC2263> arrayList = r5.f7820;
            for (int i = 0; i < arrayList.size(); i++) {
                AbstractC2263 r1 = arrayList.get(i);
                if (r1 instanceof C2269) {
                    this.f7820.add(new C2269((C2269) r1, k));
                } else {
                    if (r1 instanceof C2262) {
                        r2 = new C2262((C2262) r1);
                    } else if (r1 instanceof C2265) {
                        r2 = new C2265((C2265) r1);
                    } else {
                        throw new IllegalStateException("Unknown object in the tree!");
                    }
                    this.f7820.add(r2);
                    String str2 = r2.f7813;
                    if (str2 != null) {
                        k.put(str2, r2);
                    }
                }
            }
        }

        public String getGroupName() {
            return this.f7828;
        }

        public Matrix getLocalMatrix() {
            return this.f7824;
        }

        public float getPivotX() {
            return this.f7826;
        }

        public float getPivotY() {
            return this.f7817;
        }

        public float getRotation() {
            return this.f7816;
        }

        public float getScaleX() {
            return this.f7825;
        }

        public float getScaleY() {
            return this.f7821;
        }

        public float getTranslateX() {
            return this.f7827;
        }

        public float getTranslateY() {
            return this.f7819;
        }

        public void setPivotX(float f) {
            if (f != this.f7826) {
                this.f7826 = f;
                m5894();
            }
        }

        public void setPivotY(float f) {
            if (f != this.f7817) {
                this.f7817 = f;
                m5894();
            }
        }

        public void setRotation(float f) {
            if (f != this.f7816) {
                this.f7816 = f;
                m5894();
            }
        }

        public void setScaleX(float f) {
            if (f != this.f7825) {
                this.f7825 = f;
                m5894();
            }
        }

        public void setScaleY(float f) {
            if (f != this.f7821) {
                this.f7821 = f;
                m5894();
            }
        }

        public void setTranslateX(float f) {
            if (f != this.f7827) {
                this.f7827 = f;
                m5894();
            }
        }

        public void setTranslateY(float f) {
            if (f != this.f7819) {
                this.f7819 = f;
                m5894();
            }
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public final void m5894() {
            this.f7824.reset();
            this.f7824.postTranslate(-this.f7826, -this.f7817);
            this.f7824.postScale(this.f7825, this.f7821);
            this.f7824.postRotate(this.f7816, 0.0f, 0.0f);
            this.f7824.postTranslate(this.f7827 + this.f7826, this.f7819 + this.f7817);
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m5895(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            TypedArray r2 = C2369.m6305(resources, theme, attributeSet, C2271.f7845);
            this.f7823 = null;
            this.f7816 = C2369.m6290(r2, xmlPullParser, "rotation", 5, this.f7816);
            this.f7826 = r2.getFloat(1, this.f7826);
            this.f7817 = r2.getFloat(2, this.f7817);
            this.f7825 = C2369.m6290(r2, xmlPullParser, "scaleX", 3, this.f7825);
            this.f7821 = C2369.m6290(r2, xmlPullParser, "scaleY", 4, this.f7821);
            this.f7827 = C2369.m6290(r2, xmlPullParser, "translateX", 6, this.f7827);
            this.f7819 = C2369.m6290(r2, xmlPullParser, "translateY", 7, this.f7819);
            String string = r2.getString(0);
            if (string != null) {
                this.f7828 = string;
            }
            m5894();
            r2.recycle();
        }

        @Override // ῲ.㴪.K.K.C2261.AbstractC2263
        /* renamed from: K  reason: contains not printable characters */
        public boolean m5896() {
            for (int i = 0; i < this.f7820.size(); i++) {
                if (this.f7820.get(i).m5884()) {
                    return true;
                }
            }
            return false;
        }

        @Override // ῲ.㴪.K.K.C2261.AbstractC2263
        /* renamed from: K  reason: contains not printable characters */
        public boolean m5897(int[] iArr) {
            boolean z = false;
            for (int i = 0; i < this.f7820.size(); i++) {
                z |= this.f7820.get(i).m5885(iArr);
            }
            return z;
        }

        public C2269() {
            super(null);
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static int m5878(int i, float f) {
        return (i & 16777215) | (((int) (((float) Color.alpha(i)) * f)) << 24);
    }
}
