package ῲ.ඓ.K;

import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Rect;
import androidx.cardview.widget.CardView;

/* renamed from: ῲ.ඓ.K.K  reason: contains not printable characters */
/* compiled from: CardViewApi21Impl */
public class C1613 implements AbstractC1610 {
    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: ʬ  reason: contains not printable characters */
    public void m4169(AbstractC1612 r5, float f) {
        C1614 r0 = m4180(r5);
        CardView.C0125 k = (CardView.C0125) r5;
        boolean useCompatPadding = CardView.this.getUseCompatPadding();
        boolean r2 = k.m383();
        if (!(f == r0.f5794 && r0.f5801 == useCompatPadding && r0.f5798 == r2)) {
            r0.f5794 = f;
            r0.f5801 = useCompatPadding;
            r0.f5798 = r2;
            r0.m4186((Rect) null);
            r0.invalidateSelf();
        }
        m4171(k);
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: ඓ  reason: contains not printable characters */
    public void m4170(AbstractC1612 r2) {
        m4169(r2, m4180(r2).f5794);
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: ᨨ  reason: contains not printable characters */
    public void m4171(AbstractC1612 r5) {
        CardView.C0125 k = (CardView.C0125) r5;
        if (!CardView.this.getUseCompatPadding()) {
            k.m382(0, 0, 0, 0);
            return;
        }
        float f = m4180(k).f5794;
        float f2 = m4180(k).f5799;
        int ceil = (int) Math.ceil((double) C1611.m4167(f, f2, k.m383()));
        int ceil2 = (int) Math.ceil((double) C1611.m4166(f, f2, k.m383()));
        k.m382(ceil, ceil2, ceil, ceil2);
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m4173(AbstractC1612 r2, float f) {
        C1614 r22 = m4180(r2);
        if (f != r22.f5799) {
            r22.f5799 = f;
            r22.m4186((Rect) null);
            r22.invalidateSelf();
        }
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: ⁱ  reason: contains not printable characters */
    public void m4174(AbstractC1612 r2) {
        m4169(r2, m4180(r2).f5794);
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: K  reason: contains not printable characters */
    public void m4176() {
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: K  reason: contains not printable characters */
    public void m4178(AbstractC1612 r1, Context context, ColorStateList colorStateList, float f, float f2, float f3) {
        C1614 r2 = new C1614(colorStateList, f);
        CardView.C0125 k = (CardView.C0125) r1;
        k.f667 = r2;
        CardView.this.setBackgroundDrawable(r2);
        CardView cardView = CardView.this;
        cardView.setClipToOutline(true);
        cardView.setElevation(f2);
        m4169(k, f3);
    }

    /* renamed from: 㳳  reason: contains not printable characters */
    public final C1614 m4180(AbstractC1612 r1) {
        return (C1614) ((CardView.C0125) r1).f667;
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: 㴹  reason: contains not printable characters */
    public ColorStateList m4181(AbstractC1612 r1) {
        return m4180(r1).f5803;
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: 㸾  reason: contains not printable characters */
    public float m4182(AbstractC1612 r2) {
        return m4180(r2).f5799 * 2.0f;
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: 㿎  reason: contains not printable characters */
    public float m4183(AbstractC1612 r1) {
        return CardView.this.getElevation();
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: ῲ  reason: contains not printable characters */
    public float m4172(AbstractC1612 r1) {
        return m4180(r1).f5799;
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: K  reason: contains not printable characters */
    public float m4175(AbstractC1612 r1) {
        return m4180(r1).f5794;
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: K  reason: contains not printable characters */
    public void m4177(AbstractC1612 r1, float f) {
        CardView.this.setElevation(f);
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: ʬ  reason: contains not printable characters */
    public float m4168(AbstractC1612 r2) {
        return m4180(r2).f5799 * 2.0f;
    }

    @Override // ῲ.ඓ.K.AbstractC1610
    /* renamed from: K  reason: contains not printable characters */
    public void m4179(AbstractC1612 r1, ColorStateList colorStateList) {
        C1614 r12 = m4180(r1);
        r12.m4185(colorStateList);
        r12.invalidateSelf();
    }
}
