package androidx.fragment.app;

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

/* renamed from: androidx.fragment.app.l */
/* loaded from: classes.dex */
public class C0322l {

    /* renamed from: a */
    public final CopyOnWriteArrayList<C0323a> f1335a = new CopyOnWriteArrayList<>();

    /* renamed from: b */
    public final AbstractC0330m f1336b;

    /* renamed from: androidx.fragment.app.l$a */
    /* loaded from: classes.dex */
    public static final class C0323a {

        /* renamed from: a */
        public final boolean f1337a;
    }

    public C0322l(AbstractC0330m abstractC0330m) {
        this.f1336b = abstractC0330m;
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: a */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4067a(Fragment fragment, Bundle bundle, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4067a(fragment, bundle, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0029  */
    /* renamed from: b */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4066b(Fragment fragment, boolean z) {
        this.f1336b.m3961p0().m4075k();
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4066b(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: c */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4065c(Fragment fragment, Bundle bundle, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4065c(fragment, bundle, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: d */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4064d(Fragment fragment, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4064d(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: e */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4063e(Fragment fragment, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4063e(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: f */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4062f(Fragment fragment, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4062f(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0029  */
    /* renamed from: g */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4061g(Fragment fragment, boolean z) {
        this.f1336b.m3961p0().m4075k();
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4061g(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: h */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4060h(Fragment fragment, Bundle bundle, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4060h(fragment, bundle, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: i */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4059i(Fragment fragment, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4059i(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: j */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4058j(Fragment fragment, Bundle bundle, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4058j(fragment, bundle, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: k */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4057k(Fragment fragment, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4057k(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: l */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4056l(Fragment fragment, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4056l(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: m */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4055m(Fragment fragment, View view, Bundle bundle, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4055m(fragment, view, bundle, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x0020  */
    /* renamed from: n */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void m4054n(Fragment fragment, boolean z) {
        Fragment m3955s0 = this.f1336b.m3955s0();
        if (m3955s0 != null) {
            m3955s0.m4284D().m3957r0().m4054n(fragment, true);
        }
        Iterator<C0323a> it = this.f1335a.iterator();
        while (it.hasNext()) {
            C0323a next = it.next();
            if (!z || next.f1337a) {
                next.getClass();
                throw null;
            }
            while (it.hasNext()) {
            }
        }
    }
}