package androidx.fragment.app;

import android.animation.Animator;
import android.view.animation.Animation;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;

/* JADX INFO: loaded from: classes.dex */
public final class M {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Cloneable f11527a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Object f11528b;

    public M(AbstractC1050g0 abstractC1050g0) {
        this.f11527a = new CopyOnWriteArrayList();
        this.f11528b = abstractC1050g0;
    }

    public void a(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.a(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void b(boolean z6) {
        AbstractC1050g0 abstractC1050g0 = (AbstractC1050g0) this.f11528b;
        L l = abstractC1050g0.f11623u.f11540b;
        G g6 = abstractC1050g0.f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.b(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void c(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.c(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void d(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.d(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void e(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.e(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void f(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.f(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void g(boolean z6) {
        AbstractC1050g0 abstractC1050g0 = (AbstractC1050g0) this.f11528b;
        L l = abstractC1050g0.f11623u.f11540b;
        G g6 = abstractC1050g0.f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.g(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void h(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.h(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void i(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.i(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void j(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.j(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void k(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.k(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void l(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.l(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void m(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.m(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public void n(boolean z6) {
        G g6 = ((AbstractC1050g0) this.f11528b).f11625w;
        if (g6 != null) {
            g6.getParentFragmentManager().f11615m.n(true);
        }
        Iterator it = ((CopyOnWriteArrayList) this.f11527a).iterator();
        if (it.hasNext()) {
            if (it.next() != null) {
                throw new ClassCastException();
            }
            if (!z6) {
                throw null;
            }
            throw null;
        }
    }

    public M(Animation animation) {
        this.f11527a = animation;
        this.f11528b = null;
    }

    public M(Animator animator) {
        this.f11527a = null;
        this.f11528b = animator;
    }
}
