package defpackage;

import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.TypeConverter;
import android.graphics.PointF;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewGroup;
import java.util.HashMap;

/* renamed from: ᵱᵵᵛ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4433 extends AbstractC0140 {

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public static final String[] f16570 = {"android:changeBounds:bounds", "android:changeBounds:clip", "android:changeBounds:parent", "android:changeBounds:windowX", "android:changeBounds:windowY"};

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public static final C1806 f16571 = new C1806(PointF.class, "topLeft", 0);

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public static final C1806 f16574 = new C1806(PointF.class, "bottomRight", 1);

    /* renamed from: ˌᵹᵨˑ, reason: contains not printable characters */
    public static final C1806 f16572 = new C1806(PointF.class, "bottomRight", 2);

    /* renamed from: ᵠᵿː, reason: contains not printable characters */
    public static final C1806 f16573 = new C1806(PointF.class, "topLeft", 3);

    /* renamed from: ʾᵻᵭٴ, reason: contains not printable characters */
    public static final C1806 f16569 = new C1806(PointF.class, "position", 4);

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public static void m9466(C2886 c2886) {
        View view = c2886.f11187;
        HashMap map = c2886.f11186;
        if (!view.isLaidOut() && view.getWidth() == 0 && view.getHeight() == 0) {
            return;
        }
        map.put("android:changeBounds:bounds", new Rect(view.getLeft(), view.getTop(), view.getRight(), view.getBottom()));
        map.put("android:changeBounds:parent", view.getParent());
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˏˋٴ */
    public final void mo1258(C2886 c2886) {
        m9466(c2886);
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵝᵵᵺ */
    public final void mo1265(C2886 c2886) {
        m9466(c2886);
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵢˇᵭ */
    public final String[] mo1269() {
        return f16570;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // defpackage.AbstractC0140
    /* renamed from: ᵯٴᵦ */
    public final Animator mo1275(ViewGroup viewGroup, C2886 c2886, C2886 c28862) {
        int i;
        C4433 c4433;
        ObjectAnimator objectAnimatorOfObject;
        if (c2886 == null) {
            return null;
        }
        HashMap map = c2886.f11186;
        if (c28862 == null) {
            return null;
        }
        HashMap map2 = c28862.f11186;
        ViewGroup viewGroup2 = (ViewGroup) map.get("android:changeBounds:parent");
        ViewGroup viewGroup3 = (ViewGroup) map2.get("android:changeBounds:parent");
        if (viewGroup2 == null || viewGroup3 == null) {
            return null;
        }
        View view = c28862.f11187;
        Rect rect = (Rect) map.get("android:changeBounds:bounds");
        Rect rect2 = (Rect) map2.get("android:changeBounds:bounds");
        int i2 = rect.left;
        int i3 = rect2.left;
        int i4 = rect.top;
        int i5 = rect2.top;
        int i6 = rect.right;
        int i7 = rect2.right;
        int i8 = rect.bottom;
        int i9 = rect2.bottom;
        int i10 = i6 - i2;
        int i11 = i8 - i4;
        int i12 = i7 - i3;
        int i13 = i9 - i5;
        Rect rect3 = (Rect) map.get("android:changeBounds:clip");
        Rect rect4 = (Rect) map2.get("android:changeBounds:clip");
        int i14 = 0;
        if ((i10 == 0 || i11 == 0) && (i12 == 0 || i13 == 0)) {
            i = 0;
        } else {
            i = (i2 == i3 && i4 == i5) ? 0 : 1;
            if (i6 != i7 || i8 != i9) {
                i++;
            }
        }
        if ((rect3 != null && !rect3.equals(rect4)) || (rect3 == null && rect4 != null)) {
            i++;
        }
        int i15 = i;
        if (i15 <= 0) {
            return null;
        }
        AbstractC2596.m6512(view, i2, i4, i6, i8);
        if (i15 != 2) {
            c4433 = this;
            if (i2 == i3 && i4 == i5) {
                c4433.f1505.getClass();
                objectAnimatorOfObject = ObjectAnimator.ofObject(view, f16572, (TypeConverter) null, ˎᵖᵗ.ᵸˑ(i6, i8, i7, i9));
            } else {
                c4433.f1505.getClass();
                objectAnimatorOfObject = ObjectAnimator.ofObject(view, f16573, (TypeConverter) null, ˎᵖᵗ.ᵸˑ(i2, i4, i3, i5));
            }
        } else if (i10 == i12 && i11 == i13) {
            c4433 = this;
            c4433.f1505.getClass();
            objectAnimatorOfObject = ObjectAnimator.ofObject(view, f16569, (TypeConverter) null, ˎᵖᵗ.ᵸˑ(i2, i4, i3, i5));
        } else {
            c4433 = this;
            C1045 c1045 = new C1045(view);
            c4433.f1505.getClass();
            ObjectAnimator objectAnimatorOfObject2 = ObjectAnimator.ofObject(c1045, f16571, (TypeConverter) null, ˎᵖᵗ.ᵸˑ(i2, i4, i3, i5));
            c4433.f1505.getClass();
            ObjectAnimator objectAnimatorOfObject3 = ObjectAnimator.ofObject(c1045, f16574, (TypeConverter) null, ˎᵖᵗ.ᵸˑ(i6, i8, i7, i9));
            AnimatorSet animatorSet = new AnimatorSet();
            animatorSet.playTogether(objectAnimatorOfObject2, objectAnimatorOfObject3);
            animatorSet.addListener(new C1269(c1045));
            objectAnimatorOfObject = animatorSet;
        }
        if (view.getParent() instanceof ViewGroup) {
            ViewGroup viewGroup4 = (ViewGroup) view.getParent();
            ˁـᵛ.ˎˑː(viewGroup4, true);
            c4433.m1261().m1277(new C1887(viewGroup4, i14));
        }
        return objectAnimatorOfObject;
    }
}
