package ඓ.ᕣ.K.K.㸾;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.LinearInterpolator;
import com.google.android.material.progressindicator.BaseProgressIndicator;
import java.util.Iterator;
import ඓ.ᕣ.K.K.AbstractC0747;
import ඓ.ᕣ.K.K.㸾.AbstractC0758;

/* renamed from: ඓ.ᕣ.K.K.㸾.ʬ  reason: contains not printable characters */
/* compiled from: InfectionBallBuilder */
public class C0756 extends AbstractC0758 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public long f3863 = 1333;

    /* renamed from: ؿ  reason: contains not printable characters */
    public Path f3864;

    /* renamed from: ᓣ  reason: contains not printable characters */
    public int f3865 = 0;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public long f3866 = 222;

    /* renamed from: 㑃  reason: contains not printable characters */
    public long f3867 = 333;

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

    /* renamed from: 㗽  reason: contains not printable characters */
    public float f3869;

    /* renamed from: 㳳  reason: contains not printable characters */
    public long f3870 = 888;

    /* renamed from: 䁗  reason: contains not printable characters */
    public long f3871 = 1333;

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    public void onAnimationRepeat(Animator animator) {
        int i = this.f3865 + 1;
        this.f3865 = i;
        if (i > 4) {
            this.f3865 = 0;
            Iterator<AbstractC0758.C0759> it2 = this.f3881.iterator();
            while (it2.hasNext()) {
                AbstractC0758.C0759 next = it2.next();
                next.f3886 = 0.0f;
                next.f3882 = 0.0f;
            }
            this.f3880.setAlpha(BaseProgressIndicator.MAX_ALPHA);
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m2264(Context context) {
        this.f3868 = this.f3803 / 3.0f;
        this.f3869 = this.f3802 / 3.0f;
        this.f3864 = new Path();
        m2275(5.0f);
        m2274(this.f3868);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2267(Canvas canvas) {
        canvas.save();
        this.f3880.setStyle(Paint.Style.FILL_AND_STROKE);
        canvas.translate(0.0f, -this.f3869);
        super.m2277(canvas, this.f3864, this.f3880);
        canvas.restore();
    }

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

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2265(ValueAnimator valueAnimator) {
        this.f3870 = AbstractC0747.m2197(((double) m2201()) * 0.7d);
        this.f3866 = AbstractC0747.m2197(((double) m2201()) * 0.2d);
        this.f3867 = AbstractC0747.m2197(((double) m2201()) * 0.3d);
        this.f3871 = m2201();
        this.f3863 = m2201();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2266(ValueAnimator valueAnimator, float f) {
        float f2 = this.f3869;
        int i = this.f3865;
        if (i != 0) {
            if (i == 1) {
                valueAnimator.setDuration(this.f3866);
                valueAnimator.setInterpolator(new LinearInterpolator());
                float f3 = f * f2;
                this.f3881.get(5).f3886 = f3;
                this.f3881.get(6).f3886 = f3;
                this.f3881.get(7).f3886 = f3;
                this.f3881.get(1).f3886 = f3;
                this.f3881.get(0).f3886 = f3;
                this.f3881.get(11).f3886 = f3;
            } else if (i == 2) {
                valueAnimator.setDuration(this.f3867);
                valueAnimator.setInterpolator(new AccelerateInterpolator());
                for (int i2 = 0; i2 < this.f3881.size(); i2++) {
                    if (i2 > 10 || i2 < 8) {
                        this.f3881.get(i2).f3886 = (f * f2) + f2;
                    } else {
                        this.f3881.get(i2).f3886 = f * f2;
                    }
                }
            } else if (i == 3) {
                valueAnimator.setDuration(this.f3871);
                valueAnimator.setInterpolator(new DecelerateInterpolator());
                float f4 = f * f2;
                float f5 = f4 + f2;
                this.f3881.get(8).f3886 = f5;
                this.f3881.get(9).f3886 = f5;
                this.f3881.get(10).f3886 = f5;
                this.f3881.get(5).f3882 = f4;
                this.f3881.get(6).f3882 = f4;
                this.f3881.get(7).f3882 = f4;
                float f6 = (-f) * f2;
                this.f3881.get(1).f3882 = f6;
                this.f3881.get(0).f3882 = f6;
                this.f3881.get(11).f3882 = f6;
            } else if (i == 4) {
                valueAnimator.setDuration(this.f3863);
                this.f3880.setAlpha((int) ((1.0f - f) * 255.0f));
            }
        } else {
            valueAnimator.setDuration(this.f3870);
            valueAnimator.setInterpolator(new AccelerateInterpolator());
            float f7 = f * f2;
            this.f3881.get(2).f3886 = f7;
            this.f3881.get(3).f3886 = f7;
            this.f3881.get(4).f3886 = f7;
        }
    }
}
