package X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0;

import X6FRs_4.IMuAHx_6.IFxWkV_5.QxJ9d_1;
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.Xml;
import androidx.recyclerview.widget.RecyclerView;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
/* compiled from: VectorDrawableCompat.java */
/* loaded from: classes.dex */
public class Xgtqvk_8 extends X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7 {
    public static final PorterDuff.Mode KQgRr5e_0 = PorterDuff.Mode.SRC_IN;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public FSaI4_7 f1029KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public ColorFilter f1030KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Matrix f1031KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public PorterDuffColorFilter f1032KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Rect f1033KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final float[] f1034KQgRr5e_0;
    public boolean PGPF6hQ_2;
    public boolean QxJ9d_1;

    /* compiled from: VectorDrawableCompat.java */
    /* loaded from: classes.dex */
    public static class FSaI4_7 extends Drawable.ConstantState {
        public int KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public IMuAHx_6 f1035KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public ColorStateList f1036KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Bitmap f1037KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Paint f1038KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public PorterDuff.Mode f1039KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public boolean f1040KQgRr5e_0;
        public boolean PGPF6hQ_2;
        public int QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public ColorStateList f1041QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public PorterDuff.Mode f1042QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public boolean f1043QxJ9d_1;

        public FSaI4_7(FSaI4_7 fSaI4_7) {
            this.f1036KQgRr5e_0 = null;
            this.f1039KQgRr5e_0 = Xgtqvk_8.KQgRr5e_0;
            if (fSaI4_7 != null) {
                this.KQgRr5e_0 = fSaI4_7.KQgRr5e_0;
                IMuAHx_6 iMuAHx_6 = new IMuAHx_6(fSaI4_7.f1035KQgRr5e_0);
                this.f1035KQgRr5e_0 = iMuAHx_6;
                if (fSaI4_7.f1035KQgRr5e_0.f1057QxJ9d_1 != null) {
                    iMuAHx_6.f1057QxJ9d_1 = new Paint(fSaI4_7.f1035KQgRr5e_0.f1057QxJ9d_1);
                }
                if (fSaI4_7.f1035KQgRr5e_0.f1050KQgRr5e_0 != null) {
                    this.f1035KQgRr5e_0.f1050KQgRr5e_0 = new Paint(fSaI4_7.f1035KQgRr5e_0.f1050KQgRr5e_0);
                }
                this.f1036KQgRr5e_0 = fSaI4_7.f1036KQgRr5e_0;
                this.f1039KQgRr5e_0 = fSaI4_7.f1039KQgRr5e_0;
                this.f1040KQgRr5e_0 = fSaI4_7.f1040KQgRr5e_0;
            }
        }

        public void KQgRr5e_0(Canvas canvas, ColorFilter colorFilter, Rect rect) {
            canvas.drawBitmap(this.f1037KQgRr5e_0, (Rect) null, rect, KQgRr5e_0(colorFilter));
        }

        public boolean PGPF6hQ_2() {
            return this.f1035KQgRr5e_0.KQgRr5e_0();
        }

        public boolean QxJ9d_1() {
            return this.f1035KQgRr5e_0.getRootAlpha() < 255;
        }

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

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

        public void QxJ9d_1(int i, int i2) {
            this.f1037KQgRr5e_0.eraseColor(0);
            this.f1035KQgRr5e_0.KQgRr5e_0(new Canvas(this.f1037KQgRr5e_0), i, i2, (ColorFilter) null);
        }

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

        public Paint KQgRr5e_0(ColorFilter colorFilter) {
            if (QxJ9d_1() || colorFilter != null) {
                if (this.f1038KQgRr5e_0 == null) {
                    Paint paint = new Paint();
                    this.f1038KQgRr5e_0 = paint;
                    paint.setFilterBitmap(true);
                }
                this.f1038KQgRr5e_0.setAlpha(this.f1035KQgRr5e_0.getRootAlpha());
                this.f1038KQgRr5e_0.setColorFilter(colorFilter);
                return this.f1038KQgRr5e_0;
            }
            return null;
        }

        public void KQgRr5e_0(int i, int i2) {
            if (this.f1037KQgRr5e_0 == null || !m516KQgRr5e_0(i, i2)) {
                this.f1037KQgRr5e_0 = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888);
                this.PGPF6hQ_2 = true;
            }
        }

        public FSaI4_7() {
            this.f1036KQgRr5e_0 = null;
            this.f1039KQgRr5e_0 = Xgtqvk_8.KQgRr5e_0;
            this.f1035KQgRr5e_0 = new IMuAHx_6();
        }

        /* renamed from: KQgRr5e_0  reason: collision with other method in class */
        public boolean m516KQgRr5e_0(int i, int i2) {
            return i == this.f1037KQgRr5e_0.getWidth() && i2 == this.f1037KQgRr5e_0.getHeight();
        }

        /* renamed from: KQgRr5e_0  reason: collision with other method in class */
        public boolean m515KQgRr5e_0() {
            return !this.PGPF6hQ_2 && this.f1041QxJ9d_1 == this.f1036KQgRr5e_0 && this.f1042QxJ9d_1 == this.f1039KQgRr5e_0 && this.f1043QxJ9d_1 == this.f1040KQgRr5e_0 && this.QxJ9d_1 == this.f1035KQgRr5e_0.getRootAlpha();
        }

        public void KQgRr5e_0() {
            this.f1041QxJ9d_1 = this.f1036KQgRr5e_0;
            this.f1042QxJ9d_1 = this.f1039KQgRr5e_0;
            this.QxJ9d_1 = this.f1035KQgRr5e_0.getRootAlpha();
            this.f1043QxJ9d_1 = this.f1040KQgRr5e_0;
            this.PGPF6hQ_2 = false;
        }

        public boolean KQgRr5e_0(int[] iArr) {
            boolean KQgRr5e_0 = this.f1035KQgRr5e_0.KQgRr5e_0(iArr);
            this.PGPF6hQ_2 |= KQgRr5e_0;
            return KQgRr5e_0;
        }
    }

    /* compiled from: VectorDrawableCompat.java */
    /* loaded from: classes.dex */
    public static class QxJ9d_1 extends IFxWkV_5 {
        public QxJ9d_1() {
        }

        public void KQgRr5e_0(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            if (X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(xmlPullParser, "pathData")) {
                TypedArray KQgRr5e_0 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(resources, theme, attributeSet, X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.KQgRr5e_0.f3232Mqv2r_3);
                KQgRr5e_0(KQgRr5e_0);
                KQgRr5e_0.recycle();
            }
        }

        @Override // X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.Xgtqvk_8.IFxWkV_5
        public boolean QxJ9d_1() {
            return true;
        }

        public QxJ9d_1(QxJ9d_1 qxJ9d_1) {
            super(qxJ9d_1);
        }

        public final void KQgRr5e_0(TypedArray typedArray) {
            String string = typedArray.getString(0);
            if (string != null) {
                ((IFxWkV_5) this).f1044KQgRr5e_0 = string;
            }
            String string2 = typedArray.getString(1);
            if (string2 != null) {
                ((IFxWkV_5) this).f1045KQgRr5e_0 = X6FRs_4.IMuAHx_6.IFxWkV_5.QxJ9d_1.m288KQgRr5e_0(string2);
            }
        }
    }

    /* compiled from: VectorDrawableCompat.java */
    /* loaded from: classes.dex */
    public static abstract class X6FRs_4 {
        public X6FRs_4() {
        }

        public boolean KQgRr5e_0() {
            return false;
        }

        public boolean KQgRr5e_0(int[] iArr) {
            return false;
        }
    }

    public Xgtqvk_8() {
        this.PGPF6hQ_2 = true;
        this.f1034KQgRr5e_0 = new float[9];
        this.f1031KQgRr5e_0 = new Matrix();
        this.f1033KQgRr5e_0 = new Rect();
        this.f1029KQgRr5e_0 = new FSaI4_7();
    }

    public Object KQgRr5e_0(String str) {
        return this.f1029KQgRr5e_0.f1035KQgRr5e_0.f1047KQgRr5e_0.get(str);
    }

    @Override // android.graphics.drawable.Drawable
    public boolean canApplyTheme() {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.m293KQgRr5e_0(drawable);
            return false;
        }
        return false;
    }

    @Override // android.graphics.drawable.Drawable
    public void draw(Canvas canvas) {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            drawable.draw(canvas);
            return;
        }
        copyBounds(this.f1033KQgRr5e_0);
        if (this.f1033KQgRr5e_0.width() <= 0 || this.f1033KQgRr5e_0.height() <= 0) {
            return;
        }
        ColorFilter colorFilter = this.f1030KQgRr5e_0;
        if (colorFilter == null) {
            colorFilter = this.f1032KQgRr5e_0;
        }
        canvas.getMatrix(this.f1031KQgRr5e_0);
        this.f1031KQgRr5e_0.getValues(this.f1034KQgRr5e_0);
        float abs = Math.abs(this.f1034KQgRr5e_0[0]);
        float abs2 = Math.abs(this.f1034KQgRr5e_0[4]);
        float abs3 = Math.abs(this.f1034KQgRr5e_0[1]);
        float abs4 = Math.abs(this.f1034KQgRr5e_0[3]);
        if (abs3 != 0.0f || abs4 != 0.0f) {
            abs = 1.0f;
            abs2 = 1.0f;
        }
        int min = Math.min((int) RecyclerView.WGk6X_27.FLAG_MOVED, (int) (this.f1033KQgRr5e_0.width() * abs));
        int min2 = Math.min((int) RecyclerView.WGk6X_27.FLAG_MOVED, (int) (this.f1033KQgRr5e_0.height() * abs2));
        if (min <= 0 || min2 <= 0) {
            return;
        }
        int save = canvas.save();
        Rect rect = this.f1033KQgRr5e_0;
        canvas.translate(rect.left, rect.top);
        if (KQgRr5e_0()) {
            canvas.translate(this.f1033KQgRr5e_0.width(), 0.0f);
            canvas.scale(-1.0f, 1.0f);
        }
        this.f1033KQgRr5e_0.offsetTo(0, 0);
        this.f1029KQgRr5e_0.KQgRr5e_0(min, min2);
        if (!this.PGPF6hQ_2) {
            this.f1029KQgRr5e_0.QxJ9d_1(min, min2);
        } else if (!this.f1029KQgRr5e_0.m515KQgRr5e_0()) {
            this.f1029KQgRr5e_0.QxJ9d_1(min, min2);
            this.f1029KQgRr5e_0.KQgRr5e_0();
        }
        this.f1029KQgRr5e_0.KQgRr5e_0(canvas, colorFilter, this.f1033KQgRr5e_0);
        canvas.restoreToCount(save);
    }

    @Override // android.graphics.drawable.Drawable
    public int getAlpha() {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            return X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(drawable);
        }
        return this.f1029KQgRr5e_0.f1035KQgRr5e_0.getRootAlpha();
    }

    @Override // android.graphics.drawable.Drawable
    public int getChangingConfigurations() {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            return drawable.getChangingConfigurations();
        }
        return super.getChangingConfigurations() | this.f1029KQgRr5e_0.getChangingConfigurations();
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable.ConstantState getConstantState() {
        if (((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0 != null && Build.VERSION.SDK_INT >= 24) {
            return new C0062Xgtqvk_8(((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0.getConstantState());
        }
        this.f1029KQgRr5e_0.KQgRr5e_0 = getChangingConfigurations();
        return this.f1029KQgRr5e_0;
    }

    @Override // android.graphics.drawable.Drawable
    public int getIntrinsicHeight() {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            return drawable.getIntrinsicHeight();
        }
        return (int) this.f1029KQgRr5e_0.f1035KQgRr5e_0.f1055QxJ9d_1;
    }

    @Override // android.graphics.drawable.Drawable
    public int getIntrinsicWidth() {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            return drawable.getIntrinsicWidth();
        }
        return (int) this.f1029KQgRr5e_0.f1035KQgRr5e_0.KQgRr5e_0;
    }

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

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

    @Override // android.graphics.drawable.Drawable
    public boolean isAutoMirrored() {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            return X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.m297QxJ9d_1(drawable);
        }
        return this.f1029KQgRr5e_0.f1040KQgRr5e_0;
    }

    @Override // android.graphics.drawable.Drawable
    public boolean isStateful() {
        FSaI4_7 fSaI4_7;
        ColorStateList colorStateList;
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            return drawable.isStateful();
        }
        return super.isStateful() || ((fSaI4_7 = this.f1029KQgRr5e_0) != null && (fSaI4_7.PGPF6hQ_2() || ((colorStateList = this.f1029KQgRr5e_0.f1036KQgRr5e_0) != null && colorStateList.isStateful())));
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable mutate() {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            drawable.mutate();
            return this;
        }
        if (!this.QxJ9d_1 && super.mutate() == this) {
            this.f1029KQgRr5e_0 = new FSaI4_7(this.f1029KQgRr5e_0);
            this.QxJ9d_1 = true;
        }
        return this;
    }

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

    @Override // android.graphics.drawable.Drawable
    public boolean onStateChange(int[] iArr) {
        PorterDuff.Mode mode;
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            return drawable.setState(iArr);
        }
        boolean z = false;
        FSaI4_7 fSaI4_7 = this.f1029KQgRr5e_0;
        ColorStateList colorStateList = fSaI4_7.f1036KQgRr5e_0;
        if (colorStateList != null && (mode = fSaI4_7.f1039KQgRr5e_0) != null) {
            this.f1032KQgRr5e_0 = KQgRr5e_0(this.f1032KQgRr5e_0, colorStateList, mode);
            invalidateSelf();
            z = true;
        }
        if (fSaI4_7.PGPF6hQ_2() && fSaI4_7.KQgRr5e_0(iArr)) {
            invalidateSelf();
            return true;
        }
        return z;
    }

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

    @Override // android.graphics.drawable.Drawable
    public void setAlpha(int i) {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            drawable.setAlpha(i);
        } else if (this.f1029KQgRr5e_0.f1035KQgRr5e_0.getRootAlpha() != i) {
            this.f1029KQgRr5e_0.f1035KQgRr5e_0.setRootAlpha(i);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setAutoMirrored(boolean z) {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(drawable, z);
        } else {
            this.f1029KQgRr5e_0.f1040KQgRr5e_0 = z;
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setColorFilter(ColorFilter colorFilter) {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            drawable.setColorFilter(colorFilter);
            return;
        }
        this.f1030KQgRr5e_0 = colorFilter;
        invalidateSelf();
    }

    @Override // android.graphics.drawable.Drawable, X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.QxJ9d_1
    public void setTint(int i) {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(drawable, i);
        } else {
            setTintList(ColorStateList.valueOf(i));
        }
    }

    @Override // android.graphics.drawable.Drawable, X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.QxJ9d_1
    public void setTintList(ColorStateList colorStateList) {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(drawable, colorStateList);
            return;
        }
        FSaI4_7 fSaI4_7 = this.f1029KQgRr5e_0;
        if (fSaI4_7.f1036KQgRr5e_0 != colorStateList) {
            fSaI4_7.f1036KQgRr5e_0 = colorStateList;
            this.f1032KQgRr5e_0 = KQgRr5e_0(this.f1032KQgRr5e_0, colorStateList, fSaI4_7.f1039KQgRr5e_0);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable, X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.QxJ9d_1
    public void setTintMode(PorterDuff.Mode mode) {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(drawable, mode);
            return;
        }
        FSaI4_7 fSaI4_7 = this.f1029KQgRr5e_0;
        if (fSaI4_7.f1039KQgRr5e_0 != mode) {
            fSaI4_7.f1039KQgRr5e_0 = mode;
            this.f1032KQgRr5e_0 = KQgRr5e_0(this.f1032KQgRr5e_0, fSaI4_7.f1036KQgRr5e_0, mode);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public boolean setVisible(boolean z, boolean z2) {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            return drawable.setVisible(z, z2);
        }
        return super.setVisible(z, z2);
    }

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

    /* compiled from: VectorDrawableCompat.java */
    /* loaded from: classes.dex */
    public static abstract class IFxWkV_5 extends X6FRs_4 {
        public int KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public String f1044KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public QxJ9d_1.C0038QxJ9d_1[] f1045KQgRr5e_0;

        public IFxWkV_5() {
            super();
            this.f1045KQgRr5e_0 = null;
        }

        public void KQgRr5e_0(Path path) {
            path.reset();
            QxJ9d_1.C0038QxJ9d_1[] c0038QxJ9d_1Arr = this.f1045KQgRr5e_0;
            if (c0038QxJ9d_1Arr != null) {
                QxJ9d_1.C0038QxJ9d_1.KQgRr5e_0(c0038QxJ9d_1Arr, path);
            }
        }

        public boolean QxJ9d_1() {
            return false;
        }

        public QxJ9d_1.C0038QxJ9d_1[] getPathData() {
            return this.f1045KQgRr5e_0;
        }

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

        public void setPathData(QxJ9d_1.C0038QxJ9d_1[] c0038QxJ9d_1Arr) {
            if (!X6FRs_4.IMuAHx_6.IFxWkV_5.QxJ9d_1.m286KQgRr5e_0(this.f1045KQgRr5e_0, c0038QxJ9d_1Arr)) {
                this.f1045KQgRr5e_0 = X6FRs_4.IMuAHx_6.IFxWkV_5.QxJ9d_1.KQgRr5e_0(c0038QxJ9d_1Arr);
            } else {
                X6FRs_4.IMuAHx_6.IFxWkV_5.QxJ9d_1.KQgRr5e_0(this.f1045KQgRr5e_0, c0038QxJ9d_1Arr);
            }
        }

        public IFxWkV_5(IFxWkV_5 iFxWkV_5) {
            super();
            this.f1045KQgRr5e_0 = null;
            this.f1044KQgRr5e_0 = iFxWkV_5.f1044KQgRr5e_0;
            this.KQgRr5e_0 = iFxWkV_5.KQgRr5e_0;
            this.f1045KQgRr5e_0 = X6FRs_4.IMuAHx_6.IFxWkV_5.QxJ9d_1.KQgRr5e_0(iFxWkV_5.f1045KQgRr5e_0);
        }
    }

    /* compiled from: VectorDrawableCompat.java */
    /* renamed from: X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.Xgtqvk_8$Xgtqvk_8  reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static class C0062Xgtqvk_8 extends Drawable.ConstantState {
        public final Drawable.ConstantState KQgRr5e_0;

        public C0062Xgtqvk_8(Drawable.ConstantState constantState) {
            this.KQgRr5e_0 = constantState;
        }

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

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

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable() {
            Xgtqvk_8 xgtqvk_8 = new Xgtqvk_8();
            ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) xgtqvk_8).KQgRr5e_0 = (VectorDrawable) this.KQgRr5e_0.newDrawable();
            return xgtqvk_8;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable(Resources resources) {
            Xgtqvk_8 xgtqvk_8 = new Xgtqvk_8();
            ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) xgtqvk_8).KQgRr5e_0 = (VectorDrawable) this.KQgRr5e_0.newDrawable(resources);
            return xgtqvk_8;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable(Resources resources, Resources.Theme theme) {
            Xgtqvk_8 xgtqvk_8 = new Xgtqvk_8();
            ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) xgtqvk_8).KQgRr5e_0 = (VectorDrawable) this.KQgRr5e_0.newDrawable(resources, theme);
            return xgtqvk_8;
        }
    }

    public PorterDuffColorFilter KQgRr5e_0(PorterDuffColorFilter porterDuffColorFilter, ColorStateList colorStateList, PorterDuff.Mode mode) {
        if (colorStateList == null || mode == null) {
            return null;
        }
        return new PorterDuffColorFilter(colorStateList.getColorForState(getState(), 0), mode);
    }

    /* compiled from: VectorDrawableCompat.java */
    /* loaded from: classes.dex */
    public static class Mqv2r_3 extends X6FRs_4 {

        /* renamed from: IFxWkV_5  reason: collision with root package name */
        public float f3238IFxWkV_5;

        /* renamed from: IMuAHx_6  reason: collision with root package name */
        public float f3239IMuAHx_6;
        public float KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public int f1059KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final Matrix f1060KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public String f1061KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final ArrayList<X6FRs_4> f1062KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public int[] f1063KQgRr5e_0;

        /* renamed from: Mqv2r_3  reason: collision with root package name */
        public float f3240Mqv2r_3;
        public float PGPF6hQ_2;
        public float QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public final Matrix f1064QxJ9d_1;

        /* renamed from: X6FRs_4  reason: collision with root package name */
        public float f3241X6FRs_4;

        public Mqv2r_3(Mqv2r_3 mqv2r_3, X6FRs_4.Mqv2r_3.KQgRr5e_0<String, Object> kQgRr5e_0) {
            super();
            IFxWkV_5 qxJ9d_1;
            this.f1060KQgRr5e_0 = new Matrix();
            this.f1062KQgRr5e_0 = new ArrayList<>();
            this.KQgRr5e_0 = 0.0f;
            this.QxJ9d_1 = 0.0f;
            this.PGPF6hQ_2 = 0.0f;
            this.f3240Mqv2r_3 = 1.0f;
            this.f3241X6FRs_4 = 1.0f;
            this.f3238IFxWkV_5 = 0.0f;
            this.f3239IMuAHx_6 = 0.0f;
            this.f1064QxJ9d_1 = new Matrix();
            this.f1061KQgRr5e_0 = null;
            this.KQgRr5e_0 = mqv2r_3.KQgRr5e_0;
            this.QxJ9d_1 = mqv2r_3.QxJ9d_1;
            this.PGPF6hQ_2 = mqv2r_3.PGPF6hQ_2;
            this.f3240Mqv2r_3 = mqv2r_3.f3240Mqv2r_3;
            this.f3241X6FRs_4 = mqv2r_3.f3241X6FRs_4;
            this.f3238IFxWkV_5 = mqv2r_3.f3238IFxWkV_5;
            this.f3239IMuAHx_6 = mqv2r_3.f3239IMuAHx_6;
            this.f1063KQgRr5e_0 = mqv2r_3.f1063KQgRr5e_0;
            String str = mqv2r_3.f1061KQgRr5e_0;
            this.f1061KQgRr5e_0 = str;
            this.f1059KQgRr5e_0 = mqv2r_3.f1059KQgRr5e_0;
            if (str != null) {
                kQgRr5e_0.put(str, this);
            }
            this.f1064QxJ9d_1.set(mqv2r_3.f1064QxJ9d_1);
            ArrayList<X6FRs_4> arrayList = mqv2r_3.f1062KQgRr5e_0;
            for (int i = 0; i < arrayList.size(); i++) {
                X6FRs_4 x6FRs_4 = arrayList.get(i);
                if (x6FRs_4 instanceof Mqv2r_3) {
                    this.f1062KQgRr5e_0.add(new Mqv2r_3((Mqv2r_3) x6FRs_4, kQgRr5e_0));
                } else {
                    if (x6FRs_4 instanceof PGPF6hQ_2) {
                        qxJ9d_1 = new PGPF6hQ_2((PGPF6hQ_2) x6FRs_4);
                    } else if (x6FRs_4 instanceof QxJ9d_1) {
                        qxJ9d_1 = new QxJ9d_1((QxJ9d_1) x6FRs_4);
                    } else {
                        throw new IllegalStateException("Unknown object in the tree!");
                    }
                    this.f1062KQgRr5e_0.add(qxJ9d_1);
                    String str2 = qxJ9d_1.f1044KQgRr5e_0;
                    if (str2 != null) {
                        kQgRr5e_0.put(str2, qxJ9d_1);
                    }
                }
            }
        }

        public void KQgRr5e_0(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            TypedArray KQgRr5e_0 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(resources, theme, attributeSet, X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.KQgRr5e_0.QxJ9d_1);
            KQgRr5e_0(KQgRr5e_0, xmlPullParser);
            KQgRr5e_0.recycle();
        }

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

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

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

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

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

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

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

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

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

        public void setPivotX(float f) {
            if (f != this.QxJ9d_1) {
                this.QxJ9d_1 = f;
                KQgRr5e_0();
            }
        }

        public void setPivotY(float f) {
            if (f != this.PGPF6hQ_2) {
                this.PGPF6hQ_2 = f;
                KQgRr5e_0();
            }
        }

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

        public void setScaleX(float f) {
            if (f != this.f3240Mqv2r_3) {
                this.f3240Mqv2r_3 = f;
                KQgRr5e_0();
            }
        }

        public void setScaleY(float f) {
            if (f != this.f3241X6FRs_4) {
                this.f3241X6FRs_4 = f;
                KQgRr5e_0();
            }
        }

        public void setTranslateX(float f) {
            if (f != this.f3238IFxWkV_5) {
                this.f3238IFxWkV_5 = f;
                KQgRr5e_0();
            }
        }

        public void setTranslateY(float f) {
            if (f != this.f3239IMuAHx_6) {
                this.f3239IMuAHx_6 = f;
                KQgRr5e_0();
            }
        }

        public final void KQgRr5e_0(TypedArray typedArray, XmlPullParser xmlPullParser) {
            this.f1063KQgRr5e_0 = null;
            this.KQgRr5e_0 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "rotation", 5, this.KQgRr5e_0);
            this.QxJ9d_1 = typedArray.getFloat(1, this.QxJ9d_1);
            this.PGPF6hQ_2 = typedArray.getFloat(2, this.PGPF6hQ_2);
            this.f3240Mqv2r_3 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "scaleX", 3, this.f3240Mqv2r_3);
            this.f3241X6FRs_4 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "scaleY", 4, this.f3241X6FRs_4);
            this.f3238IFxWkV_5 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "translateX", 6, this.f3238IFxWkV_5);
            this.f3239IMuAHx_6 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "translateY", 7, this.f3239IMuAHx_6);
            String string = typedArray.getString(0);
            if (string != null) {
                this.f1061KQgRr5e_0 = string;
            }
            KQgRr5e_0();
        }

        @Override // X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.Xgtqvk_8.X6FRs_4
        public final void KQgRr5e_0() {
            this.f1064QxJ9d_1.reset();
            this.f1064QxJ9d_1.postTranslate(-this.QxJ9d_1, -this.PGPF6hQ_2);
            this.f1064QxJ9d_1.postScale(this.f3240Mqv2r_3, this.f3241X6FRs_4);
            this.f1064QxJ9d_1.postRotate(this.KQgRr5e_0, 0.0f, 0.0f);
            this.f1064QxJ9d_1.postTranslate(this.f3238IFxWkV_5 + this.QxJ9d_1, this.f3239IMuAHx_6 + this.PGPF6hQ_2);
        }

        @Override // X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.Xgtqvk_8.X6FRs_4
        public boolean KQgRr5e_0() {
            for (int i = 0; i < this.f1062KQgRr5e_0.size(); i++) {
                if (this.f1062KQgRr5e_0.get(i).KQgRr5e_0()) {
                    return true;
                }
            }
            return false;
        }

        @Override // X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.Xgtqvk_8.X6FRs_4
        public boolean KQgRr5e_0(int[] iArr) {
            boolean z = false;
            for (int i = 0; i < this.f1062KQgRr5e_0.size(); i++) {
                z |= this.f1062KQgRr5e_0.get(i).KQgRr5e_0(iArr);
            }
            return z;
        }

        public Mqv2r_3() {
            super();
            this.f1060KQgRr5e_0 = new Matrix();
            this.f1062KQgRr5e_0 = new ArrayList<>();
            this.KQgRr5e_0 = 0.0f;
            this.QxJ9d_1 = 0.0f;
            this.PGPF6hQ_2 = 0.0f;
            this.f3240Mqv2r_3 = 1.0f;
            this.f3241X6FRs_4 = 1.0f;
            this.f3238IFxWkV_5 = 0.0f;
            this.f3239IMuAHx_6 = 0.0f;
            this.f1064QxJ9d_1 = new Matrix();
            this.f1061KQgRr5e_0 = null;
        }
    }

    /* compiled from: VectorDrawableCompat.java */
    /* loaded from: classes.dex */
    public static class PGPF6hQ_2 extends IFxWkV_5 {

        /* renamed from: IFxWkV_5  reason: collision with root package name */
        public float f3242IFxWkV_5;

        /* renamed from: IMuAHx_6  reason: collision with root package name */
        public float f3243IMuAHx_6;
        public float KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.QxJ9d_1 f1065KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Paint.Cap f1066KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Paint.Join f1067KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public int[] f1068KQgRr5e_0;

        /* renamed from: Mqv2r_3  reason: collision with root package name */
        public float f3244Mqv2r_3;
        public float PGPF6hQ_2;
        public float QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public int f1069QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.QxJ9d_1 f1070QxJ9d_1;

        /* renamed from: X6FRs_4  reason: collision with root package name */
        public float f3245X6FRs_4;

        public PGPF6hQ_2() {
            this.KQgRr5e_0 = 0.0f;
            this.QxJ9d_1 = 1.0f;
            this.f1069QxJ9d_1 = 0;
            this.PGPF6hQ_2 = 1.0f;
            this.f3244Mqv2r_3 = 0.0f;
            this.f3245X6FRs_4 = 1.0f;
            this.f3242IFxWkV_5 = 0.0f;
            this.f1066KQgRr5e_0 = Paint.Cap.BUTT;
            this.f1067KQgRr5e_0 = Paint.Join.MITER;
            this.f3243IMuAHx_6 = 4.0f;
        }

        public final Paint.Cap KQgRr5e_0(int i, Paint.Cap cap) {
            if (i != 0) {
                if (i != 1) {
                    return i != 2 ? cap : Paint.Cap.SQUARE;
                }
                return Paint.Cap.ROUND;
            }
            return Paint.Cap.BUTT;
        }

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

        public int getFillColor() {
            return this.f1070QxJ9d_1.KQgRr5e_0();
        }

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

        public int getStrokeColor() {
            return this.f1065KQgRr5e_0.KQgRr5e_0();
        }

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

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

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

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

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

        public void setFillColor(int i) {
            this.f1070QxJ9d_1.m342KQgRr5e_0(i);
        }

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

        public void setStrokeColor(int i) {
            this.f1065KQgRr5e_0.m342KQgRr5e_0(i);
        }

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

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

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

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

        public final Paint.Join KQgRr5e_0(int i, Paint.Join join) {
            if (i != 0) {
                if (i != 1) {
                    return i != 2 ? join : Paint.Join.BEVEL;
                }
                return Paint.Join.ROUND;
            }
            return Paint.Join.MITER;
        }

        public void KQgRr5e_0(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            TypedArray KQgRr5e_0 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(resources, theme, attributeSet, X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2);
            KQgRr5e_0(KQgRr5e_0, xmlPullParser, theme);
            KQgRr5e_0.recycle();
        }

        public final void KQgRr5e_0(TypedArray typedArray, XmlPullParser xmlPullParser, Resources.Theme theme) {
            this.f1068KQgRr5e_0 = null;
            if (X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(xmlPullParser, "pathData")) {
                String string = typedArray.getString(0);
                if (string != null) {
                    ((IFxWkV_5) this).f1044KQgRr5e_0 = string;
                }
                String string2 = typedArray.getString(2);
                if (string2 != null) {
                    ((IFxWkV_5) this).f1045KQgRr5e_0 = X6FRs_4.IMuAHx_6.IFxWkV_5.QxJ9d_1.m288KQgRr5e_0(string2);
                }
                this.f1070QxJ9d_1 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, theme, "fillColor", 1, 0);
                this.PGPF6hQ_2 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "fillAlpha", 12, this.PGPF6hQ_2);
                this.f1066KQgRr5e_0 = KQgRr5e_0(X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.QxJ9d_1(typedArray, xmlPullParser, "strokeLineCap", 8, -1), this.f1066KQgRr5e_0);
                this.f1067KQgRr5e_0 = KQgRr5e_0(X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.QxJ9d_1(typedArray, xmlPullParser, "strokeLineJoin", 9, -1), this.f1067KQgRr5e_0);
                this.f3243IMuAHx_6 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "strokeMiterLimit", 10, this.f3243IMuAHx_6);
                this.f1065KQgRr5e_0 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, theme, "strokeColor", 3, 0);
                this.QxJ9d_1 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "strokeAlpha", 11, this.QxJ9d_1);
                this.KQgRr5e_0 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "strokeWidth", 4, this.KQgRr5e_0);
                this.f3245X6FRs_4 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "trimPathEnd", 6, this.f3245X6FRs_4);
                this.f3242IFxWkV_5 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "trimPathOffset", 7, this.f3242IFxWkV_5);
                this.f3244Mqv2r_3 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "trimPathStart", 5, this.f3244Mqv2r_3);
                this.f1069QxJ9d_1 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.QxJ9d_1(typedArray, xmlPullParser, "fillType", 13, this.f1069QxJ9d_1);
            }
        }

        public PGPF6hQ_2(PGPF6hQ_2 pGPF6hQ_2) {
            super(pGPF6hQ_2);
            this.KQgRr5e_0 = 0.0f;
            this.QxJ9d_1 = 1.0f;
            this.f1069QxJ9d_1 = 0;
            this.PGPF6hQ_2 = 1.0f;
            this.f3244Mqv2r_3 = 0.0f;
            this.f3245X6FRs_4 = 1.0f;
            this.f3242IFxWkV_5 = 0.0f;
            this.f1066KQgRr5e_0 = Paint.Cap.BUTT;
            this.f1067KQgRr5e_0 = Paint.Join.MITER;
            this.f3243IMuAHx_6 = 4.0f;
            this.f1068KQgRr5e_0 = pGPF6hQ_2.f1068KQgRr5e_0;
            this.f1065KQgRr5e_0 = pGPF6hQ_2.f1065KQgRr5e_0;
            this.KQgRr5e_0 = pGPF6hQ_2.KQgRr5e_0;
            this.QxJ9d_1 = pGPF6hQ_2.QxJ9d_1;
            this.f1070QxJ9d_1 = pGPF6hQ_2.f1070QxJ9d_1;
            this.f1069QxJ9d_1 = pGPF6hQ_2.f1069QxJ9d_1;
            this.PGPF6hQ_2 = pGPF6hQ_2.PGPF6hQ_2;
            this.f3244Mqv2r_3 = pGPF6hQ_2.f3244Mqv2r_3;
            this.f3245X6FRs_4 = pGPF6hQ_2.f3245X6FRs_4;
            this.f3242IFxWkV_5 = pGPF6hQ_2.f3242IFxWkV_5;
            this.f1066KQgRr5e_0 = pGPF6hQ_2.f1066KQgRr5e_0;
            this.f1067KQgRr5e_0 = pGPF6hQ_2.f1067KQgRr5e_0;
            this.f3243IMuAHx_6 = pGPF6hQ_2.f3243IMuAHx_6;
        }

        @Override // X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.Xgtqvk_8.X6FRs_4
        public boolean KQgRr5e_0() {
            return this.f1070QxJ9d_1.QxJ9d_1() || this.f1065KQgRr5e_0.QxJ9d_1();
        }

        @Override // X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.Xgtqvk_8.X6FRs_4
        public boolean KQgRr5e_0(int[] iArr) {
            return this.f1065KQgRr5e_0.KQgRr5e_0(iArr) | this.f1070QxJ9d_1.KQgRr5e_0(iArr);
        }
    }

    public static Xgtqvk_8 KQgRr5e_0(Resources resources, int i, Resources.Theme theme) {
        int next;
        if (Build.VERSION.SDK_INT >= 24) {
            Xgtqvk_8 xgtqvk_8 = new Xgtqvk_8();
            ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) xgtqvk_8).KQgRr5e_0 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IFxWkV_5.KQgRr5e_0(resources, i, theme);
            new C0062Xgtqvk_8(((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) xgtqvk_8).KQgRr5e_0.getConstantState());
            return xgtqvk_8;
        }
        try {
            XmlResourceParser xml = resources.getXml(i);
            AttributeSet asAttributeSet = Xml.asAttributeSet(xml);
            while (true) {
                next = xml.next();
                if (next == 2 || next == 1) {
                    break;
                }
            }
            if (next == 2) {
                return KQgRr5e_0(resources, (XmlPullParser) xml, asAttributeSet, 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 void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        Drawable drawable = ((X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.FSaI4_7) this).KQgRr5e_0;
        if (drawable != null) {
            X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.KQgRr5e_0(drawable, resources, xmlPullParser, attributeSet, theme);
            return;
        }
        FSaI4_7 fSaI4_7 = this.f1029KQgRr5e_0;
        fSaI4_7.f1035KQgRr5e_0 = new IMuAHx_6();
        TypedArray KQgRr5e_02 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(resources, theme, attributeSet, X6FRs_4.NQvZgp_17.KQgRr5e_0.KQgRr5e_0.KQgRr5e_0.KQgRr5e_0);
        KQgRr5e_0(KQgRr5e_02, xmlPullParser);
        KQgRr5e_02.recycle();
        fSaI4_7.KQgRr5e_0 = getChangingConfigurations();
        fSaI4_7.PGPF6hQ_2 = true;
        m514KQgRr5e_0(resources, xmlPullParser, attributeSet, theme);
        this.f1032KQgRr5e_0 = KQgRr5e_0(this.f1032KQgRr5e_0, fSaI4_7.f1036KQgRr5e_0, fSaI4_7.f1039KQgRr5e_0);
    }

    public Xgtqvk_8(FSaI4_7 fSaI4_7) {
        this.PGPF6hQ_2 = true;
        this.f1034KQgRr5e_0 = new float[9];
        this.f1031KQgRr5e_0 = new Matrix();
        this.f1033KQgRr5e_0 = new Rect();
        this.f1029KQgRr5e_0 = fSaI4_7;
        this.f1032KQgRr5e_0 = KQgRr5e_0(this.f1032KQgRr5e_0, fSaI4_7.f1036KQgRr5e_0, fSaI4_7.f1039KQgRr5e_0);
    }

    /* compiled from: VectorDrawableCompat.java */
    /* loaded from: classes.dex */
    public static class IMuAHx_6 {
        public static final Matrix QxJ9d_1 = new Matrix();
        public float KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public int f1046KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final X6FRs_4.Mqv2r_3.KQgRr5e_0<String, Object> f1047KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final Mqv2r_3 f1048KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final Matrix f1049KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Paint f1050KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public final Path f1051KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public PathMeasure f1052KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Boolean f1053KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public String f1054KQgRr5e_0;

        /* renamed from: Mqv2r_3  reason: collision with root package name */
        public float f3237Mqv2r_3;
        public float PGPF6hQ_2;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public float f1055QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public int f1056QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public Paint f1057QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public final Path f1058QxJ9d_1;

        public IMuAHx_6() {
            this.f1049KQgRr5e_0 = new Matrix();
            this.KQgRr5e_0 = 0.0f;
            this.f1055QxJ9d_1 = 0.0f;
            this.PGPF6hQ_2 = 0.0f;
            this.f3237Mqv2r_3 = 0.0f;
            this.f1056QxJ9d_1 = 255;
            this.f1054KQgRr5e_0 = null;
            this.f1053KQgRr5e_0 = null;
            this.f1047KQgRr5e_0 = new X6FRs_4.Mqv2r_3.KQgRr5e_0<>();
            this.f1048KQgRr5e_0 = new Mqv2r_3();
            this.f1051KQgRr5e_0 = new Path();
            this.f1058QxJ9d_1 = new Path();
        }

        public static float KQgRr5e_0(float f, float f2, float f3, float f4) {
            return (f * f4) - (f2 * f3);
        }

        public final void KQgRr5e_0(Mqv2r_3 mqv2r_3, Matrix matrix, Canvas canvas, int i, int i2, ColorFilter colorFilter) {
            mqv2r_3.f1060KQgRr5e_0.set(matrix);
            mqv2r_3.f1060KQgRr5e_0.preConcat(mqv2r_3.f1064QxJ9d_1);
            canvas.save();
            for (int i3 = 0; i3 < mqv2r_3.f1062KQgRr5e_0.size(); i3++) {
                X6FRs_4 x6FRs_4 = mqv2r_3.f1062KQgRr5e_0.get(i3);
                if (x6FRs_4 instanceof Mqv2r_3) {
                    KQgRr5e_0((Mqv2r_3) x6FRs_4, mqv2r_3.f1060KQgRr5e_0, canvas, i, i2, colorFilter);
                } else if (x6FRs_4 instanceof IFxWkV_5) {
                    KQgRr5e_0(mqv2r_3, (IFxWkV_5) x6FRs_4, canvas, i, i2, colorFilter);
                }
            }
            canvas.restore();
        }

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

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

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

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

        public void KQgRr5e_0(Canvas canvas, int i, int i2, ColorFilter colorFilter) {
            KQgRr5e_0(this.f1048KQgRr5e_0, QxJ9d_1, canvas, i, i2, colorFilter);
        }

        public IMuAHx_6(IMuAHx_6 iMuAHx_6) {
            this.f1049KQgRr5e_0 = new Matrix();
            this.KQgRr5e_0 = 0.0f;
            this.f1055QxJ9d_1 = 0.0f;
            this.PGPF6hQ_2 = 0.0f;
            this.f3237Mqv2r_3 = 0.0f;
            this.f1056QxJ9d_1 = 255;
            this.f1054KQgRr5e_0 = null;
            this.f1053KQgRr5e_0 = null;
            X6FRs_4.Mqv2r_3.KQgRr5e_0<String, Object> kQgRr5e_0 = new X6FRs_4.Mqv2r_3.KQgRr5e_0<>();
            this.f1047KQgRr5e_0 = kQgRr5e_0;
            this.f1048KQgRr5e_0 = new Mqv2r_3(iMuAHx_6.f1048KQgRr5e_0, kQgRr5e_0);
            this.f1051KQgRr5e_0 = new Path(iMuAHx_6.f1051KQgRr5e_0);
            this.f1058QxJ9d_1 = new Path(iMuAHx_6.f1058QxJ9d_1);
            this.KQgRr5e_0 = iMuAHx_6.KQgRr5e_0;
            this.f1055QxJ9d_1 = iMuAHx_6.f1055QxJ9d_1;
            this.PGPF6hQ_2 = iMuAHx_6.PGPF6hQ_2;
            this.f3237Mqv2r_3 = iMuAHx_6.f3237Mqv2r_3;
            this.f1046KQgRr5e_0 = iMuAHx_6.f1046KQgRr5e_0;
            this.f1056QxJ9d_1 = iMuAHx_6.f1056QxJ9d_1;
            this.f1054KQgRr5e_0 = iMuAHx_6.f1054KQgRr5e_0;
            String str = iMuAHx_6.f1054KQgRr5e_0;
            if (str != null) {
                this.f1047KQgRr5e_0.put(str, this);
            }
            this.f1053KQgRr5e_0 = iMuAHx_6.f1053KQgRr5e_0;
        }

        public final void KQgRr5e_0(Mqv2r_3 mqv2r_3, IFxWkV_5 iFxWkV_5, Canvas canvas, int i, int i2, ColorFilter colorFilter) {
            float f = i / this.PGPF6hQ_2;
            float f2 = i2 / this.f3237Mqv2r_3;
            float min = Math.min(f, f2);
            Matrix matrix = mqv2r_3.f1060KQgRr5e_0;
            this.f1049KQgRr5e_0.set(matrix);
            this.f1049KQgRr5e_0.postScale(f, f2);
            float KQgRr5e_0 = KQgRr5e_0(matrix);
            if (KQgRr5e_0 == 0.0f) {
                return;
            }
            iFxWkV_5.KQgRr5e_0(this.f1051KQgRr5e_0);
            Path path = this.f1051KQgRr5e_0;
            this.f1058QxJ9d_1.reset();
            if (iFxWkV_5.QxJ9d_1()) {
                this.f1058QxJ9d_1.addPath(path, this.f1049KQgRr5e_0);
                canvas.clipPath(this.f1058QxJ9d_1);
                return;
            }
            PGPF6hQ_2 pGPF6hQ_2 = (PGPF6hQ_2) iFxWkV_5;
            if (pGPF6hQ_2.f3244Mqv2r_3 != 0.0f || pGPF6hQ_2.f3245X6FRs_4 != 1.0f) {
                float f3 = pGPF6hQ_2.f3244Mqv2r_3;
                float f4 = pGPF6hQ_2.f3242IFxWkV_5;
                float f5 = (f3 + f4) % 1.0f;
                float f6 = (pGPF6hQ_2.f3245X6FRs_4 + f4) % 1.0f;
                if (this.f1052KQgRr5e_0 == null) {
                    this.f1052KQgRr5e_0 = new PathMeasure();
                }
                this.f1052KQgRr5e_0.setPath(this.f1051KQgRr5e_0, false);
                float length = this.f1052KQgRr5e_0.getLength();
                float f7 = f5 * length;
                float f8 = f6 * length;
                path.reset();
                if (f7 > f8) {
                    this.f1052KQgRr5e_0.getSegment(f7, length, path, true);
                    this.f1052KQgRr5e_0.getSegment(0.0f, f8, path, true);
                } else {
                    this.f1052KQgRr5e_0.getSegment(f7, f8, path, true);
                }
                path.rLineTo(0.0f, 0.0f);
            }
            this.f1058QxJ9d_1.addPath(path, this.f1049KQgRr5e_0);
            if (pGPF6hQ_2.f1070QxJ9d_1.PGPF6hQ_2()) {
                X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.QxJ9d_1 qxJ9d_1 = pGPF6hQ_2.f1070QxJ9d_1;
                if (this.f1057QxJ9d_1 == null) {
                    Paint paint = new Paint(1);
                    this.f1057QxJ9d_1 = paint;
                    paint.setStyle(Paint.Style.FILL);
                }
                Paint paint2 = this.f1057QxJ9d_1;
                if (qxJ9d_1.m343KQgRr5e_0()) {
                    Shader m341KQgRr5e_0 = qxJ9d_1.m341KQgRr5e_0();
                    m341KQgRr5e_0.setLocalMatrix(this.f1049KQgRr5e_0);
                    paint2.setShader(m341KQgRr5e_0);
                    paint2.setAlpha(Math.round(pGPF6hQ_2.PGPF6hQ_2 * 255.0f));
                } else {
                    paint2.setShader(null);
                    paint2.setAlpha(255);
                    paint2.setColor(Xgtqvk_8.KQgRr5e_0(qxJ9d_1.KQgRr5e_0(), pGPF6hQ_2.PGPF6hQ_2));
                }
                paint2.setColorFilter(colorFilter);
                this.f1058QxJ9d_1.setFillType(pGPF6hQ_2.f1069QxJ9d_1 == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
                canvas.drawPath(this.f1058QxJ9d_1, paint2);
            }
            if (pGPF6hQ_2.f1065KQgRr5e_0.PGPF6hQ_2()) {
                X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.QxJ9d_1 qxJ9d_12 = pGPF6hQ_2.f1065KQgRr5e_0;
                if (this.f1050KQgRr5e_0 == null) {
                    Paint paint3 = new Paint(1);
                    this.f1050KQgRr5e_0 = paint3;
                    paint3.setStyle(Paint.Style.STROKE);
                }
                Paint paint4 = this.f1050KQgRr5e_0;
                Paint.Join join = pGPF6hQ_2.f1067KQgRr5e_0;
                if (join != null) {
                    paint4.setStrokeJoin(join);
                }
                Paint.Cap cap = pGPF6hQ_2.f1066KQgRr5e_0;
                if (cap != null) {
                    paint4.setStrokeCap(cap);
                }
                paint4.setStrokeMiter(pGPF6hQ_2.f3243IMuAHx_6);
                if (qxJ9d_12.m343KQgRr5e_0()) {
                    Shader m341KQgRr5e_02 = qxJ9d_12.m341KQgRr5e_0();
                    m341KQgRr5e_02.setLocalMatrix(this.f1049KQgRr5e_0);
                    paint4.setShader(m341KQgRr5e_02);
                    paint4.setAlpha(Math.round(pGPF6hQ_2.QxJ9d_1 * 255.0f));
                } else {
                    paint4.setShader(null);
                    paint4.setAlpha(255);
                    paint4.setColor(Xgtqvk_8.KQgRr5e_0(qxJ9d_12.KQgRr5e_0(), pGPF6hQ_2.QxJ9d_1));
                }
                paint4.setColorFilter(colorFilter);
                paint4.setStrokeWidth(pGPF6hQ_2.KQgRr5e_0 * min * KQgRr5e_0);
                canvas.drawPath(this.f1058QxJ9d_1, paint4);
            }
        }

        public final float KQgRr5e_0(Matrix matrix) {
            float[] fArr = {0.0f, 1.0f, 1.0f, 0.0f};
            matrix.mapVectors(fArr);
            float KQgRr5e_0 = KQgRr5e_0(fArr[0], fArr[1], fArr[2], fArr[3]);
            float max = Math.max((float) Math.hypot(fArr[0], fArr[1]), (float) Math.hypot(fArr[2], fArr[3]));
            if (max > 0.0f) {
                return Math.abs(KQgRr5e_0) / max;
            }
            return 0.0f;
        }

        public boolean KQgRr5e_0() {
            if (this.f1053KQgRr5e_0 == null) {
                this.f1053KQgRr5e_0 = Boolean.valueOf(this.f1048KQgRr5e_0.KQgRr5e_0());
            }
            return this.f1053KQgRr5e_0.booleanValue();
        }

        public boolean KQgRr5e_0(int[] iArr) {
            return this.f1048KQgRr5e_0.KQgRr5e_0(iArr);
        }
    }

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

    public static int KQgRr5e_0(int i, float f) {
        return (i & 16777215) | (((int) (Color.alpha(i) * f)) << 24);
    }

    public static PorterDuff.Mode KQgRr5e_0(int i, PorterDuff.Mode mode) {
        if (i != 3) {
            if (i != 5) {
                if (i != 9) {
                    switch (i) {
                        case 14:
                            return PorterDuff.Mode.MULTIPLY;
                        case 15:
                            return PorterDuff.Mode.SCREEN;
                        case 16:
                            return PorterDuff.Mode.ADD;
                        default:
                            return mode;
                    }
                }
                return PorterDuff.Mode.SRC_ATOP;
            }
            return PorterDuff.Mode.SRC_IN;
        }
        return PorterDuff.Mode.SRC_OVER;
    }

    public final void KQgRr5e_0(TypedArray typedArray, XmlPullParser xmlPullParser) throws XmlPullParserException {
        FSaI4_7 fSaI4_7 = this.f1029KQgRr5e_0;
        IMuAHx_6 iMuAHx_6 = fSaI4_7.f1035KQgRr5e_0;
        fSaI4_7.f1039KQgRr5e_0 = KQgRr5e_0(X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.QxJ9d_1(typedArray, xmlPullParser, "tintMode", 6, -1), PorterDuff.Mode.SRC_IN);
        ColorStateList colorStateList = typedArray.getColorStateList(1);
        if (colorStateList != null) {
            fSaI4_7.f1036KQgRr5e_0 = colorStateList;
        }
        fSaI4_7.f1040KQgRr5e_0 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "autoMirrored", 5, fSaI4_7.f1040KQgRr5e_0);
        iMuAHx_6.PGPF6hQ_2 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "viewportWidth", 7, iMuAHx_6.PGPF6hQ_2);
        float KQgRr5e_02 = X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "viewportHeight", 8, iMuAHx_6.f3237Mqv2r_3);
        iMuAHx_6.f3237Mqv2r_3 = KQgRr5e_02;
        if (iMuAHx_6.PGPF6hQ_2 <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires viewportWidth > 0");
        } else if (KQgRr5e_02 > 0.0f) {
            iMuAHx_6.KQgRr5e_0 = typedArray.getDimension(3, iMuAHx_6.KQgRr5e_0);
            float dimension = typedArray.getDimension(2, iMuAHx_6.f1055QxJ9d_1);
            iMuAHx_6.f1055QxJ9d_1 = dimension;
            if (iMuAHx_6.KQgRr5e_0 <= 0.0f) {
                throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires width > 0");
            } else if (dimension > 0.0f) {
                iMuAHx_6.setAlpha(X6FRs_4.IMuAHx_6.X6FRs_4.PGPF6hQ_2.IMuAHx_6.KQgRr5e_0(typedArray, xmlPullParser, "alpha", 4, iMuAHx_6.getAlpha()));
                String string = typedArray.getString(0);
                if (string != null) {
                    iMuAHx_6.f1054KQgRr5e_0 = string;
                    iMuAHx_6.f1047KQgRr5e_0.put(string, iMuAHx_6);
                }
            } else {
                throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires height > 0");
            }
        } else {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires viewportHeight > 0");
        }
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public final void m514KQgRr5e_0(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        FSaI4_7 fSaI4_7 = this.f1029KQgRr5e_0;
        IMuAHx_6 iMuAHx_6 = fSaI4_7.f1035KQgRr5e_0;
        ArrayDeque arrayDeque = new ArrayDeque();
        arrayDeque.push(iMuAHx_6.f1048KQgRr5e_0);
        int eventType = xmlPullParser.getEventType();
        int depth = xmlPullParser.getDepth() + 1;
        boolean z = true;
        while (eventType != 1 && (xmlPullParser.getDepth() >= depth || eventType != 3)) {
            if (eventType == 2) {
                String name = xmlPullParser.getName();
                Mqv2r_3 mqv2r_3 = (Mqv2r_3) arrayDeque.peek();
                if ("path".equals(name)) {
                    PGPF6hQ_2 pGPF6hQ_2 = new PGPF6hQ_2();
                    pGPF6hQ_2.KQgRr5e_0(resources, attributeSet, theme, xmlPullParser);
                    mqv2r_3.f1062KQgRr5e_0.add(pGPF6hQ_2);
                    if (pGPF6hQ_2.getPathName() != null) {
                        iMuAHx_6.f1047KQgRr5e_0.put(pGPF6hQ_2.getPathName(), pGPF6hQ_2);
                    }
                    z = false;
                    fSaI4_7.KQgRr5e_0 = ((IFxWkV_5) pGPF6hQ_2).KQgRr5e_0 | fSaI4_7.KQgRr5e_0;
                } else if ("clip-path".equals(name)) {
                    QxJ9d_1 qxJ9d_1 = new QxJ9d_1();
                    qxJ9d_1.KQgRr5e_0(resources, attributeSet, theme, xmlPullParser);
                    mqv2r_3.f1062KQgRr5e_0.add(qxJ9d_1);
                    if (qxJ9d_1.getPathName() != null) {
                        iMuAHx_6.f1047KQgRr5e_0.put(qxJ9d_1.getPathName(), qxJ9d_1);
                    }
                    fSaI4_7.KQgRr5e_0 = ((IFxWkV_5) qxJ9d_1).KQgRr5e_0 | fSaI4_7.KQgRr5e_0;
                } else if ("group".equals(name)) {
                    Mqv2r_3 mqv2r_32 = new Mqv2r_3();
                    mqv2r_32.KQgRr5e_0(resources, attributeSet, theme, xmlPullParser);
                    mqv2r_3.f1062KQgRr5e_0.add(mqv2r_32);
                    arrayDeque.push(mqv2r_32);
                    if (mqv2r_32.getGroupName() != null) {
                        iMuAHx_6.f1047KQgRr5e_0.put(mqv2r_32.getGroupName(), mqv2r_32);
                    }
                    fSaI4_7.KQgRr5e_0 = mqv2r_32.f1059KQgRr5e_0 | fSaI4_7.KQgRr5e_0;
                }
            } else if (eventType == 3 && "group".equals(xmlPullParser.getName())) {
                arrayDeque.pop();
            }
            eventType = xmlPullParser.next();
        }
        if (z) {
            throw new XmlPullParserException("no path defined");
        }
    }

    public void KQgRr5e_0(boolean z) {
        this.PGPF6hQ_2 = z;
    }

    public final boolean KQgRr5e_0() {
        return Build.VERSION.SDK_INT >= 17 && isAutoMirrored() && X6FRs_4.IMuAHx_6.IFxWkV_5.XnFJ5_9.KQgRr5e_0.QxJ9d_1((Drawable) this) == 1;
    }
}
