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;

/* JADX INFO: renamed from: ˌʩˎ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public class C1571 extends AbstractC0090 {

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public static TimeInterpolator f6294;

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public static TimeInterpolator f6295;

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public final ArrayList f6296;

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public final ArrayList f6297;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final /* synthetic */ int f6298;

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public final ArrayList f6299;

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public final ArrayList f6300;

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public final ArrayList f6301;

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public final ArrayList f6302;

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final ArrayList f6303;

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public final ArrayList f6304;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final ArrayList f6305;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public boolean f6306;

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final ArrayList f6307;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final ArrayList f6308;

    public C1571(byte b) {
        this.f1308 = null;
        this.f1305 = new ArrayList();
        this.f1306 = 120L;
        this.f1309 = 120L;
        this.f1307 = 250L;
        this.f1310 = 250L;
        this.f6306 = true;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C1571(int i) {
        this((byte) 0);
        this.f6298 = i;
        switch (i) {
            case 1:
                this((byte) 0);
                this.f6308 = new ArrayList();
                this.f6305 = new ArrayList();
                this.f6307 = new ArrayList();
                this.f6303 = new ArrayList();
                this.f6300 = new ArrayList();
                this.f6299 = new ArrayList();
                this.f6302 = new ArrayList();
                this.f6301 = new ArrayList();
                this.f6304 = new ArrayList();
                this.f6297 = new ArrayList();
                this.f6296 = new ArrayList();
                this.f6306 = false;
                this.f1307 = 150L;
                break;
            default:
                this.f6308 = new ArrayList();
                this.f6305 = new ArrayList();
                this.f6307 = new ArrayList();
                this.f6303 = new ArrayList();
                this.f6300 = new ArrayList();
                this.f6299 = new ArrayList();
                this.f6302 = new ArrayList();
                this.f6301 = new ArrayList();
                this.f6304 = new ArrayList();
                this.f6297 = new ArrayList();
                this.f6296 = new ArrayList();
                break;
        }
    }

    @Override // defpackage.AbstractC0090
    /* JADX INFO: renamed from: ʽˈˋ */
    public final boolean mo1146(AbstractC4793 abstractC4793, List list) {
        switch (this.f6298) {
            case 0:
                if (list.isEmpty() && this.f6306 && !abstractC4793.m9986()) {
                    break;
                }
                break;
            default:
                if (list.isEmpty() && this.f6306 && !abstractC4793.m9986()) {
                    break;
                }
                break;
        }
        return false;
    }

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public void m4412(AbstractC4793 abstractC4793) {
        if (f6295 == null) {
            f6295 = new ValueAnimator().getInterpolator();
        }
        abstractC4793.f18236.animate().setInterpolator(f6295);
        mo1149(abstractC4793);
    }

    @Override // defpackage.AbstractC0090
    /* JADX INFO: renamed from: ˊᵫᵗ */
    public final void mo1147() {
        int i = this.f6298;
        ArrayList arrayList = this.f6300;
        ArrayList arrayList2 = this.f6302;
        ArrayList arrayList3 = this.f6299;
        ArrayList arrayList4 = this.f6297;
        ArrayList arrayList5 = this.f6305;
        ArrayList arrayList6 = this.f6303;
        ArrayList arrayList7 = this.f6307;
        ArrayList arrayList8 = this.f6308;
        switch (i) {
            case 0:
                long j = this.f1309;
                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;
                        AbstractC4793 abstractC4793 = (AbstractC4793) obj;
                        boolean z = zIsEmpty2;
                        View view = abstractC4793.f18236;
                        boolean z2 = zIsEmpty3;
                        ViewPropertyAnimator viewPropertyAnimatorAnimate = view.animate();
                        arrayList4.add(abstractC4793);
                        viewPropertyAnimatorAnimate.setDuration(j).alpha(0.0f).setListener(new C5341(this, abstractC4793, 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();
                        RunnableC2451 runnableC2451 = new RunnableC2451(this, arrayList9, 0);
                        if (zIsEmpty) {
                            runnableC2451.run();
                        } else {
                            View view2 = ((C1586) arrayList9.get(0)).f6376.f18236;
                            WeakHashMap weakHashMap = AbstractC2746.f10556;
                            view2.postOnAnimationDelayed(runnableC2451, 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 = ((C5075) arrayList10.get(0)).f19135.f18236;
                            WeakHashMap weakHashMap2 = AbstractC2746.f10556;
                            view3.postOnAnimationDelayed(runnable, j);
                        }
                    }
                    if (!zIsEmpty4) {
                        ArrayList arrayList11 = new ArrayList();
                        arrayList11.addAll(arrayList5);
                        arrayList.add(arrayList11);
                        arrayList5.clear();
                        RunnableC2451 runnableC24512 = new RunnableC2451(this, arrayList11, 1);
                        if (zIsEmpty && z3 && z4) {
                            runnableC24512.run();
                        } else {
                            if (zIsEmpty) {
                                j = 0;
                            }
                            long jMax = Math.max(!z3 ? this.f1307 : 0L, !z4 ? this.f1310 : 0L) + j;
                            View view4 = ((AbstractC4793) arrayList11.get(0)).f18236;
                            WeakHashMap weakHashMap3 = AbstractC2746.f10556;
                            view4.postOnAnimationDelayed(runnableC24512, jMax);
                        }
                    }
                }
                break;
            default:
                long j2 = this.f1309;
                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) {
                        AbstractC4793 abstractC47932 = (AbstractC4793) arrayList8.get(i4);
                        View view5 = abstractC47932.f18236;
                        boolean z5 = zIsEmpty5;
                        ViewPropertyAnimator viewPropertyAnimatorAnimate2 = view5.animate();
                        arrayList4.add(abstractC47932);
                        viewPropertyAnimatorAnimate2.setDuration(j2).alpha(0.0f).setListener(new C2658(this, abstractC47932, 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();
                        RunnableC0980 runnableC0980 = new RunnableC0980(this, arrayList12, 0);
                        if (z6) {
                            runnableC0980.run();
                        } else {
                            View view6 = ((C1919) arrayList12.get(0)).f7633.f18236;
                            WeakHashMap weakHashMap4 = AbstractC2746.f10556;
                            view6.postOnAnimationDelayed(runnableC0980, 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 = ((C3715) arrayList13.get(0)).f14147.f18236;
                            WeakHashMap weakHashMap5 = AbstractC2746.f10556;
                            view7.postOnAnimationDelayed(runnable2, j2);
                        }
                    }
                    if (!zIsEmpty8) {
                        ArrayList arrayList14 = new ArrayList();
                        arrayList14.addAll(arrayList5);
                        arrayList.add(arrayList14);
                        arrayList5.clear();
                        RunnableC0980 runnableC09802 = new RunnableC0980(this, arrayList14, 1);
                        if (z6 && zIsEmpty6 && zIsEmpty7) {
                            runnableC09802.run();
                        } else {
                            if (z6) {
                                j2 = 0;
                            }
                            long jMax2 = Math.max(!zIsEmpty6 ? this.f1307 : 0L, !zIsEmpty7 ? this.f1310 : 0L) + j2;
                            View view8 = ((AbstractC4793) arrayList14.get(0)).f18236;
                            WeakHashMap weakHashMap6 = AbstractC2746.f10556;
                            view8.postOnAnimationDelayed(runnableC09802, jMax2);
                        }
                    }
                }
                break;
        }
    }

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public void m4413(ArrayList arrayList, AbstractC4793 abstractC4793) {
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            C5075 c5075 = (C5075) arrayList.get(size);
            if (m4415(c5075, abstractC4793) && c5075.f19135 == null && c5075.f19132 == null) {
                arrayList.remove(c5075);
            }
        }
    }

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public void m4414(ArrayList arrayList, AbstractC4793 abstractC4793) {
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            C3715 c3715 = (C3715) arrayList.get(size);
            if (m4416(c3715, abstractC4793) && c3715.f14147 == null && c3715.f14144 == null) {
                arrayList.remove(c3715);
            }
        }
    }

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public boolean m4415(C5075 c5075, AbstractC4793 abstractC4793) {
        if (c5075.f19132 == abstractC4793) {
            c5075.f19132 = null;
        } else {
            if (c5075.f19135 != abstractC4793) {
                return false;
            }
            c5075.f19135 = null;
        }
        View view = abstractC4793.f18236;
        View view2 = abstractC4793.f18236;
        view.setAlpha(1.0f);
        view2.setTranslationX(0.0f);
        view2.setTranslationY(0.0f);
        m1148(abstractC4793);
        return true;
    }

    @Override // defpackage.AbstractC0090
    /* JADX INFO: renamed from: ᵨᵣ */
    public final void mo1149(AbstractC4793 abstractC4793) {
        float f;
        float f2;
        int i = this.f6298;
        ArrayList arrayList = this.f6304;
        ArrayList arrayList2 = this.f6296;
        ArrayList arrayList3 = this.f6301;
        ArrayList arrayList4 = this.f6297;
        ArrayList arrayList5 = this.f6305;
        ArrayList arrayList6 = this.f6308;
        ArrayList arrayList7 = this.f6303;
        ArrayList arrayList8 = this.f6307;
        ArrayList arrayList9 = this.f6302;
        ArrayList arrayList10 = this.f6299;
        ArrayList arrayList11 = this.f6300;
        switch (i) {
            case 0:
                View view = abstractC4793.f18236;
                view.animate().cancel();
                for (int size = arrayList8.size() - 1; size >= 0; size--) {
                    if (((C1586) arrayList8.get(size)).f6376 == abstractC4793) {
                        view.setTranslationY(0.0f);
                        view.setTranslationX(0.0f);
                        m1148(abstractC4793);
                        arrayList8.remove(size);
                    }
                }
                m4413(arrayList7, abstractC4793);
                if (arrayList6.remove(abstractC4793)) {
                    f = 1.0f;
                    view.setAlpha(1.0f);
                    m1148(abstractC4793);
                } else {
                    f = 1.0f;
                }
                if (arrayList5.remove(abstractC4793)) {
                    view.setAlpha(f);
                    m1148(abstractC4793);
                }
                for (int size2 = arrayList9.size() - 1; size2 >= 0; size2--) {
                    ArrayList arrayList12 = (ArrayList) arrayList9.get(size2);
                    m4413(arrayList12, abstractC4793);
                    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) {
                        }
                        if (((C1586) arrayList13.get(size4)).f6376 == abstractC4793) {
                            view.setTranslationY(0.0f);
                            view.setTranslationX(0.0f);
                            m1148(abstractC4793);
                            arrayList13.remove(size4);
                            if (arrayList13.isEmpty()) {
                                arrayList10.remove(size3);
                            }
                        } else {
                            size4--;
                        }
                        break;
                    }
                }
                for (int size5 = arrayList11.size() - 1; size5 >= 0; size5--) {
                    ArrayList arrayList14 = (ArrayList) arrayList11.get(size5);
                    if (arrayList14.remove(abstractC4793)) {
                        view.setAlpha(1.0f);
                        m1148(abstractC4793);
                        if (arrayList14.isEmpty()) {
                            arrayList11.remove(size5);
                        }
                    }
                }
                arrayList4.remove(abstractC4793);
                arrayList3.remove(abstractC4793);
                arrayList2.remove(abstractC4793);
                arrayList.remove(abstractC4793);
                m4417();
                break;
            default:
                View view2 = abstractC4793.f18236;
                view2.animate().cancel();
                for (int size6 = arrayList8.size() - 1; size6 >= 0; size6--) {
                    if (((C1919) arrayList8.get(size6)).f7633 == abstractC4793) {
                        view2.setTranslationY(0.0f);
                        view2.setTranslationX(0.0f);
                        m1148(abstractC4793);
                        arrayList8.remove(size6);
                    }
                }
                m4414(arrayList7, abstractC4793);
                if (arrayList6.remove(abstractC4793)) {
                    f2 = 1.0f;
                    view2.setAlpha(1.0f);
                    m1148(abstractC4793);
                } else {
                    f2 = 1.0f;
                }
                if (arrayList5.remove(abstractC4793)) {
                    view2.setAlpha(f2);
                    m1148(abstractC4793);
                }
                for (int size7 = arrayList9.size() - 1; size7 >= 0; size7--) {
                    ArrayList arrayList15 = (ArrayList) arrayList9.get(size7);
                    m4414(arrayList15, abstractC4793);
                    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) {
                        }
                        if (((C1919) arrayList16.get(size9)).f7633 == abstractC4793) {
                            view2.setTranslationY(0.0f);
                            view2.setTranslationX(0.0f);
                            m1148(abstractC4793);
                            arrayList16.remove(size9);
                            if (arrayList16.isEmpty()) {
                                arrayList10.remove(size8);
                            }
                        } else {
                            size9--;
                        }
                        break;
                    }
                }
                for (int size10 = arrayList11.size() - 1; size10 >= 0; size10--) {
                    ArrayList arrayList17 = (ArrayList) arrayList11.get(size10);
                    if (arrayList17.remove(abstractC4793)) {
                        view2.setAlpha(1.0f);
                        m1148(abstractC4793);
                        if (arrayList17.isEmpty()) {
                            arrayList11.remove(size10);
                        }
                    }
                }
                arrayList4.remove(abstractC4793);
                arrayList3.remove(abstractC4793);
                arrayList2.remove(abstractC4793);
                arrayList.remove(abstractC4793);
                m4417();
                break;
        }
    }

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public boolean m4416(C3715 c3715, AbstractC4793 abstractC4793) {
        if (c3715.f14144 == abstractC4793) {
            c3715.f14144 = null;
        } else {
            if (c3715.f14147 != abstractC4793) {
                return false;
            }
            c3715.f14147 = null;
        }
        View view = abstractC4793.f18236;
        view.setAlpha(1.0f);
        view.setTranslationX(0.0f);
        view.setTranslationY(0.0f);
        m1148(abstractC4793);
        return true;
    }

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final void m4417() {
        switch (this.f6298) {
            case 0:
                if (!mo1150()) {
                    m1151();
                }
                break;
            default:
                if (!mo1150()) {
                    m1151();
                }
                break;
        }
    }

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public void m4418(AbstractC4793 abstractC4793) {
        if (f6294 == null) {
            f6294 = new ValueAnimator().getInterpolator();
        }
        abstractC4793.f18236.animate().setInterpolator(f6294);
        mo1149(abstractC4793);
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final boolean m4419(AbstractC4793 abstractC4793, int i, int i2, int i3, int i4) {
        int i5 = this.f6298;
        ArrayList arrayList = this.f6307;
        switch (i5) {
            case 0:
                View view = abstractC4793.f18236;
                int translationX = i + ((int) view.getTranslationX());
                int translationY = i2 + ((int) abstractC4793.f18236.getTranslationY());
                m4412(abstractC4793);
                int i6 = i3 - translationX;
                int i7 = i4 - translationY;
                if (i6 == 0 && i7 == 0) {
                    m1148(abstractC4793);
                } else {
                    if (i6 != 0) {
                        view.setTranslationX(-i6);
                    }
                    if (i7 != 0) {
                        view.setTranslationY(-i7);
                    }
                    C1586 c1586 = new C1586();
                    c1586.f6376 = abstractC4793;
                    c1586.f6373 = translationX;
                    c1586.f6374 = translationY;
                    c1586.f6377 = i3;
                    c1586.f6375 = i4;
                    arrayList.add(c1586);
                }
                break;
            default:
                View view2 = abstractC4793.f18236;
                int translationX2 = i + ((int) view2.getTranslationX());
                int translationY2 = i2 + ((int) abstractC4793.f18236.getTranslationY());
                m4418(abstractC4793);
                int i8 = i3 - translationX2;
                int i9 = i4 - translationY2;
                if (i8 == 0 && i9 == 0) {
                    m1148(abstractC4793);
                } else {
                    if (i8 != 0) {
                        view2.setTranslationX(-i8);
                    }
                    if (i9 != 0) {
                        view2.setTranslationY(-i9);
                    }
                    C1919 c1919 = new C1919();
                    c1919.f7633 = abstractC4793;
                    c1919.f7630 = translationX2;
                    c1919.f7631 = translationY2;
                    c1919.f7634 = i3;
                    c1919.f7632 = i4;
                    arrayList.add(c1919);
                }
                break;
        }
        return true;
    }

    @Override // defpackage.AbstractC0090
    /* JADX INFO: renamed from: ᵵᵽ */
    public final boolean mo1150() {
        switch (this.f6298) {
            case 0:
                if (!this.f6305.isEmpty() || !this.f6303.isEmpty() || !this.f6307.isEmpty() || !this.f6308.isEmpty() || !this.f6304.isEmpty() || !this.f6297.isEmpty() || !this.f6301.isEmpty() || !this.f6296.isEmpty() || !this.f6299.isEmpty() || !this.f6300.isEmpty() || !this.f6302.isEmpty()) {
                }
                break;
            default:
                if (!this.f6305.isEmpty() || !this.f6303.isEmpty() || !this.f6307.isEmpty() || !this.f6308.isEmpty() || !this.f6304.isEmpty() || !this.f6297.isEmpty() || !this.f6301.isEmpty() || !this.f6296.isEmpty() || !this.f6299.isEmpty() || !this.f6300.isEmpty() || !this.f6302.isEmpty()) {
                }
                break;
        }
        return true;
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final void m4420(ArrayList arrayList) {
        switch (this.f6298) {
            case 0:
                for (int size = arrayList.size() - 1; size >= 0; size--) {
                    ((AbstractC4793) arrayList.get(size)).f18236.animate().cancel();
                }
                break;
            default:
                for (int size2 = arrayList.size() - 1; size2 >= 0; size2--) {
                    ((AbstractC4793) arrayList.get(size2)).f18236.animate().cancel();
                }
                break;
        }
    }

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final boolean m4421(AbstractC4793 abstractC4793, AbstractC4793 abstractC47932, int i, int i2, int i3, int i4) {
        int i5 = this.f6298;
        ArrayList arrayList = this.f6303;
        switch (i5) {
            case 0:
                if (abstractC4793 != abstractC47932) {
                    View view = abstractC4793.f18236;
                    float translationX = view.getTranslationX();
                    float translationY = view.getTranslationY();
                    float alpha = view.getAlpha();
                    m4412(abstractC4793);
                    view.setTranslationX(translationX);
                    view.setTranslationY(translationY);
                    view.setAlpha(alpha);
                    View view2 = abstractC47932.f18236;
                    m4412(abstractC47932);
                    view2.setTranslationX(-((int) ((i3 - i) - translationX)));
                    view2.setTranslationY(-((int) ((i4 - i2) - translationY)));
                    view2.setAlpha(0.0f);
                    C5075 c5075 = new C5075();
                    c5075.f19135 = abstractC4793;
                    c5075.f19132 = abstractC47932;
                    c5075.f19133 = i;
                    c5075.f19136 = i2;
                    c5075.f19134 = i3;
                    c5075.f19137 = i4;
                    arrayList.add(c5075);
                }
                break;
            default:
                if (abstractC4793 != abstractC47932) {
                    View view3 = abstractC4793.f18236;
                    float translationX2 = view3.getTranslationX();
                    float translationY2 = view3.getTranslationY();
                    float alpha2 = view3.getAlpha();
                    m4418(abstractC4793);
                    view3.setTranslationX(translationX2);
                    view3.setTranslationY(translationY2);
                    view3.setAlpha(alpha2);
                    View view4 = abstractC47932.f18236;
                    m4418(abstractC47932);
                    view4.setTranslationX(-((int) ((i3 - i) - translationX2)));
                    view4.setTranslationY(-((int) ((i4 - i2) - translationY2)));
                    view4.setAlpha(0.0f);
                    C3715 c3715 = new C3715();
                    c3715.f14147 = abstractC4793;
                    c3715.f14144 = abstractC47932;
                    c3715.f14145 = i;
                    c3715.f14148 = i2;
                    c3715.f14146 = i3;
                    c3715.f14149 = i4;
                    arrayList.add(c3715);
                }
                break;
        }
        return true;
    }

    @Override // defpackage.AbstractC0090
    /* JADX INFO: renamed from: ᵻˈᵦʼ */
    public final void mo1152() {
        int i = this.f6298;
        ArrayList arrayList = this.f6296;
        ArrayList arrayList2 = this.f6301;
        ArrayList arrayList3 = this.f6304;
        ArrayList arrayList4 = this.f6297;
        ArrayList arrayList5 = this.f6307;
        ArrayList arrayList6 = this.f6308;
        ArrayList arrayList7 = this.f6305;
        ArrayList arrayList8 = this.f6299;
        ArrayList arrayList9 = this.f6300;
        ArrayList arrayList10 = this.f6302;
        ArrayList arrayList11 = this.f6303;
        switch (i) {
            case 0:
                for (int size = arrayList5.size() - 1; size >= 0; size--) {
                    C1586 c1586 = (C1586) arrayList5.get(size);
                    View view = c1586.f6376.f18236;
                    view.setTranslationY(0.0f);
                    view.setTranslationX(0.0f);
                    m1148(c1586.f6376);
                    arrayList5.remove(size);
                }
                for (int size2 = arrayList6.size() - 1; size2 >= 0; size2--) {
                    m1148((AbstractC4793) arrayList6.get(size2));
                    arrayList6.remove(size2);
                }
                for (int size3 = arrayList7.size() - 1; size3 >= 0; size3--) {
                    AbstractC4793 abstractC4793 = (AbstractC4793) arrayList7.get(size3);
                    abstractC4793.f18236.setAlpha(1.0f);
                    m1148(abstractC4793);
                    arrayList7.remove(size3);
                }
                for (int size4 = arrayList11.size() - 1; size4 >= 0; size4--) {
                    C5075 c5075 = (C5075) arrayList11.get(size4);
                    AbstractC4793 abstractC47932 = c5075.f19135;
                    if (abstractC47932 != null) {
                        m4415(c5075, abstractC47932);
                    }
                    AbstractC4793 abstractC47933 = c5075.f19132;
                    if (abstractC47933 != null) {
                        m4415(c5075, abstractC47933);
                    }
                }
                arrayList11.clear();
                if (mo1150()) {
                    for (int size5 = arrayList8.size() - 1; size5 >= 0; size5--) {
                        ArrayList arrayList12 = (ArrayList) arrayList8.get(size5);
                        for (int size6 = arrayList12.size() - 1; size6 >= 0; size6--) {
                            C1586 c15862 = (C1586) arrayList12.get(size6);
                            View view2 = c15862.f6376.f18236;
                            view2.setTranslationY(0.0f);
                            view2.setTranslationX(0.0f);
                            m1148(c15862.f6376);
                            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--) {
                            AbstractC4793 abstractC47934 = (AbstractC4793) arrayList13.get(size8);
                            abstractC47934.f18236.setAlpha(1.0f);
                            m1148(abstractC47934);
                            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--) {
                            C5075 c50752 = (C5075) arrayList14.get(size10);
                            AbstractC4793 abstractC47935 = c50752.f19135;
                            if (abstractC47935 != null) {
                                m4415(c50752, abstractC47935);
                            }
                            AbstractC4793 abstractC47936 = c50752.f19132;
                            if (abstractC47936 != null) {
                                m4415(c50752, abstractC47936);
                            }
                            if (arrayList14.isEmpty()) {
                                arrayList10.remove(arrayList14);
                            }
                        }
                    }
                    m4420(arrayList4);
                    m4420(arrayList3);
                    m4420(arrayList2);
                    m4420(arrayList);
                    m1151();
                    break;
                }
                break;
            default:
                for (int size11 = arrayList5.size() - 1; size11 >= 0; size11--) {
                    C1919 c1919 = (C1919) arrayList5.get(size11);
                    View view3 = c1919.f7633.f18236;
                    view3.setTranslationY(0.0f);
                    view3.setTranslationX(0.0f);
                    m1148(c1919.f7633);
                    arrayList5.remove(size11);
                }
                for (int size12 = arrayList6.size() - 1; size12 >= 0; size12--) {
                    m1148((AbstractC4793) arrayList6.get(size12));
                    arrayList6.remove(size12);
                }
                for (int size13 = arrayList7.size() - 1; size13 >= 0; size13--) {
                    AbstractC4793 abstractC47937 = (AbstractC4793) arrayList7.get(size13);
                    abstractC47937.f18236.setAlpha(1.0f);
                    m1148(abstractC47937);
                    arrayList7.remove(size13);
                }
                for (int size14 = arrayList11.size() - 1; size14 >= 0; size14--) {
                    C3715 c3715 = (C3715) arrayList11.get(size14);
                    AbstractC4793 abstractC47938 = c3715.f14147;
                    if (abstractC47938 != null) {
                        m4416(c3715, abstractC47938);
                    }
                    AbstractC4793 abstractC47939 = c3715.f14144;
                    if (abstractC47939 != null) {
                        m4416(c3715, abstractC47939);
                    }
                }
                arrayList11.clear();
                if (mo1150()) {
                    for (int size15 = arrayList8.size() - 1; size15 >= 0; size15--) {
                        ArrayList arrayList15 = (ArrayList) arrayList8.get(size15);
                        for (int size16 = arrayList15.size() - 1; size16 >= 0; size16--) {
                            C1919 c19192 = (C1919) arrayList15.get(size16);
                            View view4 = c19192.f7633.f18236;
                            view4.setTranslationY(0.0f);
                            view4.setTranslationX(0.0f);
                            m1148(c19192.f7633);
                            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--) {
                            AbstractC4793 abstractC479310 = (AbstractC4793) arrayList16.get(size18);
                            abstractC479310.f18236.setAlpha(1.0f);
                            m1148(abstractC479310);
                            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--) {
                            C3715 c37152 = (C3715) arrayList17.get(size20);
                            AbstractC4793 abstractC479311 = c37152.f14147;
                            if (abstractC479311 != null) {
                                m4416(c37152, abstractC479311);
                            }
                            AbstractC4793 abstractC479312 = c37152.f14144;
                            if (abstractC479312 != null) {
                                m4416(c37152, abstractC479312);
                            }
                            if (arrayList17.isEmpty()) {
                                arrayList10.remove(arrayList17);
                            }
                        }
                    }
                    m4420(arrayList4);
                    m4420(arrayList3);
                    m4420(arrayList2);
                    m4420(arrayList);
                    m1151();
                    break;
                }
                break;
        }
    }
}
