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;

/* renamed from: ˑˑ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public class C2058 extends AbstractC0140 {

    /* renamed from: ʾᵻᵭٴ, reason: contains not printable characters */
    public AbstractC0140[] f8224;

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public ArrayList f8225 = new ArrayList();

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public boolean f8226 = true;

    /* renamed from: ˌᵹᵨˑ, reason: contains not printable characters */
    public boolean f8227 = false;

    /* renamed from: ᵠᵿː, reason: contains not printable characters */
    public int f8228 = 0;

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public int f8229;

    @Override // defpackage.AbstractC0140
    public final void cancel() {
        super.cancel();
        AbstractC0140[] abstractC0140ArrM5652 = m5652();
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            abstractC0140ArrM5652[i].cancel();
        }
        Arrays.fill(abstractC0140ArrM5652, (Object) null);
        this.f8224 = abstractC0140ArrM5652;
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˀᵗᵩ */
    public final void mo1251(long j) {
        this.f1510 = j;
    }

    /* JADX WARN: Removed duplicated region for block: B:55:0x00c7  */
    /* JADX WARN: Removed duplicated region for block: B:74:? A[RETURN, SYNTHETIC] */
    @Override // defpackage.AbstractC0140
    /* renamed from: ˁˑᵰ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void mo1252(long r20, long r22) {
        /*
            Method dump skipped, instructions count: 223
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C2058.mo1252(long, long):void");
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˊʽˎ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final void mo1287(long j) {
        ArrayList arrayList;
        this.f1519 = j;
        if (j < 0 || (arrayList = this.f8225) == null) {
            return;
        }
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC0140) this.f8225.get(i)).mo1287(j);
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˊᵸˊ */
    public final void mo1254() {
        this.f8228 |= 2;
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC0140) this.f8225.get(i)).mo1254();
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˌᵜᵹᵩ */
    public final AbstractC0140 clone() {
        C2058 c2058 = (C2058) super.clone();
        c2058.f8225 = new ArrayList();
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            AbstractC0140 abstractC0140Clone = ((AbstractC0140) this.f8225.get(i)).clone();
            c2058.f8225.add(abstractC0140Clone);
            abstractC0140Clone.f1500 = c2058;
        }
        return c2058;
    }

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public final void m5647(ˋˋʠ r1) {
        super.m1277(r1);
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˎˑː */
    public final void mo1257(View view) {
        super.mo1257(view);
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC0140) this.f8225.get(i)).mo1257(view);
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˎᵬˀ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final void mo1267(TimeInterpolator timeInterpolator) {
        this.f8228 |= 1;
        ArrayList arrayList = this.f8225;
        if (arrayList != null) {
            int size = arrayList.size();
            for (int i = 0; i < size; i++) {
                ((AbstractC0140) this.f8225.get(i)).mo1267(timeInterpolator);
            }
        }
        this.f1518 = timeInterpolator;
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˏˋٴ */
    public final void mo1258(C2886 c2886) {
        View view = c2886.f11187;
        if (m1250(view)) {
            ArrayList arrayList = this.f8225;
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                AbstractC0140 abstractC0140 = (AbstractC0140) obj;
                if (abstractC0140.m1250(view)) {
                    abstractC0140.mo1258(c2886);
                    c2886.f11185.add(abstractC0140);
                }
            }
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ˑᵝﹳᵜ */
    public final void mo1259(ˎᵖᵗ r3) {
        super.mo1259(r3);
        this.f8228 |= 4;
        if (this.f8225 != null) {
            for (int i = 0; i < this.f8225.size(); i++) {
                ((AbstractC0140) this.f8225.get(i)).mo1259(r3);
            }
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᐧﾞ */
    public final void mo1262(View view) {
        super.mo1262(view);
        AbstractC0140[] abstractC0140ArrM5652 = m5652();
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            abstractC0140ArrM5652[i].mo1262(view);
        }
        Arrays.fill(abstractC0140ArrM5652, (Object) null);
        this.f8224 = abstractC0140ArrM5652;
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵙᵢᵨᵳ */
    public final void mo1263(ˉᵜˆ r4) {
        this.f1497 = r4;
        this.f8228 |= 8;
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC0140) this.f8225.get(i)).mo1263(r4);
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵛˈᵤ */
    public final String mo1264(String str) {
        String strMo1264 = super.mo1264(str);
        for (int i = 0; i < this.f8225.size(); i++) {
            strMo1264 = strMo1264 + "\n" + ((AbstractC0140) this.f8225.get(i)).mo1264(str.concat("  "));
        }
        return strMo1264;
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵝᵵᵺ */
    public final void mo1265(C2886 c2886) {
        View view = c2886.f11187;
        if (m1250(view)) {
            ArrayList arrayList = this.f8225;
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                AbstractC0140 abstractC0140 = (AbstractC0140) obj;
                if (abstractC0140.m1250(view)) {
                    abstractC0140.mo1265(c2886);
                    c2886.f11185.add(abstractC0140);
                }
            }
        }
    }

    /* renamed from: ᵡᵶᵡ, reason: contains not printable characters */
    public final AbstractC0140 m5649(int i) {
        if (i < 0 || i >= this.f8225.size()) {
            return null;
        }
        return (AbstractC0140) this.f8225.get(i);
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵤᵙᵷ */
    public final boolean mo1270() {
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            if (!((AbstractC0140) this.f8225.get(i)).mo1270()) {
                return false;
            }
        }
        return true;
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵧـˌᵎ */
    public final AbstractC0140 mo1271(InterfaceC4048 interfaceC4048) {
        super.mo1271(interfaceC4048);
        return this;
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵪʩ */
    public final void mo1273(ViewGroup viewGroup, C0030 c0030, C0030 c00302, ArrayList arrayList, ArrayList arrayList2) {
        long j = this.f1510;
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            AbstractC0140 abstractC0140 = (AbstractC0140) this.f8225.get(i);
            if (j > 0 && (this.f8226 || i == 0)) {
                long j2 = abstractC0140.f1510;
                if (j2 > 0) {
                    abstractC0140.mo1251(j2 + j);
                } else {
                    abstractC0140.mo1251(j);
                }
            }
            abstractC0140.mo1273(viewGroup, c0030, c00302, arrayList, arrayList2);
        }
    }

    /* renamed from: ᵫᵮʾ, reason: contains not printable characters */
    public final void m5650(int i) {
        if (i == 0) {
            this.f8226 = true;
        } else {
            if (i != 1) {
                throw new AndroidRuntimeException(AbstractC2990.m7313(i, "Invalid parameter for TransitionSet ordering: "));
            }
            this.f8226 = false;
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵮᵠـˌ */
    public final void mo1274() {
        this.f1499 = 0L;
        int i = 0;
        C4201 c4201 = new C4201(this, i);
        while (i < this.f8225.size()) {
            AbstractC0140 abstractC0140 = (AbstractC0140) this.f8225.get(i);
            abstractC0140.m1277(c4201);
            abstractC0140.mo1274();
            long j = abstractC0140.f1499;
            boolean z = this.f8226;
            long j2 = this.f1499;
            if (z) {
                this.f1499 = Math.max(j2, j);
            } else {
                abstractC0140.f1508 = j2;
                this.f1499 = j2 + j;
            }
            i++;
        }
    }

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public final void m5651(AbstractC0140 abstractC0140) {
        this.f8225.add(abstractC0140);
        abstractC0140.f1500 = this;
        long j = this.f1519;
        if (j >= 0) {
            abstractC0140.mo1287(j);
        }
        if ((this.f8228 & 1) != 0) {
            abstractC0140.mo1267(this.f1518);
        }
        if ((this.f8228 & 2) != 0) {
            abstractC0140.mo1254();
        }
        if ((this.f8228 & 4) != 0) {
            abstractC0140.mo1259(this.f1505);
        }
        if ((this.f8228 & 8) != 0) {
            abstractC0140.mo1263(this.f1497);
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵶʔᵢˊ */
    public final void mo1278() {
        ArrayList arrayList;
        if (this.f8225.isEmpty()) {
            m1253();
            m1276();
            return;
        }
        C4201 c4201 = new C4201();
        c4201.f15695 = this;
        ArrayList arrayList2 = this.f8225;
        int size = arrayList2.size();
        int i = 0;
        int i2 = 0;
        while (i2 < size) {
            Object obj = arrayList2.get(i2);
            i2++;
            ((AbstractC0140) obj).m1277(c4201);
        }
        this.f8229 = this.f8225.size();
        if (this.f8226) {
            ArrayList arrayList3 = this.f8225;
            int size2 = arrayList3.size();
            while (i < size2) {
                Object obj2 = arrayList3.get(i);
                i++;
                ((AbstractC0140) obj2).mo1278();
            }
            return;
        }
        int i3 = 1;
        while (true) {
            int size3 = this.f8225.size();
            arrayList = this.f8225;
            if (i3 >= size3) {
                break;
            }
            ((AbstractC0140) arrayList.get(i3 - 1)).m1277(new C4201((AbstractC0140) this.f8225.get(i3), 2));
            i3++;
        }
        AbstractC0140 abstractC0140 = (AbstractC0140) arrayList.get(0);
        if (abstractC0140 != null) {
            abstractC0140.mo1278();
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵸʓᵠ */
    public final void mo1280(ViewGroup viewGroup) {
        super.mo1280(viewGroup);
        AbstractC0140[] abstractC0140ArrM5652 = m5652();
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            abstractC0140ArrM5652[i].mo1280(viewGroup);
        }
        Arrays.fill(abstractC0140ArrM5652, (Object) null);
        this.f8224 = abstractC0140ArrM5652;
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵹᵝᵶ */
    public final void mo1282(C2886 c2886) {
        int size = this.f8225.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC0140) this.f8225.get(i)).mo1282(c2886);
        }
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵺʙ */
    public final void mo1283(View view) {
        for (int i = 0; i < this.f8225.size(); i++) {
            ((AbstractC0140) this.f8225.get(i)).mo1283(view);
        }
        this.f1509.remove(view);
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵻᵢﹳᵰ */
    public final void mo1284(View view) {
        for (int i = 0; i < this.f8225.size(); i++) {
            ((AbstractC0140) this.f8225.get(i)).mo1284(view);
        }
        this.f1509.add(view);
    }

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public final AbstractC0140[] m5652() {
        AbstractC0140[] abstractC0140Arr = this.f8224;
        this.f8224 = null;
        if (abstractC0140Arr == null) {
            abstractC0140Arr = new AbstractC0140[this.f8225.size()];
        }
        return (AbstractC0140[]) this.f8225.toArray(abstractC0140Arr);
    }

    @Override // defpackage.AbstractC0140
    /* renamed from: ᵾᵬ */
    public final boolean mo1285() {
        for (int i = 0; i < this.f8225.size(); i++) {
            if (((AbstractC0140) this.f8225.get(i)).mo1285()) {
                return true;
            }
        }
        return false;
    }
}
