package androidx.fragment.app;

import android.os.Bundle;
import android.view.View;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;

/* JADX INFO: loaded from: classes.dex */
class r {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final CopyOnWriteArrayList f5176a = new CopyOnWriteArrayList();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final x f5177b;

    r(x xVar) {
        this.f5177b = xVar;
    }

    void a(Fragment fragment, Bundle bundle, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().a(fragment, bundle, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void b(Fragment fragment, boolean z3) {
        this.f5177b.t0().k();
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().b(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void c(Fragment fragment, Bundle bundle, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().c(fragment, bundle, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void d(Fragment fragment, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().d(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void e(Fragment fragment, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().e(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void f(Fragment fragment, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().f(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void g(Fragment fragment, boolean z3) {
        this.f5177b.t0().k();
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().g(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void h(Fragment fragment, Bundle bundle, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().h(fragment, bundle, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void i(Fragment fragment, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().i(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void j(Fragment fragment, Bundle bundle, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().j(fragment, bundle, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void k(Fragment fragment, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().k(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void l(Fragment fragment, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().l(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void m(Fragment fragment, View view, Bundle bundle, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().m(fragment, view, bundle, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }

    void n(Fragment fragment, boolean z3) {
        Fragment fragmentW0 = this.f5177b.w0();
        if (fragmentW0 != null) {
            fragmentW0.E().v0().n(fragment, true);
        }
        Iterator it = this.f5176a.iterator();
        if (it.hasNext()) {
            androidx.activity.result.d.a(it.next());
            if (!z3) {
                throw null;
            }
            throw null;
        }
    }
}
