package p037.p119.p120.p121;

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 java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import p037.p041.p042.LayoutInflaterFactory2C1494;
import p037.p057.C1714;
import p037.p065.p068.p069.C1852;
import p037.p065.p070.C1864;

/* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C2530 extends AbstractC2529 {

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public static final PorterDuff.Mode f7927 = PorterDuff.Mode.SRC_IN;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public C2538 f7928;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public PorterDuffColorFilter f7929;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public ColorFilter f7930;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public boolean f7931;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public boolean f7932;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public final float[] f7933;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public final Matrix f7934;

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public final Rect f7935;

    /* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ$ؠ, reason: contains not printable characters */
    public static class C2532 extends AbstractC2536 {
        public C2532() {
        }

        public C2532(C2532 c2532) {
            super(c2532);
        }

        @Override // p037.p119.p120.p121.C2530.AbstractC2536
        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public boolean mo4599() {
            return true;
        }
    }

    /* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ$ހ, reason: contains not printable characters */
    public static class C2533 extends AbstractC2536 {

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public int[] f7936;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public C1852 f7937;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public float f7938;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public C1852 f7939;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public float f7940;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public float f7941;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public float f7942;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public float f7943;

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public float f7944;

        /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
        public Paint.Cap f7945;

        /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
        public Paint.Join f7946;

        /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
        public float f7947;

        public C2533() {
            this.f7938 = 0.0f;
            this.f7940 = 1.0f;
            this.f7941 = 1.0f;
            this.f7942 = 0.0f;
            this.f7943 = 1.0f;
            this.f7944 = 0.0f;
            this.f7945 = Paint.Cap.BUTT;
            this.f7946 = Paint.Join.MITER;
            this.f7947 = 4.0f;
        }

        public C2533(C2533 c2533) {
            super(c2533);
            this.f7938 = 0.0f;
            this.f7940 = 1.0f;
            this.f7941 = 1.0f;
            this.f7942 = 0.0f;
            this.f7943 = 1.0f;
            this.f7944 = 0.0f;
            this.f7945 = Paint.Cap.BUTT;
            this.f7946 = Paint.Join.MITER;
            this.f7947 = 4.0f;
            this.f7936 = c2533.f7936;
            this.f7937 = c2533.f7937;
            this.f7938 = c2533.f7938;
            this.f7940 = c2533.f7940;
            this.f7939 = c2533.f7939;
            this.f7963 = c2533.f7963;
            this.f7941 = c2533.f7941;
            this.f7942 = c2533.f7942;
            this.f7943 = c2533.f7943;
            this.f7944 = c2533.f7944;
            this.f7945 = c2533.f7945;
            this.f7946 = c2533.f7946;
            this.f7947 = c2533.f7947;
        }

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

        public int getFillColor() {
            return this.f7939.f6231;
        }

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

        public int getStrokeColor() {
            return this.f7937.f6231;
        }

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

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

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

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

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

        public void setFillColor(int i) {
            this.f7939.f6231 = i;
        }

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

        public void setStrokeColor(int i) {
            this.f7937.f6231 = i;
        }

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

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

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

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

        @Override // p037.p119.p120.p121.C2530.AbstractC2535
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean mo4600() {
            return this.f7939.m3661() || this.f7937.m3661();
        }

        @Override // p037.p119.p120.p121.C2530.AbstractC2535
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean mo4601(int[] iArr) {
            return this.f7937.m3660(iArr) | this.f7939.m3660(iArr);
        }
    }

    /* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ$ށ, reason: contains not printable characters */
    public static class C2534 extends AbstractC2535 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final Matrix f7948;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final ArrayList<AbstractC2535> f7949;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public float f7950;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public float f7951;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public float f7952;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public float f7953;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public float f7954;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public float f7955;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public float f7956;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public final Matrix f7957;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public int f7958;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public int[] f7959;

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public String f7960;

        public C2534() {
            super(null);
            this.f7948 = new Matrix();
            this.f7949 = new ArrayList<>();
            this.f7950 = 0.0f;
            this.f7951 = 0.0f;
            this.f7952 = 0.0f;
            this.f7953 = 1.0f;
            this.f7954 = 1.0f;
            this.f7955 = 0.0f;
            this.f7956 = 0.0f;
            this.f7957 = new Matrix();
            this.f7960 = null;
        }

        public C2534(C2534 c2534, C1714<String, Object> c1714) {
            AbstractC2536 c2532;
            super(null);
            this.f7948 = new Matrix();
            this.f7949 = new ArrayList<>();
            this.f7950 = 0.0f;
            this.f7951 = 0.0f;
            this.f7952 = 0.0f;
            this.f7953 = 1.0f;
            this.f7954 = 1.0f;
            this.f7955 = 0.0f;
            this.f7956 = 0.0f;
            this.f7957 = new Matrix();
            this.f7960 = null;
            this.f7950 = c2534.f7950;
            this.f7951 = c2534.f7951;
            this.f7952 = c2534.f7952;
            this.f7953 = c2534.f7953;
            this.f7954 = c2534.f7954;
            this.f7955 = c2534.f7955;
            this.f7956 = c2534.f7956;
            this.f7959 = c2534.f7959;
            String str = c2534.f7960;
            this.f7960 = str;
            this.f7958 = c2534.f7958;
            if (str != null) {
                c1714.put(str, this);
            }
            this.f7957.set(c2534.f7957);
            ArrayList<AbstractC2535> arrayList = c2534.f7949;
            for (int i = 0; i < arrayList.size(); i++) {
                AbstractC2535 abstractC2535 = arrayList.get(i);
                if (abstractC2535 instanceof C2534) {
                    this.f7949.add(new C2534((C2534) abstractC2535, c1714));
                } else {
                    if (abstractC2535 instanceof C2533) {
                        c2532 = new C2533((C2533) abstractC2535);
                    } else {
                        if (!(abstractC2535 instanceof C2532)) {
                            throw new IllegalStateException("Unknown object in the tree!");
                        }
                        c2532 = new C2532((C2532) abstractC2535);
                    }
                    this.f7949.add(c2532);
                    String str2 = c2532.f7962;
                    if (str2 != null) {
                        c1714.put(str2, c2532);
                    }
                }
            }
        }

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

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

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

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

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

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

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

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

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

        public void setPivotX(float f) {
            if (f != this.f7951) {
                this.f7951 = f;
                m4602();
            }
        }

        public void setPivotY(float f) {
            if (f != this.f7952) {
                this.f7952 = f;
                m4602();
            }
        }

        public void setRotation(float f) {
            if (f != this.f7950) {
                this.f7950 = f;
                m4602();
            }
        }

        public void setScaleX(float f) {
            if (f != this.f7953) {
                this.f7953 = f;
                m4602();
            }
        }

        public void setScaleY(float f) {
            if (f != this.f7954) {
                this.f7954 = f;
                m4602();
            }
        }

        public void setTranslateX(float f) {
            if (f != this.f7955) {
                this.f7955 = f;
                m4602();
            }
        }

        public void setTranslateY(float f) {
            if (f != this.f7956) {
                this.f7956 = f;
                m4602();
            }
        }

        @Override // p037.p119.p120.p121.C2530.AbstractC2535
        /* JADX INFO: renamed from: ֏ */
        public boolean mo4600() {
            for (int i = 0; i < this.f7949.size(); i++) {
                if (this.f7949.get(i).mo4600()) {
                    return true;
                }
            }
            return false;
        }

        @Override // p037.p119.p120.p121.C2530.AbstractC2535
        /* JADX INFO: renamed from: ֏ */
        public boolean mo4601(int[] iArr) {
            boolean zMo4601 = false;
            for (int i = 0; i < this.f7949.size(); i++) {
                zMo4601 |= this.f7949.get(i).mo4601(iArr);
            }
            return zMo4601;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final void m4602() {
            this.f7957.reset();
            this.f7957.postTranslate(-this.f7951, -this.f7952);
            this.f7957.postScale(this.f7953, this.f7954);
            this.f7957.postRotate(this.f7950, 0.0f, 0.0f);
            this.f7957.postTranslate(this.f7955 + this.f7951, this.f7956 + this.f7952);
        }
    }

    /* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ$ނ, reason: contains not printable characters */
    public static abstract class AbstractC2535 {
        public AbstractC2535() {
        }

        public /* synthetic */ AbstractC2535(C2531 c2531) {
        }

        /* JADX INFO: renamed from: ֏ */
        public boolean mo4600() {
            return false;
        }

        /* JADX INFO: renamed from: ֏ */
        public boolean mo4601(int[] iArr) {
            return false;
        }
    }

    /* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ$ރ, reason: contains not printable characters */
    public static abstract class AbstractC2536 extends AbstractC2535 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public C1864[] f7961;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public String f7962;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public int f7963;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public int f7964;

        public AbstractC2536() {
            super(null);
            this.f7961 = null;
            this.f7963 = 0;
        }

        public AbstractC2536(AbstractC2536 abstractC2536) {
            super(null);
            this.f7961 = null;
            this.f7963 = 0;
            this.f7962 = abstractC2536.f7962;
            this.f7964 = abstractC2536.f7964;
            this.f7961 = LayoutInflaterFactory2C1494.C1505.m2967(abstractC2536.f7961);
        }

        public C1864[] getPathData() {
            return this.f7961;
        }

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

        public void setPathData(C1864[] c1864Arr) {
            if (!LayoutInflaterFactory2C1494.C1505.m2964(this.f7961, c1864Arr)) {
                this.f7961 = LayoutInflaterFactory2C1494.C1505.m2967(c1864Arr);
                return;
            }
            C1864[] c1864Arr2 = this.f7961;
            for (int i = 0; i < c1864Arr.length; i++) {
                c1864Arr2[i].f6256 = c1864Arr[i].f6256;
                for (int i2 = 0; i2 < c1864Arr[i].f6257.length; i2++) {
                    c1864Arr2[i].f6257[i2] = c1864Arr[i].f6257[i2];
                }
            }
        }

        /* JADX INFO: renamed from: ؠ */
        public boolean mo4599() {
            return false;
        }
    }

    /* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ$ބ, reason: contains not printable characters */
    public static class C2537 {

        /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
        public static final Matrix f7965 = new Matrix();

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final Path f7966;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final Path f7967;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final Matrix f7968;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public Paint f7969;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public Paint f7970;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public PathMeasure f7971;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public int f7972;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final C2534 f7973;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public float f7974;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public float f7975;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public float f7976;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public float f7977;

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public int f7978;

        /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
        public String f7979;

        /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
        public Boolean f7980;

        /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
        public final C1714<String, Object> f7981;

        public C2537() {
            this.f7968 = new Matrix();
            this.f7974 = 0.0f;
            this.f7975 = 0.0f;
            this.f7976 = 0.0f;
            this.f7977 = 0.0f;
            this.f7978 = 255;
            this.f7979 = null;
            this.f7980 = null;
            this.f7981 = new C1714<>();
            this.f7973 = new C2534();
            this.f7966 = new Path();
            this.f7967 = new Path();
        }

        public C2537(C2537 c2537) {
            this.f7968 = new Matrix();
            this.f7974 = 0.0f;
            this.f7975 = 0.0f;
            this.f7976 = 0.0f;
            this.f7977 = 0.0f;
            this.f7978 = 255;
            this.f7979 = null;
            this.f7980 = null;
            C1714<String, Object> c1714 = new C1714<>();
            this.f7981 = c1714;
            this.f7973 = new C2534(c2537.f7973, c1714);
            this.f7966 = new Path(c2537.f7966);
            this.f7967 = new Path(c2537.f7967);
            this.f7974 = c2537.f7974;
            this.f7975 = c2537.f7975;
            this.f7976 = c2537.f7976;
            this.f7977 = c2537.f7977;
            this.f7972 = c2537.f7972;
            this.f7978 = c2537.f7978;
            this.f7979 = c2537.f7979;
            String str = c2537.f7979;
            if (str != null) {
                this.f7981.put(str, this);
            }
            this.f7980 = c2537.f7980;
        }

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

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

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

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

        /* 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: r11v11 */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final void m4603(C2534 c2534, Matrix matrix, Canvas canvas, int i, int i2, ColorFilter colorFilter) {
            C2537 c2537;
            C2537 c25372 = this;
            c2534.f7948.set(matrix);
            c2534.f7948.preConcat(c2534.f7957);
            canvas.save();
            ?? r11 = 0;
            int i3 = 0;
            while (i3 < c2534.f7949.size()) {
                AbstractC2535 abstractC2535 = c2534.f7949.get(i3);
                if (abstractC2535 instanceof C2534) {
                    m4603((C2534) abstractC2535, c2534.f7948, canvas, i, i2, colorFilter);
                } else {
                    if (abstractC2535 instanceof AbstractC2536) {
                        AbstractC2536 abstractC2536 = (AbstractC2536) abstractC2535;
                        float f = i / c25372.f7976;
                        float f2 = i2 / c25372.f7977;
                        float fMin = Math.min(f, f2);
                        Matrix matrix2 = c2534.f7948;
                        c25372.f7968.set(matrix2);
                        c25372.f7968.postScale(f, f2);
                        float[] fArr = {0.0f, 1.0f, 1.0f, 0.0f};
                        matrix2.mapVectors(fArr);
                        float fHypot = (float) Math.hypot(fArr[r11], fArr[1]);
                        float fHypot2 = (float) Math.hypot(fArr[2], fArr[3]);
                        float f3 = (fArr[r11] * fArr[3]) - (fArr[1] * fArr[2]);
                        float fMax = Math.max(fHypot, fHypot2);
                        float fAbs = fMax > 0.0f ? Math.abs(f3) / fMax : 0.0f;
                        if (fAbs == 0.0f) {
                            c2537 = this;
                        } else {
                            c2537 = this;
                            Path path = c2537.f7966;
                            if (abstractC2536 == null) {
                                throw null;
                            }
                            path.reset();
                            C1864[] c1864Arr = abstractC2536.f7961;
                            if (c1864Arr != null) {
                                C1864.m3670(c1864Arr, path);
                            }
                            Path path2 = c2537.f7966;
                            c2537.f7967.reset();
                            if (abstractC2536.mo4599()) {
                                c2537.f7967.setFillType(abstractC2536.f7963 == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
                                c2537.f7967.addPath(path2, c2537.f7968);
                                canvas.clipPath(c2537.f7967);
                            } else {
                                C2533 c2533 = (C2533) abstractC2536;
                                if (c2533.f7942 != 0.0f || c2533.f7943 != 1.0f) {
                                    float f4 = c2533.f7942;
                                    float f5 = c2533.f7944;
                                    float f6 = (f4 + f5) % 1.0f;
                                    float f7 = (c2533.f7943 + f5) % 1.0f;
                                    if (c2537.f7971 == null) {
                                        c2537.f7971 = new PathMeasure();
                                    }
                                    c2537.f7971.setPath(c2537.f7966, r11);
                                    float length = c2537.f7971.getLength();
                                    float f8 = f6 * length;
                                    float f9 = f7 * length;
                                    path2.reset();
                                    if (f8 > f9) {
                                        c2537.f7971.getSegment(f8, length, path2, true);
                                        c2537.f7971.getSegment(0.0f, f9, path2, true);
                                    } else {
                                        c2537.f7971.getSegment(f8, f9, path2, true);
                                    }
                                    path2.rLineTo(0.0f, 0.0f);
                                }
                                c2537.f7967.addPath(path2, c2537.f7968);
                                C1852 c1852 = c2533.f7939;
                                if (c1852.m3659() || c1852.f6231 != 0) {
                                    C1852 c18522 = c2533.f7939;
                                    if (c2537.f7970 == null) {
                                        Paint paint = new Paint(1);
                                        c2537.f7970 = paint;
                                        paint.setStyle(Paint.Style.FILL);
                                    }
                                    Paint paint2 = c2537.f7970;
                                    if (c18522.m3659()) {
                                        Shader shader = c18522.f6229;
                                        shader.setLocalMatrix(c2537.f7968);
                                        paint2.setShader(shader);
                                        paint2.setAlpha(Math.round(c2533.f7941 * 255.0f));
                                    } else {
                                        paint2.setShader(null);
                                        paint2.setAlpha(255);
                                        paint2.setColor(C2530.m4596(c18522.f6231, c2533.f7941));
                                    }
                                    paint2.setColorFilter(colorFilter);
                                    c2537.f7967.setFillType(c2533.f7963 == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
                                    canvas.drawPath(c2537.f7967, paint2);
                                }
                                C1852 c18523 = c2533.f7937;
                                if (c18523.m3659() || c18523.f6231 != 0) {
                                    C1852 c18524 = c2533.f7937;
                                    if (c2537.f7969 == null) {
                                        Paint paint3 = new Paint(1);
                                        c2537.f7969 = paint3;
                                        paint3.setStyle(Paint.Style.STROKE);
                                    }
                                    Paint paint4 = c2537.f7969;
                                    Paint.Join join = c2533.f7946;
                                    if (join != null) {
                                        paint4.setStrokeJoin(join);
                                    }
                                    Paint.Cap cap = c2533.f7945;
                                    if (cap != null) {
                                        paint4.setStrokeCap(cap);
                                    }
                                    paint4.setStrokeMiter(c2533.f7947);
                                    if (c18524.m3659()) {
                                        Shader shader2 = c18524.f6229;
                                        shader2.setLocalMatrix(c2537.f7968);
                                        paint4.setShader(shader2);
                                        paint4.setAlpha(Math.round(c2533.f7940 * 255.0f));
                                    } else {
                                        paint4.setShader(null);
                                        paint4.setAlpha(255);
                                        paint4.setColor(C2530.m4596(c18524.f6231, c2533.f7940));
                                    }
                                    paint4.setColorFilter(colorFilter);
                                    paint4.setStrokeWidth(c2533.f7938 * fAbs * fMin);
                                    canvas.drawPath(c2537.f7967, paint4);
                                }
                            }
                        }
                    }
                    i3++;
                    c25372 = c2537;
                    r11 = 0;
                }
                c2537 = c25372;
                i3++;
                c25372 = c2537;
                r11 = 0;
            }
            canvas.restore();
        }
    }

    /* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ$ޅ, reason: contains not printable characters */
    public static class C2538 extends Drawable.ConstantState {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public int f7982;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public C2537 f7983;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public ColorStateList f7984;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public PorterDuff.Mode f7985;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public boolean f7986;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public Bitmap f7987;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public ColorStateList f7988;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public PorterDuff.Mode f7989;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public int f7990;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public boolean f7991;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public boolean f7992;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public Paint f7993;

        public C2538() {
            this.f7984 = null;
            this.f7985 = C2530.f7927;
            this.f7983 = new C2537();
        }

        public C2538(C2538 c2538) {
            this.f7984 = null;
            this.f7985 = C2530.f7927;
            if (c2538 != null) {
                this.f7982 = c2538.f7982;
                C2537 c2537 = new C2537(c2538.f7983);
                this.f7983 = c2537;
                if (c2538.f7983.f7970 != null) {
                    c2537.f7970 = new Paint(c2538.f7983.f7970);
                }
                if (c2538.f7983.f7969 != null) {
                    this.f7983.f7969 = new Paint(c2538.f7983.f7969);
                }
                this.f7984 = c2538.f7984;
                this.f7985 = c2538.f7985;
                this.f7986 = c2538.f7986;
            }
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public int getChangingConfigurations() {
            return this.f7982;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable() {
            return new C2530(this);
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable(Resources resources) {
            return new C2530(this);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public void m4604(int i, int i2) {
            this.f7987.eraseColor(0);
            Canvas canvas = new Canvas(this.f7987);
            C2537 c2537 = this.f7983;
            c2537.m4603(c2537.f7973, C2537.f7965, canvas, i, i2, null);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean m4605() {
            C2537 c2537 = this.f7983;
            if (c2537.f7980 == null) {
                c2537.f7980 = Boolean.valueOf(c2537.f7973.mo4600());
            }
            return c2537.f7980.booleanValue();
        }
    }

    /* JADX INFO: renamed from: މ.ޕ.֏.֏.ބ$ކ, reason: contains not printable characters */
    public static class C2539 extends Drawable.ConstantState {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final Drawable.ConstantState f7994;

        public C2539(Drawable.ConstantState constantState) {
            this.f7994 = constantState;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public boolean canApplyTheme() {
            return this.f7994.canApplyTheme();
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public int getChangingConfigurations() {
            return this.f7994.getChangingConfigurations();
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable() {
            C2530 c2530 = new C2530();
            c2530.f7926 = (VectorDrawable) this.f7994.newDrawable();
            return c2530;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable(Resources resources) {
            C2530 c2530 = new C2530();
            c2530.f7926 = (VectorDrawable) this.f7994.newDrawable(resources);
            return c2530;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable(Resources resources, Resources.Theme theme) {
            C2530 c2530 = new C2530();
            c2530.f7926 = (VectorDrawable) this.f7994.newDrawable(resources, theme);
            return c2530;
        }
    }

    public C2530() {
        this.f7932 = true;
        this.f7933 = new float[9];
        this.f7934 = new Matrix();
        this.f7935 = new Rect();
        this.f7928 = new C2538();
    }

    public C2530(C2538 c2538) {
        this.f7932 = true;
        this.f7933 = new float[9];
        this.f7934 = new Matrix();
        this.f7935 = new Rect();
        this.f7928 = c2538;
        this.f7929 = m4598(c2538.f7984, c2538.f7985);
    }

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

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

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C2530 m4597(Resources resources, int i, Resources.Theme theme) {
        int next;
        if (Build.VERSION.SDK_INT >= 24) {
            C2530 c2530 = new C2530();
            c2530.f7926 = resources.getDrawable(i, theme);
            new C2539(c2530.f7926.getConstantState());
            return c2530;
        }
        try {
            XmlResourceParser xml = resources.getXml(i);
            AttributeSet attributeSetAsAttributeSet = Xml.asAttributeSet(xml);
            do {
                next = xml.next();
                if (next == 2) {
                    break;
                }
            } while (next != 1);
            if (next == 2) {
                return createFromXmlInner(resources, (XmlPullParser) xml, attributeSetAsAttributeSet, theme);
            }
            throw new XmlPullParserException("No start tag found");
        } catch (IOException e) {
            Log.e("VectorDrawableCompat", "parser error", e);
            return null;
        } catch (XmlPullParserException e2) {
            Log.e("VectorDrawableCompat", "parser error", e2);
            return null;
        }
    }

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

    /* JADX WARN: Removed duplicated region for block: B:40:0x00d5  */
    @Override // android.graphics.drawable.Drawable
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void draw(Canvas canvas) {
        Paint paint;
        Drawable drawable = this.f7926;
        if (drawable != null) {
            drawable.draw(canvas);
            return;
        }
        copyBounds(this.f7935);
        if (this.f7935.width() <= 0 || this.f7935.height() <= 0) {
            return;
        }
        ColorFilter colorFilter = this.f7930;
        if (colorFilter == null) {
            colorFilter = this.f7929;
        }
        canvas.getMatrix(this.f7934);
        this.f7934.getValues(this.f7933);
        float fAbs = Math.abs(this.f7933[0]);
        float fAbs2 = Math.abs(this.f7933[4]);
        float fAbs3 = Math.abs(this.f7933[1]);
        float fAbs4 = Math.abs(this.f7933[3]);
        if (fAbs3 != 0.0f || fAbs4 != 0.0f) {
            fAbs = 1.0f;
            fAbs2 = 1.0f;
        }
        int iMin = Math.min(2048, (int) (this.f7935.width() * fAbs));
        int iMin2 = Math.min(2048, (int) (this.f7935.height() * fAbs2));
        if (iMin <= 0 || iMin2 <= 0) {
            return;
        }
        int iSave = canvas.save();
        Rect rect = this.f7935;
        canvas.translate(rect.left, rect.top);
        if (isAutoMirrored() && LayoutInflaterFactory2C1494.C1505.m2876((Drawable) this) == 1) {
            canvas.translate(this.f7935.width(), 0.0f);
            canvas.scale(-1.0f, 1.0f);
        }
        this.f7935.offsetTo(0, 0);
        C2538 c2538 = this.f7928;
        Bitmap bitmap = c2538.f7987;
        if (bitmap == null) {
            c2538.f7987 = Bitmap.createBitmap(iMin, iMin2, Bitmap.Config.ARGB_8888);
            c2538.f7992 = true;
        } else {
            if (!(iMin == bitmap.getWidth() && iMin2 == c2538.f7987.getHeight())) {
            }
        }
        if (this.f7932) {
            C2538 c25382 = this.f7928;
            if (!(!c25382.f7992 && c25382.f7988 == c25382.f7984 && c25382.f7989 == c25382.f7985 && c25382.f7991 == c25382.f7986 && c25382.f7990 == c25382.f7983.getRootAlpha())) {
                this.f7928.m4604(iMin, iMin2);
                C2538 c25383 = this.f7928;
                c25383.f7988 = c25383.f7984;
                c25383.f7989 = c25383.f7985;
                c25383.f7990 = c25383.f7983.getRootAlpha();
                c25383.f7991 = c25383.f7986;
                c25383.f7992 = false;
            }
        } else {
            this.f7928.m4604(iMin, iMin2);
        }
        C2538 c25384 = this.f7928;
        Rect rect2 = this.f7935;
        if ((c25384.f7983.getRootAlpha() < 255) || colorFilter != null) {
            if (c25384.f7993 == null) {
                Paint paint2 = new Paint();
                c25384.f7993 = paint2;
                paint2.setFilterBitmap(true);
            }
            c25384.f7993.setAlpha(c25384.f7983.getRootAlpha());
            c25384.f7993.setColorFilter(colorFilter);
            paint = c25384.f7993;
        } else {
            paint = null;
        }
        canvas.drawBitmap(c25384.f7987, (Rect) null, rect2, paint);
        canvas.restoreToCount(iSave);
    }

    @Override // android.graphics.drawable.Drawable
    public int getAlpha() {
        Drawable drawable = this.f7926;
        return drawable != null ? drawable.getAlpha() : this.f7928.f7983.getRootAlpha();
    }

    @Override // android.graphics.drawable.Drawable
    public int getChangingConfigurations() {
        Drawable drawable = this.f7926;
        return drawable != null ? drawable.getChangingConfigurations() : super.getChangingConfigurations() | this.f7928.getChangingConfigurations();
    }

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

    @Override // android.graphics.drawable.Drawable
    public Drawable.ConstantState getConstantState() {
        if (this.f7926 != null && Build.VERSION.SDK_INT >= 24) {
            return new C2539(this.f7926.getConstantState());
        }
        this.f7928.f7982 = getChangingConfigurations();
        return this.f7928;
    }

    @Override // android.graphics.drawable.Drawable
    public int getIntrinsicHeight() {
        Drawable drawable = this.f7926;
        return drawable != null ? drawable.getIntrinsicHeight() : (int) this.f7928.f7983.f7975;
    }

    @Override // android.graphics.drawable.Drawable
    public int getIntrinsicWidth() {
        Drawable drawable = this.f7926;
        return drawable != null ? drawable.getIntrinsicWidth() : (int) this.f7928.f7983.f7974;
    }

    @Override // android.graphics.drawable.Drawable
    public int getOpacity() {
        Drawable drawable = this.f7926;
        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.f7926;
        if (drawable != null) {
            drawable.inflate(resources, xmlPullParser, attributeSet);
        } else {
            inflate(resources, xmlPullParser, attributeSet, null);
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        ColorStateList colorStateListM2892;
        ArrayDeque arrayDeque;
        C2537 c2537;
        int i;
        ArrayDeque arrayDeque2;
        C2537 c25372;
        C2534 c2534;
        C2533 c2533;
        TypedArray typedArray;
        Drawable drawable = this.f7926;
        if (drawable != null) {
            drawable.inflate(resources, xmlPullParser, attributeSet, theme);
            return;
        }
        C2538 c2538 = this.f7928;
        c2538.f7983 = new C2537();
        TypedArray typedArrayM2894 = LayoutInflaterFactory2C1494.C1505.m2894(resources, theme, attributeSet, C2521.f7901);
        C2538 c25382 = this.f7928;
        C2537 c25373 = c25382.f7983;
        int iM2968 = LayoutInflaterFactory2C1494.C1505.m2968(typedArrayM2894, xmlPullParser, "tintMode", 6, -1);
        PorterDuff.Mode mode = PorterDuff.Mode.SRC_IN;
        int i2 = 3;
        if (iM2968 == 3) {
            mode = PorterDuff.Mode.SRC_OVER;
        } else if (iM2968 != 5) {
            if (iM2968 != 9) {
                switch (iM2968) {
                    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;
            }
        }
        c25382.f7985 = mode;
        if (LayoutInflaterFactory2C1494.C1505.m2963(xmlPullParser, "tint")) {
            TypedValue typedValue = new TypedValue();
            typedArrayM2894.getValue(1, typedValue);
            int i3 = typedValue.type;
            if (i3 == 2) {
                throw new UnsupportedOperationException("Failed to resolve attribute at index 1: " + typedValue);
            }
            if (i3 < 28 || i3 > 31) {
                Resources resources2 = typedArrayM2894.getResources();
                try {
                    colorStateListM2892 = LayoutInflaterFactory2C1494.C1505.m2892(resources2, resources2.getXml(typedArrayM2894.getResourceId(1, 0)), theme);
                } catch (Exception e) {
                    Log.e("CSLCompat", "Failed to inflate ColorStateList.", e);
                    colorStateListM2892 = null;
                }
            } else {
                colorStateListM2892 = ColorStateList.valueOf(typedValue.data);
            }
        } else {
            colorStateListM2892 = null;
        }
        if (colorStateListM2892 != null) {
            c25382.f7984 = colorStateListM2892;
        }
        boolean z = c25382.f7986;
        if (LayoutInflaterFactory2C1494.C1505.m2963(xmlPullParser, "autoMirrored")) {
            z = typedArrayM2894.getBoolean(5, z);
        }
        c25382.f7986 = z;
        c25373.f7976 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM2894, xmlPullParser, "viewportWidth", 7, c25373.f7976);
        float fM2868 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM2894, xmlPullParser, "viewportHeight", 8, c25373.f7977);
        c25373.f7977 = fM2868;
        if (c25373.f7976 <= 0.0f) {
            throw new XmlPullParserException(typedArrayM2894.getPositionDescription() + "<vector> tag requires viewportWidth > 0");
        }
        if (fM2868 <= 0.0f) {
            throw new XmlPullParserException(typedArrayM2894.getPositionDescription() + "<vector> tag requires viewportHeight > 0");
        }
        c25373.f7974 = typedArrayM2894.getDimension(3, c25373.f7974);
        float dimension = typedArrayM2894.getDimension(2, c25373.f7975);
        c25373.f7975 = dimension;
        if (c25373.f7974 <= 0.0f) {
            throw new XmlPullParserException(typedArrayM2894.getPositionDescription() + "<vector> tag requires width > 0");
        }
        if (dimension <= 0.0f) {
            throw new XmlPullParserException(typedArrayM2894.getPositionDescription() + "<vector> tag requires height > 0");
        }
        c25373.setAlpha(LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM2894, xmlPullParser, "alpha", 4, c25373.getAlpha()));
        String string = typedArrayM2894.getString(0);
        if (string != null) {
            c25373.f7979 = string;
            c25373.f7981.put(string, c25373);
        }
        typedArrayM2894.recycle();
        c2538.f7982 = getChangingConfigurations();
        c2538.f7992 = true;
        C2538 c25383 = this.f7928;
        C2537 c25374 = c25383.f7983;
        ArrayDeque arrayDeque3 = new ArrayDeque();
        arrayDeque3.push(c25374.f7973);
        int eventType = xmlPullParser.getEventType();
        int depth = xmlPullParser.getDepth() + 1;
        boolean z2 = true;
        for (int i4 = 1; eventType != i4 && (xmlPullParser.getDepth() >= depth || eventType != i2); i4 = 1) {
            if (eventType == 2) {
                String name = xmlPullParser.getName();
                C2534 c25342 = (C2534) arrayDeque3.peek();
                if ("path".equals(name)) {
                    C2533 c25332 = new C2533();
                    TypedArray typedArrayM28942 = LayoutInflaterFactory2C1494.C1505.m2894(resources, theme, attributeSet, C2521.f7903);
                    c25332.f7936 = null;
                    if (LayoutInflaterFactory2C1494.C1505.m2963(xmlPullParser, "pathData")) {
                        String string2 = typedArrayM28942.getString(0);
                        if (string2 != null) {
                            c25332.f7962 = string2;
                        }
                        String string3 = typedArrayM28942.getString(2);
                        if (string3 != null) {
                            c25332.f7961 = LayoutInflaterFactory2C1494.C1505.m2966(string3);
                        }
                        arrayDeque2 = arrayDeque3;
                        c25372 = c25374;
                        i = depth;
                        c2534 = c25342;
                        c2533 = c25332;
                        c2533.f7939 = LayoutInflaterFactory2C1494.C1505.m2926(typedArrayM28942, xmlPullParser, theme, "fillColor", 1, 0);
                        c2533.f7941 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM28942, xmlPullParser, "fillAlpha", 12, c2533.f7941);
                        int iM29682 = LayoutInflaterFactory2C1494.C1505.m2968(typedArrayM28942, xmlPullParser, "strokeLineCap", 8, -1);
                        Paint.Cap cap = c2533.f7945;
                        if (iM29682 == 0) {
                            cap = Paint.Cap.BUTT;
                        } else if (iM29682 == 1) {
                            cap = Paint.Cap.ROUND;
                        } else if (iM29682 == 2) {
                            cap = Paint.Cap.SQUARE;
                        }
                        c2533.f7945 = cap;
                        int iM29683 = LayoutInflaterFactory2C1494.C1505.m2968(typedArrayM28942, xmlPullParser, "strokeLineJoin", 9, -1);
                        Paint.Join join = c2533.f7946;
                        if (iM29683 == 0) {
                            join = Paint.Join.MITER;
                        } else if (iM29683 == 1) {
                            join = Paint.Join.ROUND;
                        } else if (iM29683 == 2) {
                            join = Paint.Join.BEVEL;
                        }
                        c2533.f7946 = join;
                        c2533.f7947 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM28942, xmlPullParser, "strokeMiterLimit", 10, c2533.f7947);
                        typedArray = typedArrayM28942;
                        c2533.f7937 = LayoutInflaterFactory2C1494.C1505.m2926(typedArrayM28942, xmlPullParser, theme, "strokeColor", 3, 0);
                        c2533.f7940 = LayoutInflaterFactory2C1494.C1505.m2868(typedArray, xmlPullParser, "strokeAlpha", 11, c2533.f7940);
                        c2533.f7938 = LayoutInflaterFactory2C1494.C1505.m2868(typedArray, xmlPullParser, "strokeWidth", 4, c2533.f7938);
                        c2533.f7943 = LayoutInflaterFactory2C1494.C1505.m2868(typedArray, xmlPullParser, "trimPathEnd", 6, c2533.f7943);
                        c2533.f7944 = LayoutInflaterFactory2C1494.C1505.m2868(typedArray, xmlPullParser, "trimPathOffset", 7, c2533.f7944);
                        c2533.f7942 = LayoutInflaterFactory2C1494.C1505.m2868(typedArray, xmlPullParser, "trimPathStart", 5, c2533.f7942);
                        c2533.f7963 = LayoutInflaterFactory2C1494.C1505.m2968(typedArray, xmlPullParser, "fillType", 13, c2533.f7963);
                    } else {
                        typedArray = typedArrayM28942;
                        arrayDeque2 = arrayDeque3;
                        c25372 = c25374;
                        c2533 = c25332;
                        i = depth;
                        c2534 = c25342;
                    }
                    typedArray.recycle();
                    c2534.f7949.add(c2533);
                    if (c2533.getPathName() != null) {
                        c2537 = c25372;
                        c2537.f7981.put(c2533.getPathName(), c2533);
                    } else {
                        c2537 = c25372;
                    }
                    c25383.f7982 |= c2533.f7964;
                    arrayDeque = arrayDeque2;
                    z2 = false;
                } else {
                    ArrayDeque arrayDeque4 = arrayDeque3;
                    c2537 = c25374;
                    i = depth;
                    if ("clip-path".equals(name)) {
                        C2532 c2532 = new C2532();
                        if (LayoutInflaterFactory2C1494.C1505.m2963(xmlPullParser, "pathData")) {
                            TypedArray typedArrayM28943 = LayoutInflaterFactory2C1494.C1505.m2894(resources, theme, attributeSet, C2521.f7904);
                            String string4 = typedArrayM28943.getString(0);
                            if (string4 != null) {
                                c2532.f7962 = string4;
                            }
                            String string5 = typedArrayM28943.getString(1);
                            if (string5 != null) {
                                c2532.f7961 = LayoutInflaterFactory2C1494.C1505.m2966(string5);
                            }
                            c2532.f7963 = LayoutInflaterFactory2C1494.C1505.m2968(typedArrayM28943, xmlPullParser, "fillType", 2, 0);
                            typedArrayM28943.recycle();
                        }
                        c25342.f7949.add(c2532);
                        if (c2532.getPathName() != null) {
                            c2537.f7981.put(c2532.getPathName(), c2532);
                        }
                        c25383.f7982 = c2532.f7964 | c25383.f7982;
                    } else if ("group".equals(name)) {
                        C2534 c25343 = new C2534();
                        TypedArray typedArrayM28944 = LayoutInflaterFactory2C1494.C1505.m2894(resources, theme, attributeSet, C2521.f7902);
                        c25343.f7959 = null;
                        c25343.f7950 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM28944, xmlPullParser, "rotation", 5, c25343.f7950);
                        c25343.f7951 = typedArrayM28944.getFloat(1, c25343.f7951);
                        c25343.f7952 = typedArrayM28944.getFloat(2, c25343.f7952);
                        c25343.f7953 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM28944, xmlPullParser, "scaleX", 3, c25343.f7953);
                        c25343.f7954 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM28944, xmlPullParser, "scaleY", 4, c25343.f7954);
                        c25343.f7955 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM28944, xmlPullParser, "translateX", 6, c25343.f7955);
                        c25343.f7956 = LayoutInflaterFactory2C1494.C1505.m2868(typedArrayM28944, xmlPullParser, "translateY", 7, c25343.f7956);
                        String string6 = typedArrayM28944.getString(0);
                        if (string6 != null) {
                            c25343.f7960 = string6;
                        }
                        c25343.m4602();
                        typedArrayM28944.recycle();
                        c25342.f7949.add(c25343);
                        arrayDeque = arrayDeque4;
                        arrayDeque.push(c25343);
                        if (c25343.getGroupName() != null) {
                            c2537.f7981.put(c25343.getGroupName(), c25343);
                        }
                        c25383.f7982 = c25343.f7958 | c25383.f7982;
                    }
                    arrayDeque = arrayDeque4;
                }
            } else {
                arrayDeque = arrayDeque3;
                c2537 = c25374;
                i = depth;
                if (eventType == 3 && "group".equals(xmlPullParser.getName())) {
                    arrayDeque.pop();
                }
            }
            eventType = xmlPullParser.next();
            c25374 = c2537;
            arrayDeque3 = arrayDeque;
            depth = i;
            i2 = 3;
        }
        if (z2) {
            throw new XmlPullParserException("no path defined");
        }
        this.f7929 = m4598(c2538.f7984, c2538.f7985);
    }

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

    @Override // android.graphics.drawable.Drawable
    public boolean isAutoMirrored() {
        Drawable drawable = this.f7926;
        return drawable != null ? drawable.isAutoMirrored() : this.f7928.f7986;
    }

    @Override // android.graphics.drawable.Drawable
    public boolean isStateful() {
        C2538 c2538;
        ColorStateList colorStateList;
        Drawable drawable = this.f7926;
        return drawable != null ? drawable.isStateful() : super.isStateful() || ((c2538 = this.f7928) != null && (c2538.m4605() || ((colorStateList = this.f7928.f7984) != null && colorStateList.isStateful())));
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable mutate() {
        Drawable drawable = this.f7926;
        if (drawable != null) {
            drawable.mutate();
            return this;
        }
        if (!this.f7931 && super.mutate() == this) {
            this.f7928 = new C2538(this.f7928);
            this.f7931 = true;
        }
        return this;
    }

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

    @Override // android.graphics.drawable.Drawable
    public boolean onStateChange(int[] iArr) {
        PorterDuff.Mode mode;
        Drawable drawable = this.f7926;
        if (drawable != null) {
            return drawable.setState(iArr);
        }
        boolean z = false;
        C2538 c2538 = this.f7928;
        ColorStateList colorStateList = c2538.f7984;
        if (colorStateList != null && (mode = c2538.f7985) != null) {
            this.f7929 = m4598(colorStateList, mode);
            invalidateSelf();
            z = true;
        }
        if (c2538.m4605()) {
            boolean zMo4601 = c2538.f7983.f7973.mo4601(iArr);
            c2538.f7992 |= zMo4601;
            if (zMo4601) {
                invalidateSelf();
                return true;
            }
        }
        return z;
    }

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

    @Override // android.graphics.drawable.Drawable
    public void setAlpha(int i) {
        Drawable drawable = this.f7926;
        if (drawable != null) {
            drawable.setAlpha(i);
        } else if (this.f7928.f7983.getRootAlpha() != i) {
            this.f7928.f7983.setRootAlpha(i);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setAutoMirrored(boolean z) {
        Drawable drawable = this.f7926;
        if (drawable != null) {
            drawable.setAutoMirrored(z);
        } else {
            this.f7928.f7986 = z;
        }
    }

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

    @Override // android.graphics.drawable.Drawable
    public void setTint(int i) {
        Drawable drawable = this.f7926;
        if (drawable != null) {
            LayoutInflaterFactory2C1494.C1505.m2939(drawable, i);
        } else {
            setTintList(ColorStateList.valueOf(i));
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setTintList(ColorStateList colorStateList) {
        Drawable drawable = this.f7926;
        if (drawable != null) {
            LayoutInflaterFactory2C1494.C1505.m2940(drawable, colorStateList);
            return;
        }
        C2538 c2538 = this.f7928;
        if (c2538.f7984 != colorStateList) {
            c2538.f7984 = colorStateList;
            this.f7929 = m4598(colorStateList, c2538.f7985);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setTintMode(PorterDuff.Mode mode) {
        Drawable drawable = this.f7926;
        if (drawable != null) {
            LayoutInflaterFactory2C1494.C1505.m2941(drawable, mode);
            return;
        }
        C2538 c2538 = this.f7928;
        if (c2538.f7985 != mode) {
            c2538.f7985 = mode;
            this.f7929 = m4598(c2538.f7984, mode);
            invalidateSelf();
        }
    }

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

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

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