package defpackage;

import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.TimeInterpolator;
import android.util.SparseArray;
import android.util.SparseIntArray;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowId;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.WeakHashMap;

/* renamed from: ʽᵝ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC0140 implements Cloneable {

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public static final Animator[] f1490 = new Animator[0];

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public static final int[] f1491 = {2, 1, 3, 4};

    /* renamed from: ᵫᵮʾ, reason: contains not printable characters */
    public static final ˎᵖᵗ f1492 = new ˎᵖᵗ(11);

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public static final ThreadLocal f1493 = new ThreadLocal();

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public ˉᵜˆ f1497;

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public long f1499;

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public InterfaceC4048[] f1503;

    /* renamed from: ᵡᵶᵡ, reason: contains not printable characters */
    public long f1508;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public ArrayList f1512;

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public C2844 f1515;

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public ArrayList f1517;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final String f1513 = getClass().getName();

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public long f1510 = -1;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public long f1519 = -1;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public TimeInterpolator f1518 = null;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final ArrayList f1511 = new ArrayList();

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final ArrayList f1509 = new ArrayList();

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public ArrayList f1494 = null;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public C0030 f1506 = new C0030(0);

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public C0030 f1502 = new C0030(0);

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public C2058 f1500 = null;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public final int[] f1514 = f1491;

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final ArrayList f1516 = new ArrayList();

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public Animator[] f1496 = f1490;

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public int f1520 = 0;

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public boolean f1504 = false;

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public boolean f1507 = false;

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public AbstractC0140 f1501 = null;

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public ArrayList f1498 = null;

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public ArrayList f1495 = new ArrayList();

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public ˎᵖᵗ f1505 = f1492;

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static void m1247(C0030 c0030, View view, C2886 c2886) {
        C1200 c1200 = (C1200) c0030.f1151;
        C1200 c12002 = (C1200) c0030.f1155;
        SparseArray sparseArray = (SparseArray) c0030.f1154;
        C1196 c1196 = (C1196) c0030.f1152;
        c1200.put(view, c2886);
        int id = view.getId();
        if (id >= 0) {
            if (sparseArray.indexOfKey(id) >= 0) {
                sparseArray.put(id, null);
            } else {
                sparseArray.put(id, view);
            }
        }
        WeakHashMap weakHashMap = AbstractC2873.f11133;
        String transitionName = view.getTransitionName();
        if (transitionName != null) {
            if (c12002.containsKey(transitionName)) {
                c12002.put(transitionName, null);
            } else {
                c12002.put(transitionName, view);
            }
        }
        if (view.getParent() instanceof ListView) {
            ListView listView = (ListView) view.getParent();
            if (listView.getAdapter().hasStableIds()) {
                long itemIdAtPosition = listView.getItemIdAtPosition(listView.getPositionForView(view));
                if (c1196.f5099) {
                    int i = c1196.f5100;
                    long[] jArr = c1196.f5098;
                    Object[] objArr = c1196.f5101;
                    int i2 = 0;
                    for (int i3 = 0; i3 < i; i3++) {
                        Object obj = objArr[i3];
                        if (obj != ˆᴵ.ᵧᵾˀˈ) {
                            if (i3 != i2) {
                                jArr[i2] = jArr[i3];
                                objArr[i2] = obj;
                                objArr[i3] = null;
                            }
                            i2++;
                        }
                    }
                    c1196.f5099 = false;
                    c1196.f5100 = i2;
                }
                if (ᵛᵾˏ.ˇʼʤˎ(c1196.f5098, c1196.f5100, itemIdAtPosition) < 0) {
                    view.setHasTransientState(true);
                    c1196.m3728(itemIdAtPosition, view);
                    return;
                }
                View view2 = (View) c1196.m3727(itemIdAtPosition);
                if (view2 != null) {
                    view2.setHasTransientState(false);
                    c1196.m3728(itemIdAtPosition, null);
                }
            }
        }
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public static boolean m1248(C2886 c2886, C2886 c28862, String str) {
        Object obj = c2886.f11186.get(str);
        Object obj2 = c28862.f11186.get(str);
        if (obj == null && obj2 == null) {
            return false;
        }
        if (obj == null || obj2 == null) {
            return true;
        }
        return !obj.equals(obj2);
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public static C1200 m1249() {
        ThreadLocal threadLocal = f1493;
        C1200 c1200 = (C1200) threadLocal.get();
        if (c1200 != null) {
            return c1200;
        }
        C1200 c12002 = new C1200(0);
        threadLocal.set(c12002);
        return c12002;
    }

    public void cancel() {
        ArrayList arrayList = this.f1516;
        int size = arrayList.size();
        Animator[] animatorArr = (Animator[]) arrayList.toArray(this.f1496);
        this.f1496 = f1490;
        for (int i = size - 1; i >= 0; i--) {
            Animator animator = animatorArr[i];
            animatorArr[i] = null;
            animator.cancel();
        }
        this.f1496 = animatorArr;
        m1260(this, ᵨᴵᵺ.ᵾᵬ, false);
    }

    public final String toString() {
        return mo1264("");
    }

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final boolean m1250(View view) {
        int id = view.getId();
        ArrayList arrayList = this.f1511;
        int size = arrayList.size();
        ArrayList arrayList2 = this.f1509;
        return (size == 0 && arrayList2.size() == 0) || arrayList.contains(Integer.valueOf(id)) || arrayList2.contains(view);
    }

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public void mo1251(long j) {
        this.f1510 = j;
    }

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public void mo1252(long j, long j2) {
        long j3 = this.f1499;
        int i = 0;
        boolean z = j < j2;
        if ((j2 < 0 && j >= 0) || (j2 > j3 && j <= j3)) {
            this.f1507 = false;
            m1260(this, ᵨᴵᵺ.ᵢˇᵭ, z);
        }
        ArrayList arrayList = this.f1516;
        int size = arrayList.size();
        Animator[] animatorArr = (Animator[]) arrayList.toArray(this.f1496);
        this.f1496 = f1490;
        while (i < size) {
            Animator animator = animatorArr[i];
            animatorArr[i] = null;
            ﹶʾ.ᵸˑ(animator, Math.min(Math.max(0L, j), ﹶʾ.ᵻᵢﹳᵰ(animator)));
            i++;
            j3 = j3;
        }
        long j4 = j3;
        this.f1496 = animatorArr;
        if ((j <= j4 || j2 > j4) && (j >= 0 || j2 < 0)) {
            return;
        }
        if (j > j4) {
            this.f1507 = true;
        }
        m1260(this, ᵨᴵᵺ.ᵿʗᵝʽ, z);
    }

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public final void m1253() {
        if (this.f1520 == 0) {
            m1260(this, ᵨᴵᵺ.ᵢˇᵭ, false);
            this.f1507 = false;
        }
        this.f1520++;
    }

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public void mo1254() {
    }

    @Override // 
    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public AbstractC0140 clone() {
        try {
            AbstractC0140 abstractC0140 = (AbstractC0140) super.clone();
            abstractC0140.f1495 = new ArrayList();
            abstractC0140.f1506 = new C0030(0);
            abstractC0140.f1502 = new C0030(0);
            abstractC0140.f1512 = null;
            abstractC0140.f1517 = null;
            abstractC0140.f1515 = null;
            abstractC0140.f1501 = this;
            abstractC0140.f1498 = null;
            return abstractC0140;
        } catch (CloneNotSupportedException e) {
            C1260.m3814(e);
            return null;
        }
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final void m1256(View view, boolean z) {
        if (view == null) {
            return;
        }
        view.getId();
        if (view.getParent() instanceof ViewGroup) {
            C2886 c2886 = new C2886(view);
            if (z) {
                mo1265(c2886);
            } else {
                mo1258(c2886);
            }
            c2886.f11185.add(this);
            mo1282(c2886);
            if (z) {
                m1247(this.f1506, view, c2886);
            } else {
                m1247(this.f1502, view, c2886);
            }
        }
        if (view instanceof ViewGroup) {
            ArrayList arrayList = this.f1494;
            if (arrayList == null || !arrayList.contains(view)) {
                ViewGroup viewGroup = (ViewGroup) view;
                for (int i = 0; i < viewGroup.getChildCount(); i++) {
                    m1256(viewGroup.getChildAt(i), z);
                }
            }
        }
    }

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public void mo1257(View view) {
        if (this.f1507) {
            return;
        }
        ArrayList arrayList = this.f1516;
        int size = arrayList.size();
        Animator[] animatorArr = (Animator[]) arrayList.toArray(this.f1496);
        this.f1496 = f1490;
        for (int i = size - 1; i >= 0; i--) {
            Animator animator = animatorArr[i];
            animatorArr[i] = null;
            animator.pause();
        }
        this.f1496 = animatorArr;
        m1260(this, ᵨᴵᵺ.ᵤᵙᵷ, false);
        this.f1504 = true;
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public abstract void mo1258(C2886 c2886);

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public void mo1259(ˎᵖᵗ r1) {
        if (r1 == null) {
            this.f1505 = f1492;
        } else {
            this.f1505 = r1;
        }
    }

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final void m1260(AbstractC0140 abstractC0140, ᵨᴵᵺ r7, boolean z) {
        AbstractC0140 abstractC01402 = this.f1501;
        if (abstractC01402 != null) {
            abstractC01402.m1260(abstractC0140, r7, z);
        }
        ArrayList arrayList = this.f1498;
        if (arrayList == null || arrayList.isEmpty()) {
            return;
        }
        int size = this.f1498.size();
        InterfaceC4048[] interfaceC4048Arr = this.f1503;
        if (interfaceC4048Arr == null) {
            interfaceC4048Arr = new InterfaceC4048[size];
        }
        this.f1503 = null;
        InterfaceC4048[] interfaceC4048Arr2 = (InterfaceC4048[]) this.f1498.toArray(interfaceC4048Arr);
        for (int i = 0; i < size; i++) {
            InterfaceC4048 interfaceC4048 = interfaceC4048Arr2[i];
            switch (r7.ᵧᵾˀˈ) {
                case 25:
                    interfaceC4048.mo1761(abstractC0140);
                    break;
                case 26:
                    interfaceC4048.mo1754(abstractC0140);
                    break;
                case 27:
                    interfaceC4048.mo1755(abstractC0140);
                    break;
                case 28:
                    interfaceC4048.mo1759();
                    break;
                default:
                    interfaceC4048.mo1756();
                    break;
            }
            interfaceC4048Arr2[i] = null;
        }
        this.f1503 = interfaceC4048Arr2;
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public final AbstractC0140 m1261() {
        C2058 c2058 = this.f1500;
        return c2058 != null ? c2058.m1261() : this;
    }

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public void mo1262(View view) {
        if (this.f1504) {
            if (!this.f1507) {
                ArrayList arrayList = this.f1516;
                int size = arrayList.size();
                Animator[] animatorArr = (Animator[]) arrayList.toArray(this.f1496);
                this.f1496 = f1490;
                for (int i = size - 1; i >= 0; i--) {
                    Animator animator = animatorArr[i];
                    animatorArr[i] = null;
                    animator.resume();
                }
                this.f1496 = animatorArr;
                m1260(this, ᵨᴵᵺ.ᵡⁱᵥ, false);
            }
            this.f1504 = false;
        }
    }

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public void mo1263(ˉᵜˆ r1) {
        this.f1497 = r1;
    }

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public String mo1264(String str) {
        StringBuilder sb = new StringBuilder(str);
        sb.append(getClass().getSimpleName());
        sb.append("@");
        sb.append(Integer.toHexString(hashCode()));
        sb.append(": ");
        if (this.f1519 != -1) {
            sb.append("dur(");
            sb.append(this.f1519);
            sb.append(") ");
        }
        if (this.f1510 != -1) {
            sb.append("dly(");
            sb.append(this.f1510);
            sb.append(") ");
        }
        if (this.f1518 != null) {
            sb.append("interp(");
            sb.append(this.f1518);
            sb.append(") ");
        }
        ArrayList arrayList = this.f1511;
        int size = arrayList.size();
        ArrayList arrayList2 = this.f1509;
        if (size > 0 || arrayList2.size() > 0) {
            sb.append("tgts(");
            if (arrayList.size() > 0) {
                for (int i = 0; i < arrayList.size(); i++) {
                    if (i > 0) {
                        sb.append(", ");
                    }
                    sb.append(arrayList.get(i));
                }
            }
            if (arrayList2.size() > 0) {
                for (int i2 = 0; i2 < arrayList2.size(); i2++) {
                    if (i2 > 0) {
                        sb.append(", ");
                    }
                    sb.append(arrayList2.get(i2));
                }
            }
            sb.append(")");
        }
        return sb.toString();
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public abstract void mo1265(C2886 c2886);

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public final void m1266(View view) {
        ArrayList arrayList = this.f1494;
        if (view != null) {
            if (arrayList == null) {
                arrayList = new ArrayList();
            }
            if (!arrayList.contains(view)) {
                arrayList.add(view);
            }
        }
        this.f1494 = arrayList;
    }

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public void mo1267(TimeInterpolator timeInterpolator) {
        this.f1518 = timeInterpolator;
    }

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public boolean mo1268(C2886 c2886, C2886 c28862) {
        if (c2886 != null && c28862 != null) {
            String[] strArrMo1269 = mo1269();
            if (strArrMo1269 != null) {
                for (String str : strArrMo1269) {
                    if (m1248(c2886, c28862, str)) {
                        return true;
                    }
                }
            } else {
                Iterator it = c2886.f11186.keySet().iterator();
                while (it.hasNext()) {
                    if (m1248(c2886, c28862, (String) it.next())) {
                        return true;
                    }
                }
            }
        }
        return false;
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public String[] mo1269() {
        return null;
    }

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public boolean mo1270() {
        return this instanceof C4433;
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public AbstractC0140 mo1271(InterfaceC4048 interfaceC4048) {
        AbstractC0140 abstractC0140;
        ArrayList arrayList = this.f1498;
        if (arrayList != null) {
            if (!arrayList.remove(interfaceC4048) && (abstractC0140 = this.f1501) != null) {
                abstractC0140.mo1271(interfaceC4048);
            }
            if (this.f1498.size() == 0) {
                this.f1498 = null;
            }
        }
        return this;
    }

    /* JADX WARN: Code restructure failed: missing block: B:21:0x002c, code lost:
    
        if (r2 < 0) goto L27;
     */
    /* JADX WARN: Code restructure failed: missing block: B:22:0x002e, code lost:
    
        if (r6 == false) goto L24;
     */
    /* JADX WARN: Code restructure failed: missing block: B:23:0x0030, code lost:
    
        r4 = r4.f1517;
     */
    /* JADX WARN: Code restructure failed: missing block: B:24:0x0033, code lost:
    
        r4 = r4.f1512;
     */
    /* JADX WARN: Code restructure failed: missing block: B:26:0x003b, code lost:
    
        return (defpackage.C2886) r4.get(r2);
     */
    /* JADX WARN: Code restructure failed: missing block: B:27:0x003c, code lost:
    
        return null;
     */
    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final defpackage.C2886 m1272(android.view.View r5, boolean r6) {
        /*
            r4 = this;
            ˑˑ r0 = r4.f1500
            if (r0 == 0) goto L9
            ᵝˉᵧᵤ r4 = r0.m1272(r5, r6)
            return r4
        L9:
            if (r6 == 0) goto Le
            java.util.ArrayList r0 = r4.f1512
            goto L10
        Le:
            java.util.ArrayList r0 = r4.f1517
        L10:
            if (r0 != 0) goto L13
            goto L3c
        L13:
            int r1 = r0.size()
            r2 = 0
        L18:
            if (r2 >= r1) goto L2b
            java.lang.Object r3 = r0.get(r2)
            ᵝˉᵧᵤ r3 = (defpackage.C2886) r3
            if (r3 != 0) goto L23
            goto L3c
        L23:
            android.view.View r3 = r3.f11187
            if (r3 != r5) goto L28
            goto L2c
        L28:
            int r2 = r2 + 1
            goto L18
        L2b:
            r2 = -1
        L2c:
            if (r2 < 0) goto L3c
            if (r6 == 0) goto L33
            java.util.ArrayList r4 = r4.f1517
            goto L35
        L33:
            java.util.ArrayList r4 = r4.f1512
        L35:
            java.lang.Object r4 = r4.get(r2)
            ᵝˉᵧᵤ r4 = (defpackage.C2886) r4
            return r4
        L3c:
            r4 = 0
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.AbstractC0140.m1272(android.view.View, boolean):ᵝˉᵧᵤ");
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public void mo1273(ViewGroup viewGroup, C0030 c0030, C0030 c00302, ArrayList arrayList, ArrayList arrayList2) {
        int i;
        boolean z;
        View view;
        C2886 c2886;
        Animator animator;
        C2886 c28862;
        C1200 c1200M1249 = m1249();
        SparseIntArray sparseIntArray = new SparseIntArray();
        int size = arrayList.size();
        boolean z2 = m1261().f1515 != null;
        int i2 = 0;
        while (i2 < size) {
            C2886 c28863 = (C2886) arrayList.get(i2);
            C2886 c28864 = (C2886) arrayList2.get(i2);
            if (c28863 != null && !c28863.f11185.contains(this)) {
                c28863 = null;
            }
            if (c28864 != null && !c28864.f11185.contains(this)) {
                c28864 = null;
            }
            if ((c28863 != null || c28864 != null) && (c28863 == null || c28864 == null || mo1268(c28863, c28864))) {
                Animator animatorMo1275 = mo1275(viewGroup, c28863, c28864);
                if (animatorMo1275 != null) {
                    String str = this.f1513;
                    if (c28864 != null) {
                        view = c28864.f11187;
                        String[] strArrMo1269 = mo1269();
                        if (strArrMo1269 != null && strArrMo1269.length > 0) {
                            c28862 = new C2886(view);
                            C2886 c28865 = (C2886) ((C1200) c00302.f1151).get(view);
                            i = size;
                            z = z2;
                            if (c28865 != null) {
                                for (String str2 : strArrMo1269) {
                                    c28862.f11186.put(str2, c28865.f11186.get(str2));
                                }
                            }
                            int i3 = c1200M1249.f10698;
                            int i4 = 0;
                            while (true) {
                                if (i4 >= i3) {
                                    animator = animatorMo1275;
                                    break;
                                }
                                C3790 c3790 = (C3790) c1200M1249.get((Animator) c1200M1249.m6838(i4));
                                if (c3790.f14155 != null && c3790.f14156 == view && c3790.f14157.equals(str) && c3790.f14155.equals(c28862)) {
                                    animator = null;
                                    break;
                                }
                                i4++;
                            }
                        } else {
                            i = size;
                            z = z2;
                            animator = animatorMo1275;
                            c28862 = null;
                        }
                        animatorMo1275 = animator;
                        c2886 = c28862;
                    } else {
                        i = size;
                        z = z2;
                        view = c28863.f11187;
                        c2886 = null;
                    }
                    if (animatorMo1275 != null) {
                        WindowId windowId = viewGroup.getWindowId();
                        C3790 c37902 = new C3790();
                        c37902.f14156 = view;
                        c37902.f14157 = str;
                        c37902.f14155 = c2886;
                        c37902.f14158 = windowId;
                        c37902.f14153 = this;
                        c37902.f14154 = animatorMo1275;
                        if (z) {
                            AnimatorSet animatorSet = new AnimatorSet();
                            animatorSet.play(animatorMo1275);
                            animatorMo1275 = animatorSet;
                        }
                        c1200M1249.put(animatorMo1275, c37902);
                        this.f1495.add(animatorMo1275);
                    }
                }
                i2++;
                size = i;
                z2 = z;
            }
            i = size;
            z = z2;
            i2++;
            size = i;
            z2 = z;
        }
        if (sparseIntArray.size() != 0) {
            for (int i5 = 0; i5 < sparseIntArray.size(); i5++) {
                C3790 c37903 = (C3790) c1200M1249.get((Animator) this.f1495.get(sparseIntArray.keyAt(i5)));
                c37903.f14154.setStartDelay(c37903.f14154.getStartDelay() + (sparseIntArray.valueAt(i5) - Long.MAX_VALUE));
            }
        }
    }

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public void mo1274() {
        C1200 c1200M1249 = m1249();
        this.f1499 = 0L;
        int i = 0;
        while (true) {
            int size = this.f1495.size();
            ArrayList arrayList = this.f1495;
            if (i >= size) {
                arrayList.clear();
                return;
            }
            Animator animator = (Animator) arrayList.get(i);
            C3790 c3790 = (C3790) c1200M1249.get(animator);
            if (animator != null && c3790 != null) {
                Animator animator2 = c3790.f14154;
                long j = this.f1519;
                if (j >= 0) {
                    animator2.setDuration(j);
                }
                long j2 = this.f1510;
                if (j2 >= 0) {
                    animator2.setStartDelay(animator2.getStartDelay() + j2);
                }
                TimeInterpolator timeInterpolator = this.f1518;
                if (timeInterpolator != null) {
                    animator2.setInterpolator(timeInterpolator);
                }
                this.f1516.add(animator);
                this.f1499 = Math.max(this.f1499, ﹶʾ.ᵻᵢﹳᵰ(animator));
            }
            i++;
        }
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public Animator mo1275(ViewGroup viewGroup, C2886 c2886, C2886 c28862) {
        return null;
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public final void m1276() {
        int i = this.f1520 - 1;
        this.f1520 = i;
        if (i == 0) {
            m1260(this, ᵨᴵᵺ.ᵿʗᵝʽ, false);
            for (int i2 = 0; i2 < ((C1196) this.f1506.f1152).m3730(); i2++) {
                View view = (View) ((C1196) this.f1506.f1152).m3731(i2);
                if (view != null) {
                    view.setHasTransientState(false);
                }
            }
            for (int i3 = 0; i3 < ((C1196) this.f1502.f1152).m3730(); i3++) {
                View view2 = (View) ((C1196) this.f1502.f1152).m3731(i3);
                if (view2 != null) {
                    view2.setHasTransientState(false);
                }
            }
            this.f1507 = true;
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public void m1277(InterfaceC4048 interfaceC4048) {
        if (this.f1498 == null) {
            this.f1498 = new ArrayList();
        }
        this.f1498.add(interfaceC4048);
    }

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public void mo1278() {
        m1253();
        C1200 c1200M1249 = m1249();
        ArrayList arrayList = this.f1495;
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            Animator animator = (Animator) obj;
            if (c1200M1249.containsKey(animator)) {
                m1253();
                if (animator != null) {
                    animator.addListener(new C3939(this, c1200M1249));
                    long j = this.f1519;
                    if (j >= 0) {
                        animator.setDuration(j);
                    }
                    long j2 = this.f1510;
                    if (j2 >= 0) {
                        animator.setStartDelay(animator.getStartDelay() + j2);
                    }
                    TimeInterpolator timeInterpolator = this.f1518;
                    if (timeInterpolator != null) {
                        animator.setInterpolator(timeInterpolator);
                    }
                    animator.addListener(new C3345(5, this));
                    animator.start();
                }
            }
        }
        this.f1495.clear();
        m1276();
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final void m1279(ViewGroup viewGroup, boolean z) {
        m1281(z);
        ArrayList arrayList = this.f1511;
        int size = arrayList.size();
        ArrayList arrayList2 = this.f1509;
        if (size <= 0 && arrayList2.size() <= 0) {
            m1256(viewGroup, z);
            return;
        }
        for (int i = 0; i < arrayList.size(); i++) {
            View viewFindViewById = viewGroup.findViewById(((Integer) arrayList.get(i)).intValue());
            if (viewFindViewById != null) {
                C2886 c2886 = new C2886(viewFindViewById);
                if (z) {
                    mo1265(c2886);
                } else {
                    mo1258(c2886);
                }
                c2886.f11185.add(this);
                mo1282(c2886);
                if (z) {
                    m1247(this.f1506, viewFindViewById, c2886);
                } else {
                    m1247(this.f1502, viewFindViewById, c2886);
                }
            }
        }
        for (int i2 = 0; i2 < arrayList2.size(); i2++) {
            View view = (View) arrayList2.get(i2);
            C2886 c28862 = new C2886(view);
            if (z) {
                mo1265(c28862);
            } else {
                mo1258(c28862);
            }
            c28862.f11185.add(this);
            mo1282(c28862);
            if (z) {
                m1247(this.f1506, view, c28862);
            } else {
                m1247(this.f1502, view, c28862);
            }
        }
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public void mo1280(ViewGroup viewGroup) {
        C1200 c1200M1249 = m1249();
        int i = c1200M1249.f10698;
        if (viewGroup == null || i == 0) {
            return;
        }
        WindowId windowId = viewGroup.getWindowId();
        C1200 c1200 = new C1200(c1200M1249);
        c1200M1249.clear();
        for (int i2 = i - 1; i2 >= 0; i2--) {
            C3790 c3790 = (C3790) c1200.m6842(i2);
            if (c3790.f14156 != null && windowId.equals(c3790.f14158)) {
                ((Animator) c1200.m6838(i2)).end();
            }
        }
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final void m1281(boolean z) {
        if (z) {
            ((C1200) this.f1506.f1151).clear();
            ((SparseArray) this.f1506.f1154).clear();
            ((C1196) this.f1506.f1152).m3733();
        } else {
            ((C1200) this.f1502.f1151).clear();
            ((SparseArray) this.f1502.f1154).clear();
            ((C1196) this.f1502.f1152).m3733();
        }
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public void mo1282(C2886 c2886) {
    }

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public void mo1283(View view) {
        this.f1509.remove(view);
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public void mo1284(View view) {
        this.f1509.add(view);
    }

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public boolean mo1285() {
        return !this.f1516.isEmpty();
    }

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final C2886 m1286(View view, boolean z) {
        C2058 c2058 = this.f1500;
        if (c2058 != null) {
            return c2058.m1286(view, z);
        }
        return (C2886) ((C1200) (z ? this.f1506 : this.f1502).f1151).get(view);
    }

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public void mo1287(long j) {
        this.f1519 = j;
    }
}
