package com.google.android.material.floatingactionbutton;

import android.R;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.StateListAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Matrix;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.InsetDrawable;
import android.graphics.drawable.LayerDrawable;
import android.graphics.drawable.RippleDrawable;
import android.os.Build;
import android.util.Property;
import android.view.View;
import android.view.ViewTreeObserver;
import androidx.annotation.Nullable;
import com.google.android.gms.internal.atv_ads_framework.d1;
import com.google.android.material.bottomappbar.BottomAppBar;
import com.google.android.material.shape.g0;
import java.util.ArrayList;
import java.util.Iterator;
import xyz.stream.utils.j0;

/* JADX INFO: loaded from: classes2.dex */
public final class t {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public boolean f22623a;

    @Nullable
    c borderDrawable;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public float f22625c;

    @Nullable
    Drawable contentBackground;

    @Nullable
    private Animator currentAnimator;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public float f22626d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public float f22627e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f22628f;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f22630h;

    @Nullable
    private y8.g hideMotionSpec;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public ArrayList f22632j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public ArrayList f22633k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public ArrayList f22634l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final FloatingActionButton f22635m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final t9.b f22636n;

    @Nullable
    private ViewTreeObserver.OnPreDrawListener preDrawListener;

    @Nullable
    Drawable rippleDrawable;

    @Nullable
    com.google.android.material.shape.s shapeAppearance;

    @Nullable
    com.google.android.material.shape.k shapeDrawable;

    @Nullable
    private y8.g showMotionSpec;

    @Nullable
    private StateListAnimator stateListAnimator;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public static final l1.a f22615s = y8.a.f36866c;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public static final int f22616t = x8.c.motionDurationLong2;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public static final int f22617u = x8.c.motionEasingEmphasizedInterpolator;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public static final int f22618v = x8.c.motionDurationMedium1;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public static final int f22619w = x8.c.motionEasingEmphasizedAccelerateInterpolator;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public static final int[] f22620x = {R.attr.state_pressed, R.attr.state_enabled};

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public static final int[] f22621y = {R.attr.state_hovered, R.attr.state_focused, R.attr.state_enabled};

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public static final int[] f22622z = {R.attr.state_focused, R.attr.state_enabled};
    public static final int[] A = {R.attr.state_hovered, R.attr.state_enabled};
    public static final int[] B = {R.attr.state_enabled};
    public static final int[] C = new int[0];

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f22624b = true;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public float f22629g = 1.0f;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public int f22631i = 0;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final Rect f22637o = new Rect();

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public final RectF f22638p = new RectF();

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final RectF f22639q = new RectF();

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final Matrix f22640r = new Matrix();

    public t(FloatingActionButton floatingActionButton, k kVar) {
        this.f22635m = floatingActionButton;
        this.f22636n = kVar;
    }

    public final void b(float f10, Matrix matrix) {
        matrix.reset();
        if (this.f22635m.getDrawable() == null || this.f22630h == 0) {
            return;
        }
        RectF rectF = this.f22638p;
        RectF rectF2 = this.f22639q;
        rectF.set(0.0f, 0.0f, r0.getIntrinsicWidth(), r0.getIntrinsicHeight());
        int i10 = this.f22630h;
        rectF2.set(0.0f, 0.0f, i10, i10);
        matrix.setRectToRect(rectF, rectF2, Matrix.ScaleToFit.CENTER);
        int i11 = this.f22630h;
        matrix.postScale(f10, f10, i11 / 2.0f, i11 / 2.0f);
    }

    public final AnimatorSet c(y8.g gVar, float f10, float f11, float f12) {
        ArrayList arrayList = new ArrayList();
        Property property = View.ALPHA;
        float[] fArr = {f10};
        FloatingActionButton floatingActionButton = this.f22635m;
        ObjectAnimator objectAnimatorOfFloat = ObjectAnimator.ofFloat(floatingActionButton, (Property<FloatingActionButton, Float>) property, fArr);
        gVar.d("opacity").a(objectAnimatorOfFloat);
        arrayList.add(objectAnimatorOfFloat);
        ObjectAnimator objectAnimatorOfFloat2 = ObjectAnimator.ofFloat(floatingActionButton, (Property<FloatingActionButton, Float>) View.SCALE_X, f11);
        gVar.d("scale").a(objectAnimatorOfFloat2);
        int i10 = Build.VERSION.SDK_INT;
        if (i10 == 26) {
            objectAnimatorOfFloat2.setEvaluator(new q());
        }
        arrayList.add(objectAnimatorOfFloat2);
        ObjectAnimator objectAnimatorOfFloat3 = ObjectAnimator.ofFloat(floatingActionButton, (Property<FloatingActionButton, Float>) View.SCALE_Y, f11);
        gVar.d("scale").a(objectAnimatorOfFloat3);
        if (i10 == 26) {
            objectAnimatorOfFloat3.setEvaluator(new q());
        }
        arrayList.add(objectAnimatorOfFloat3);
        Matrix matrix = this.f22640r;
        b(f12, matrix);
        ObjectAnimator objectAnimatorOfObject = ObjectAnimator.ofObject(floatingActionButton, new y8.f(), new p(this), new Matrix(matrix));
        gVar.d("iconScale").a(objectAnimatorOfObject);
        arrayList.add(objectAnimatorOfObject);
        AnimatorSet animatorSet = new AnimatorSet();
        y8.b.a(animatorSet, arrayList);
        return animatorSet;
    }

    public final AnimatorSet d(final float f10, final float f11, final float f12, int i10, int i11) {
        AnimatorSet animatorSet = new AnimatorSet();
        ArrayList arrayList = new ArrayList();
        ValueAnimator valueAnimatorOfFloat = ValueAnimator.ofFloat(0.0f, 1.0f);
        FloatingActionButton floatingActionButton = this.f22635m;
        final float alpha = floatingActionButton.getAlpha();
        final float scaleX = floatingActionButton.getScaleX();
        final float scaleY = floatingActionButton.getScaleY();
        final float f13 = this.f22629g;
        final Matrix matrix = new Matrix(this.f22640r);
        valueAnimatorOfFloat.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.google.android.material.floatingactionbutton.m
            @Override // android.animation.ValueAnimator.AnimatorUpdateListener
            public final void onAnimationUpdate(ValueAnimator valueAnimator) {
                t tVar = this.f22593a;
                tVar.getClass();
                float fFloatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
                float fB = y8.a.b(alpha, f10, 0.0f, 0.2f, fFloatValue);
                FloatingActionButton floatingActionButton2 = tVar.f22635m;
                floatingActionButton2.setAlpha(fB);
                float f14 = scaleX;
                float f15 = f11;
                floatingActionButton2.setScaleX(y8.a.a(f14, f15, fFloatValue));
                floatingActionButton2.setScaleY(y8.a.a(scaleY, f15, fFloatValue));
                float f16 = f13;
                float f17 = f12;
                tVar.f22629g = y8.a.a(f16, f17, fFloatValue);
                float fA = y8.a.a(f16, f17, fFloatValue);
                Matrix matrix2 = matrix;
                tVar.b(fA, matrix2);
                floatingActionButton2.setImageMatrix(matrix2);
            }
        });
        arrayList.add(valueAnimatorOfFloat);
        y8.b.a(animatorSet, arrayList);
        animatorSet.setDuration(com.bumptech.glide.f.o(floatingActionButton.getContext(), i10, floatingActionButton.getContext().getResources().getInteger(x8.h.material_motion_duration_long_1)));
        animatorSet.setInterpolator(com.bumptech.glide.f.p(floatingActionButton.getContext(), i11, y8.a.f36865b));
        return animatorSet;
    }

    public final AnimatorSet e(float f10, float f11) {
        AnimatorSet animatorSet = new AnimatorSet();
        FloatingActionButton floatingActionButton = this.f22635m;
        animatorSet.play(ObjectAnimator.ofFloat(floatingActionButton, "elevation", f10).setDuration(0L)).with(ObjectAnimator.ofFloat(floatingActionButton, (Property<FloatingActionButton, Float>) View.TRANSLATION_Z, f11).setDuration(100L));
        animatorSet.setInterpolator(f22615s);
        return animatorSet;
    }

    public final void f() {
        ViewTreeObserver viewTreeObserver = this.f22635m.getViewTreeObserver();
        ViewTreeObserver.OnPreDrawListener onPreDrawListener = this.preDrawListener;
        if (onPreDrawListener != null) {
            viewTreeObserver.removeOnPreDrawListener(onPreDrawListener);
            this.preDrawListener = null;
        }
    }

    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    public final void g(float f10, float f11, float f12) {
        int i10 = Build.VERSION.SDK_INT;
        FloatingActionButton floatingActionButton = this.f22635m;
        if (floatingActionButton.getStateListAnimator() == this.stateListAnimator) {
            StateListAnimator stateListAnimator = new StateListAnimator();
            stateListAnimator.addState(f22620x, e(f10, f12));
            stateListAnimator.addState(f22621y, e(f10, f11));
            stateListAnimator.addState(f22622z, e(f10, f11));
            stateListAnimator.addState(A, e(f10, f11));
            AnimatorSet animatorSet = new AnimatorSet();
            ArrayList arrayList = new ArrayList();
            arrayList.add(ObjectAnimator.ofFloat(floatingActionButton, "elevation", f10).setDuration(0L));
            if (i10 <= 24) {
                arrayList.add(ObjectAnimator.ofFloat(floatingActionButton, (Property<FloatingActionButton, Float>) View.TRANSLATION_Z, floatingActionButton.getTranslationZ()).setDuration(100L));
            }
            arrayList.add(ObjectAnimator.ofFloat(floatingActionButton, (Property<FloatingActionButton, Float>) View.TRANSLATION_Z, 0.0f).setDuration(100L));
            animatorSet.playSequentially((Animator[]) arrayList.toArray(new Animator[0]));
            animatorSet.setInterpolator(f22615s);
            stateListAnimator.addState(B, animatorSet);
            stateListAnimator.addState(C, e(0.0f, 0.0f));
            this.stateListAnimator = stateListAnimator;
            floatingActionButton.setStateListAnimator(stateListAnimator);
        }
        if (((k) this.f22636n).f22590a.f22553f || (this.f22623a && floatingActionButton.getSizeDimension() < this.f22628f)) {
            k();
        }
    }

    @Nullable
    public final Drawable getContentBackground() {
        return this.contentBackground;
    }

    @Nullable
    public final y8.g getHideMotionSpec() {
        return this.hideMotionSpec;
    }

    @Nullable
    public final com.google.android.material.shape.s getShapeAppearance() {
        return this.shapeAppearance;
    }

    @Nullable
    public final y8.g getShowMotionSpec() {
        return this.showMotionSpec;
    }

    public final void h() {
        ArrayList<l> arrayList = this.f22634l;
        if (arrayList != null) {
            for (l lVar : arrayList) {
                j0 j0Var = lVar.f22591a;
                j0Var.getClass();
                com.google.android.material.shape.k kVar = ((BottomAppBar) j0Var.f36154b).A0;
                FloatingActionButton floatingActionButton = lVar.f22592b;
                kVar.x((floatingActionButton.getVisibility() == 0 && ((BottomAppBar) j0Var.f36154b).D0 == 1) ? floatingActionButton.getScaleY() : 0.0f);
            }
        }
    }

    public void hide(@Nullable s sVar, boolean z10) {
        FloatingActionButton floatingActionButton = this.f22635m;
        if (floatingActionButton.getVisibility() == 0) {
            if (this.f22631i == 1) {
                return;
            }
        } else if (this.f22631i != 2) {
            return;
        }
        Animator animator = this.currentAnimator;
        if (animator != null) {
            animator.cancel();
        }
        if (!floatingActionButton.isLaidOut() || floatingActionButton.isInEditMode()) {
            floatingActionButton.a(z10 ? 8 : 4, z10);
            if (sVar != null) {
                d1 d1Var = (d1) sVar;
                ((j) d1Var.f19914b).a((FloatingActionButton) d1Var.f19915c);
                return;
            }
            return;
        }
        y8.g gVar = this.hideMotionSpec;
        AnimatorSet animatorSetC = gVar != null ? c(gVar, 0.0f, 0.0f, 0.0f) : d(0.0f, 0.4f, 0.4f, f22618v, f22619w);
        animatorSetC.addListener(new n(this, z10, sVar));
        ArrayList arrayList = this.f22633k;
        if (arrayList != null) {
            Iterator it = arrayList.iterator();
            while (it.hasNext()) {
                animatorSetC.addListener((Animator.AnimatorListener) it.next());
            }
        }
        animatorSetC.start();
    }

    public final void i() {
        ArrayList<l> arrayList = this.f22634l;
        if (arrayList != null) {
            for (l lVar : arrayList) {
                j0 j0Var = lVar.f22591a;
                j0Var.getClass();
                if (((BottomAppBar) j0Var.f36154b).D0 == 1) {
                    FloatingActionButton floatingActionButton = lVar.f22592b;
                    float translationX = floatingActionButton.getTranslationX();
                    if (((BottomAppBar) j0Var.f36154b).getTopEdgeTreatment().f4790f != translationX) {
                        ((BottomAppBar) j0Var.f36154b).getTopEdgeTreatment().f4790f = translationX;
                        ((BottomAppBar) j0Var.f36154b).A0.invalidateSelf();
                    }
                    float fMax = Math.max(0.0f, -floatingActionButton.getTranslationY());
                    if (((BottomAppBar) j0Var.f36154b).getTopEdgeTreatment().f4789e != fMax) {
                        ((BottomAppBar) j0Var.f36154b).getTopEdgeTreatment().j(fMax);
                        ((BottomAppBar) j0Var.f36154b).A0.invalidateSelf();
                    }
                    ((BottomAppBar) j0Var.f36154b).A0.x(floatingActionButton.getVisibility() == 0 ? floatingActionButton.getScaleY() : 0.0f);
                }
            }
        }
    }

    public void initializeBackgroundDrawable(ColorStateList colorStateList, @Nullable PorterDuff.Mode mode, ColorStateList colorStateList2, int i10) {
        Drawable layerDrawable;
        r rVar = new r((com.google.android.material.shape.s) p0.g.checkNotNull(this.shapeAppearance));
        this.shapeDrawable = rVar;
        rVar.setTintList(colorStateList);
        if (mode != null) {
            this.shapeDrawable.setTintMode(mode);
        }
        com.google.android.material.shape.k kVar = this.shapeDrawable;
        FloatingActionButton floatingActionButton = this.f22635m;
        kVar.s(floatingActionButton.getContext());
        if (i10 > 0) {
            Context context = floatingActionButton.getContext();
            c cVar = new c((com.google.android.material.shape.s) p0.g.checkNotNull(this.shapeAppearance));
            int i11 = x8.d.design_fab_stroke_top_outer_color;
            Object obj = g0.d.f26125a;
            int color = context.getColor(i11);
            int color2 = context.getColor(x8.d.design_fab_stroke_top_inner_color);
            int color3 = context.getColor(x8.d.design_fab_stroke_end_inner_color);
            int color4 = context.getColor(x8.d.design_fab_stroke_end_outer_color);
            cVar.f22573i = color;
            cVar.f22574j = color2;
            cVar.f22575k = color3;
            cVar.f22576l = color4;
            float f10 = i10;
            if (cVar.f22572h != f10) {
                cVar.f22572h = f10;
                cVar.f22566b.setStrokeWidth(f10 * 1.3333f);
                cVar.f22578n = true;
                cVar.invalidateSelf();
            }
            cVar.setBorderTint(colorStateList);
            this.borderDrawable = cVar;
            layerDrawable = new LayerDrawable(new Drawable[]{(Drawable) p0.g.checkNotNull(this.borderDrawable), (Drawable) p0.g.checkNotNull(this.shapeDrawable)});
        } else {
            this.borderDrawable = null;
            layerDrawable = this.shapeDrawable;
        }
        RippleDrawable rippleDrawable = new RippleDrawable(r9.a.sanitizeRippleDrawableColor(colorStateList2), layerDrawable, null);
        this.rippleDrawable = rippleDrawable;
        this.contentBackground = rippleDrawable;
    }

    public final void j(com.google.android.material.shape.s sVar) {
        this.shapeAppearance = sVar;
        com.google.android.material.shape.k kVar = this.shapeDrawable;
        if (kVar != null) {
            kVar.setShapeAppearanceModel(sVar);
        }
        Object obj = this.rippleDrawable;
        if (obj instanceof g0) {
            ((g0) obj).setShapeAppearanceModel(sVar);
        }
        c cVar = this.borderDrawable;
        if (cVar != null) {
            cVar.f22579o = sVar;
            cVar.invalidateSelf();
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:17:0x0060  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void k() {
        t9.b bVar = this.f22636n;
        k kVar = (k) bVar;
        boolean z10 = kVar.f22590a.f22553f;
        FloatingActionButton floatingActionButton = this.f22635m;
        Rect rect = this.f22637o;
        if (z10) {
            int iMax = this.f22623a ? Math.max((this.f22628f - floatingActionButton.getSizeDimension()) / 2, 0) : 0;
            int iMax2 = Math.max(iMax, (int) Math.ceil(this.f22624b ? floatingActionButton.getElevation() + this.f22627e : 0.0f));
            int iMax3 = Math.max(iMax, (int) Math.ceil(r2 * 1.5f));
            rect.set(iMax2, iMax3, iMax2, iMax3);
        } else if (this.f22623a) {
            int sizeDimension = floatingActionButton.getSizeDimension();
            int i10 = this.f22628f;
            if (sizeDimension < i10) {
                int sizeDimension2 = (i10 - floatingActionButton.getSizeDimension()) / 2;
                rect.set(sizeDimension2, sizeDimension2, sizeDimension2, sizeDimension2);
            } else {
                rect.set(0, 0, 0, 0);
            }
        }
        p0.g.checkNotNull(this.contentBackground, "Didn't initialize content background");
        if (((k) bVar).f22590a.f22553f || (this.f22623a && floatingActionButton.getSizeDimension() < this.f22628f)) {
            kVar.setBackgroundDrawable(new InsetDrawable(this.contentBackground, rect.left, rect.top, rect.right, rect.bottom));
        } else {
            kVar.setBackgroundDrawable(this.contentBackground);
        }
        int i11 = rect.left;
        int i12 = rect.top;
        int i13 = rect.right;
        int i14 = rect.bottom;
        FloatingActionButton floatingActionButton2 = kVar.f22590a;
        floatingActionButton2.f22554g.set(i11, i12, i13, i14);
        int i15 = floatingActionButton2.f22551d;
        floatingActionButton2.setPadding(i11 + i15, i12 + i15, i13 + i15, i14 + i15);
    }

    public void setBackgroundTintList(@Nullable ColorStateList colorStateList) {
        com.google.android.material.shape.k kVar = this.shapeDrawable;
        if (kVar != null) {
            kVar.setTintList(colorStateList);
        }
        c cVar = this.borderDrawable;
        if (cVar != null) {
            cVar.setBorderTint(colorStateList);
        }
    }

    public void setBackgroundTintMode(@Nullable PorterDuff.Mode mode) {
        com.google.android.material.shape.k kVar = this.shapeDrawable;
        if (kVar != null) {
            kVar.setTintMode(mode);
        }
    }

    public final void setHideMotionSpec(@Nullable y8.g gVar) {
        this.hideMotionSpec = gVar;
    }

    public void setRippleColor(@Nullable ColorStateList colorStateList) {
        Drawable drawable = this.rippleDrawable;
        if (drawable instanceof RippleDrawable) {
            ((RippleDrawable) drawable).setColor(r9.a.sanitizeRippleDrawableColor(colorStateList));
        } else if (drawable != null) {
            drawable.setTintList(r9.a.sanitizeRippleDrawableColor(colorStateList));
        }
    }

    public final void setShowMotionSpec(@Nullable y8.g gVar) {
        this.showMotionSpec = gVar;
    }

    public void show(@Nullable s sVar, boolean z10) {
        FloatingActionButton floatingActionButton = this.f22635m;
        if (floatingActionButton.getVisibility() != 0) {
            if (this.f22631i == 2) {
                return;
            }
        } else if (this.f22631i != 1) {
            return;
        }
        Animator animator = this.currentAnimator;
        if (animator != null) {
            animator.cancel();
        }
        int i10 = 0;
        boolean z11 = this.showMotionSpec == null;
        boolean z12 = floatingActionButton.isLaidOut() && !floatingActionButton.isInEditMode();
        Matrix matrix = this.f22640r;
        if (!z12) {
            floatingActionButton.a(0, z10);
            floatingActionButton.setAlpha(1.0f);
            floatingActionButton.setScaleY(1.0f);
            floatingActionButton.setScaleX(1.0f);
            this.f22629g = 1.0f;
            b(1.0f, matrix);
            floatingActionButton.setImageMatrix(matrix);
            if (sVar != null) {
                ((j) ((d1) sVar).f19914b).b();
                return;
            }
            return;
        }
        if (floatingActionButton.getVisibility() != 0) {
            floatingActionButton.setAlpha(0.0f);
            floatingActionButton.setScaleY(z11 ? 0.4f : 0.0f);
            floatingActionButton.setScaleX(z11 ? 0.4f : 0.0f);
            float f10 = z11 ? 0.4f : 0.0f;
            this.f22629g = f10;
            b(f10, matrix);
            floatingActionButton.setImageMatrix(matrix);
        }
        y8.g gVar = this.showMotionSpec;
        AnimatorSet animatorSetC = gVar != null ? c(gVar, 1.0f, 1.0f, 1.0f) : d(1.0f, 1.0f, 1.0f, f22616t, f22617u);
        animatorSetC.addListener(new o(this, z10, sVar, i10));
        ArrayList arrayList = this.f22632j;
        if (arrayList != null) {
            Iterator it = arrayList.iterator();
            while (it.hasNext()) {
                animatorSetC.addListener((Animator.AnimatorListener) it.next());
            }
        }
        animatorSetC.start();
    }
}
