package o;

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

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Wi0 extends Ni0 {
    public static final PorterDuff.Mode u = PorterDuff.Mode.SRC_IN;
    public Ui0 m;
    public PorterDuffColorFilter n;

    /* renamed from: o, reason: collision with root package name */
    public ColorFilter f400o;
    public boolean p;
    public boolean q;
    public final float[] r;
    public final Matrix s;
    public final Rect t;

    public Wi0() {
        this.q = true;
        this.r = new float[9];
        this.s = new Matrix();
        this.t = new Rect();
        Ui0 ui0 = new Ui0();
        ui0.c = null;
        ui0.d = u;
        ui0.b = new Ti0();
        this.m = ui0;
    }

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

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

    @Override // android.graphics.drawable.Drawable
    public final void draw(Canvas canvas) {
        Paint paint;
        Drawable drawable = this.l;
        if (drawable != null) {
            drawable.draw(canvas);
            return;
        }
        Rect rect = this.t;
        copyBounds(rect);
        if (rect.width() <= 0 || rect.height() <= 0) {
            return;
        }
        ColorFilter colorFilter = this.f400o;
        if (colorFilter == null) {
            colorFilter = this.n;
        }
        Matrix matrix = this.s;
        canvas.getMatrix(matrix);
        float[] fArr = this.r;
        matrix.getValues(fArr);
        float fAbs = Math.abs(fArr[0]);
        float fAbs2 = Math.abs(fArr[4]);
        float fAbs3 = Math.abs(fArr[1]);
        float fAbs4 = Math.abs(fArr[3]);
        if (fAbs3 != 0.0f || fAbs4 != 0.0f) {
            fAbs = 1.0f;
            fAbs2 = 1.0f;
        }
        int iWidth = (int) (rect.width() * fAbs);
        int iMin = Math.min(2048, iWidth);
        int iMin2 = Math.min(2048, (int) (rect.height() * fAbs2));
        if (iMin <= 0 || iMin2 <= 0) {
            return;
        }
        int iSave = canvas.save();
        canvas.translate(rect.left, rect.top);
        if (isAutoMirrored() && getLayoutDirection() == 1) {
            canvas.translate(rect.width(), 0.0f);
            canvas.scale(-1.0f, 1.0f);
        }
        rect.offsetTo(0, 0);
        Ui0 ui0 = this.m;
        Bitmap bitmap = ui0.f;
        if (bitmap == null || iMin != bitmap.getWidth() || iMin2 != ui0.f.getHeight()) {
            ui0.f = Bitmap.createBitmap(iMin, iMin2, Bitmap.Config.ARGB_8888);
            ui0.k = true;
        }
        if (this.q) {
            Ui0 ui02 = this.m;
            if (ui02.k || ui02.g != ui02.c || ui02.h != ui02.d || ui02.j != ui02.e || ui02.i != ui02.b.getRootAlpha()) {
                Ui0 ui03 = this.m;
                ui03.f.eraseColor(0);
                Canvas canvas2 = new Canvas(ui03.f);
                Ti0 ti0 = ui03.b;
                ti0.a(ti0.g, Ti0.p, canvas2, iMin, iMin2);
                Ui0 ui04 = this.m;
                ui04.g = ui04.c;
                ui04.h = ui04.d;
                ui04.i = ui04.b.getRootAlpha();
                ui04.j = ui04.e;
                ui04.k = false;
            }
        } else {
            Ui0 ui05 = this.m;
            ui05.f.eraseColor(0);
            Canvas canvas3 = new Canvas(ui05.f);
            Ti0 ti02 = ui05.b;
            ti02.a(ti02.g, Ti0.p, canvas3, iMin, iMin2);
        }
        Ui0 ui06 = this.m;
        if (ui06.b.getRootAlpha() >= 255 && colorFilter == null) {
            paint = null;
        } else {
            if (ui06.l == null) {
                Paint paint2 = new Paint();
                ui06.l = paint2;
                paint2.setFilterBitmap(true);
            }
            ui06.l.setAlpha(ui06.b.getRootAlpha());
            ui06.l.setColorFilter(colorFilter);
            paint = ui06.l;
        }
        canvas.drawBitmap(ui06.f, (Rect) null, rect, paint);
        canvas.restoreToCount(iSave);
    }

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

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

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

    @Override // android.graphics.drawable.Drawable
    public final Drawable.ConstantState getConstantState() {
        if (this.l != null) {
            return new Vi0(this.l.getConstantState());
        }
        this.m.a = getChangingConfigurations();
        return this.m;
    }

    @Override // android.graphics.drawable.Drawable
    public final int getIntrinsicHeight() {
        Drawable drawable = this.l;
        return drawable != null ? drawable.getIntrinsicHeight() : (int) this.m.b.i;
    }

    @Override // android.graphics.drawable.Drawable
    public final int getIntrinsicWidth() {
        Drawable drawable = this.l;
        return drawable != null ? drawable.getIntrinsicWidth() : (int) this.m.b.h;
    }

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

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

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

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

    @Override // android.graphics.drawable.Drawable
    public final boolean isStateful() {
        Drawable drawable = this.l;
        if (drawable != null) {
            return drawable.isStateful();
        }
        if (super.isStateful()) {
            return true;
        }
        Ui0 ui0 = this.m;
        if (ui0 == null) {
            return false;
        }
        Ti0 ti0 = ui0.b;
        if (ti0.n == null) {
            ti0.n = Boolean.valueOf(ti0.g.a());
        }
        if (ti0.n.booleanValue()) {
            return true;
        }
        ColorStateList colorStateList = this.m.c;
        return colorStateList != null && colorStateList.isStateful();
    }

    @Override // android.graphics.drawable.Drawable
    public final Drawable mutate() {
        Drawable drawable = this.l;
        if (drawable != null) {
            drawable.mutate();
            return this;
        }
        if (!this.p && super.mutate() == this) {
            Ui0 ui0 = this.m;
            Ui0 ui02 = new Ui0();
            ui02.c = null;
            ui02.d = u;
            if (ui0 != null) {
                ui02.a = ui0.a;
                Ti0 ti0 = new Ti0(ui0.b);
                ui02.b = ti0;
                if (ui0.b.e != null) {
                    ti0.e = new Paint(ui0.b.e);
                }
                if (ui0.b.d != null) {
                    ui02.b.d = new Paint(ui0.b.d);
                }
                ui02.c = ui0.c;
                ui02.d = ui0.d;
                ui02.e = ui0.e;
            }
            this.m = ui02;
            this.p = true;
        }
        return this;
    }

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

    @Override // android.graphics.drawable.Drawable
    public final boolean onStateChange(int[] iArr) {
        boolean z;
        PorterDuff.Mode mode;
        Drawable drawable = this.l;
        if (drawable != null) {
            return drawable.setState(iArr);
        }
        Ui0 ui0 = this.m;
        ColorStateList colorStateList = ui0.c;
        if (colorStateList == null || (mode = ui0.d) == null) {
            z = false;
        } else {
            this.n = a(colorStateList, mode);
            invalidateSelf();
            z = true;
        }
        Ti0 ti0 = ui0.b;
        if (ti0.n == null) {
            ti0.n = Boolean.valueOf(ti0.g.a());
        }
        if (ti0.n.booleanValue()) {
            boolean zB = ui0.b.g.b(iArr);
            ui0.k |= zB;
            if (zB) {
                invalidateSelf();
                return true;
            }
        }
        return z;
    }

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

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

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

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

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

    @Override // android.graphics.drawable.Drawable
    public final void setTintList(ColorStateList colorStateList) {
        Drawable drawable = this.l;
        if (drawable != null) {
            drawable.setTintList(colorStateList);
            return;
        }
        Ui0 ui0 = this.m;
        if (ui0.c != colorStateList) {
            ui0.c = colorStateList;
            this.n = a(colorStateList, ui0.d);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public final void setTintMode(PorterDuff.Mode mode) {
        Drawable drawable = this.l;
        if (drawable != null) {
            drawable.setTintMode(mode);
            return;
        }
        Ui0 ui0 = this.m;
        if (ui0.d != mode) {
            ui0.d = mode;
            this.n = a(ui0.c, mode);
            invalidateSelf();
        }
    }

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

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

    @Override // android.graphics.drawable.Drawable
    public final void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        int i;
        int i2;
        int i3;
        int i4;
        Paint.Cap cap;
        Paint.Join join;
        Drawable drawable = this.l;
        if (drawable != null) {
            drawable.inflate(resources, xmlPullParser, attributeSet, theme);
            return;
        }
        Ui0 ui0 = this.m;
        ui0.b = new Ti0();
        TypedArray typedArrayJ = AbstractC1692kh0.J(resources, theme, attributeSet, AbstractC0662Zn.a);
        Ui0 ui02 = this.m;
        Ti0 ti0 = ui02.b;
        int i5 = !AbstractC1692kh0.x(xmlPullParser, "tintMode") ? -1 : typedArrayJ.getInt(6, -1);
        PorterDuff.Mode mode = PorterDuff.Mode.SRC_IN;
        int i6 = 3;
        if (i5 == 3) {
            mode = PorterDuff.Mode.SRC_OVER;
        } else if (i5 != 5) {
            if (i5 != 9) {
                switch (i5) {
                    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;
            }
        }
        ui02.d = mode;
        ColorStateList colorStateListT = AbstractC1692kh0.t(typedArrayJ, xmlPullParser, theme);
        if (colorStateListT != null) {
            ui02.c = colorStateListT;
        }
        boolean z = ui02.e;
        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "autoMirrored") != null) {
            z = typedArrayJ.getBoolean(5, z);
        }
        ui02.e = z;
        float f = ti0.j;
        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "viewportWidth") != null) {
            f = typedArrayJ.getFloat(7, f);
        }
        ti0.j = f;
        float f2 = ti0.k;
        if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "viewportHeight") != null) {
            f2 = typedArrayJ.getFloat(8, f2);
        }
        ti0.k = f2;
        if (ti0.j <= 0.0f) {
            throw new XmlPullParserException(typedArrayJ.getPositionDescription() + "<vector> tag requires viewportWidth > 0");
        }
        if (f2 > 0.0f) {
            ti0.h = typedArrayJ.getDimension(3, ti0.h);
            int i7 = 2;
            float dimension = typedArrayJ.getDimension(2, ti0.i);
            ti0.i = dimension;
            if (ti0.h <= 0.0f) {
                throw new XmlPullParserException(typedArrayJ.getPositionDescription() + "<vector> tag requires width > 0");
            }
            if (dimension > 0.0f) {
                float alpha = ti0.getAlpha();
                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "alpha") != null) {
                    alpha = typedArrayJ.getFloat(4, alpha);
                }
                ti0.setAlpha(alpha);
                String string = typedArrayJ.getString(0);
                if (string != null) {
                    ti0.m = string;
                    ti0.f345o.put(string, ti0);
                }
                typedArrayJ.recycle();
                ui0.a = getChangingConfigurations();
                int i8 = 1;
                ui0.k = true;
                Ui0 ui03 = this.m;
                Ti0 ti02 = ui03.b;
                ArrayDeque arrayDeque = new ArrayDeque();
                Qi0 qi0 = ti02.g;
                C1839m9 c1839m9 = ti02.f345o;
                arrayDeque.push(qi0);
                int eventType = xmlPullParser.getEventType();
                int depth = xmlPullParser.getDepth() + 1;
                boolean z2 = true;
                while (eventType != i8 && (xmlPullParser.getDepth() >= depth || eventType != i6)) {
                    if (eventType == i7) {
                        String name = xmlPullParser.getName();
                        Qi0 qi02 = (Qi0) arrayDeque.peek();
                        i = depth;
                        if ("path".equals(name)) {
                            Pi0 pi0 = new Pi0();
                            pi0.e = 0.0f;
                            pi0.g = 1.0f;
                            pi0.h = 1.0f;
                            pi0.i = 0.0f;
                            pi0.j = 1.0f;
                            pi0.k = 0.0f;
                            Paint.Cap cap2 = Paint.Cap.BUTT;
                            pi0.l = cap2;
                            Paint.Join join2 = Paint.Join.MITER;
                            pi0.m = join2;
                            pi0.n = 4.0f;
                            TypedArray typedArrayJ2 = AbstractC1692kh0.J(resources, theme, attributeSet, AbstractC0662Zn.c);
                            if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "pathData") != null) {
                                String string2 = typedArrayJ2.getString(0);
                                if (string2 != null) {
                                    pi0.b = string2;
                                }
                                String string3 = typedArrayJ2.getString(2);
                                if (string3 != null) {
                                    pi0.a = AbstractC2798wI.m(string3);
                                }
                                pi0.f = AbstractC1692kh0.u(typedArrayJ2, xmlPullParser, theme, "fillColor", 1);
                                float f3 = pi0.h;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "fillAlpha") != null) {
                                    f3 = typedArrayJ2.getFloat(12, f3);
                                }
                                pi0.h = f3;
                                int i9 = xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeLineCap") != null ? typedArrayJ2.getInt(8, -1) : -1;
                                Paint.Cap cap3 = pi0.l;
                                if (i9 == 0) {
                                    cap = cap2;
                                } else if (i9 != 1) {
                                    cap = i9 != 2 ? cap3 : Paint.Cap.SQUARE;
                                } else {
                                    cap = Paint.Cap.ROUND;
                                }
                                pi0.l = cap;
                                int i10 = xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeLineJoin") != null ? typedArrayJ2.getInt(9, -1) : -1;
                                Paint.Join join3 = pi0.m;
                                if (i10 == 0) {
                                    join = join2;
                                } else if (i10 != 1) {
                                    join = i10 != 2 ? join3 : Paint.Join.BEVEL;
                                } else {
                                    join = Paint.Join.ROUND;
                                }
                                pi0.m = join;
                                float f4 = pi0.n;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeMiterLimit") != null) {
                                    f4 = typedArrayJ2.getFloat(10, f4);
                                }
                                pi0.n = f4;
                                pi0.d = AbstractC1692kh0.u(typedArrayJ2, xmlPullParser, theme, "strokeColor", 3);
                                float f5 = pi0.g;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeAlpha") != null) {
                                    f5 = typedArrayJ2.getFloat(11, f5);
                                }
                                pi0.g = f5;
                                float f6 = pi0.e;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "strokeWidth") != null) {
                                    f6 = typedArrayJ2.getFloat(4, f6);
                                }
                                pi0.e = f6;
                                float f7 = pi0.j;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "trimPathEnd") != null) {
                                    f7 = typedArrayJ2.getFloat(6, f7);
                                }
                                pi0.j = f7;
                                float f8 = pi0.k;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "trimPathOffset") != null) {
                                    f8 = typedArrayJ2.getFloat(7, f8);
                                }
                                pi0.k = f8;
                                float f9 = pi0.i;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "trimPathStart") != null) {
                                    f9 = typedArrayJ2.getFloat(5, f9);
                                }
                                pi0.i = f9;
                                int i11 = pi0.c;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "fillType") != null) {
                                    i11 = typedArrayJ2.getInt(13, i11);
                                }
                                pi0.c = i11;
                            }
                            typedArrayJ2.recycle();
                            qi02.b.add(pi0);
                            if (pi0.getPathName() != null) {
                                c1839m9.put(pi0.getPathName(), pi0);
                            }
                            ui03.a = ui03.a;
                            i4 = 1;
                            z2 = false;
                        } else {
                            if ("clip-path".equals(name)) {
                                Oi0 oi0 = new Oi0();
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "pathData") != null) {
                                    TypedArray typedArrayJ3 = AbstractC1692kh0.J(resources, theme, attributeSet, AbstractC0662Zn.d);
                                    String string4 = typedArrayJ3.getString(0);
                                    if (string4 != null) {
                                        oi0.b = string4;
                                    }
                                    String string5 = typedArrayJ3.getString(1);
                                    if (string5 != null) {
                                        oi0.a = AbstractC2798wI.m(string5);
                                    }
                                    oi0.c = !AbstractC1692kh0.x(xmlPullParser, "fillType") ? 0 : typedArrayJ3.getInt(2, 0);
                                    typedArrayJ3.recycle();
                                }
                                qi02.b.add(oi0);
                                if (oi0.getPathName() != null) {
                                    c1839m9.put(oi0.getPathName(), oi0);
                                }
                                ui03.a = ui03.a;
                            } else if ("group".equals(name)) {
                                Qi0 qi03 = new Qi0();
                                TypedArray typedArrayJ4 = AbstractC1692kh0.J(resources, theme, attributeSet, AbstractC0662Zn.b);
                                float f10 = qi03.c;
                                if (AbstractC1692kh0.x(xmlPullParser, "rotation")) {
                                    f10 = typedArrayJ4.getFloat(5, f10);
                                }
                                qi03.c = f10;
                                i4 = 1;
                                qi03.d = typedArrayJ4.getFloat(1, qi03.d);
                                qi03.e = typedArrayJ4.getFloat(2, qi03.e);
                                float f11 = qi03.f;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "scaleX") != null) {
                                    f11 = typedArrayJ4.getFloat(3, f11);
                                }
                                qi03.f = f11;
                                float f12 = qi03.g;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "scaleY") != null) {
                                    f12 = typedArrayJ4.getFloat(4, f12);
                                }
                                qi03.g = f12;
                                float f13 = qi03.h;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "translateX") != null) {
                                    f13 = typedArrayJ4.getFloat(6, f13);
                                }
                                qi03.h = f13;
                                float f14 = qi03.i;
                                if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", "translateY") != null) {
                                    f14 = typedArrayJ4.getFloat(7, f14);
                                }
                                qi03.i = f14;
                                String string6 = typedArrayJ4.getString(0);
                                if (string6 != null) {
                                    qi03.k = string6;
                                }
                                qi03.c();
                                typedArrayJ4.recycle();
                                qi02.b.add(qi03);
                                arrayDeque.push(qi03);
                                if (qi03.getGroupName() != null) {
                                    c1839m9.put(qi03.getGroupName(), qi03);
                                }
                                ui03.a = ui03.a;
                            }
                            i4 = 1;
                        }
                        i3 = i4;
                        i2 = 3;
                    } else {
                        i = depth;
                        i2 = i6;
                        i3 = 1;
                        if (eventType == i2 && "group".equals(xmlPullParser.getName())) {
                            arrayDeque.pop();
                        }
                    }
                    eventType = xmlPullParser.next();
                    i6 = i2;
                    i8 = i3;
                    depth = i;
                    i7 = 2;
                }
                if (!z2) {
                    this.n = a(ui0.c, ui0.d);
                    return;
                }
                throw new XmlPullParserException("no path defined");
            }
            throw new XmlPullParserException(typedArrayJ.getPositionDescription() + "<vector> tag requires height > 0");
        }
        throw new XmlPullParserException(typedArrayJ.getPositionDescription() + "<vector> tag requires viewportHeight > 0");
    }

    public Wi0(Ui0 ui0) {
        this.q = true;
        this.r = new float[9];
        this.s = new Matrix();
        this.t = new Rect();
        this.m = ui0;
        this.n = a(ui0.c, ui0.d);
    }
}
