package IMuAHx_6.Mqv2r_3.KQgRr5e_0.KQgRr5e_0.IMuAHx_6;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.os.Build;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.BounceInterpolator;
/* compiled from: WaveView.java */
/* loaded from: classes.dex */
public class QxJ9d_1 extends View implements ViewTreeObserver.OnPreDrawListener {

    /* renamed from: IFxWkV_5  reason: collision with root package name */
    public ValueAnimator f3064IFxWkV_5;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public float f195KQgRr5e_0;

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

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public ValueAnimator.AnimatorUpdateListener f197KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public ValueAnimator f198KQgRr5e_0;

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

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

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public RectF f201KQgRr5e_0;

    /* renamed from: Mqv2r_3  reason: collision with root package name */
    public ValueAnimator f3065Mqv2r_3;

    /* renamed from: Mqv2r_3  reason: collision with other field name */
    public Path f202Mqv2r_3;

    /* renamed from: PGPF6hQ_2  reason: collision with other field name */
    public int f203PGPF6hQ_2;

    /* renamed from: PGPF6hQ_2  reason: collision with other field name */
    public ValueAnimator f204PGPF6hQ_2;

    /* renamed from: PGPF6hQ_2  reason: collision with other field name */
    public Path f205PGPF6hQ_2;

    /* renamed from: PGPF6hQ_2  reason: collision with other field name */
    public boolean f206PGPF6hQ_2;

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

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

    /* renamed from: QxJ9d_1  reason: collision with other field name */
    public ValueAnimator f209QxJ9d_1;

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

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

    /* renamed from: X6FRs_4  reason: collision with root package name */
    public ValueAnimator f3066X6FRs_4;
    public static final float[][] KQgRr5e_0 = {new float[]{0.1655f, 0.0f}, new float[]{0.4188f, -0.0109f}, new float[]{0.4606f, -0.0049f}, new float[]{0.4893f, 0.0f}, new float[]{0.4893f, 0.0f}, new float[]{0.5f, 0.0f}};
    public static final float[][] QxJ9d_1 = {new float[]{0.1655f, 0.0f}, new float[]{0.5237f, 0.0553f}, new float[]{0.4557f, 0.0936f}, new float[]{0.3908f, 0.1302f}, new float[]{0.4303f, 0.2173f}, new float[]{0.5f, 0.2173f}};
    public static final float[][] PGPF6hQ_2 = {new float[]{0.1655f, 0.0f}, new float[]{0.5909f, 0.0f}, new float[]{0.4557f, 0.1642f}, new float[]{0.3941f, 0.2061f}, new float[]{0.4303f, 0.2889f}, new float[]{0.5f, 0.2889f}};

    /* compiled from: WaveView.java */
    /* loaded from: classes.dex */
    public class KQgRr5e_0 implements ValueAnimator.AnimatorUpdateListener {
        public KQgRr5e_0() {
        }

        @Override // android.animation.ValueAnimator.AnimatorUpdateListener
        public void onAnimationUpdate(ValueAnimator valueAnimator) {
            QxJ9d_1.this.postInvalidate();
        }
    }

    /* compiled from: WaveView.java */
    /* loaded from: classes.dex */
    public class Mqv2r_3 implements ValueAnimator.AnimatorUpdateListener {
        public Mqv2r_3() {
        }

        @Override // android.animation.ValueAnimator.AnimatorUpdateListener
        public void onAnimationUpdate(ValueAnimator valueAnimator) {
            float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
            QxJ9d_1.this.f200KQgRr5e_0.moveTo(0.0f, 0.0f);
            QxJ9d_1 qxJ9d_1 = QxJ9d_1.this;
            Path path = qxJ9d_1.f200KQgRr5e_0;
            int i = qxJ9d_1.f196KQgRr5e_0;
            float f = floatValue * 0.5f;
            path.quadTo(i * 0.25f, 0.0f, i * 0.333f, f);
            QxJ9d_1 qxJ9d_12 = QxJ9d_1.this;
            Path path2 = qxJ9d_12.f200KQgRr5e_0;
            int i2 = qxJ9d_12.f196KQgRr5e_0;
            path2.quadTo(i2 * 0.5f, floatValue * 1.4f, i2 * 0.666f, f);
            QxJ9d_1 qxJ9d_13 = QxJ9d_1.this;
            Path path3 = qxJ9d_13.f200KQgRr5e_0;
            int i3 = qxJ9d_13.f196KQgRr5e_0;
            path3.quadTo(i3 * 0.75f, 0.0f, i3, 0.0f);
            QxJ9d_1.this.postInvalidate();
        }
    }

    /* compiled from: WaveView.java */
    /* loaded from: classes.dex */
    public class PGPF6hQ_2 extends AnimatorListenerAdapter {
        public PGPF6hQ_2() {
        }

        @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
        public void onAnimationEnd(Animator animator) {
            QxJ9d_1.this.Mqv2r_3();
            QxJ9d_1.this.f211QxJ9d_1 = false;
        }
    }

    /* compiled from: WaveView.java */
    /* renamed from: IMuAHx_6.Mqv2r_3.KQgRr5e_0.KQgRr5e_0.IMuAHx_6.QxJ9d_1$QxJ9d_1  reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public class C0012QxJ9d_1 implements ValueAnimator.AnimatorUpdateListener {
        public C0012QxJ9d_1() {
        }

        @Override // android.animation.ValueAnimator.AnimatorUpdateListener
        public void onAnimationUpdate(ValueAnimator valueAnimator) {
            QxJ9d_1.this.f207QxJ9d_1 = ((Float) valueAnimator.getAnimatedValue()).floatValue();
            QxJ9d_1 qxJ9d_1 = QxJ9d_1.this;
            if (Build.VERSION.SDK_INT >= 16) {
                qxJ9d_1.postInvalidateOnAnimation();
            } else {
                qxJ9d_1.invalidate();
            }
        }
    }

    public QxJ9d_1(Context context) {
        super(context);
        this.f195KQgRr5e_0 = 100.0f;
        this.f211QxJ9d_1 = false;
        this.f206PGPF6hQ_2 = false;
        this.f197KQgRr5e_0 = new KQgRr5e_0();
        float f = getResources().getDisplayMetrics().density;
        Paint paint = new Paint();
        this.f199KQgRr5e_0 = paint;
        paint.setColor(-14575885);
        this.f199KQgRr5e_0.setAntiAlias(true);
        this.f199KQgRr5e_0.setStyle(Paint.Style.FILL);
        this.f199KQgRr5e_0.setShadowLayer((int) ((f * 2.0f) + 0.5f), 0.0f, 0.0f, -1728053248);
        this.f200KQgRr5e_0 = new Path();
        this.f210QxJ9d_1 = new Path();
        this.f205PGPF6hQ_2 = new Path();
        this.f202Mqv2r_3 = new Path();
        Mqv2r_3();
        this.f201KQgRr5e_0 = new RectF();
        setLayerType(1, null);
        getViewTreeObserver().addOnPreDrawListener(this);
    }

    public void IFxWkV_5() {
        ValueAnimator ofFloat = ValueAnimator.ofFloat(1.0f, 1.0f);
        this.f3066X6FRs_4 = ofFloat;
        ofFloat.setDuration(1L);
        this.f3066X6FRs_4.start();
        ValueAnimator ofFloat2 = ValueAnimator.ofFloat((this.f196KQgRr5e_0 / 1440.0f) * 500.0f, this.f208QxJ9d_1);
        this.f3065Mqv2r_3 = ofFloat2;
        ofFloat2.setDuration(500L);
        this.f3065Mqv2r_3.addUpdateListener(new C0012QxJ9d_1());
        this.f3065Mqv2r_3.setInterpolator(new AccelerateDecelerateInterpolator());
        this.f3065Mqv2r_3.start();
        ValueAnimator ofFloat3 = ValueAnimator.ofFloat(0.0f, this.f208QxJ9d_1 - this.f195KQgRr5e_0);
        this.f198KQgRr5e_0 = ofFloat3;
        ofFloat3.setDuration(500L);
        this.f198KQgRr5e_0.addUpdateListener(this.f197KQgRr5e_0);
        this.f198KQgRr5e_0.start();
        ValueAnimator ofFloat4 = ValueAnimator.ofFloat(0.0f, 1.0f);
        this.f209QxJ9d_1 = ofFloat4;
        ofFloat4.setDuration(500L);
        this.f209QxJ9d_1.addUpdateListener(this.f197KQgRr5e_0);
        this.f209QxJ9d_1.setInterpolator(new IMuAHx_6.Mqv2r_3.KQgRr5e_0.KQgRr5e_0.IMuAHx_6.KQgRr5e_0());
        this.f209QxJ9d_1.setStartDelay(500L);
        this.f209QxJ9d_1.start();
        ValueAnimator ofFloat5 = ValueAnimator.ofFloat(0.0f, 1.0f);
        this.f204PGPF6hQ_2 = ofFloat5;
        ofFloat5.setDuration(500L);
        this.f204PGPF6hQ_2.addUpdateListener(this.f197KQgRr5e_0);
        this.f204PGPF6hQ_2.setInterpolator(new IMuAHx_6.Mqv2r_3.KQgRr5e_0.KQgRr5e_0.IMuAHx_6.KQgRr5e_0());
        this.f204PGPF6hQ_2.setStartDelay(625L);
        this.f204PGPF6hQ_2.start();
    }

    public void KQgRr5e_0(float f) {
        PGPF6hQ_2();
        this.f200KQgRr5e_0.moveTo(0.0f, 0.0f);
        Path path = this.f200KQgRr5e_0;
        int i = this.f196KQgRr5e_0;
        float[][] fArr = KQgRr5e_0;
        path.cubicTo(i * fArr[0][0], fArr[0][1], i * fArr[1][0], i * (fArr[1][1] + f), i * fArr[2][0], i * (fArr[2][1] + f));
        Path path2 = this.f200KQgRr5e_0;
        int i2 = this.f196KQgRr5e_0;
        float[][] fArr2 = KQgRr5e_0;
        path2.cubicTo(i2 * fArr2[3][0], i2 * (fArr2[3][1] + f), i2 * fArr2[4][0], i2 * (fArr2[4][1] + f), i2 * fArr2[5][0], i2 * (fArr2[5][1] + f));
        Path path3 = this.f200KQgRr5e_0;
        int i3 = this.f196KQgRr5e_0;
        float[][] fArr3 = KQgRr5e_0;
        path3.cubicTo(i3 - (i3 * fArr3[4][0]), i3 * (fArr3[4][1] + f), i3 - (i3 * fArr3[3][0]), i3 * (fArr3[3][1] + f), i3 - (i3 * fArr3[2][0]), i3 * (fArr3[2][1] + f));
        Path path4 = this.f200KQgRr5e_0;
        int i4 = this.f196KQgRr5e_0;
        float[][] fArr4 = KQgRr5e_0;
        path4.cubicTo(i4 - (i4 * fArr4[1][0]), i4 * (fArr4[1][1] + f), i4 - (i4 * fArr4[0][0]), fArr4[0][1], i4, 0.0f);
        if (Build.VERSION.SDK_INT >= 16) {
            postInvalidateOnAnimation();
        } else {
            invalidate();
        }
    }

    public void Mqv2r_3() {
        this.f198KQgRr5e_0 = ValueAnimator.ofFloat(0.0f, 0.0f);
        this.f209QxJ9d_1 = ValueAnimator.ofFloat(0.0f, 0.0f);
        this.f204PGPF6hQ_2 = ValueAnimator.ofFloat(0.0f, 0.0f);
        ValueAnimator ofFloat = ValueAnimator.ofFloat(-1000.0f, -1000.0f);
        this.f3065Mqv2r_3 = ofFloat;
        ofFloat.start();
        ValueAnimator ofFloat2 = ValueAnimator.ofFloat(1.0f, 1.0f);
        this.f3066X6FRs_4 = ofFloat2;
        ofFloat2.setDuration(1L);
        this.f3066X6FRs_4.start();
    }

    public void PGPF6hQ_2() {
        ValueAnimator valueAnimator = this.f3064IFxWkV_5;
        if (valueAnimator == null || !valueAnimator.isRunning()) {
            return;
        }
        this.f3064IFxWkV_5.cancel();
    }

    public void QxJ9d_1() {
        if (this.f211QxJ9d_1) {
            return;
        }
        this.f211QxJ9d_1 = true;
        int i = this.f208QxJ9d_1;
        ValueAnimator ofFloat = ValueAnimator.ofFloat(i, i);
        this.f3065Mqv2r_3 = ofFloat;
        ofFloat.start();
        int i2 = this.f208QxJ9d_1;
        float f = this.f195KQgRr5e_0;
        ValueAnimator ofFloat2 = ValueAnimator.ofFloat(i2 - f, i2 - f);
        this.f198KQgRr5e_0 = ofFloat2;
        ofFloat2.start();
        this.f207QxJ9d_1 = this.f208QxJ9d_1;
        postInvalidate();
    }

    public void X6FRs_4() {
        ValueAnimator ofFloat = ValueAnimator.ofFloat(1.0f, 0.0f);
        this.f3066X6FRs_4 = ofFloat;
        ofFloat.addUpdateListener(this.f197KQgRr5e_0);
        this.f3066X6FRs_4.setDuration(200L);
        this.f3066X6FRs_4.addListener(new PGPF6hQ_2());
        this.f3066X6FRs_4.start();
    }

    public float getCurrentCircleCenterY() {
        return this.f207QxJ9d_1;
    }

    @Override // android.view.View
    public void onDetachedFromWindow() {
        ValueAnimator valueAnimator = this.f3066X6FRs_4;
        if (valueAnimator != null) {
            valueAnimator.end();
            this.f3066X6FRs_4.removeAllUpdateListeners();
        }
        ValueAnimator valueAnimator2 = this.f3065Mqv2r_3;
        if (valueAnimator2 != null) {
            valueAnimator2.end();
            this.f3065Mqv2r_3.removeAllUpdateListeners();
        }
        ValueAnimator valueAnimator3 = this.f198KQgRr5e_0;
        if (valueAnimator3 != null) {
            valueAnimator3.end();
            this.f198KQgRr5e_0.removeAllUpdateListeners();
        }
        ValueAnimator valueAnimator4 = this.f3064IFxWkV_5;
        if (valueAnimator4 != null) {
            valueAnimator4.end();
            this.f3064IFxWkV_5.removeAllUpdateListeners();
        }
        ValueAnimator valueAnimator5 = this.f204PGPF6hQ_2;
        if (valueAnimator5 != null) {
            valueAnimator5.end();
            this.f204PGPF6hQ_2.removeAllUpdateListeners();
        }
        ValueAnimator valueAnimator6 = this.f209QxJ9d_1;
        if (valueAnimator6 != null) {
            valueAnimator6.end();
            this.f209QxJ9d_1.removeAllUpdateListeners();
        }
        super.onDetachedFromWindow();
    }

    @Override // android.view.View
    public void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        canvas.drawPath(this.f200KQgRr5e_0, this.f199KQgRr5e_0);
        if (!isInEditMode()) {
            this.f200KQgRr5e_0.rewind();
            this.f210QxJ9d_1.rewind();
            this.f205PGPF6hQ_2.rewind();
        }
        float floatValue = ((Float) this.f3065Mqv2r_3.getAnimatedValue()).floatValue();
        float f = this.f196KQgRr5e_0 / 2.0f;
        float floatValue2 = ((Float) this.f3066X6FRs_4.getAnimatedValue()).floatValue();
        float floatValue3 = ((Float) this.f209QxJ9d_1.getAnimatedValue()).floatValue();
        float floatValue4 = ((Float) this.f204PGPF6hQ_2.getAnimatedValue()).floatValue();
        RectF rectF = this.f201KQgRr5e_0;
        float f2 = this.f195KQgRr5e_0;
        float f3 = floatValue3 + 1.0f;
        float f4 = 1.0f + floatValue4;
        rectF.set((f - ((f2 * f3) * floatValue2)) + ((f2 * floatValue4) / 2.0f), (((f2 * f4) * floatValue2) + floatValue) - ((f2 * floatValue3) / 2.0f), (((f3 * f2) * floatValue2) + f) - ((floatValue4 * f2) / 2.0f), (floatValue - ((f4 * f2) * floatValue2)) + ((f2 * floatValue3) / 2.0f));
        float floatValue5 = ((Float) this.f198KQgRr5e_0.getAnimatedValue()).floatValue();
        this.f210QxJ9d_1.moveTo(f, floatValue5);
        double pow = Math.pow(this.f195KQgRr5e_0, 2.0d);
        double d = floatValue * floatValue5;
        Double.isNaN(d);
        double d2 = pow + d;
        double d3 = floatValue;
        double pow2 = d2 - Math.pow(d3, 2.0d);
        double d4 = floatValue5 - floatValue;
        Double.isNaN(d4);
        double d5 = pow2 / d4;
        double d6 = this.f196KQgRr5e_0;
        Double.isNaN(d6);
        double d7 = (d6 * (-2.0d)) / 2.0d;
        Double.isNaN(d3);
        double d8 = -d7;
        double pow3 = (d7 * d7) - (((Math.pow(d5 - d3, 2.0d) + Math.pow(f, 2.0d)) - Math.pow(this.f195KQgRr5e_0, 2.0d)) * 4.0d);
        float f5 = (float) d5;
        this.f210QxJ9d_1.lineTo((float) ((Math.sqrt(pow3) + d8) / 2.0d), f5);
        this.f210QxJ9d_1.lineTo((float) ((d8 - Math.sqrt(pow3)) / 2.0d), f5);
        this.f210QxJ9d_1.close();
        this.f202Mqv2r_3.set(this.f210QxJ9d_1);
        this.f202Mqv2r_3.addOval(this.f201KQgRr5e_0, Path.Direction.CCW);
        this.f205PGPF6hQ_2.addOval(this.f201KQgRr5e_0, Path.Direction.CCW);
        canvas.drawPath(this.f210QxJ9d_1, this.f199KQgRr5e_0);
        canvas.drawPath(this.f205PGPF6hQ_2, this.f199KQgRr5e_0);
    }

    @Override // android.view.ViewTreeObserver.OnPreDrawListener
    public boolean onPreDraw() {
        getViewTreeObserver().removeOnPreDrawListener(this);
        if (this.f206PGPF6hQ_2) {
            KQgRr5e_0(this.f203PGPF6hQ_2);
            return false;
        }
        return false;
    }

    @Override // android.view.View
    public void onSizeChanged(int i, int i2, int i3, int i4) {
        this.f196KQgRr5e_0 = i;
        this.f195KQgRr5e_0 = i / 14.4f;
        KQgRr5e_0((int) Math.min(Math.min(i, i2), getHeight() - this.f195KQgRr5e_0));
        super.onSizeChanged(i, i2, i3, i4);
    }

    public void setWaveColor(int i) {
        this.f199KQgRr5e_0.setColor(i);
        invalidate();
    }

    public void QxJ9d_1(float f) {
        ValueAnimator ofFloat = ValueAnimator.ofFloat(Math.min(f, 0.2f) * this.f196KQgRr5e_0, 0.0f);
        this.f3064IFxWkV_5 = ofFloat;
        ofFloat.setDuration(1000L);
        this.f3064IFxWkV_5.addUpdateListener(new Mqv2r_3());
        this.f3064IFxWkV_5.setInterpolator(new BounceInterpolator());
        this.f3064IFxWkV_5.start();
    }

    public void KQgRr5e_0(float f, float f2) {
        PGPF6hQ_2();
        this.f200KQgRr5e_0.moveTo(0.0f, 0.0f);
        Path path = this.f200KQgRr5e_0;
        int i = this.f196KQgRr5e_0;
        float[][] fArr = QxJ9d_1;
        path.cubicTo(i * fArr[0][0], i * fArr[0][1], i * Math.min(KQgRr5e_0[1][0] + f2, fArr[1][0]), this.f196KQgRr5e_0 * Math.max((KQgRr5e_0[1][1] + f) - f2, QxJ9d_1[1][1]), this.f196KQgRr5e_0 * Math.max(KQgRr5e_0[2][0] - f2, QxJ9d_1[2][0]), this.f196KQgRr5e_0 * Math.max((KQgRr5e_0[2][1] + f) - f2, QxJ9d_1[2][1]));
        Path path2 = this.f200KQgRr5e_0;
        float max = this.f196KQgRr5e_0 * Math.max(KQgRr5e_0[3][0] - f2, QxJ9d_1[3][0]);
        float min = this.f196KQgRr5e_0 * Math.min(KQgRr5e_0[3][1] + f + f2, QxJ9d_1[3][1]);
        float max2 = this.f196KQgRr5e_0 * Math.max(KQgRr5e_0[4][0] - f2, QxJ9d_1[4][0]);
        float min2 = this.f196KQgRr5e_0 * Math.min(KQgRr5e_0[4][1] + f + f2, QxJ9d_1[4][1]);
        int i2 = this.f196KQgRr5e_0;
        float[][] fArr2 = QxJ9d_1;
        path2.cubicTo(max, min, max2, min2, i2 * fArr2[5][0], i2 * Math.min(KQgRr5e_0[0][1] + f + f2, fArr2[5][1]));
        Path path3 = this.f200KQgRr5e_0;
        int i3 = this.f196KQgRr5e_0;
        float max3 = i3 - (i3 * Math.max(KQgRr5e_0[4][0] - f2, QxJ9d_1[4][0]));
        float min3 = this.f196KQgRr5e_0 * Math.min(KQgRr5e_0[4][1] + f + f2, QxJ9d_1[4][1]);
        int i4 = this.f196KQgRr5e_0;
        float max4 = i4 - (i4 * Math.max(KQgRr5e_0[3][0] - f2, QxJ9d_1[3][0]));
        float min4 = this.f196KQgRr5e_0 * Math.min(KQgRr5e_0[3][1] + f + f2, QxJ9d_1[3][1]);
        int i5 = this.f196KQgRr5e_0;
        path3.cubicTo(max3, min3, max4, min4, i5 - (i5 * Math.max(KQgRr5e_0[2][0] - f2, QxJ9d_1[2][0])), this.f196KQgRr5e_0 * Math.max((KQgRr5e_0[2][1] + f) - f2, QxJ9d_1[2][1]));
        Path path4 = this.f200KQgRr5e_0;
        int i6 = this.f196KQgRr5e_0;
        float min5 = i6 - (i6 * Math.min(KQgRr5e_0[1][0] + f2, QxJ9d_1[1][0]));
        float max5 = this.f196KQgRr5e_0 * Math.max((KQgRr5e_0[1][1] + f) - f2, QxJ9d_1[1][1]);
        int i7 = this.f196KQgRr5e_0;
        float[][] fArr3 = QxJ9d_1;
        path4.cubicTo(min5, max5, i7 - (i7 * fArr3[0][0]), i7 * fArr3[0][1], i7, 0.0f);
        this.f207QxJ9d_1 = (this.f196KQgRr5e_0 * Math.min(KQgRr5e_0[3][1] + f + f2, QxJ9d_1[3][1])) + this.f195KQgRr5e_0;
        if (Build.VERSION.SDK_INT >= 16) {
            postInvalidateOnAnimation();
        } else {
            invalidate();
        }
    }

    public void KQgRr5e_0(float f, float f2, float f3) {
        PGPF6hQ_2();
        this.f200KQgRr5e_0.moveTo(0.0f, 0.0f);
        Path path = this.f200KQgRr5e_0;
        int i = this.f196KQgRr5e_0;
        float[][] fArr = PGPF6hQ_2;
        path.cubicTo(i * fArr[0][0], i * fArr[0][1], i * Math.min(Math.min(KQgRr5e_0[1][0] + f2, QxJ9d_1[1][0]) + f3, PGPF6hQ_2[1][0]), this.f196KQgRr5e_0 * Math.max(Math.max((KQgRr5e_0[1][1] + f) - f2, QxJ9d_1[1][1]) - f3, PGPF6hQ_2[1][1]), this.f196KQgRr5e_0 * Math.max(KQgRr5e_0[2][0] - f2, PGPF6hQ_2[2][0]), this.f196KQgRr5e_0 * Math.min(Math.max((KQgRr5e_0[2][1] + f) - f2, QxJ9d_1[2][1]) + f3, PGPF6hQ_2[2][1]));
        Path path2 = this.f200KQgRr5e_0;
        float min = this.f196KQgRr5e_0 * Math.min(Math.max(KQgRr5e_0[3][0] - f2, QxJ9d_1[3][0]) + f3, PGPF6hQ_2[3][0]);
        float min2 = this.f196KQgRr5e_0 * Math.min(Math.min(KQgRr5e_0[3][1] + f + f2, QxJ9d_1[3][1]) + f3, PGPF6hQ_2[3][1]);
        float max = this.f196KQgRr5e_0 * Math.max(KQgRr5e_0[4][0] - f2, PGPF6hQ_2[4][0]);
        float min3 = this.f196KQgRr5e_0 * Math.min(Math.min(KQgRr5e_0[4][1] + f + f2, QxJ9d_1[4][1]) + f3, PGPF6hQ_2[4][1]);
        int i2 = this.f196KQgRr5e_0;
        path2.cubicTo(min, min2, max, min3, i2 * PGPF6hQ_2[5][0], i2 * Math.min(Math.min(KQgRr5e_0[0][1] + f + f2, QxJ9d_1[5][1]) + f3, PGPF6hQ_2[5][1]));
        Path path3 = this.f200KQgRr5e_0;
        int i3 = this.f196KQgRr5e_0;
        float max2 = i3 - (i3 * Math.max(KQgRr5e_0[4][0] - f2, PGPF6hQ_2[4][0]));
        float min4 = this.f196KQgRr5e_0 * Math.min(Math.min(KQgRr5e_0[4][1] + f + f2, QxJ9d_1[4][1]) + f3, PGPF6hQ_2[4][1]);
        int i4 = this.f196KQgRr5e_0;
        float min5 = i4 - (i4 * Math.min(Math.max(KQgRr5e_0[3][0] - f2, QxJ9d_1[3][0]) + f3, PGPF6hQ_2[3][0]));
        float min6 = this.f196KQgRr5e_0 * Math.min(Math.min(KQgRr5e_0[3][1] + f + f2, QxJ9d_1[3][1]) + f3, PGPF6hQ_2[3][1]);
        int i5 = this.f196KQgRr5e_0;
        path3.cubicTo(max2, min4, min5, min6, i5 - (i5 * Math.max(KQgRr5e_0[2][0] - f2, PGPF6hQ_2[2][0])), this.f196KQgRr5e_0 * Math.min(Math.max((KQgRr5e_0[2][1] + f) - f2, QxJ9d_1[2][1]) + f3, PGPF6hQ_2[2][1]));
        Path path4 = this.f200KQgRr5e_0;
        int i6 = this.f196KQgRr5e_0;
        float min7 = i6 - (i6 * Math.min(Math.min(KQgRr5e_0[1][0] + f2, QxJ9d_1[1][0]) + f3, PGPF6hQ_2[1][0]));
        float max3 = this.f196KQgRr5e_0 * Math.max(Math.max((KQgRr5e_0[1][1] + f) - f2, QxJ9d_1[1][1]) - f3, PGPF6hQ_2[1][1]);
        int i7 = this.f196KQgRr5e_0;
        float[][] fArr2 = PGPF6hQ_2;
        path4.cubicTo(min7, max3, i7 - (i7 * fArr2[0][0]), i7 * fArr2[0][1], i7, 0.0f);
        this.f207QxJ9d_1 = (this.f196KQgRr5e_0 * Math.min(Math.min(KQgRr5e_0[3][1] + f + f2, QxJ9d_1[3][1]) + f3, PGPF6hQ_2[3][1])) + this.f195KQgRr5e_0;
        if (Build.VERSION.SDK_INT >= 16) {
            postInvalidateOnAnimation();
        } else {
            invalidate();
        }
    }

    public void KQgRr5e_0(int i) {
        float f = i;
        if ((this.f196KQgRr5e_0 / 1440.0f) * 500.0f > f) {
            return;
        }
        this.f208QxJ9d_1 = (int) Math.min(f, getHeight() - this.f195KQgRr5e_0);
        if (this.f211QxJ9d_1) {
            this.f211QxJ9d_1 = false;
            QxJ9d_1();
        }
    }

    public void KQgRr5e_0() {
        if (this.f3066X6FRs_4.isRunning()) {
            return;
        }
        IFxWkV_5();
        QxJ9d_1(0.1f);
    }

    public void KQgRr5e_0(int i, int i2) {
        this.f199KQgRr5e_0.setShadowLayer(i, 0.0f, 0.0f, i2);
    }
}
