package ඓ.ᕣ.K.K.㴹;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.RectF;
import ඓ.ᕣ.K.K.AbstractC0747;

/* renamed from: ඓ.ᕣ.K.K.㴹.ῲ  reason: contains not printable characters */
/* compiled from: PacManBuilder */
public class C0753 extends AbstractC0747 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public int f3844;

    /* renamed from: ؿ  reason: contains not printable characters */
    public float f3845;

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

    /* renamed from: ᕣ  reason: contains not printable characters */
    public int f3847;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public Paint f3848;

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

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

    /* renamed from: 㳳  reason: contains not printable characters */
    public RectF f3851;

    /* renamed from: 㿎  reason: contains not printable characters */
    public long f3852 = 333;

    /* renamed from: 䁗  reason: contains not printable characters */
    public int f3853 = 0;

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    public void onAnimationRepeat(Animator animator) {
        int i = this.f3853 + 1;
        this.f3853 = i;
        if (i > 9) {
            this.f3853 = 0;
        }
        float f = this.f3850 / ((float) 5);
        int i2 = this.f3853;
        if (i2 < 5) {
            this.f3845 = f * ((float) i2);
        } else {
            this.f3845 = f * ((float) (5 - (i2 % 5)));
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m2243(Context context) {
        float f = this.f3803 * 0.7f;
        this.f3850 = (2.0f * f) + this.f3802;
        this.f3848 = new Paint(1);
        this.f3848.setStyle(Paint.Style.FILL);
        this.f3848.setColor(-1);
        this.f3848.setDither(true);
        this.f3848.setFilterBitmap(true);
        this.f3848.setStrokeCap(Paint.Cap.ROUND);
        this.f3848.setStrokeJoin(Paint.Join.ROUND);
        this.f3847 = 45;
        this.f3844 = 0;
        this.f3846 = (-this.f3850) * 0.5f;
        this.f3849 = 0.0f;
        this.f3851 = new RectF(m2199() - f, m2198() - f, m2199() + f, m2198() + f);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2247(Canvas canvas) {
        canvas.save();
        canvas.translate(this.f3846 + this.f3849, 0.0f);
        canvas.rotate((float) this.f3844, m2199(), m2198());
        RectF rectF = this.f3851;
        int i = this.f3847;
        canvas.drawArc(rectF, (float) i, (float) (360 - (i * 2)), true, this.f3848);
        canvas.restore();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m2249() {
    }

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

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2245(ValueAnimator valueAnimator) {
        this.f3852 = AbstractC0747.m2197(((double) m2201()) * 0.3d);
        valueAnimator.setDuration(this.f3852);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2246(ValueAnimator valueAnimator, float f) {
        float f2 = this.f3850 / ((float) 5);
        if (this.f3853 < 5) {
            this.f3844 = 0;
            this.f3849 = (f2 * f) + this.f3845;
        } else {
            this.f3844 = 180;
            this.f3849 = this.f3845 - (f2 * f);
        }
        if (this.f3853 % 2 == 0) {
            this.f3847 = ((int) (f * 45.0f)) + 5;
        } else {
            this.f3847 = ((int) ((1.0f - f) * 45.0f)) + 5;
        }
    }

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