package ඓ.ᕣ.K.K.㿎;

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

/* renamed from: ඓ.ᕣ.K.K.㿎.ʬ  reason: contains not printable characters */
/* compiled from: StairsPathBuilder */
public class C0761 extends AbstractC0740 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public PathMeasure f3890;

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

    /* renamed from: 㑃  reason: contains not printable characters */
    public Path f3892;

    /* renamed from: 㗗  reason: contains not printable characters */
    public Path f3893;

    /* renamed from: 㳳  reason: contains not printable characters */
    public Paint f3894;

    /* renamed from: 䁗  reason: contains not printable characters */
    public Path f3895;

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

    @Override // ඓ.ᕣ.K.K.ඓ.AbstractC0740
    /* renamed from: K  reason: contains not printable characters */
    public void m2289(Context context, Paint paint) {
        this.f3894 = paint;
        this.f3891 = this.f3803;
        this.f3893 = new Path();
        this.f3890 = new PathMeasure();
        this.f3892 = new Path();
        float f = (this.f3891 * 2.0f) / 6.0f;
        float r0 = m2199() - this.f3891;
        float r1 = m2198() + this.f3891;
        this.f3892.moveTo(r0, r1);
        int i = 0;
        while (i < 6) {
            i++;
            float f2 = ((float) i) * f;
            float f3 = r1 - f2;
            this.f3892.lineTo((((float) i) * f) + r0, f3);
            this.f3892.lineTo(f2 + r0, f3);
        }
        this.f3895 = new Path(this.f3892);
        this.f3895.lineTo((f * 6.0f) + r0, r1);
        this.f3895.lineTo(r0, r1);
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public final void m2291() {
        this.f3893.reset();
        this.f3893.lineTo(0.0f, 0.0f);
    }

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

    @Override // ඓ.ᕣ.K.K.ඓ.AbstractC0740
    /* renamed from: K  reason: contains not printable characters */
    public void m2288(ValueAnimator valueAnimator, float f, int i) {
        if (i == 0 || i == 1) {
            m2291();
            this.f3890.setPath(this.f3892, false);
            float length = this.f3890.getLength() * f;
            this.f3890.getSegment((float) (((double) length) - ((0.5d - Math.abs(((double) f) - 0.5d)) * 200.0d)), length, this.f3893, true);
        } else if (i == 2) {
            m2291();
            this.f3890.setPath(this.f3895, false);
            this.f3890.getSegment(0.0f, this.f3890.getLength() * f, this.f3893, true);
        } else if (i == 3) {
            m2291();
            this.f3890.setPath(this.f3895, false);
            this.f3890.getSegment(0.0f, (1.0f - f) * this.f3890.getLength(), this.f3893, true);
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2290(Canvas canvas) {
        canvas.drawPath(this.f3893, this.f3894);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2287(ValueAnimator valueAnimator) {
        valueAnimator.setInterpolator(new DecelerateInterpolator());
    }
}
