package ඓ.ᕣ.K.K.㳳;

import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import ඓ.ᕣ.K.K.AbstractC0747;
import ඓ.K.K.K.C1293;

/* renamed from: ඓ.ᕣ.K.K.㳳.ῲ  reason: contains not printable characters */
/* compiled from: StarBuilder */
public class C0748 extends AbstractC0747 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public Path f3806;

    /* renamed from: ؿ  reason: contains not printable characters */
    public RectF f3807;

    /* renamed from: ݜ  reason: contains not printable characters */
    public final ValueAnimator.AnimatorUpdateListener f3808 = new C0749();

    /* renamed from: ᓣ  reason: contains not printable characters */
    public float f3809;

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

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

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

    /* renamed from: 㗗  reason: contains not printable characters */
    public float f3813;

    /* renamed from: 㗽  reason: contains not printable characters */
    public ValueAnimator f3814;

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

    /* renamed from: 㿎  reason: contains not printable characters */
    public Paint f3816;

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

    /* renamed from: ඓ.ᕣ.K.K.㳳.ῲ$K  reason: contains not printable characters */
    /* compiled from: StarBuilder */
    public class C0749 implements ValueAnimator.AnimatorUpdateListener {
        public C0749() {
        }

        public void onAnimationUpdate(ValueAnimator valueAnimator) {
            float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
            C0748 r0 = C0748.this;
            r0.f3813 = r0.m2198() * 0.4f * floatValue;
            C0748 r4 = C0748.this;
            r4.f3809 = (r4.f3813 + 10.0f) * 0.9f;
        }
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public final float m2211(int i) {
        return (float) Math.sin((((double) i) * 3.141592653589793d) / 180.0d);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m2213(Context context) {
        this.f3816 = new Paint(1);
        this.f3816.setStyle(Paint.Style.FILL_AND_STROKE);
        this.f3816.setStrokeWidth(2.0f);
        this.f3816.setColor(-16777216);
        this.f3816.setDither(true);
        this.f3816.setFilterBitmap(true);
        this.f3811 = this.f3803 - (context.getResources().getDisplayMetrics().density * 5.0f);
        this.f3810 = this.f3811 * 0.9f;
        this.f3815 = this.f3810 * 0.6f;
        this.f3812 = this.f3815 * 0.9f;
        this.f3817 = 0;
        this.f3813 = 0.0f;
        Path path = new Path();
        path.moveTo(C1293.m3404(this, -23, this.f3810, m2199()), (m2211(-23) * this.f3810) + m2198());
        for (int i = 0; i < 5; i++) {
            int i2 = (72 * i) - 18;
            int i3 = i2 - 5;
            path.lineTo(C1293.m3404(this, i3, this.f3810, m2199()), (m2211(i3) * this.f3810) + m2198());
            int i4 = i2 + 5;
            path.quadTo(C1293.m3404(this, i2, this.f3811, m2199()), (m2211(i2) * this.f3811) + m2198(), C1293.m3404(this, i4, this.f3810, m2199()), (m2211(i4) * this.f3810) + m2198());
            int i5 = i2 + 36;
            int i6 = i5 - 5;
            path.lineTo(C1293.m3404(this, i6, this.f3815, m2199()), (m2211(i6) * this.f3815) + m2198());
            float r4 = C1293.m3404(this, i5, this.f3812, m2199());
            float r7 = (m2211(i5) * this.f3812) + m2198();
            int i7 = i5 + 5;
            path.quadTo(r4, r7, C1293.m3404(this, i7, this.f3815, m2199()), (m2211(i7) * this.f3815) + m2198());
        }
        path.close();
        this.f3806 = path;
        this.f3809 = this.f3811;
        this.f3807 = new RectF();
        this.f3814 = ValueAnimator.ofFloat(0.0f, 1.0f, 0.0f);
        this.f3814.setRepeatCount(-1);
        this.f3814.setDuration(m2201());
        this.f3814.setStartDelay(333);
        this.f3814.setInterpolator(new AccelerateDecelerateInterpolator());
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m2219() {
        this.f3814.removeAllUpdateListeners();
        this.f3814.removeAllListeners();
        this.f3814.setRepeatCount(0);
        this.f3814.setDuration(0L);
        this.f3814.end();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2217(Canvas canvas) {
        canvas.save();
        canvas.translate(0.0f, this.f3813);
        canvas.rotate((float) this.f3817, m2199(), m2198());
        canvas.drawPath(this.f3806, this.f3816);
        canvas.restore();
        this.f3807.set(m2199() - this.f3809, this.f3800 - 20.0f, m2199() + this.f3809, this.f3800 - 10.0f);
        canvas.drawOval(this.f3807, this.f3816);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2214(int i) {
        this.f3816.setAlpha(i);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2215(ValueAnimator valueAnimator) {
        valueAnimator.setInterpolator(new DecelerateInterpolator());
        this.f3814.setRepeatCount(-1);
        this.f3814.setDuration(m2201());
        this.f3814.setStartDelay(333);
        this.f3814.addUpdateListener(this.f3808);
        this.f3814.start();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2216(ValueAnimator valueAnimator, float f) {
        this.f3817 = (int) (f * 360.0f);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2218(ColorFilter colorFilter) {
        this.f3816.setColorFilter(colorFilter);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final float m2212(int i) {
        return (float) Math.cos((((double) i) * 3.141592653589793d) / 180.0d);
    }
}
