package defpackage;

import android.animation.TimeInterpolator;
import android.util.AndroidRuntimeException;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.Arrays;

/* JADX INFO: renamed from: ˁᵠᵜ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public class C0737 extends AbstractC3629 {

    /* JADX INFO: renamed from: ˉˆᵗ, reason: contains not printable characters */
    public int f3323;

    /* JADX INFO: renamed from: ᵜᵤ, reason: contains not printable characters */
    public AbstractC3629[] f3326;

    /* JADX INFO: renamed from: ᵡᵶᵬʤ, reason: contains not printable characters */
    public ArrayList f3327 = new ArrayList();

    /* JADX INFO: renamed from: ˋʿᐧ, reason: contains not printable characters */
    public boolean f3324 = true;

    /* JADX INFO: renamed from: ˁᵺˈ, reason: contains not printable characters */
    public boolean f3322 = false;

    /* JADX INFO: renamed from: ˋᵯᵩ, reason: contains not printable characters */
    public int f3325 = 0;

    @Override // defpackage.AbstractC3629
    public final void cancel() {
        super.cancel();
        AbstractC3629[] abstractC3629ArrM2645 = m2645();
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            abstractC3629ArrM2645[i].cancel();
        }
        Arrays.fill(abstractC3629ArrM2645, (Object) null);
        this.f3326 = abstractC3629ArrM2645;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ʽᵡᵢᵾ, reason: contains not printable characters */
    public final void mo2623() {
        this.f3325 |= 2;
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC3629) this.f3327.get(i)).mo2623();
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public final void mo2624() {
        this.f13767 = 0L;
        int i = 0;
        C1474 c1474 = new C1474(this, i);
        while (i < this.f3327.size()) {
            AbstractC3629 abstractC3629 = (AbstractC3629) this.f3327.get(i);
            abstractC3629.m8191(c1474);
            abstractC3629.mo2624();
            long j = abstractC3629.f13767;
            boolean z = this.f3324;
            long j2 = this.f13767;
            if (z) {
                this.f13767 = Math.max(j2, j);
            } else {
                abstractC3629.f13760 = j2;
                this.f13767 = j2 + j;
            }
            i++;
        }
    }

    /* JADX INFO: renamed from: ʿᵿʽᵞ, reason: contains not printable characters */
    public final void m2625(int i) {
        if (i == 0) {
            this.f3324 = true;
        } else {
            if (i != 1) {
                throw new AndroidRuntimeException(AbstractC2704.m6517(i, "Invalid parameter for TransitionSet ordering: "));
            }
            this.f3324 = false;
        }
    }

    /* JADX INFO: renamed from: ˀᵗ, reason: contains not printable characters */
    public final AbstractC3629 m2626(int i) {
        if (i < 0 || i >= this.f3327.size()) {
            return null;
        }
        return (AbstractC3629) this.f3327.get(i);
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public final void mo2627() {
        ArrayList arrayList;
        if (this.f3327.isEmpty()) {
            m8197();
            m8198();
            return;
        }
        C1474 c1474 = new C1474();
        c1474.f5993 = this;
        ArrayList arrayList2 = this.f3327;
        int size = arrayList2.size();
        int i = 0;
        int i2 = 0;
        while (i2 < size) {
            Object obj = arrayList2.get(i2);
            i2++;
            ((AbstractC3629) obj).m8191(c1474);
        }
        this.f3323 = this.f3327.size();
        if (this.f3324) {
            ArrayList arrayList3 = this.f3327;
            int size2 = arrayList3.size();
            while (i < size2) {
                Object obj2 = arrayList3.get(i);
                i++;
                ((AbstractC3629) obj2).mo2627();
            }
            return;
        }
        int i3 = 1;
        while (true) {
            int size3 = this.f3327.size();
            arrayList = this.f3327;
            if (i3 >= size3) {
                break;
            }
            ((AbstractC3629) arrayList.get(i3 - 1)).m8191(new C1474((AbstractC3629) this.f3327.get(i3), 2));
            i3++;
        }
        AbstractC3629 abstractC3629 = (AbstractC3629) arrayList.get(0);
        if (abstractC3629 != null) {
            abstractC3629.mo2627();
        }
    }

    /* JADX INFO: renamed from: ˁʢᵛ, reason: contains not printable characters */
    public final void m2628(AbstractC3629 abstractC3629) {
        this.f3327.add(abstractC3629);
        abstractC3629.f13773 = this;
        long j = this.f13774;
        if (j >= 0) {
            abstractC3629.mo2634(j);
        }
        if ((this.f3325 & 1) != 0) {
            abstractC3629.mo2649(this.f13780);
        }
        if ((this.f3325 & 2) != 0) {
            abstractC3629.mo2623();
        }
        if ((this.f3325 & 4) != 0) {
            abstractC3629.mo2639(this.f13777);
        }
        if ((this.f3325 & 8) != 0) {
            abstractC3629.mo2642(this.f13779);
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    public final void mo2629(View view) {
        super.mo2629(view);
        AbstractC3629[] abstractC3629ArrM2645 = m2645();
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            abstractC3629ArrM2645[i].mo2629(view);
        }
        Arrays.fill(abstractC3629ArrM2645, (Object) null);
        this.f3326 = abstractC3629ArrM2645;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public final void mo2630(long j) {
        this.f13776 = j;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public final void mo2631(ViewGroup viewGroup) {
        super.mo2631(viewGroup);
        AbstractC3629[] abstractC3629ArrM2645 = m2645();
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            abstractC3629ArrM2645[i].mo2631(viewGroup);
        }
        Arrays.fill(abstractC3629ArrM2645, (Object) null);
        this.f3326 = abstractC3629ArrM2645;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public final void mo2632(View view) {
        for (int i = 0; i < this.f3327.size(); i++) {
            ((AbstractC3629) this.f3327.get(i)).mo2632(view);
        }
        this.f13783.remove(view);
    }

    /* JADX INFO: renamed from: ˊˌˊ, reason: contains not printable characters */
    public final void m2633(ᵹːˁ r1) {
        super.m8191(r1);
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final void mo2635(C2214 c2214) {
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC3629) this.f3327.get(i)).mo2635(c2214);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:55:0x00c7  */
    /* JADX WARN: Removed duplicated region for block: B:74:? A[RETURN, SYNTHETIC] */
    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void mo2636(long j, long j2) {
        long j3;
        long j4 = this.f13767;
        long j5 = 0;
        if (this.f13773 != null) {
            if (j < 0 && j2 < 0) {
                return;
            }
            if (j > j4 && j2 > j4) {
                return;
            }
        }
        boolean z = j < j2;
        if ((j >= 0 && j2 < 0) || (j <= j4 && j2 > j4)) {
            this.f13782 = false;
            m8203(this, ᵷᵝˎ.ᵜᵪʾ, z);
        }
        if (!this.f3324) {
            int size = 1;
            while (true) {
                int size2 = this.f3327.size();
                ArrayList arrayList = this.f3327;
                if (size >= size2) {
                    size = arrayList.size();
                    break;
                } else if (((AbstractC3629) arrayList.get(size)).f13760 > j2) {
                    break;
                } else {
                    size++;
                }
            }
            int i = size - 1;
            if (j >= j2) {
                while (i < this.f3327.size()) {
                    AbstractC3629 abstractC3629 = (AbstractC3629) this.f3327.get(i);
                    long j6 = abstractC3629.f13760;
                    j3 = j5;
                    long j7 = j - j6;
                    if (j7 < j3) {
                        break;
                    }
                    abstractC3629.mo2636(j7, j2 - j6);
                    i++;
                    j5 = j3;
                }
            } else {
                j3 = 0;
                while (i >= 0) {
                    AbstractC3629 abstractC36292 = (AbstractC3629) this.f3327.get(i);
                    long j8 = abstractC36292.f13760;
                    long j9 = j - j8;
                    abstractC36292.mo2636(j9, j2 - j8);
                    if (j9 >= 0) {
                        break;
                    } else {
                        i--;
                    }
                }
            }
            if (this.f13773 == null) {
                if ((j <= j4 || j2 > j4) && (j >= 0 || j2 < j3)) {
                    return;
                }
                if (j > j4) {
                    this.f13782 = true;
                }
                m8203(this, ᵷᵝˎ.ᵔᵖᵹᵫ, z);
                return;
            }
            return;
        }
        for (int i2 = 0; i2 < this.f3327.size(); i2++) {
            ((AbstractC3629) this.f3327.get(i2)).mo2636(j, j2);
        }
        j3 = j5;
        if (this.f13773 == null) {
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public final void mo2637(ViewGroup viewGroup, C4055 c4055, C4055 c40552, ArrayList arrayList, ArrayList arrayList2) {
        long j = this.f13776;
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            AbstractC3629 abstractC3629 = (AbstractC3629) this.f3327.get(i);
            if (j > 0 && (this.f3324 || i == 0)) {
                long j2 = abstractC3629.f13776;
                if (j2 > 0) {
                    abstractC3629.mo2630(j2 + j);
                } else {
                    abstractC3629.mo2630(j);
                }
            }
            abstractC3629.mo2637(viewGroup, c4055, c40552, arrayList, arrayList2);
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˏᵩʨ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final void mo2634(long j) {
        ArrayList arrayList;
        this.f13774 = j;
        if (j < 0 || (arrayList = this.f3327) == null) {
            return;
        }
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC3629) this.f3327.get(i)).mo2634(j);
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public final void mo2639(ˑᵤʽˏ r3) {
        super.mo2639(r3);
        this.f3325 |= 4;
        if (this.f3327 != null) {
            for (int i = 0; i < this.f3327.size(); i++) {
                ((AbstractC3629) this.f3327.get(i)).mo2639(r3);
            }
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public final void mo2640(View view) {
        super.mo2640(view);
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC3629) this.f3327.get(i)).mo2640(view);
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵛˀˊ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final void mo2649(TimeInterpolator timeInterpolator) {
        this.f3325 |= 1;
        ArrayList arrayList = this.f3327;
        if (arrayList != null) {
            int size = arrayList.size();
            for (int i = 0; i < size; i++) {
                ((AbstractC3629) this.f3327.get(i)).mo2649(timeInterpolator);
            }
        }
        this.f13780 = timeInterpolator;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵛˑﹳ, reason: contains not printable characters */
    public final void mo2642(ᵷˆᵣ r4) {
        this.f13779 = r4;
        this.f3325 |= 8;
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC3629) this.f3327.get(i)).mo2642(r4);
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public final String mo2643(String str) {
        String strMo2643 = super.mo2643(str);
        for (int i = 0; i < this.f3327.size(); i++) {
            strMo2643 = strMo2643 + "\n" + ((AbstractC3629) this.f3327.get(i)).mo2643(str.concat("  "));
        }
        return strMo2643;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public final AbstractC3629 mo2644(InterfaceC0119 interfaceC0119) {
        super.mo2644(interfaceC0119);
        return this;
    }

    /* JADX INFO: renamed from: ᵡᵶ, reason: contains not printable characters */
    public final AbstractC3629[] m2645() {
        AbstractC3629[] abstractC3629Arr = this.f3326;
        this.f3326 = null;
        if (abstractC3629Arr == null) {
            abstractC3629Arr = new AbstractC3629[this.f3327.size()];
        }
        return (AbstractC3629[]) this.f3327.toArray(abstractC3629Arr);
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final boolean mo2646() {
        for (int i = 0; i < this.f3327.size(); i++) {
            if (((AbstractC3629) this.f3327.get(i)).mo2646()) {
                return true;
            }
        }
        return false;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final AbstractC3629 clone() {
        C0737 c0737 = (C0737) super.clone();
        c0737.f3327 = new ArrayList();
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            AbstractC3629 abstractC3629Clone = ((AbstractC3629) this.f3327.get(i)).clone();
            c0737.f3327.add(abstractC3629Clone);
            abstractC3629Clone.f13773 = c0737;
        }
        return c0737;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final boolean mo2648() {
        int size = this.f3327.size();
        for (int i = 0; i < size; i++) {
            if (!((AbstractC3629) this.f3327.get(i)).mo2648()) {
                return false;
            }
        }
        return true;
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final void mo2650(View view) {
        for (int i = 0; i < this.f3327.size(); i++) {
            ((AbstractC3629) this.f3327.get(i)).mo2650(view);
        }
        this.f13783.add(view);
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵻʽᵯ */
    public final void mo1269(C2214 c2214) {
        View view = c2214.f8777;
        if (m8192(view)) {
            ArrayList arrayList = this.f3327;
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                AbstractC3629 abstractC3629 = (AbstractC3629) obj;
                if (abstractC3629.m8192(view)) {
                    abstractC3629.mo1269(c2214);
                    c2214.f8778.add(abstractC3629);
                }
            }
        }
    }

    @Override // defpackage.AbstractC3629
    /* JADX INFO: renamed from: ᵻˈᵦʼ */
    public final void mo1270(C2214 c2214) {
        View view = c2214.f8777;
        if (m8192(view)) {
            ArrayList arrayList = this.f3327;
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                AbstractC3629 abstractC3629 = (AbstractC3629) obj;
                if (abstractC3629.m8192(view)) {
                    abstractC3629.mo1270(c2214);
                    c2214.f8778.add(abstractC3629);
                }
            }
        }
    }
}
