package defpackage;

import android.animation.AnimatorSet;
import android.content.res.Resources;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import j$.util.Objects;

/* renamed from: ʾᵹᵥʾ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0336 extends AbstractC0243 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final C0391 f2032;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public AnimatorSet f2033;

    public C0336(C0391 c0391) {
        this.f2032 = c0391;
    }

    @Override // defpackage.AbstractC0243
    /* renamed from: ˇʼʤˎ */
    public final void mo1547(ViewGroup viewGroup) throws Resources.NotFoundException {
        C0336 c0336;
        C0391 c0391 = this.f2032;
        if (c0391.ᵳٴᵶ()) {
            return;
        }
        ᵪᵨ r1 = c0391.m1851(viewGroup.getContext());
        this.f2033 = r1 != null ? (AnimatorSet) r1.ᵿʗᵝʽ : null;
        C0423 c0423 = (C0423) ((ᵢˇᵭ) c0391).ᵧᵾˀˈ;
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = c0423.f2345;
        boolean z = c0423.f2347 == 3;
        View view = abstractComponentCallbacksC3693.f13752;
        viewGroup.startViewTransition(view);
        AnimatorSet animatorSet = this.f2033;
        if (animatorSet != null) {
            c0336 = this;
            animatorSet.addListener(new C3001(viewGroup, view, z, c0423, c0336));
        } else {
            c0336 = this;
        }
        AnimatorSet animatorSet2 = c0336.f2033;
        if (animatorSet2 != null) {
            animatorSet2.setTarget(view);
        }
    }

    @Override // defpackage.AbstractC0243
    /* renamed from: ˏᵙ */
    public final void mo1548(ViewGroup viewGroup) {
        C0423 c0423 = (C0423) ((ᵢˇᵭ) this.f2032).ᵧᵾˀˈ;
        AnimatorSet animatorSet = this.f2033;
        if (animatorSet == null) {
            c0423.m1968(this);
            return;
        }
        animatorSet.start();
        if (AbstractC4731.m9918(2)) {
            Objects.toString(c0423);
        }
    }

    @Override // defpackage.AbstractC0243
    /* renamed from: ᵴᵳ */
    public final void mo1550(ViewGroup viewGroup) {
        AnimatorSet animatorSet = this.f2033;
        C0423 c0423 = (C0423) ((ᵢˇᵭ) this.f2032).ᵧᵾˀˈ;
        if (animatorSet == null) {
            c0423.m1968(this);
            return;
        }
        if (!c0423.f2343) {
            animatorSet.end();
        } else if (Build.VERSION.SDK_INT >= 26) {
            C1677.f6686.m4806(animatorSet);
        }
        if (AbstractC4731.m9918(2)) {
            c0423.toString();
        }
    }

    @Override // defpackage.AbstractC0243
    /* renamed from: ᵻᵢﹳᵰ */
    public final void mo1551(C1820 c1820) {
        C0423 c0423 = (C0423) ((ᵢˇᵭ) this.f2032).ᵧᵾˀˈ;
        AnimatorSet animatorSet = this.f2033;
        if (animatorSet == null) {
            c0423.m1968(this);
            return;
        }
        if (Build.VERSION.SDK_INT < 34 || !c0423.f2345.f13785) {
            return;
        }
        if (AbstractC4731.m9918(2)) {
            c0423.toString();
        }
        long jM1586 = C0258.f1821.m1586(animatorSet);
        long j = (long) (c1820.f7393 * jM1586);
        if (j == 0) {
            j = 1;
        }
        if (j == jM1586) {
            j = jM1586 - 1;
        }
        if (AbstractC4731.m9918(2)) {
            animatorSet.toString();
            c0423.toString();
        }
        C1677.f6686.m4807(animatorSet, j);
    }
}
