package ඓ.ᕣ.K.K.ᨨ;

import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.view.animation.DecelerateInterpolator;
import ඓ.ᕣ.K.K.AbstractC0747;
import ඓ.ᕣ.K.K.ඓ.AbstractC0740;

/* renamed from: ඓ.ᕣ.K.K.ᨨ.ῲ  reason: contains not printable characters */
/* compiled from: StairsRectBuilder */
public class C0742 extends AbstractC0740 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public float f3764;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public volatile int f3765 = 0;

    /* renamed from: 㑃  reason: contains not printable characters */
    public volatile float f3766 = 0.0f;

    /* renamed from: 㗗  reason: contains not printable characters */
    public RectF f3767;

    /* renamed from: 㳳  reason: contains not printable characters */
    public volatile long f3768 = 500;

    /* renamed from: 䁗  reason: contains not printable characters */
    public Paint f3769;

    @Override // ඓ.ᕣ.K.K.ඓ.AbstractC0740
    /* renamed from: ඓ  reason: contains not printable characters */
    public int m2171() {
        return 5;
    }

    @Override // ඓ.ᕣ.K.K.ඓ.AbstractC0740
    /* renamed from: K  reason: contains not printable characters */
    public void m2174(Context context, Paint paint) {
        this.f3769 = paint;
        this.f3769.setStyle(Paint.Style.FILL_AND_STROKE);
        this.f3764 = this.f3803;
        this.f3767 = new RectF();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m2176() {
        this.f3765 = 0;
        this.f3766 = 0.0f;
    }

    @Override // ඓ.ᕣ.K.K.ඓ.AbstractC0740
    /* renamed from: K  reason: contains not printable characters */
    public void m2173(ValueAnimator valueAnimator, float f, int i) {
        this.f3765 = i;
        this.f3766 = f;
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2175(Canvas canvas) {
        float f = (this.f3764 * 2.0f) / 5.0f;
        float f2 = 0.5f * f;
        float r2 = m2199() - this.f3764;
        float r3 = m2198() + this.f3764;
        this.f3767.setEmpty();
        int i = 0;
        while (i < 5 && i <= this.f3765) {
            if (i == this.f3765) {
                float f3 = ((float) (i + 1)) * f;
                this.f3767.set(r2, (r3 - f3) + f2, (f3 + r2) * this.f3766, r3 - (((float) i) * f));
            } else {
                float f4 = ((float) (i + 1)) * f;
                this.f3767.set(r2, (r3 - f4) + f2, f4 + r2, r3 - (((float) i) * f));
            }
            canvas.drawRect(this.f3767, this.f3769);
            i++;
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2172(ValueAnimator valueAnimator) {
        this.f3768 = AbstractC0747.m2197(((double) m2201()) * 0.5d);
        valueAnimator.setDuration(this.f3768);
        valueAnimator.setInterpolator(new DecelerateInterpolator());
    }
}
