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;

/* JADX INFO: renamed from: ʽᵟᵱ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0147 extends AbstractC3629 {

    /* JADX INFO: renamed from: ᵡᵶᵬʤ, reason: contains not printable characters */
    public static final String[] f1524 = {"android:changeBounds:bounds", "android:changeBounds:clip", "android:changeBounds:parent", "android:changeBounds:windowX", "android:changeBounds:windowY"};

    /* JADX INFO: renamed from: ˋʿᐧ, reason: contains not printable characters */
    public static final C0645 f1521 = new C0645(PointF.class, "topLeft", 0);

    /* JADX INFO: renamed from: ˉˆᵗ, reason: contains not printable characters */
    public static final C0645 f1520 = new C0645(PointF.class, "bottomRight", 1);

    /* JADX INFO: renamed from: ˁᵺˈ, reason: contains not printable characters */
    public static final C0645 f1519 = new C0645(PointF.class, "bottomRight", 2);

    /* JADX INFO: renamed from: ˋᵯᵩ, reason: contains not printable characters */
    public static final C0645 f1522 = new C0645(PointF.class, "topLeft", 3);

    /* JADX INFO: renamed from: ᵜᵤ, reason: contains not printable characters */
    public static final C0645 f1523 = new C0645(PointF.class, "position", 4);

    /* JADX INFO: renamed from: ˊˌˊ, reason: contains not printable characters */
    public static void m1266(C2214 c2214) {
        View view = c2214.f8777;
        HashMap map = c2214.f8779;
        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.AbstractC3629
    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final String[] mo1267() {
        return f1524;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public final Animator mo1268(ViewGroup viewGroup, C2214 c2214, C2214 c22142) {
        int i;
        C0147 c0147;
        Animator animatorOfObject;
        if (c2214 == null) {
            return null;
        }
        HashMap map = c2214.f8779;
        if (c22142 == null) {
            return null;
        }
        HashMap map2 = c22142.f8779;
        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 = c22142.f8777;
        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;
        }
        AbstractC3371.m7725(view, i2, i4, i6, i8);
        if (i15 != 2) {
            c0147 = this;
            if (i2 == i3 && i4 == i5) {
                c0147.f13777.getClass();
                animatorOfObject = ObjectAnimator.ofObject(view, f1519, (TypeConverter) null, ˑᵤʽˏ.ᵮᵣᵗˈ(i6, i8, i7, i9));
            } else {
                c0147.f13777.getClass();
                animatorOfObject = ObjectAnimator.ofObject(view, f1522, (TypeConverter) null, ˑᵤʽˏ.ᵮᵣᵗˈ(i2, i4, i3, i5));
            }
        } else if (i10 == i12 && i11 == i13) {
            c0147 = this;
            c0147.f13777.getClass();
            animatorOfObject = ObjectAnimator.ofObject(view, f1523, (TypeConverter) null, ˑᵤʽˏ.ᵮᵣᵗˈ(i2, i4, i3, i5));
        } else {
            c0147 = this;
            C1187 c1187 = new C1187(view);
            c0147.f13777.getClass();
            ObjectAnimator objectAnimatorOfObject = ObjectAnimator.ofObject(c1187, f1521, (TypeConverter) null, ˑᵤʽˏ.ᵮᵣᵗˈ(i2, i4, i3, i5));
            c0147.f13777.getClass();
            ObjectAnimator objectAnimatorOfObject2 = ObjectAnimator.ofObject(c1187, f1520, (TypeConverter) null, ˑᵤʽˏ.ᵮᵣᵗˈ(i6, i8, i7, i9));
            AnimatorSet animatorSet = new AnimatorSet();
            animatorSet.playTogether(objectAnimatorOfObject, objectAnimatorOfObject2);
            animatorSet.addListener(new C3594(c1187));
            animatorOfObject = animatorSet;
        }
        if (view.getParent() instanceof ViewGroup) {
            ViewGroup viewGroup4 = (ViewGroup) view.getParent();
            ᵹˊᵫˋ.ᵔᵖᵹᵫ(viewGroup4, true);
            c0147.m8194().m8191(new C0991(viewGroup4, i14));
        }
        return animatorOfObject;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final void mo1269(C2214 c2214) {
        m1266(c2214);
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final void mo1270(C2214 c2214) {
        m1266(c2214);
    }
}
