package defpackage;

import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.view.View;
import android.view.ViewPropertyAnimator;
import java.util.ArrayList;
import java.util.List;
import java.util.WeakHashMap;

/* renamed from: ᵚˑᵲᵾ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public class C2669 extends AbstractC2495 {

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public static TimeInterpolator f10356;

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public static TimeInterpolator f10357;

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public final ArrayList f10358;

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final ArrayList f10359;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public boolean f10360;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final ArrayList f10361;

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public final ArrayList f10362;

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public final ArrayList f10363;

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public final ArrayList f10364;

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public final ArrayList f10365;

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public final ArrayList f10366;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final ArrayList f10367;

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public final ArrayList f10368;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final ArrayList f10369;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final /* synthetic */ int f10370;

    public C2669(byte b) {
        this.f9741 = null;
        this.f9742 = new ArrayList();
        this.f9740 = 120L;
        this.f9743 = 120L;
        this.f9738 = 250L;
        this.f9739 = 250L;
        this.f10360 = true;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C2669(int i) {
        this((byte) 0);
        this.f10370 = i;
        switch (i) {
            case 1:
                this((byte) 0);
                this.f10361 = new ArrayList();
                this.f10367 = new ArrayList();
                this.f10369 = new ArrayList();
                this.f10359 = new ArrayList();
                this.f10365 = new ArrayList();
                this.f10364 = new ArrayList();
                this.f10366 = new ArrayList();
                this.f10358 = new ArrayList();
                this.f10363 = new ArrayList();
                this.f10368 = new ArrayList();
                this.f10362 = new ArrayList();
                this.f10360 = false;
                this.f9738 = 150L;
                break;
            default:
                this.f10361 = new ArrayList();
                this.f10367 = new ArrayList();
                this.f10369 = new ArrayList();
                this.f10359 = new ArrayList();
                this.f10365 = new ArrayList();
                this.f10364 = new ArrayList();
                this.f10366 = new ArrayList();
                this.f10358 = new ArrayList();
                this.f10363 = new ArrayList();
                this.f10368 = new ArrayList();
                this.f10362 = new ArrayList();
                break;
        }
    }

    @Override // defpackage.AbstractC2495
    /* renamed from: ˇʼʤˎ */
    public final void mo6339(AbstractC2313 abstractC2313) {
        float f;
        float f2;
        int i = this.f10370;
        ArrayList arrayList = this.f10363;
        ArrayList arrayList2 = this.f10362;
        ArrayList arrayList3 = this.f10358;
        ArrayList arrayList4 = this.f10368;
        ArrayList arrayList5 = this.f10367;
        ArrayList arrayList6 = this.f10361;
        ArrayList arrayList7 = this.f10359;
        ArrayList arrayList8 = this.f10369;
        ArrayList arrayList9 = this.f10366;
        ArrayList arrayList10 = this.f10364;
        ArrayList arrayList11 = this.f10365;
        switch (i) {
            case 0:
                View view = abstractC2313.f9071;
                view.animate().cancel();
                for (int size = arrayList8.size() - 1; size >= 0; size--) {
                    if (((C1198) arrayList8.get(size)).f5106 == abstractC2313) {
                        view.setTranslationY(0.0f);
                        view.setTranslationX(0.0f);
                        m6342(abstractC2313);
                        arrayList8.remove(size);
                    }
                }
                m6666(arrayList7, abstractC2313);
                if (arrayList6.remove(abstractC2313)) {
                    f = 1.0f;
                    view.setAlpha(1.0f);
                    m6342(abstractC2313);
                } else {
                    f = 1.0f;
                }
                if (arrayList5.remove(abstractC2313)) {
                    view.setAlpha(f);
                    m6342(abstractC2313);
                }
                for (int size2 = arrayList9.size() - 1; size2 >= 0; size2--) {
                    ArrayList arrayList12 = (ArrayList) arrayList9.get(size2);
                    m6666(arrayList12, abstractC2313);
                    if (arrayList12.isEmpty()) {
                        arrayList9.remove(size2);
                    }
                }
                for (int size3 = arrayList10.size() - 1; size3 >= 0; size3--) {
                    ArrayList arrayList13 = (ArrayList) arrayList10.get(size3);
                    int size4 = arrayList13.size() - 1;
                    while (true) {
                        if (size4 < 0) {
                            break;
                        }
                        if (((C1198) arrayList13.get(size4)).f5106 == abstractC2313) {
                            view.setTranslationY(0.0f);
                            view.setTranslationX(0.0f);
                            m6342(abstractC2313);
                            arrayList13.remove(size4);
                            if (arrayList13.isEmpty()) {
                                arrayList10.remove(size3);
                            }
                        } else {
                            size4--;
                        }
                    }
                }
                for (int size5 = arrayList11.size() - 1; size5 >= 0; size5--) {
                    ArrayList arrayList14 = (ArrayList) arrayList11.get(size5);
                    if (arrayList14.remove(abstractC2313)) {
                        view.setAlpha(1.0f);
                        m6342(abstractC2313);
                        if (arrayList14.isEmpty()) {
                            arrayList11.remove(size5);
                        }
                    }
                }
                arrayList4.remove(abstractC2313);
                arrayList3.remove(abstractC2313);
                arrayList2.remove(abstractC2313);
                arrayList.remove(abstractC2313);
                m6663();
                break;
            default:
                View view2 = abstractC2313.f9071;
                view2.animate().cancel();
                for (int size6 = arrayList8.size() - 1; size6 >= 0; size6--) {
                    if (((C2032) arrayList8.get(size6)).f8156 == abstractC2313) {
                        view2.setTranslationY(0.0f);
                        view2.setTranslationX(0.0f);
                        m6342(abstractC2313);
                        arrayList8.remove(size6);
                    }
                }
                m6667(arrayList7, abstractC2313);
                if (arrayList6.remove(abstractC2313)) {
                    f2 = 1.0f;
                    view2.setAlpha(1.0f);
                    m6342(abstractC2313);
                } else {
                    f2 = 1.0f;
                }
                if (arrayList5.remove(abstractC2313)) {
                    view2.setAlpha(f2);
                    m6342(abstractC2313);
                }
                for (int size7 = arrayList9.size() - 1; size7 >= 0; size7--) {
                    ArrayList arrayList15 = (ArrayList) arrayList9.get(size7);
                    m6667(arrayList15, abstractC2313);
                    if (arrayList15.isEmpty()) {
                        arrayList9.remove(size7);
                    }
                }
                for (int size8 = arrayList10.size() - 1; size8 >= 0; size8--) {
                    ArrayList arrayList16 = (ArrayList) arrayList10.get(size8);
                    int size9 = arrayList16.size() - 1;
                    while (true) {
                        if (size9 < 0) {
                            break;
                        }
                        if (((C2032) arrayList16.get(size9)).f8156 == abstractC2313) {
                            view2.setTranslationY(0.0f);
                            view2.setTranslationX(0.0f);
                            m6342(abstractC2313);
                            arrayList16.remove(size9);
                            if (arrayList16.isEmpty()) {
                                arrayList10.remove(size8);
                            }
                        } else {
                            size9--;
                        }
                    }
                }
                for (int size10 = arrayList11.size() - 1; size10 >= 0; size10--) {
                    ArrayList arrayList17 = (ArrayList) arrayList11.get(size10);
                    if (arrayList17.remove(abstractC2313)) {
                        view2.setAlpha(1.0f);
                        m6342(abstractC2313);
                        if (arrayList17.isEmpty()) {
                            arrayList11.remove(size10);
                        }
                    }
                }
                arrayList4.remove(abstractC2313);
                arrayList3.remove(abstractC2313);
                arrayList2.remove(abstractC2313);
                arrayList.remove(abstractC2313);
                m6663();
                break;
        }
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public boolean m6662(C1177 c1177, AbstractC2313 abstractC2313) {
        if (c1177.f5003 == abstractC2313) {
            c1177.f5003 = null;
        } else {
            if (c1177.f5002 != abstractC2313) {
                return false;
            }
            c1177.f5002 = null;
        }
        View view = abstractC2313.f9071;
        View view2 = abstractC2313.f9071;
        view.setAlpha(1.0f);
        view2.setTranslationX(0.0f);
        view2.setTranslationY(0.0f);
        m6342(abstractC2313);
        return true;
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final void m6663() {
        switch (this.f10370) {
            case 0:
                if (!mo6340()) {
                    m6345();
                    break;
                }
                break;
            default:
                if (!mo6340()) {
                    m6345();
                    break;
                }
                break;
        }
    }

    @Override // defpackage.AbstractC2495
    /* renamed from: ˎˏʜʾ */
    public final boolean mo6340() {
        switch (this.f10370) {
            case 0:
                if (!this.f10367.isEmpty() || !this.f10359.isEmpty() || !this.f10369.isEmpty() || !this.f10361.isEmpty() || !this.f10363.isEmpty() || !this.f10368.isEmpty() || !this.f10358.isEmpty() || !this.f10362.isEmpty() || !this.f10364.isEmpty() || !this.f10365.isEmpty() || !this.f10366.isEmpty()) {
                }
                break;
            default:
                if (!this.f10367.isEmpty() || !this.f10359.isEmpty() || !this.f10369.isEmpty() || !this.f10361.isEmpty() || !this.f10363.isEmpty() || !this.f10368.isEmpty() || !this.f10358.isEmpty() || !this.f10362.isEmpty() || !this.f10364.isEmpty() || !this.f10365.isEmpty() || !this.f10366.isEmpty()) {
                }
                break;
        }
        return true;
    }

    @Override // defpackage.AbstractC2495
    /* renamed from: ˏˋٴ */
    public final void mo6341() {
        int i = this.f10370;
        ArrayList arrayList = this.f10362;
        ArrayList arrayList2 = this.f10358;
        ArrayList arrayList3 = this.f10363;
        ArrayList arrayList4 = this.f10368;
        ArrayList arrayList5 = this.f10369;
        ArrayList arrayList6 = this.f10361;
        ArrayList arrayList7 = this.f10367;
        ArrayList arrayList8 = this.f10364;
        ArrayList arrayList9 = this.f10365;
        ArrayList arrayList10 = this.f10366;
        ArrayList arrayList11 = this.f10359;
        switch (i) {
            case 0:
                for (int size = arrayList5.size() - 1; size >= 0; size--) {
                    C1198 c1198 = (C1198) arrayList5.get(size);
                    View view = c1198.f5106.f9071;
                    view.setTranslationY(0.0f);
                    view.setTranslationX(0.0f);
                    m6342(c1198.f5106);
                    arrayList5.remove(size);
                }
                for (int size2 = arrayList6.size() - 1; size2 >= 0; size2--) {
                    m6342((AbstractC2313) arrayList6.get(size2));
                    arrayList6.remove(size2);
                }
                for (int size3 = arrayList7.size() - 1; size3 >= 0; size3--) {
                    AbstractC2313 abstractC2313 = (AbstractC2313) arrayList7.get(size3);
                    abstractC2313.f9071.setAlpha(1.0f);
                    m6342(abstractC2313);
                    arrayList7.remove(size3);
                }
                for (int size4 = arrayList11.size() - 1; size4 >= 0; size4--) {
                    C1177 c1177 = (C1177) arrayList11.get(size4);
                    AbstractC2313 abstractC23132 = c1177.f5002;
                    if (abstractC23132 != null) {
                        m6662(c1177, abstractC23132);
                    }
                    AbstractC2313 abstractC23133 = c1177.f5003;
                    if (abstractC23133 != null) {
                        m6662(c1177, abstractC23133);
                    }
                }
                arrayList11.clear();
                if (mo6340()) {
                    for (int size5 = arrayList8.size() - 1; size5 >= 0; size5--) {
                        ArrayList arrayList12 = (ArrayList) arrayList8.get(size5);
                        for (int size6 = arrayList12.size() - 1; size6 >= 0; size6--) {
                            C1198 c11982 = (C1198) arrayList12.get(size6);
                            View view2 = c11982.f5106.f9071;
                            view2.setTranslationY(0.0f);
                            view2.setTranslationX(0.0f);
                            m6342(c11982.f5106);
                            arrayList12.remove(size6);
                            if (arrayList12.isEmpty()) {
                                arrayList8.remove(arrayList12);
                            }
                        }
                    }
                    for (int size7 = arrayList9.size() - 1; size7 >= 0; size7--) {
                        ArrayList arrayList13 = (ArrayList) arrayList9.get(size7);
                        for (int size8 = arrayList13.size() - 1; size8 >= 0; size8--) {
                            AbstractC2313 abstractC23134 = (AbstractC2313) arrayList13.get(size8);
                            abstractC23134.f9071.setAlpha(1.0f);
                            m6342(abstractC23134);
                            arrayList13.remove(size8);
                            if (arrayList13.isEmpty()) {
                                arrayList9.remove(arrayList13);
                            }
                        }
                    }
                    for (int size9 = arrayList10.size() - 1; size9 >= 0; size9--) {
                        ArrayList arrayList14 = (ArrayList) arrayList10.get(size9);
                        for (int size10 = arrayList14.size() - 1; size10 >= 0; size10--) {
                            C1177 c11772 = (C1177) arrayList14.get(size10);
                            AbstractC2313 abstractC23135 = c11772.f5002;
                            if (abstractC23135 != null) {
                                m6662(c11772, abstractC23135);
                            }
                            AbstractC2313 abstractC23136 = c11772.f5003;
                            if (abstractC23136 != null) {
                                m6662(c11772, abstractC23136);
                            }
                            if (arrayList14.isEmpty()) {
                                arrayList10.remove(arrayList14);
                            }
                        }
                    }
                    m6671(arrayList4);
                    m6671(arrayList3);
                    m6671(arrayList2);
                    m6671(arrayList);
                    m6345();
                    break;
                }
                break;
            default:
                for (int size11 = arrayList5.size() - 1; size11 >= 0; size11--) {
                    C2032 c2032 = (C2032) arrayList5.get(size11);
                    View view3 = c2032.f8156.f9071;
                    view3.setTranslationY(0.0f);
                    view3.setTranslationX(0.0f);
                    m6342(c2032.f8156);
                    arrayList5.remove(size11);
                }
                for (int size12 = arrayList6.size() - 1; size12 >= 0; size12--) {
                    m6342((AbstractC2313) arrayList6.get(size12));
                    arrayList6.remove(size12);
                }
                for (int size13 = arrayList7.size() - 1; size13 >= 0; size13--) {
                    AbstractC2313 abstractC23137 = (AbstractC2313) arrayList7.get(size13);
                    abstractC23137.f9071.setAlpha(1.0f);
                    m6342(abstractC23137);
                    arrayList7.remove(size13);
                }
                for (int size14 = arrayList11.size() - 1; size14 >= 0; size14--) {
                    C5166 c5166 = (C5166) arrayList11.get(size14);
                    AbstractC2313 abstractC23138 = c5166.f19229;
                    if (abstractC23138 != null) {
                        m6668(c5166, abstractC23138);
                    }
                    AbstractC2313 abstractC23139 = c5166.f19230;
                    if (abstractC23139 != null) {
                        m6668(c5166, abstractC23139);
                    }
                }
                arrayList11.clear();
                if (mo6340()) {
                    for (int size15 = arrayList8.size() - 1; size15 >= 0; size15--) {
                        ArrayList arrayList15 = (ArrayList) arrayList8.get(size15);
                        for (int size16 = arrayList15.size() - 1; size16 >= 0; size16--) {
                            C2032 c20322 = (C2032) arrayList15.get(size16);
                            View view4 = c20322.f8156.f9071;
                            view4.setTranslationY(0.0f);
                            view4.setTranslationX(0.0f);
                            m6342(c20322.f8156);
                            arrayList15.remove(size16);
                            if (arrayList15.isEmpty()) {
                                arrayList8.remove(arrayList15);
                            }
                        }
                    }
                    for (int size17 = arrayList9.size() - 1; size17 >= 0; size17--) {
                        ArrayList arrayList16 = (ArrayList) arrayList9.get(size17);
                        for (int size18 = arrayList16.size() - 1; size18 >= 0; size18--) {
                            AbstractC2313 abstractC231310 = (AbstractC2313) arrayList16.get(size18);
                            abstractC231310.f9071.setAlpha(1.0f);
                            m6342(abstractC231310);
                            arrayList16.remove(size18);
                            if (arrayList16.isEmpty()) {
                                arrayList9.remove(arrayList16);
                            }
                        }
                    }
                    for (int size19 = arrayList10.size() - 1; size19 >= 0; size19--) {
                        ArrayList arrayList17 = (ArrayList) arrayList10.get(size19);
                        for (int size20 = arrayList17.size() - 1; size20 >= 0; size20--) {
                            C5166 c51662 = (C5166) arrayList17.get(size20);
                            AbstractC2313 abstractC231311 = c51662.f19229;
                            if (abstractC231311 != null) {
                                m6668(c51662, abstractC231311);
                            }
                            AbstractC2313 abstractC231312 = c51662.f19230;
                            if (abstractC231312 != null) {
                                m6668(c51662, abstractC231312);
                            }
                            if (arrayList17.isEmpty()) {
                                arrayList10.remove(arrayList17);
                            }
                        }
                    }
                    m6671(arrayList4);
                    m6671(arrayList3);
                    m6671(arrayList2);
                    m6671(arrayList);
                    m6345();
                    break;
                }
                break;
        }
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final boolean m6664(AbstractC2313 abstractC2313, AbstractC2313 abstractC23132, int i, int i2, int i3, int i4) {
        int i5 = this.f10370;
        ArrayList arrayList = this.f10359;
        switch (i5) {
            case 0:
                if (abstractC2313 != abstractC23132) {
                    View view = abstractC2313.f9071;
                    float translationX = view.getTranslationX();
                    float translationY = view.getTranslationY();
                    float alpha = view.getAlpha();
                    m6670(abstractC2313);
                    view.setTranslationX(translationX);
                    view.setTranslationY(translationY);
                    view.setAlpha(alpha);
                    View view2 = abstractC23132.f9071;
                    m6670(abstractC23132);
                    view2.setTranslationX(-((int) ((i3 - i) - translationX)));
                    view2.setTranslationY(-((int) ((i4 - i2) - translationY)));
                    view2.setAlpha(0.0f);
                    C1177 c1177 = new C1177();
                    c1177.f5002 = abstractC2313;
                    c1177.f5003 = abstractC23132;
                    c1177.f5001 = i;
                    c1177.f5004 = i2;
                    c1177.f4999 = i3;
                    c1177.f5000 = i4;
                    arrayList.add(c1177);
                    break;
                } else {
                    break;
                }
            default:
                if (abstractC2313 != abstractC23132) {
                    View view3 = abstractC2313.f9071;
                    float translationX2 = view3.getTranslationX();
                    float translationY2 = view3.getTranslationY();
                    float alpha2 = view3.getAlpha();
                    m6665(abstractC2313);
                    view3.setTranslationX(translationX2);
                    view3.setTranslationY(translationY2);
                    view3.setAlpha(alpha2);
                    View view4 = abstractC23132.f9071;
                    m6665(abstractC23132);
                    view4.setTranslationX(-((int) ((i3 - i) - translationX2)));
                    view4.setTranslationY(-((int) ((i4 - i2) - translationY2)));
                    view4.setAlpha(0.0f);
                    C5166 c5166 = new C5166();
                    c5166.f19229 = abstractC2313;
                    c5166.f19230 = abstractC23132;
                    c5166.f19228 = i;
                    c5166.f19231 = i2;
                    c5166.f19226 = i3;
                    c5166.f19227 = i4;
                    arrayList.add(c5166);
                    break;
                } else {
                    break;
                }
        }
        return true;
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public void m6665(AbstractC2313 abstractC2313) {
        if (f10356 == null) {
            f10356 = new ValueAnimator().getInterpolator();
        }
        abstractC2313.f9071.animate().setInterpolator(f10356);
        mo6339(abstractC2313);
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public void m6666(ArrayList arrayList, AbstractC2313 abstractC2313) {
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            C1177 c1177 = (C1177) arrayList.get(size);
            if (m6662(c1177, abstractC2313) && c1177.f5002 == null && c1177.f5003 == null) {
                arrayList.remove(c1177);
            }
        }
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public void m6667(ArrayList arrayList, AbstractC2313 abstractC2313) {
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            C5166 c5166 = (C5166) arrayList.get(size);
            if (m6668(c5166, abstractC2313) && c5166.f19229 == null && c5166.f19230 == null) {
                arrayList.remove(c5166);
            }
        }
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public boolean m6668(C5166 c5166, AbstractC2313 abstractC2313) {
        if (c5166.f19230 == abstractC2313) {
            c5166.f19230 = null;
        } else {
            if (c5166.f19229 != abstractC2313) {
                return false;
            }
            c5166.f19229 = null;
        }
        View view = abstractC2313.f9071;
        view.setAlpha(1.0f);
        view.setTranslationX(0.0f);
        view.setTranslationY(0.0f);
        m6342(abstractC2313);
        return true;
    }

    @Override // defpackage.AbstractC2495
    /* renamed from: ᵴᵳ */
    public final boolean mo6343(AbstractC2313 abstractC2313, List list) {
        switch (this.f10370) {
            case 0:
                if (list.isEmpty() && this.f10360 && !abstractC2313.m6034()) {
                    break;
                }
                break;
            default:
                if (list.isEmpty() && this.f10360 && !abstractC2313.m6034()) {
                    break;
                }
                break;
        }
        return false;
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final boolean m6669(AbstractC2313 abstractC2313, int i, int i2, int i3, int i4) {
        int i5 = this.f10370;
        ArrayList arrayList = this.f10369;
        switch (i5) {
            case 0:
                View view = abstractC2313.f9071;
                int translationX = i + ((int) view.getTranslationX());
                int translationY = i2 + ((int) abstractC2313.f9071.getTranslationY());
                m6670(abstractC2313);
                int i6 = i3 - translationX;
                int i7 = i4 - translationY;
                if (i6 != 0 || i7 != 0) {
                    if (i6 != 0) {
                        view.setTranslationX(-i6);
                    }
                    if (i7 != 0) {
                        view.setTranslationY(-i7);
                    }
                    C1198 c1198 = new C1198();
                    c1198.f5106 = abstractC2313;
                    c1198.f5107 = translationX;
                    c1198.f5105 = translationY;
                    c1198.f5108 = i3;
                    c1198.f5104 = i4;
                    arrayList.add(c1198);
                    break;
                } else {
                    m6342(abstractC2313);
                    break;
                }
            default:
                View view2 = abstractC2313.f9071;
                int translationX2 = i + ((int) view2.getTranslationX());
                int translationY2 = i2 + ((int) abstractC2313.f9071.getTranslationY());
                m6665(abstractC2313);
                int i8 = i3 - translationX2;
                int i9 = i4 - translationY2;
                if (i8 != 0 || i9 != 0) {
                    if (i8 != 0) {
                        view2.setTranslationX(-i8);
                    }
                    if (i9 != 0) {
                        view2.setTranslationY(-i9);
                    }
                    C2032 c2032 = new C2032();
                    c2032.f8156 = abstractC2313;
                    c2032.f8157 = translationX2;
                    c2032.f8155 = translationY2;
                    c2032.f8158 = i3;
                    c2032.f8154 = i4;
                    arrayList.add(c2032);
                    break;
                } else {
                    m6342(abstractC2313);
                    break;
                }
        }
        return true;
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public void m6670(AbstractC2313 abstractC2313) {
        if (f10357 == null) {
            f10357 = new ValueAnimator().getInterpolator();
        }
        abstractC2313.f9071.animate().setInterpolator(f10357);
        mo6339(abstractC2313);
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final void m6671(ArrayList arrayList) {
        switch (this.f10370) {
            case 0:
                for (int size = arrayList.size() - 1; size >= 0; size--) {
                    ((AbstractC2313) arrayList.get(size)).f9071.animate().cancel();
                }
                break;
            default:
                for (int size2 = arrayList.size() - 1; size2 >= 0; size2--) {
                    ((AbstractC2313) arrayList.get(size2)).f9071.animate().cancel();
                }
                break;
        }
    }

    @Override // defpackage.AbstractC2495
    /* renamed from: ᵹᵝᵶ */
    public final void mo6344() {
        int i = this.f10370;
        ArrayList arrayList = this.f10365;
        ArrayList arrayList2 = this.f10366;
        ArrayList arrayList3 = this.f10364;
        ArrayList arrayList4 = this.f10368;
        ArrayList arrayList5 = this.f10367;
        ArrayList arrayList6 = this.f10359;
        ArrayList arrayList7 = this.f10369;
        ArrayList arrayList8 = this.f10361;
        switch (i) {
            case 0:
                long j = this.f9743;
                boolean zIsEmpty = arrayList8.isEmpty();
                boolean zIsEmpty2 = arrayList7.isEmpty();
                boolean zIsEmpty3 = arrayList6.isEmpty();
                boolean zIsEmpty4 = arrayList5.isEmpty();
                if (!zIsEmpty || !zIsEmpty2 || !zIsEmpty4 || !zIsEmpty3) {
                    int size = arrayList8.size();
                    int i2 = 0;
                    while (i2 < size) {
                        Object obj = arrayList8.get(i2);
                        int i3 = i2 + 1;
                        AbstractC2313 abstractC2313 = (AbstractC2313) obj;
                        boolean z = zIsEmpty2;
                        View view = abstractC2313.f9071;
                        boolean z2 = zIsEmpty3;
                        ViewPropertyAnimator viewPropertyAnimatorAnimate = view.animate();
                        arrayList4.add(abstractC2313);
                        viewPropertyAnimatorAnimate.setDuration(j).alpha(0.0f).setListener(new C4736(this, abstractC2313, viewPropertyAnimatorAnimate, view)).start();
                        zIsEmpty2 = z;
                        i2 = i3;
                        zIsEmpty3 = z2;
                        arrayList4 = arrayList4;
                        arrayList8 = arrayList8;
                    }
                    boolean z3 = zIsEmpty2;
                    boolean z4 = zIsEmpty3;
                    arrayList8.clear();
                    if (!z3) {
                        ArrayList arrayList9 = new ArrayList();
                        arrayList9.addAll(arrayList7);
                        arrayList3.add(arrayList9);
                        arrayList7.clear();
                        RunnableC0379 runnableC0379 = new RunnableC0379(this, arrayList9, 0);
                        if (zIsEmpty) {
                            runnableC0379.run();
                        } else {
                            View view2 = ((C1198) arrayList9.get(0)).f5106.f9071;
                            WeakHashMap weakHashMap = AbstractC2873.f11133;
                            view2.postOnAnimationDelayed(runnableC0379, j);
                        }
                    }
                    if (!z4) {
                        ArrayList arrayList10 = new ArrayList();
                        arrayList10.addAll(arrayList6);
                        arrayList2.add(arrayList10);
                        arrayList6.clear();
                        Runnable runnable = new ᵔᵨᵗ(9, this, arrayList10, false);
                        if (zIsEmpty) {
                            runnable.run();
                        } else {
                            View view3 = ((C1177) arrayList10.get(0)).f5002.f9071;
                            WeakHashMap weakHashMap2 = AbstractC2873.f11133;
                            view3.postOnAnimationDelayed(runnable, j);
                        }
                    }
                    if (!zIsEmpty4) {
                        ArrayList arrayList11 = new ArrayList();
                        arrayList11.addAll(arrayList5);
                        arrayList.add(arrayList11);
                        arrayList5.clear();
                        RunnableC0379 runnableC03792 = new RunnableC0379(this, arrayList11, 1);
                        if (!zIsEmpty || !z3 || !z4) {
                            if (zIsEmpty) {
                                j = 0;
                            }
                            long jMax = Math.max(!z3 ? this.f9738 : 0L, !z4 ? this.f9739 : 0L) + j;
                            View view4 = ((AbstractC2313) arrayList11.get(0)).f9071;
                            WeakHashMap weakHashMap3 = AbstractC2873.f11133;
                            view4.postOnAnimationDelayed(runnableC03792, jMax);
                            break;
                        } else {
                            runnableC03792.run();
                            break;
                        }
                    }
                }
                break;
            default:
                long j2 = this.f9743;
                boolean zIsEmpty5 = arrayList8.isEmpty();
                boolean zIsEmpty6 = arrayList7.isEmpty();
                boolean zIsEmpty7 = arrayList6.isEmpty();
                boolean zIsEmpty8 = arrayList5.isEmpty();
                if (!zIsEmpty5 || !zIsEmpty6 || !zIsEmpty8 || !zIsEmpty7) {
                    int i4 = 0;
                    for (int size2 = arrayList8.size(); i4 < size2; size2 = size2) {
                        AbstractC2313 abstractC23132 = (AbstractC2313) arrayList8.get(i4);
                        View view5 = abstractC23132.f9071;
                        boolean z5 = zIsEmpty5;
                        ViewPropertyAnimator viewPropertyAnimatorAnimate2 = view5.animate();
                        arrayList4.add(abstractC23132);
                        viewPropertyAnimatorAnimate2.setDuration(j2).alpha(0.0f).setListener(new C4156(this, abstractC23132, viewPropertyAnimatorAnimate2, view5)).start();
                        zIsEmpty5 = z5;
                        i4++;
                    }
                    boolean z6 = zIsEmpty5;
                    arrayList8.clear();
                    if (!zIsEmpty6) {
                        ArrayList arrayList12 = new ArrayList();
                        arrayList12.addAll(arrayList7);
                        arrayList3.add(arrayList12);
                        arrayList7.clear();
                        RunnableC2178 runnableC2178 = new RunnableC2178(this, arrayList12, 0);
                        if (z6) {
                            runnableC2178.run();
                        } else {
                            View view6 = ((C2032) arrayList12.get(0)).f8156.f9071;
                            WeakHashMap weakHashMap4 = AbstractC2873.f11133;
                            view6.postOnAnimationDelayed(runnableC2178, j2);
                        }
                    }
                    if (!zIsEmpty7) {
                        ArrayList arrayList13 = new ArrayList();
                        arrayList13.addAll(arrayList6);
                        arrayList2.add(arrayList13);
                        arrayList6.clear();
                        Runnable runnable2 = new ᵧˀ(9, this, arrayList13, false);
                        if (z6) {
                            runnable2.run();
                        } else {
                            View view7 = ((C5166) arrayList13.get(0)).f19229.f9071;
                            WeakHashMap weakHashMap5 = AbstractC2873.f11133;
                            view7.postOnAnimationDelayed(runnable2, j2);
                        }
                    }
                    if (!zIsEmpty8) {
                        ArrayList arrayList14 = new ArrayList();
                        arrayList14.addAll(arrayList5);
                        arrayList.add(arrayList14);
                        arrayList5.clear();
                        RunnableC2178 runnableC21782 = new RunnableC2178(this, arrayList14, 1);
                        if (!z6 || !zIsEmpty6 || !zIsEmpty7) {
                            if (z6) {
                                j2 = 0;
                            }
                            long jMax2 = Math.max(!zIsEmpty6 ? this.f9738 : 0L, !zIsEmpty7 ? this.f9739 : 0L) + j2;
                            View view8 = ((AbstractC2313) arrayList14.get(0)).f9071;
                            WeakHashMap weakHashMap6 = AbstractC2873.f11133;
                            view8.postOnAnimationDelayed(runnableC21782, jMax2);
                            break;
                        } else {
                            runnableC21782.run();
                            break;
                        }
                    }
                }
                break;
        }
    }
}
