package defpackage;

import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Looper;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.FragmentContainerView;
import ar.tvplayer.tv.R;
import ar.tvplayer.tv.ui.MainActivity;
import j$.util.DesugarCollections;
import j$.util.Objects;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicInteger;

/* JADX INFO: renamed from: ˁʖ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC0651 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public boolean f3045;

    /* JADX INFO: renamed from: ʽᵡᵢᵾ, reason: contains not printable characters */
    public C0995 f3046;

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public C2710 f3047;

    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public boolean f3048;

    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    public boolean f3049;

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public final C3324 f3052;

    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public boolean f3053;

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public final C3324 f3054;

    /* JADX INFO: renamed from: ˊᵡᵗʨ, reason: contains not printable characters */
    public boolean f3055;

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public final C3324 f3056;

    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public boolean f3058;

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public final C3324 f3062;

    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public ArrayList f3064;

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public C2710 f3065;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public C1734 f3066;

    /* JADX INFO: renamed from: ᵛˑﹳ, reason: contains not printable characters */
    public ArrayList f3067;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public ArrayList f3072;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public ˀᵳˎᵹ f3073;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public AbstractComponentCallbacksC3393 f3076;

    /* JADX INFO: renamed from: ᵵᵬᵽ, reason: contains not printable characters */
    public ArrayList f3080;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public C4790 f3081;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public AbstractComponentCallbacksC3393 f3082;

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public C2710 f3085;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final ArrayList f3079 = new ArrayList();

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final ᵥᵵᵶᵩ f3063 = new ᵥᵵᵶᵩ(12);

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public ArrayList f3084 = new ArrayList();

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final LayoutInflaterFactory2C4191 f3087 = new LayoutInflaterFactory2C4191(this);

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public C0586 f3057 = null;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public boolean f3086 = false;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final C2610 f3078 = new C2610(this);

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final AtomicInteger f3083 = new AtomicInteger();

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final Map f3075 = DesugarCollections.synchronizedMap(new HashMap());

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public final Map f3069 = DesugarCollections.synchronizedMap(new HashMap());

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public final Map f3059 = DesugarCollections.synchronizedMap(new HashMap());

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public final ArrayList f3074 = new ArrayList();

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public final ˊˊᵞᵽ f3070 = new ˊˊᵞᵽ(this);

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public final CopyOnWriteArrayList f3077 = new CopyOnWriteArrayList();

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final C4628 f3060 = new C4628(this);

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public int f3068 = -1;

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public final C2064 f3050 = new C2064(this);

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public final ˉᵠﹳᵘ f3061 = new ˉᵠﹳᵘ(25);

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public ArrayDeque f3071 = new ArrayDeque();

    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public final RunnableC1500 f3051 = new RunnableC1500(12, this);

    /* JADX WARN: Type inference failed for: r0v17, types: [ᵢᵿˋ] */
    /* JADX WARN: Type inference failed for: r0v18, types: [ᵢᵿˋ] */
    /* JADX WARN: Type inference failed for: r0v19, types: [ᵢᵿˋ] */
    /* JADX WARN: Type inference failed for: r0v20, types: [ᵢᵿˋ] */
    public AbstractC0651() {
        final int i = 0;
        this.f3054 = new InterfaceC1298(this) { // from class: ᵢᵿˋ

            /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
            public final /* synthetic */ AbstractC0651 f12773;

            {
                this.f12773 = this;
            }

            @Override // defpackage.InterfaceC1298
            public final void accept(Object obj) {
                int i2 = i;
                AbstractC0651 abstractC0651 = this.f12773;
                switch (i2) {
                    case 0:
                        Configuration configuration = (Configuration) obj;
                        if (abstractC0651.m2371()) {
                            abstractC0651.m2378(false, configuration);
                        }
                        break;
                    case 1:
                        Integer num = (Integer) obj;
                        if (abstractC0651.m2371() && num.intValue() == 80) {
                            abstractC0651.m2367(false);
                            break;
                        }
                        break;
                    case 2:
                        C0894 c0894 = (C0894) obj;
                        if (abstractC0651.m2371()) {
                            boolean z = c0894.f3955;
                            abstractC0651.m2380(false);
                        }
                        break;
                    default:
                        C3648 c3648 = (C3648) obj;
                        if (abstractC0651.m2371()) {
                            abstractC0651.m2349(c3648.f13859, false);
                        }
                        break;
                }
            }
        };
        final int i2 = 1;
        this.f3052 = new InterfaceC1298(this) { // from class: ᵢᵿˋ

            /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
            public final /* synthetic */ AbstractC0651 f12773;

            {
                this.f12773 = this;
            }

            @Override // defpackage.InterfaceC1298
            public final void accept(Object obj) {
                int i22 = i2;
                AbstractC0651 abstractC0651 = this.f12773;
                switch (i22) {
                    case 0:
                        Configuration configuration = (Configuration) obj;
                        if (abstractC0651.m2371()) {
                            abstractC0651.m2378(false, configuration);
                        }
                        break;
                    case 1:
                        Integer num = (Integer) obj;
                        if (abstractC0651.m2371() && num.intValue() == 80) {
                            abstractC0651.m2367(false);
                            break;
                        }
                        break;
                    case 2:
                        C0894 c0894 = (C0894) obj;
                        if (abstractC0651.m2371()) {
                            boolean z = c0894.f3955;
                            abstractC0651.m2380(false);
                        }
                        break;
                    default:
                        C3648 c3648 = (C3648) obj;
                        if (abstractC0651.m2371()) {
                            abstractC0651.m2349(c3648.f13859, false);
                        }
                        break;
                }
            }
        };
        final int i3 = 2;
        this.f3062 = new InterfaceC1298(this) { // from class: ᵢᵿˋ

            /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
            public final /* synthetic */ AbstractC0651 f12773;

            {
                this.f12773 = this;
            }

            @Override // defpackage.InterfaceC1298
            public final void accept(Object obj) {
                int i22 = i3;
                AbstractC0651 abstractC0651 = this.f12773;
                switch (i22) {
                    case 0:
                        Configuration configuration = (Configuration) obj;
                        if (abstractC0651.m2371()) {
                            abstractC0651.m2378(false, configuration);
                        }
                        break;
                    case 1:
                        Integer num = (Integer) obj;
                        if (abstractC0651.m2371() && num.intValue() == 80) {
                            abstractC0651.m2367(false);
                            break;
                        }
                        break;
                    case 2:
                        C0894 c0894 = (C0894) obj;
                        if (abstractC0651.m2371()) {
                            boolean z = c0894.f3955;
                            abstractC0651.m2380(false);
                        }
                        break;
                    default:
                        C3648 c3648 = (C3648) obj;
                        if (abstractC0651.m2371()) {
                            abstractC0651.m2349(c3648.f13859, false);
                        }
                        break;
                }
            }
        };
        final int i4 = 3;
        this.f3056 = new InterfaceC1298(this) { // from class: ᵢᵿˋ

            /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
            public final /* synthetic */ AbstractC0651 f12773;

            {
                this.f12773 = this;
            }

            @Override // defpackage.InterfaceC1298
            public final void accept(Object obj) {
                int i22 = i4;
                AbstractC0651 abstractC0651 = this.f12773;
                switch (i22) {
                    case 0:
                        Configuration configuration = (Configuration) obj;
                        if (abstractC0651.m2371()) {
                            abstractC0651.m2378(false, configuration);
                        }
                        break;
                    case 1:
                        Integer num = (Integer) obj;
                        if (abstractC0651.m2371() && num.intValue() == 80) {
                            abstractC0651.m2367(false);
                            break;
                        }
                        break;
                    case 2:
                        C0894 c0894 = (C0894) obj;
                        if (abstractC0651.m2371()) {
                            boolean z = c0894.f3955;
                            abstractC0651.m2380(false);
                        }
                        break;
                    default:
                        C3648 c3648 = (C3648) obj;
                        if (abstractC0651.m2371()) {
                            abstractC0651.m2349(c3648.f13859, false);
                        }
                        break;
                }
            }
        };
    }

    /* JADX INFO: renamed from: ʽᵡᵢᵾ, reason: contains not printable characters */
    public static boolean m2324(int i) {
        return Log.isLoggable("FragmentManager", i);
    }

    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    public static HashSet m2325(C0586 c0586) {
        HashSet hashSet = new HashSet();
        for (int i = 0; i < c0586.f2879.size(); i++) {
            AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = ((C3123) c0586.f2879.get(i)).f11918;
            if (abstractComponentCallbacksC3393 != null && c0586.f2880) {
                hashSet.add(abstractComponentCallbacksC3393);
            }
        }
        return hashSet;
    }

    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public static boolean m2326(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        abstractComponentCallbacksC3393.getClass();
        ArrayList arrayList = abstractComponentCallbacksC3393.f13040.f3063.ʿٴˇ();
        int size = arrayList.size();
        boolean zM2326 = false;
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = (AbstractComponentCallbacksC3393) obj;
            if (abstractComponentCallbacksC33932 != null) {
                zM2326 = m2326(abstractComponentCallbacksC33932);
            }
            if (zM2326) {
                return true;
            }
        }
        return false;
    }

    /* JADX INFO: renamed from: ˊˌˊ, reason: contains not printable characters */
    public static boolean m2327(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        if (abstractComponentCallbacksC3393 == null) {
            return true;
        }
        AbstractC0651 abstractC0651 = abstractComponentCallbacksC3393.f13054;
        return abstractComponentCallbacksC3393 == abstractC0651.f3082 && m2327(abstractC0651.f3076);
    }

    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public static boolean m2328(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        if (abstractComponentCallbacksC3393 == null) {
            return true;
        }
        if (abstractComponentCallbacksC3393.f13031) {
            return abstractComponentCallbacksC3393.f13054 == null || m2328(abstractComponentCallbacksC3393.f13069);
        }
        return false;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder(128);
        sb.append("FragmentManager{");
        sb.append(Integer.toHexString(System.identityHashCode(this)));
        sb.append(" in ");
        AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = this.f3076;
        if (abstractComponentCallbacksC3393 != null) {
            sb.append(abstractComponentCallbacksC3393.getClass().getSimpleName());
            sb.append("{");
            sb.append(Integer.toHexString(System.identityHashCode(this.f3076)));
            sb.append("}");
        } else {
            C1734 c1734 = this.f3066;
            if (c1734 != null) {
                sb.append(c1734.getClass().getSimpleName());
                sb.append("{");
                sb.append(Integer.toHexString(System.identityHashCode(this.f3066)));
                sb.append("}");
            } else {
                sb.append("null");
            }
        }
        sb.append("}}");
        return sb.toString();
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final void m2329(ˎᵹ r1) {
        this.f3074.add(r1);
    }

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public final AbstractComponentCallbacksC3393 m2330(int i) {
        ᵥᵵᵶᵩ r4 = this.f3063;
        ArrayList arrayList = (ArrayList) r4.ᵜᵪʾ;
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = (AbstractComponentCallbacksC3393) arrayList.get(size);
            if (abstractComponentCallbacksC3393 != null && abstractComponentCallbacksC3393.f13064 == i) {
                return abstractComponentCallbacksC3393;
            }
        }
        for (C4301 c4301 : ((HashMap) r4.ᵔᵖᵹᵫ).values()) {
            if (c4301 != null) {
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = c4301.f16382;
                if (abstractComponentCallbacksC33932.f13064 == i) {
                    return abstractComponentCallbacksC33932;
                }
            }
        }
        return null;
    }

    /* JADX INFO: renamed from: ʿᵿʽᵞ, reason: contains not printable characters */
    public final void m2331(int i, int i2, boolean z) {
        if (i >= 0) {
            m2386(new C5338(this, i, i2), z);
        } else {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ(AbstractC2704.m6517(i, "Bad id: "));
        }
    }

    /* JADX INFO: renamed from: ˀᵗ, reason: contains not printable characters */
    public final void m2332(int i, boolean z) {
        C1734 c1734;
        if (this.f3066 == null && i != -1) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("No activity");
            return;
        }
        if (z || i != this.f3068) {
            this.f3068 = i;
            ᵥᵵᵶᵩ r6 = this.f3063;
            HashMap map = (HashMap) r6.ᵔᵖᵹᵫ;
            ArrayList arrayList = (ArrayList) r6.ᵜᵪʾ;
            int size = arrayList.size();
            int i2 = 0;
            while (i2 < size) {
                Object obj = arrayList.get(i2);
                i2++;
                C4301 c4301 = (C4301) map.get(((AbstractComponentCallbacksC3393) obj).f13075);
                if (c4301 != null) {
                    c4301.m9294();
                }
            }
            for (C4301 c43012 : map.values()) {
                if (c43012 != null) {
                    c43012.m9294();
                    AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = c43012.f16382;
                    if (abstractComponentCallbacksC3393.f13065 && !abstractComponentCallbacksC3393.m7755()) {
                        r6.ˊᵡᵗʨ(c43012);
                    }
                }
            }
            m2390();
            if (this.f3053 && (c1734 = this.f3066) != null && this.f3068 == 7) {
                c1734.f6948.invalidateOptionsMenu();
                this.f3053 = false;
            }
        }
    }

    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public final C0586 m2333(int i) {
        if (i != this.f3084.size()) {
            return (C0586) this.f3084.get(i);
        }
        C0586 c0586 = this.f3057;
        if (c0586 != null) {
            return c0586;
        }
        C4468.m9514();
        return null;
    }

    /* JADX INFO: renamed from: ˁʢᵛ, reason: contains not printable characters */
    public final boolean m2334() {
        return this.f3049 || this.f3048;
    }

    /* JADX INFO: renamed from: ˁᵺˈ, reason: contains not printable characters */
    public final void m2335(ArrayList arrayList, ArrayList arrayList2) {
        if (arrayList.isEmpty()) {
            return;
        }
        if (arrayList.size() != arrayList2.size()) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Internal error with the back stack records");
            return;
        }
        int size = arrayList.size();
        int i = 0;
        int i2 = 0;
        while (i < size) {
            if (!((C0586) arrayList.get(i)).f2873) {
                if (i2 != i) {
                    m2358(arrayList, arrayList2, i2, i);
                }
                i2 = i + 1;
                if (((Boolean) arrayList2.get(i)).booleanValue()) {
                    while (i2 < size && ((Boolean) arrayList2.get(i2)).booleanValue() && !((C0586) arrayList.get(i2)).f2873) {
                        i2++;
                    }
                }
                m2358(arrayList, arrayList2, i, i2);
                i = i2 - 1;
            }
            i++;
        }
        if (i2 != size) {
            m2358(arrayList, arrayList2, i2, size);
        }
    }

    /* JADX INFO: renamed from: ˆʤᵳ, reason: contains not printable characters */
    public final void m2336(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        ViewGroup viewGroupM2342 = m2342(abstractComponentCallbacksC3393);
        if (viewGroupM2342 != null) {
            C4222 c4222 = abstractComponentCallbacksC3393.f13047;
            if ((c4222 == null ? 0 : c4222.f16098) + (c4222 == null ? 0 : c4222.f16106) + (c4222 == null ? 0 : c4222.f16095) + (c4222 == null ? 0 : c4222.f16092) > 0) {
                if (viewGroupM2342.getTag(R.id.h) == null) {
                    viewGroupM2342.setTag(R.id.h, abstractComponentCallbacksC3393);
                }
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = (AbstractComponentCallbacksC3393) viewGroupM2342.getTag(R.id.h);
                C4222 c42222 = abstractComponentCallbacksC3393.f13047;
                boolean z = c42222 != null ? c42222.f16103 : false;
                if (abstractComponentCallbacksC33932.f13047 == null) {
                    return;
                }
                abstractComponentCallbacksC33932.m7753().f16103 = z;
            }
        }
    }

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public final void m2337(boolean z) {
        if (this.f3045) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("FragmentManager is already executing transactions");
            return;
        }
        if (this.f3066 == null) {
            if (this.f3058) {
                ᵕᵩʽᵲ.ᵪᵹᵥᵻ("FragmentManager has been destroyed");
                return;
            } else {
                ᵕᵩʽᵲ.ᵪᵹᵥᵻ("FragmentManager has not been attached to a host.");
                return;
            }
        }
        if (Looper.myLooper() != this.f3066.f6944.getLooper()) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Must be called from main thread of fragment host");
            return;
        }
        if (!z && m2334()) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Can not perform this action after onSaveInstanceState");
        } else if (this.f3067 == null) {
            this.f3067 = new ArrayList();
            this.f3080 = new ArrayList();
        }
    }

    /* JADX INFO: renamed from: ˉˆᵗ, reason: contains not printable characters */
    public final void m2338(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        if (m2324(2)) {
            Objects.toString(abstractComponentCallbacksC3393);
        }
        boolean zM7755 = abstractComponentCallbacksC3393.m7755();
        if (abstractComponentCallbacksC3393.f13052 && zM7755) {
            return;
        }
        ᵥᵵᵶᵩ r0 = this.f3063;
        synchronized (((ArrayList) r0.ᵜᵪʾ)) {
            ((ArrayList) r0.ᵜᵪʾ).remove(abstractComponentCallbacksC3393);
        }
        abstractComponentCallbacksC3393.f13029 = false;
        if (m2326(abstractComponentCallbacksC3393)) {
            this.f3053 = true;
        }
        abstractComponentCallbacksC3393.f13065 = true;
        m2336(abstractComponentCallbacksC3393);
    }

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public final boolean m2339() {
        if (this.f3068 >= 1) {
            for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
                if (abstractComponentCallbacksC3393 != null) {
                    if (!abstractComponentCallbacksC3393.f13032 ? abstractComponentCallbacksC3393.f13040.m2339() : false) {
                        return true;
                    }
                }
            }
        }
        return false;
    }

    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public final void m2340() {
        for (C2313 c2313 : m2344()) {
            if (c2313.f9101) {
                m2324(2);
                c2313.f9101 = false;
                c2313.m5951();
            }
        }
    }

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public final void m2341() {
        ArrayList arrayList = this.f3063.ʿٴˇ();
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = (AbstractComponentCallbacksC3393) obj;
            if (abstractComponentCallbacksC3393 != null) {
                abstractComponentCallbacksC3393.m7772();
                abstractComponentCallbacksC3393.f13040.m2341();
            }
        }
    }

    /* JADX INFO: renamed from: ˊᵡᵗʨ, reason: contains not printable characters */
    public final ViewGroup m2342(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        ViewGroup viewGroup = abstractComponentCallbacksC3393.f13067;
        if (viewGroup != null) {
            return viewGroup;
        }
        if (abstractComponentCallbacksC3393.f13043 <= 0 || !this.f3073.ˌᴵ()) {
            return null;
        }
        View view = this.f3073.ˊᵨᵧ(abstractComponentCallbacksC3393.f13043);
        if (view instanceof ViewGroup) {
            return (ViewGroup) view;
        }
        return null;
    }

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public final void m2343(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        if (abstractComponentCallbacksC3393 != null) {
            if (abstractComponentCallbacksC3393 != this.f3063.ᵶˇᵱ(abstractComponentCallbacksC3393.f13075)) {
                return;
            }
            abstractComponentCallbacksC3393.f13054.getClass();
            boolean zM2327 = m2327(abstractComponentCallbacksC3393);
            Boolean bool = abstractComponentCallbacksC3393.f13055;
            if (bool == null || bool.booleanValue() != zM2327) {
                abstractComponentCallbacksC3393.f13055 = Boolean.valueOf(zM2327);
                C3115 c3115 = abstractComponentCallbacksC3393.f13040;
                c3115.m2352();
                c3115.m2343(c3115.f3082);
            }
        }
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final HashSet m2344() {
        C2313 c2313;
        HashSet hashSet = new HashSet();
        ArrayList arrayList = this.f3063.ˑˊᵲ();
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            ViewGroup viewGroup = ((C4301) obj).f16382.f13067;
            if (viewGroup != null) {
                m2357();
                Object tag = viewGroup.getTag(R.id.h);
                if (tag instanceof C2313) {
                    c2313 = (C2313) tag;
                } else {
                    c2313 = new C2313(viewGroup);
                    viewGroup.setTag(R.id.h, c2313);
                }
                hashSet.add(c2313);
            }
        }
        return hashSet;
    }

    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public final int m2345() {
        return this.f3084.size() + (this.f3057 != null ? 1 : 0);
    }

    /* JADX INFO: renamed from: ˋʿᐧ, reason: contains not printable characters */
    public final boolean m2346(ArrayList arrayList, ArrayList arrayList2, int i, int i2) {
        boolean z = (i2 & 1) != 0;
        int size = -1;
        if (!this.f3084.isEmpty()) {
            if (i < 0) {
                size = z ? 0 : this.f3084.size() - 1;
            } else {
                int size2 = this.f3084.size() - 1;
                while (size2 >= 0) {
                    C0586 c0586 = (C0586) this.f3084.get(size2);
                    if (i >= 0 && i == c0586.f2870) {
                        break;
                    }
                    size2--;
                }
                if (size2 < 0) {
                    size = size2;
                } else if (z) {
                    size = size2;
                    while (size > 0) {
                        C0586 c05862 = (C0586) this.f3084.get(size - 1);
                        if (i < 0 || i != c05862.f2870) {
                            break;
                        }
                        size--;
                    }
                } else if (size2 != this.f3084.size() - 1) {
                    size = size2 + 1;
                }
            }
        }
        if (size < 0) {
            return false;
        }
        for (int size3 = this.f3084.size() - 1; size3 >= size; size3--) {
            arrayList.add((C0586) this.f3084.remove(size3));
            arrayList2.add(Boolean.TRUE);
        }
        return true;
    }

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public final boolean m2347() {
        if (this.f3068 < 1) {
            return false;
        }
        ArrayList arrayList = null;
        boolean z = false;
        for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
            if (abstractComponentCallbacksC3393 != null && m2328(abstractComponentCallbacksC3393)) {
                if (!abstractComponentCallbacksC3393.f13032 ? abstractComponentCallbacksC3393.f13040.m2347() : false) {
                    if (arrayList == null) {
                        arrayList = new ArrayList();
                    }
                    arrayList.add(abstractComponentCallbacksC3393);
                    z = true;
                }
            }
        }
        if (this.f3072 != null) {
            for (int i = 0; i < this.f3072.size(); i++) {
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = (AbstractComponentCallbacksC3393) this.f3072.get(i);
                if (arrayList == null || !arrayList.contains(abstractComponentCallbacksC33932)) {
                    abstractComponentCallbacksC33932.getClass();
                }
            }
        }
        this.f3072 = arrayList;
        return z;
    }

    /* JADX INFO: renamed from: ˋᵯᵩ, reason: contains not printable characters */
    public final void m2348(Bundle bundle) {
        ˊˊᵞᵽ r9;
        int i;
        int i2;
        C4301 c4301;
        Bundle bundle2;
        Bundle bundle3;
        Bundle bundle4;
        for (String str : bundle.keySet()) {
            if (str.startsWith("result_") && (bundle4 = bundle.getBundle(str)) != null) {
                bundle4.setClassLoader(this.f3066.f6947.getClassLoader());
                this.f3069.put(str.substring(7), bundle4);
            }
        }
        HashMap map = new HashMap();
        for (String str2 : bundle.keySet()) {
            if (str2.startsWith("fragment_") && (bundle3 = bundle.getBundle(str2)) != null) {
                bundle3.setClassLoader(this.f3066.f6947.getClassLoader());
                map.put(str2.substring(9), bundle3);
            }
        }
        ᵥᵵᵶᵩ r3 = this.f3063;
        HashMap map2 = (HashMap) r3.ᵨᵼⁱ;
        HashMap map3 = (HashMap) r3.ᵔᵖᵹᵫ;
        map2.clear();
        map2.putAll(map);
        C1677 c1677 = (C1677) bundle.getParcelable("state");
        if (c1677 == null) {
            return;
        }
        map3.clear();
        ArrayList arrayList = c1677.f6617;
        int size = arrayList.size();
        int i3 = 0;
        while (true) {
            r9 = this.f3070;
            i = 2;
            if (i3 >= size) {
                break;
            }
            Object obj = arrayList.get(i3);
            i3++;
            Bundle bundle5 = r3.ˁᵺˈ((String) obj, (Bundle) null);
            if (bundle5 != null) {
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = (AbstractComponentCallbacksC3393) this.f3046.f4354.get(((C3119) bundle5.getParcelable("state")).f11908);
                if (abstractComponentCallbacksC3393 != null) {
                    if (m2324(2)) {
                        abstractComponentCallbacksC3393.toString();
                    }
                    c4301 = new C4301(r9, r3, abstractComponentCallbacksC3393, bundle5);
                    bundle2 = bundle5;
                } else {
                    c4301 = new C4301(this.f3070, this.f3063, this.f3066.f6947.getClassLoader(), m2363(), bundle5);
                    bundle2 = bundle5;
                }
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = c4301.f16382;
                abstractComponentCallbacksC33932.f13063 = bundle2;
                abstractComponentCallbacksC33932.f13054 = this;
                if (m2324(2)) {
                    abstractComponentCallbacksC33932.toString();
                }
                c4301.m9285(this.f3066.f6947.getClassLoader());
                r3.ˊᵾʽʼ(c4301);
                c4301.f16383 = this.f3068;
            }
        }
        C0995 c0995 = this.f3046;
        c0995.getClass();
        ArrayList arrayList2 = new ArrayList(c0995.f4354.values());
        int size2 = arrayList2.size();
        int i4 = 0;
        while (i4 < size2) {
            Object obj2 = arrayList2.get(i4);
            i4++;
            AbstractComponentCallbacksC3393 abstractComponentCallbacksC33933 = (AbstractComponentCallbacksC3393) obj2;
            if (map3.get(abstractComponentCallbacksC33933.f13075) == null) {
                if (m2324(2)) {
                    abstractComponentCallbacksC33933.toString();
                    Objects.toString(c1677.f6617);
                }
                this.f3046.m3321(abstractComponentCallbacksC33933);
                abstractComponentCallbacksC33933.f13054 = this;
                C4301 c43012 = new C4301(r9, r3, abstractComponentCallbacksC33933);
                c43012.f16383 = 1;
                c43012.m9294();
                abstractComponentCallbacksC33933.f13065 = true;
                c43012.m9294();
            }
        }
        ArrayList arrayList3 = c1677.f6620;
        ((ArrayList) r3.ᵜᵪʾ).clear();
        if (arrayList3 != null) {
            int size3 = arrayList3.size();
            int i5 = 0;
            while (i5 < size3) {
                Object obj3 = arrayList3.get(i5);
                i5++;
                String str3 = (String) obj3;
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33934 = r3.ᵶˇᵱ(str3);
                if (abstractComponentCallbacksC33934 == null) {
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ(AbstractC3589.m8117("No instantiated fragment for (", str3, ")"));
                    return;
                } else {
                    if (m2324(2)) {
                        abstractComponentCallbacksC33934.toString();
                    }
                    r3.ᵻʽᵯ(abstractComponentCallbacksC33934);
                }
            }
        }
        if (c1677.f6619 != null) {
            this.f3084 = new ArrayList(c1677.f6619.length);
            int i6 = 0;
            while (true) {
                C1383[] c1383Arr = c1677.f6619;
                if (i6 >= c1383Arr.length) {
                    break;
                }
                C1383 c1383 = c1383Arr[i6];
                ArrayList arrayList4 = c1383.f5729;
                C0586 c0586 = new C0586(this);
                int[] iArr = c1383.f5725;
                int i7 = 0;
                int i8 = 0;
                while (i7 < iArr.length) {
                    C3123 c3123 = new C3123();
                    int i9 = i7 + 1;
                    c3123.f11922 = iArr[i7];
                    if (m2324(i)) {
                        Objects.toString(c0586);
                        int i10 = iArr[i9];
                    }
                    int i11 = i;
                    c3123.f11919 = EnumC0038.values()[c1383.f5728[i8]];
                    c3123.f11925 = EnumC0038.values()[c1383.f5731[i8]];
                    int i12 = i7 + 2;
                    c3123.f11920 = iArr[i9] != 0;
                    int i13 = iArr[i12];
                    c3123.f11924 = i13;
                    int i14 = iArr[i7 + 3];
                    c3123.f11921 = i14;
                    int i15 = i7 + 5;
                    int i16 = iArr[i7 + 4];
                    c3123.f11926 = i16;
                    i7 += 6;
                    int i17 = iArr[i15];
                    c3123.f11923 = i17;
                    c0586.f2865 = i13;
                    c0586.f2871 = i14;
                    c0586.f2882 = i16;
                    c0586.f2874 = i17;
                    c0586.m2206(c3123);
                    i8++;
                    i = i11;
                }
                int i18 = i;
                c0586.f2884 = c1383.f5732;
                c0586.f2883 = c1383.f5733;
                c0586.f2880 = true;
                c0586.f2878 = c1383.f5726;
                c0586.f2881 = c1383.f5734;
                c0586.f2876 = c1383.f5727;
                c0586.f2872 = c1383.f5721;
                c0586.f2869 = c1383.f5730;
                c0586.f2875 = c1383.f5724;
                c0586.f2873 = c1383.f5722;
                c0586.f2870 = c1383.f5723;
                for (int i19 = 0; i19 < arrayList4.size(); i19++) {
                    String str4 = (String) arrayList4.get(i19);
                    if (str4 != null) {
                        ((C3123) c0586.f2879.get(i19)).f11918 = r3.ᵶˇᵱ(str4);
                    }
                }
                c0586.m2209(1);
                if (m2324(i18)) {
                    c0586.toString();
                    PrintWriter printWriter = new PrintWriter(new C1644());
                    c0586.m2207("  ", printWriter, false);
                    printWriter.close();
                }
                this.f3084.add(c0586);
                i6++;
                i = i18;
            }
            i2 = 0;
        } else {
            i2 = 0;
            this.f3084 = new ArrayList();
        }
        this.f3083.set(c1677.f6621);
        String str5 = c1677.f6622;
        if (str5 != null) {
            AbstractComponentCallbacksC3393 abstractComponentCallbacksC33935 = r3.ᵶˇᵱ(str5);
            this.f3082 = abstractComponentCallbacksC33935;
            m2343(abstractComponentCallbacksC33935);
        }
        ArrayList arrayList5 = c1677.f6623;
        if (arrayList5 != null) {
            while (i2 < arrayList5.size()) {
                this.f3075.put((String) arrayList5.get(i2), (C2836) c1677.f6616.get(i2));
                i2++;
            }
        }
        this.f3071 = new ArrayDeque(c1677.f6618);
    }

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final void m2349(boolean z, boolean z2) {
        if (z2 && this.f3066 != null) {
            m2377(new IllegalStateException("Do not call dispatchPictureInPictureModeChanged() on host. Host implements OnPictureInPictureModeChangedProvider and automatically dispatches picture-in-picture mode changes to fragments."));
            throw null;
        }
        for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
            if (abstractComponentCallbacksC3393 != null) {
                abstractComponentCallbacksC3393.m7775(z);
                if (z2) {
                    abstractComponentCallbacksC3393.f13040.m2349(z, true);
                }
            }
        }
    }

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public final boolean m2350(boolean z) {
        boolean zMo1500;
        ArrayList arrayList;
        C0586 c0586;
        m2337(z);
        if (!this.f3086 && (c0586 = this.f3057) != null) {
            c0586.f2866 = false;
            c0586.m2218();
            if (m2324(3)) {
                Objects.toString(this.f3057);
                Objects.toString(this.f3079);
            }
            this.f3057.m2217(false, false);
            this.f3079.add(0, this.f3057);
            ArrayList arrayList2 = this.f3057.f2879;
            int size = arrayList2.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList2.get(i);
                i++;
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = ((C3123) obj).f11918;
                if (abstractComponentCallbacksC3393 != null) {
                    abstractComponentCallbacksC3393.f13042 = false;
                }
            }
            this.f3057 = null;
        }
        boolean z2 = false;
        while (true) {
            ArrayList arrayList3 = this.f3067;
            ArrayList arrayList4 = this.f3080;
            synchronized (this.f3079) {
                if (this.f3079.isEmpty()) {
                    zMo1500 = false;
                } else {
                    try {
                        int size2 = this.f3079.size();
                        int i2 = 0;
                        zMo1500 = false;
                        while (true) {
                            arrayList = this.f3079;
                            if (i2 >= size2) {
                                break;
                            }
                            zMo1500 |= ((InterfaceC4679) arrayList.get(i2)).mo1500(arrayList3, arrayList4);
                            i2++;
                        }
                        arrayList.clear();
                        this.f3066.f6944.removeCallbacks(this.f3051);
                    } finally {
                    }
                }
            }
            if (!zMo1500) {
                break;
            }
            z2 = true;
            this.f3045 = true;
            try {
                m2335(this.f3067, this.f3080);
            } finally {
                m2385();
            }
        }
        m2352();
        if (this.f3055) {
            this.f3055 = false;
            m2390();
        }
        ((HashMap) this.f3063.ᵔᵖᵹᵫ).values().removeAll(Collections.singleton(null));
        return z2;
    }

    /* JADX INFO: renamed from: ˏʜᵪ, reason: contains not printable characters */
    public final void m2351(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393, EnumC0038 enumC0038) {
        if (abstractComponentCallbacksC3393 == this.f3063.ᵶˇᵱ(abstractComponentCallbacksC3393.f13075) && (abstractComponentCallbacksC3393.f13028 == null || abstractComponentCallbacksC3393.f13054 == this)) {
            abstractComponentCallbacksC3393.f13050 = enumC0038;
        } else {
            C4468.m9510("Fragment ", abstractComponentCallbacksC3393, " is not an active fragment of FragmentManager ", this);
        }
    }

    /* JADX INFO: renamed from: ˏʽˊᵰ, reason: contains not printable characters */
    public final void m2352() {
        synchronized (this.f3079) {
            try {
                if (!this.f3079.isEmpty()) {
                    C2610 c2610 = this.f3078;
                    c2610.f10124 = true;
                    InterfaceC1841 interfaceC1841 = c2610.f10123;
                    if (interfaceC1841 != null) {
                        interfaceC1841.mo1021();
                    }
                    if (m2324(3)) {
                        toString();
                    }
                    return;
                }
                boolean z = m2345() > 0 && m2327(this.f3076);
                if (m2324(3)) {
                    toString();
                }
                C2610 c26102 = this.f3078;
                c26102.f10124 = z;
                InterfaceC1841 interfaceC18412 = c26102.f10123;
                if (interfaceC18412 != null) {
                    interfaceC18412.mo1021();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public final void m2353() {
        if (this.f3068 < 1) {
            return;
        }
        for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
            if (abstractComponentCallbacksC3393 != null && !abstractComponentCallbacksC3393.f13032) {
                abstractComponentCallbacksC3393.f13040.m2353();
            }
        }
    }

    /* JADX INFO: renamed from: ˏᵩʨ, reason: contains not printable characters */
    public final void m2354() {
        if (this.f3066 == null) {
            return;
        }
        this.f3049 = false;
        this.f3048 = false;
        this.f3046.f4357 = false;
        for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
            if (abstractComponentCallbacksC3393 != null) {
                abstractComponentCallbacksC3393.f13040.m2354();
            }
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void m2355(C1734 c1734, ˀᵳˎᵹ r12, AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        if (this.f3066 != null) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Already attached");
            return;
        }
        this.f3066 = c1734;
        this.f3073 = r12;
        this.f3076 = abstractComponentCallbacksC3393;
        CopyOnWriteArrayList copyOnWriteArrayList = this.f3077;
        if (abstractComponentCallbacksC3393 != null) {
            copyOnWriteArrayList.add(new C3788(abstractComponentCallbacksC3393));
        } else if (c1734 != null) {
            copyOnWriteArrayList.add(c1734);
        }
        if (this.f3076 != null) {
            m2352();
        }
        if (c1734 != null) {
            C4790 c4790M8619 = c1734.f6948.m8619();
            this.f3081 = c4790M8619;
            InterfaceC1569 interfaceC1569 = abstractComponentCallbacksC3393 != null ? abstractComponentCallbacksC3393 : c1734;
            c4790M8619.getClass();
            C0727 c0727Mo4192 = interfaceC1569.mo4192();
            if (c0727Mo4192.f3300 != EnumC0038.f1189) {
                C2610 c2610 = this.f3078;
                c2610.f10122.add(new C3685(c4790M8619, c0727Mo4192, c2610));
                c4790M8619.m9982();
                c2610.f10123 = new ᵽᵾ(0, c4790M8619, C4790.class, "updateEnabledCallbacks", "updateEnabledCallbacks()V", 0, 0, 5);
            }
        }
        boolean z = false;
        Object[] objArr = 0;
        if (abstractComponentCallbacksC3393 != null) {
            C0995 c0995 = abstractComponentCallbacksC3393.f13054.f3046;
            HashMap map = c0995.f4355;
            C0995 c09952 = (C0995) map.get(abstractComponentCallbacksC3393.f13075);
            if (c09952 == null) {
                c09952 = new C0995(c0995.f4356);
                map.put(abstractComponentCallbacksC3393.f13075, c09952);
            }
            this.f3046 = c09952;
        } else if (c1734 != null) {
            C4055 c4055 = new C4055(c1734.f6948.mo4782(), C0995.f4353, C2449.f9508);
            C4397 c4397M7898 = AbstractC3463.m7898(C0995.class);
            String strM9410 = c4397M7898.m9410();
            if (strM9410 == null) {
                ᵕᵩʽᵲ.ᵮᵣᵗˈ("Local and anonymous classes can not be ViewModels");
                return;
            }
            this.f3046 = (C0995) c4055.m8876(c4397M7898, "androidx.lifecycle.ViewModelProvider.DefaultKey:".concat(strM9410));
        } else {
            this.f3046 = new C0995(false);
        }
        this.f3046.f4357 = m2334();
        this.f3063.ᵯᵷʽ = this.f3046;
        C1734 c17342 = this.f3066;
        int i = 2;
        if (c17342 != null && abstractComponentCallbacksC3393 == null) {
            C1709 c1709Mo4525 = c17342.mo4525();
            c1709Mo4525.m4727("android:support:fragments", new C5116(i, (C3115) this));
            Bundle bundleM4743 = c1709Mo4525.m4743("android:support:fragments");
            if (bundleM4743 != null) {
                m2348(bundleM4743);
            }
        }
        C1734 c17343 = this.f3066;
        if (c17343 != null) {
            C2358 c2358 = c17343.f6948.f14865;
            String strConcat = "FragmentManager:".concat(abstractComponentCallbacksC3393 != null ? AbstractC3653.m8231(new StringBuilder(), abstractComponentCallbacksC3393.f13075, ":") : "");
            C3115 c3115 = (C3115) this;
            this.f3085 = c2358.m6041(strConcat.concat("StartActivityForResult"), new C4850(i, z), new ᵧᵙᵤ(22, c3115));
            this.f3065 = c2358.m6041(strConcat.concat("StartIntentSenderForResult"), new C4850(4), new ᵟˑʽ(c3115));
            this.f3047 = c2358.m6041(strConcat.concat("RequestPermissions"), new C4850(objArr == true ? 1 : 0), new C1014(c3115));
        }
        C1734 c17344 = this.f3066;
        if (c17344 != null) {
            c17344.f6948.m8618(this.f3054);
        }
        C1734 c17345 = this.f3066;
        if (c17345 != null) {
            c17345.f6948.f14869.add(this.f3052);
        }
        C1734 c17346 = this.f3066;
        if (c17346 != null) {
            c17346.f6948.f14866.add(this.f3062);
        }
        C1734 c17347 = this.f3066;
        if (c17347 != null) {
            c17347.f6948.f14871.add(this.f3056);
        }
        C1734 c17348 = this.f3066;
        if (c17348 == null || abstractComponentCallbacksC3393 != null) {
            return;
        }
        ᵣˊˈᵪ r11 = c17348.f6948.f14874;
        ((CopyOnWriteArrayList) r11.ᵔᵖᵹᵫ).add(this.f3060);
        ((Runnable) r11.ᵜᵪʾ).run();
    }

    /* JADX INFO: renamed from: ːᵝٴᵶ, reason: contains not printable characters */
    public final C1622 m2356(ˎᵡˎ r5) {
        C4301 c4301 = (C4301) ((HashMap) this.f3063.ᵔᵖᵹᵫ).get(r5.f13075);
        if (c4301 != null) {
            AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = c4301.f16382;
            abstractComponentCallbacksC3393.getClass();
            if (abstractComponentCallbacksC3393 == r5) {
                if (abstractComponentCallbacksC3393.f13048 > -1) {
                    return new C1622(c4301.m9288());
                }
                return null;
            }
        }
        m2377(new IllegalStateException("Fragment " + r5 + " is not currently in the FragmentManager"));
        throw null;
    }

    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public final ˉᵠﹳᵘ m2357() {
        AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = this.f3076;
        return abstractComponentCallbacksC3393 != null ? abstractComponentCallbacksC3393.f13054.m2357() : this.f3061;
    }

    /* JADX WARN: Removed duplicated region for block: B:112:0x0226 A[PHI: r15
      0x0226: PHI (r15v18 int) = (r15v16 int), (r15v20 int) binds: [B:104:0x0213, B:108:0x021d] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:65:0x0173  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x0179  */
    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void m2358(ArrayList arrayList, ArrayList arrayList2, int i, int i2) {
        View view;
        int i3;
        boolean z;
        int i4;
        boolean z2;
        int i5;
        int i6;
        boolean z3;
        int i7;
        int i8;
        int i9 = i;
        boolean z4 = ((C0586) arrayList.get(i9)).f2873;
        ArrayList arrayList3 = this.f3064;
        if (arrayList3 == null) {
            this.f3064 = new ArrayList();
        } else {
            arrayList3.clear();
        }
        ArrayList arrayList4 = this.f3064;
        ᵥᵵᵶᵩ r7 = this.f3063;
        arrayList4.addAll(r7.ˉᵵᵜ());
        AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = this.f3082;
        int i10 = i9;
        boolean z5 = false;
        while (true) {
            int i11 = 1;
            if (i10 >= i2) {
                boolean z6 = z4;
                boolean z7 = z5;
                this.f3064.clear();
                if (!z6 && this.f3068 >= 1) {
                    for (int i12 = i9; i12 < i2; i12++) {
                        ArrayList arrayList5 = ((C0586) arrayList.get(i12)).f2879;
                        int size = arrayList5.size();
                        int i13 = 0;
                        while (i13 < size) {
                            Object obj = arrayList5.get(i13);
                            i13++;
                            AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = ((C3123) obj).f11918;
                            if (abstractComponentCallbacksC33932 != null && abstractComponentCallbacksC33932.f13054 != null) {
                                r7.ˊᵾʽʼ(m2381(abstractComponentCallbacksC33932));
                            }
                        }
                    }
                }
                int i14 = i9;
                while (i14 < i2) {
                    C0586 c0586 = (C0586) arrayList.get(i14);
                    if (!((Boolean) arrayList2.get(i14)).booleanValue()) {
                        c0586.m2209(1);
                        AbstractC0651 abstractC0651 = c0586.f2867;
                        ArrayList arrayList6 = c0586.f2879;
                        int size2 = arrayList6.size();
                        int i15 = 0;
                        while (i15 < size2) {
                            C3123 c3123 = (C3123) arrayList6.get(i15);
                            AbstractComponentCallbacksC3393 abstractComponentCallbacksC33933 = c3123.f11918;
                            if (abstractComponentCallbacksC33933 != null) {
                                if (abstractComponentCallbacksC33933.f13047 != null) {
                                    abstractComponentCallbacksC33933.m7753().f16103 = false;
                                }
                                int i16 = c0586.f2884;
                                if (abstractComponentCallbacksC33933.f13047 != null || i16 != 0) {
                                    abstractComponentCallbacksC33933.m7753();
                                    abstractComponentCallbacksC33933.f13047.f16108 = i16;
                                }
                                ArrayList arrayList7 = c0586.f2869;
                                ArrayList arrayList8 = c0586.f2875;
                                abstractComponentCallbacksC33933.m7753();
                                i3 = i14;
                                C4222 c4222 = abstractComponentCallbacksC33933.f13047;
                                c4222.f16104 = arrayList7;
                                c4222.f16093 = arrayList8;
                            } else {
                                i3 = i14;
                            }
                            switch (c3123.f11922) {
                                case 1:
                                    abstractComponentCallbacksC33933.m7786(c3123.f11924, c3123.f11921, c3123.f11926, c3123.f11923);
                                    abstractC0651.m2375(abstractComponentCallbacksC33933, false);
                                    abstractC0651.m2382(abstractComponentCallbacksC33933);
                                    i15++;
                                    i14 = i3;
                                    break;
                                case 2:
                                default:
                                    ˆˌᵣ.ᵷᵺʾᵖ(c3123.f11922, "Unknown cmd: ");
                                    break;
                                case 3:
                                    abstractComponentCallbacksC33933.m7786(c3123.f11924, c3123.f11921, c3123.f11926, c3123.f11923);
                                    abstractC0651.m2338(abstractComponentCallbacksC33933);
                                    i15++;
                                    i14 = i3;
                                    break;
                                case 4:
                                    abstractComponentCallbacksC33933.m7786(c3123.f11924, c3123.f11921, c3123.f11926, c3123.f11923);
                                    abstractC0651.getClass();
                                    if (m2324(2)) {
                                        Objects.toString(abstractComponentCallbacksC33933);
                                    }
                                    if (!abstractComponentCallbacksC33933.f13032) {
                                        abstractComponentCallbacksC33933.f13032 = true;
                                        abstractComponentCallbacksC33933.f13057 = !abstractComponentCallbacksC33933.f13057;
                                        abstractC0651.m2336(abstractComponentCallbacksC33933);
                                    }
                                    i15++;
                                    i14 = i3;
                                    break;
                                case 5:
                                    abstractComponentCallbacksC33933.m7786(c3123.f11924, c3123.f11921, c3123.f11926, c3123.f11923);
                                    abstractC0651.m2375(abstractComponentCallbacksC33933, false);
                                    if (m2324(2)) {
                                        Objects.toString(abstractComponentCallbacksC33933);
                                    }
                                    if (abstractComponentCallbacksC33933.f13032) {
                                        abstractComponentCallbacksC33933.f13032 = false;
                                        abstractComponentCallbacksC33933.f13057 = !abstractComponentCallbacksC33933.f13057;
                                    }
                                    i15++;
                                    i14 = i3;
                                    break;
                                case C5224.STRING_SET_FIELD_NUMBER /* 6 */:
                                    abstractComponentCallbacksC33933.m7786(c3123.f11924, c3123.f11921, c3123.f11926, c3123.f11923);
                                    abstractC0651.m2387(abstractComponentCallbacksC33933);
                                    i15++;
                                    i14 = i3;
                                    break;
                                case C5224.DOUBLE_FIELD_NUMBER /* 7 */:
                                    abstractComponentCallbacksC33933.m7786(c3123.f11924, c3123.f11921, c3123.f11926, c3123.f11923);
                                    abstractC0651.m2375(abstractComponentCallbacksC33933, false);
                                    abstractC0651.m2388(abstractComponentCallbacksC33933);
                                    i15++;
                                    i14 = i3;
                                    break;
                                case C5224.BYTES_FIELD_NUMBER /* 8 */:
                                    abstractC0651.m2361(abstractComponentCallbacksC33933);
                                    i15++;
                                    i14 = i3;
                                    break;
                                case 9:
                                    abstractC0651.m2361(null);
                                    i15++;
                                    i14 = i3;
                                    break;
                                case 10:
                                    c3123.f11919 = abstractComponentCallbacksC33933.f13050;
                                    abstractC0651.m2351(abstractComponentCallbacksC33933, c3123.f11925);
                                    i15++;
                                    i14 = i3;
                                    break;
                            }
                            return;
                        }
                    }
                    c0586.m2209(-1);
                    AbstractC0651 abstractC06512 = c0586.f2867;
                    ArrayList arrayList9 = c0586.f2879;
                    boolean z8 = true;
                    for (int size3 = arrayList9.size() - 1; size3 >= 0; size3--) {
                        C3123 c31232 = (C3123) arrayList9.get(size3);
                        AbstractComponentCallbacksC3393 abstractComponentCallbacksC33934 = c31232.f11918;
                        if (abstractComponentCallbacksC33934 != null) {
                            if (abstractComponentCallbacksC33934.f13047 != null) {
                                abstractComponentCallbacksC33934.m7753().f16103 = z8;
                            }
                            int i17 = c0586.f2884;
                            int i18 = 8194;
                            int i19 = 4097;
                            if (i17 != 4097) {
                                if (i17 != 8194) {
                                    i18 = 4100;
                                    if (i17 != 8197) {
                                        i19 = 4099;
                                        i18 = i17 != 4099 ? i17 != 4100 ? 0 : 8197 : i19;
                                    }
                                }
                            }
                            if (abstractComponentCallbacksC33934.f13047 != null || i18 != 0) {
                                abstractComponentCallbacksC33934.m7753();
                                abstractComponentCallbacksC33934.f13047.f16108 = i18;
                            }
                            ArrayList arrayList10 = c0586.f2875;
                            ArrayList arrayList11 = c0586.f2869;
                            abstractComponentCallbacksC33934.m7753();
                            C4222 c42222 = abstractComponentCallbacksC33934.f13047;
                            c42222.f16104 = arrayList10;
                            c42222.f16093 = arrayList11;
                        }
                        switch (c31232.f11922) {
                            case 1:
                                abstractComponentCallbacksC33934.m7786(c31232.f11924, c31232.f11921, c31232.f11926, c31232.f11923);
                                z8 = true;
                                abstractC06512.m2375(abstractComponentCallbacksC33934, true);
                                abstractC06512.m2338(abstractComponentCallbacksC33934);
                                break;
                            case 2:
                            default:
                                ˆˌᵣ.ᵷᵺʾᵖ(c31232.f11922, "Unknown cmd: ");
                                break;
                            case 3:
                                abstractComponentCallbacksC33934.m7786(c31232.f11924, c31232.f11921, c31232.f11926, c31232.f11923);
                                abstractC06512.m2382(abstractComponentCallbacksC33934);
                                z8 = true;
                                break;
                            case 4:
                                abstractComponentCallbacksC33934.m7786(c31232.f11924, c31232.f11921, c31232.f11926, c31232.f11923);
                                abstractC06512.getClass();
                                if (m2324(2)) {
                                    Objects.toString(abstractComponentCallbacksC33934);
                                }
                                if (abstractComponentCallbacksC33934.f13032) {
                                    abstractComponentCallbacksC33934.f13032 = false;
                                    abstractComponentCallbacksC33934.f13057 = !abstractComponentCallbacksC33934.f13057;
                                }
                                z8 = true;
                                break;
                            case 5:
                                abstractComponentCallbacksC33934.m7786(c31232.f11924, c31232.f11921, c31232.f11926, c31232.f11923);
                                abstractC06512.m2375(abstractComponentCallbacksC33934, true);
                                if (m2324(2)) {
                                    Objects.toString(abstractComponentCallbacksC33934);
                                }
                                if (!abstractComponentCallbacksC33934.f13032) {
                                    abstractComponentCallbacksC33934.f13032 = true;
                                    abstractComponentCallbacksC33934.f13057 = !abstractComponentCallbacksC33934.f13057;
                                    abstractC06512.m2336(abstractComponentCallbacksC33934);
                                }
                                z8 = true;
                                break;
                            case C5224.STRING_SET_FIELD_NUMBER /* 6 */:
                                abstractComponentCallbacksC33934.m7786(c31232.f11924, c31232.f11921, c31232.f11926, c31232.f11923);
                                abstractC06512.m2388(abstractComponentCallbacksC33934);
                                z8 = true;
                                break;
                            case C5224.DOUBLE_FIELD_NUMBER /* 7 */:
                                abstractComponentCallbacksC33934.m7786(c31232.f11924, c31232.f11921, c31232.f11926, c31232.f11923);
                                abstractC06512.m2375(abstractComponentCallbacksC33934, true);
                                abstractC06512.m2387(abstractComponentCallbacksC33934);
                                z8 = true;
                                break;
                            case C5224.BYTES_FIELD_NUMBER /* 8 */:
                                abstractC06512.m2361(null);
                                z8 = true;
                                break;
                            case 9:
                                abstractC06512.m2361(abstractComponentCallbacksC33934);
                                z8 = true;
                                break;
                            case 10:
                                c31232.f11925 = abstractComponentCallbacksC33934.f13050;
                                abstractC06512.m2351(abstractComponentCallbacksC33934, c31232.f11919);
                                z8 = true;
                                break;
                        }
                        return;
                    }
                    i14++;
                }
                boolean zBooleanValue = ((Boolean) arrayList2.get(i2 - 1)).booleanValue();
                ArrayList arrayList12 = this.f3074;
                if (z7 && !arrayList12.isEmpty()) {
                    LinkedHashSet<AbstractComponentCallbacksC3393> linkedHashSet = new LinkedHashSet();
                    int size4 = arrayList.size();
                    int i20 = 0;
                    while (i20 < size4) {
                        Object obj2 = arrayList.get(i20);
                        i20++;
                        linkedHashSet.addAll(m2325((C0586) obj2));
                    }
                    if (this.f3057 == null) {
                        int size5 = arrayList12.size();
                        int i21 = 0;
                        while (i21 < size5) {
                            Object obj3 = arrayList12.get(i21);
                            i21++;
                            ˎᵹ r10 = (ˎᵹ) obj3;
                            for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC33935 : linkedHashSet) {
                                r10.getClass();
                            }
                        }
                        int size6 = arrayList12.size();
                        int i22 = 0;
                        while (i22 < size6) {
                            Object obj4 = arrayList12.get(i22);
                            i22++;
                            ˎᵹ r102 = (ˎᵹ) obj4;
                            for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC33936 : linkedHashSet) {
                                r102.getClass();
                            }
                        }
                    }
                }
                for (int i23 = i9; i23 < i2; i23++) {
                    C0586 c05862 = (C0586) arrayList.get(i23);
                    if (zBooleanValue) {
                        for (int size7 = c05862.f2879.size() - 1; size7 >= 0; size7--) {
                            AbstractComponentCallbacksC3393 abstractComponentCallbacksC33937 = ((C3123) c05862.f2879.get(size7)).f11918;
                            if (abstractComponentCallbacksC33937 != null) {
                                m2381(abstractComponentCallbacksC33937).m9294();
                            }
                        }
                    } else {
                        ArrayList arrayList13 = c05862.f2879;
                        int size8 = arrayList13.size();
                        int i24 = 0;
                        while (i24 < size8) {
                            Object obj5 = arrayList13.get(i24);
                            i24++;
                            AbstractComponentCallbacksC3393 abstractComponentCallbacksC33938 = ((C3123) obj5).f11918;
                            if (abstractComponentCallbacksC33938 != null) {
                                m2381(abstractComponentCallbacksC33938).m9294();
                            }
                        }
                    }
                }
                m2332(this.f3068, true);
                for (C2313 c2313 : m2391(arrayList, i9, i2)) {
                    c2313.f9098 = zBooleanValue;
                    c2313.m5952();
                    c2313.m5951();
                }
                while (i9 < i2) {
                    C0586 c05863 = (C0586) arrayList.get(i9);
                    if (((Boolean) arrayList2.get(i9)).booleanValue() && c05863.f2870 >= 0) {
                        c05863.f2870 = -1;
                    }
                    if (c05863.f2877 != null) {
                        for (int i25 = 0; i25 < c05863.f2877.size(); i25++) {
                            ((Runnable) c05863.f2877.get(i25)).run();
                        }
                        c05863.f2877 = null;
                    }
                    i9++;
                }
                if (z7) {
                    for (int i26 = 0; i26 < arrayList12.size(); i26++) {
                        MainActivity mainActivity = ((ˎᵹ) arrayList12.get(i26)).ᵲᵶᵳˈ;
                        int i27 = MainActivity.ːᵝٴᵶ;
                        if (mainActivity.ᵞᵛᵘ() && mainActivity.ᵡᵶ) {
                            mainActivity.ᵡᵶ = false;
                            MainActivity.ᵫˈᵹ(mainActivity, ᵎᴵ.ᵜᵪʾ, false, 4);
                            ˎᵡˎ r1 = mainActivity.ˊᵾʽʼ();
                            if (r1 != null && (view = r1.f13046) != null) {
                                view.post(new ᵙᵘ(r1, 16, mainActivity));
                            }
                        }
                        mainActivity.ᵵᵸᵕᵸ();
                        mainActivity.onUserInteraction();
                    }
                    return;
                }
                return;
            }
            C0586 c05864 = (C0586) arrayList.get(i10);
            boolean zBooleanValue2 = ((Boolean) arrayList2.get(i10)).booleanValue();
            ArrayList arrayList14 = this.f3064;
            if (zBooleanValue2) {
                z = z4;
                i4 = i10;
                z2 = z5;
                int i28 = 1;
                ArrayList arrayList15 = c05864.f2879;
                int size9 = arrayList15.size() - 1;
                while (size9 >= 0) {
                    C3123 c31233 = (C3123) arrayList15.get(size9);
                    int i29 = c31233.f11922;
                    if (i29 == i28) {
                        arrayList14.remove(c31233.f11918);
                    } else if (i29 != 3) {
                        switch (i29) {
                            case C5224.STRING_SET_FIELD_NUMBER /* 6 */:
                                arrayList14.add(c31233.f11918);
                                break;
                            case C5224.BYTES_FIELD_NUMBER /* 8 */:
                                abstractComponentCallbacksC3393 = null;
                                break;
                            case 9:
                                abstractComponentCallbacksC3393 = c31233.f11918;
                                break;
                            case 10:
                                c31233.f11925 = c31233.f11919;
                                break;
                        }
                    }
                    size9--;
                    i28 = 1;
                }
            } else {
                ArrayList arrayList16 = c05864.f2879;
                int i30 = 0;
                while (i30 < arrayList16.size()) {
                    C3123 c31234 = (C3123) arrayList16.get(i30);
                    boolean z9 = z4;
                    int i31 = c31234.f11922;
                    if (i31 != i11) {
                        if (i31 != 2) {
                            if (i31 == 3 || i31 == 6) {
                                i5 = i10;
                                arrayList14.remove(c31234.f11918);
                                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33939 = c31234.f11918;
                                if (abstractComponentCallbacksC33939 == abstractComponentCallbacksC3393) {
                                    arrayList16.add(i30, new C3123(9, abstractComponentCallbacksC33939));
                                    i30++;
                                    z3 = z5;
                                    abstractComponentCallbacksC3393 = null;
                                }
                                i6 = 1;
                            } else if (i31 == 7) {
                                i5 = i10;
                                i6 = 1;
                            } else if (i31 != 8) {
                                i5 = i10;
                            } else {
                                i5 = i10;
                                arrayList16.add(i30, new C3123(9, abstractComponentCallbacksC3393, 0));
                                c31234.f11920 = true;
                                i30++;
                                abstractComponentCallbacksC3393 = c31234.f11918;
                            }
                            z3 = z5;
                            i6 = 1;
                        } else {
                            i5 = i10;
                            AbstractComponentCallbacksC3393 abstractComponentCallbacksC339310 = c31234.f11918;
                            int i32 = abstractComponentCallbacksC339310.f13043;
                            int size10 = arrayList14.size() - 1;
                            boolean z10 = false;
                            while (size10 >= 0) {
                                boolean z11 = z5;
                                AbstractComponentCallbacksC3393 abstractComponentCallbacksC339311 = (AbstractComponentCallbacksC3393) arrayList14.get(size10);
                                int i33 = size10;
                                if (abstractComponentCallbacksC339311.f13043 != i32) {
                                    i7 = i32;
                                } else if (abstractComponentCallbacksC339311 == abstractComponentCallbacksC339310) {
                                    i7 = i32;
                                    z10 = true;
                                } else {
                                    if (abstractComponentCallbacksC339311 == abstractComponentCallbacksC3393) {
                                        i7 = i32;
                                        i8 = 0;
                                        arrayList16.add(i30, new C3123(9, abstractComponentCallbacksC339311, 0));
                                        i30++;
                                        abstractComponentCallbacksC3393 = null;
                                    } else {
                                        i7 = i32;
                                        i8 = 0;
                                    }
                                    C3123 c31235 = new C3123(3, abstractComponentCallbacksC339311, i8);
                                    c31235.f11924 = c31234.f11924;
                                    c31235.f11926 = c31234.f11926;
                                    c31235.f11921 = c31234.f11921;
                                    c31235.f11923 = c31234.f11923;
                                    arrayList16.add(i30, c31235);
                                    arrayList14.remove(abstractComponentCallbacksC339311);
                                    i30++;
                                    abstractComponentCallbacksC3393 = abstractComponentCallbacksC3393;
                                }
                                size10 = i33 - 1;
                                i32 = i7;
                                z5 = z11;
                            }
                            z3 = z5;
                            i6 = 1;
                            if (z10) {
                                arrayList16.remove(i30);
                                i30--;
                            } else {
                                c31234.f11922 = 1;
                                c31234.f11920 = true;
                                arrayList14.add(abstractComponentCallbacksC339310);
                            }
                        }
                        i30 += i6;
                        i11 = i6;
                        z4 = z9;
                        i10 = i5;
                        z5 = z3;
                    } else {
                        i5 = i10;
                        i6 = i11;
                    }
                    z3 = z5;
                    arrayList14.add(c31234.f11918);
                    i30 += i6;
                    i11 = i6;
                    z4 = z9;
                    i10 = i5;
                    z5 = z3;
                }
                z = z4;
                i4 = i10;
                z2 = z5;
            }
            z5 = z2 || c05864.f2880;
            i10 = i4 + 1;
            z4 = z;
        }
    }

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final void m2359(int i) {
        try {
            this.f3045 = true;
            for (C4301 c4301 : ((HashMap) this.f3063.ᵔᵖᵹᵫ).values()) {
                if (c4301 != null) {
                    c4301.f16383 = i;
                }
            }
            m2332(i, false);
            Iterator it = m2344().iterator();
            while (it.hasNext()) {
                ((C2313) it.next()).m5956();
            }
            this.f3045 = false;
            m2350(true);
        } catch (Throwable th) {
            this.f3045 = false;
            throw th;
        }
    }

    /* JADX INFO: renamed from: ᵗᵭ, reason: contains not printable characters */
    public final void m2360() {
        synchronized (this.f3079) {
            try {
                if (this.f3079.size() == 1) {
                    this.f3066.f6944.removeCallbacks(this.f3051);
                    this.f3066.f6944.post(this.f3051);
                    m2352();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* JADX INFO: renamed from: ᵘᵝ, reason: contains not printable characters */
    public final void m2361(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        if (abstractComponentCallbacksC3393 != null) {
            if (abstractComponentCallbacksC3393 != this.f3063.ᵶˇᵱ(abstractComponentCallbacksC3393.f13075) || (abstractComponentCallbacksC3393.f13028 != null && abstractComponentCallbacksC3393.f13054 != this)) {
                C4468.m9510("Fragment ", abstractComponentCallbacksC3393, " is not an active fragment of FragmentManager ", this);
                return;
            }
        }
        AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = this.f3082;
        this.f3082 = abstractComponentCallbacksC3393;
        m2343(abstractComponentCallbacksC33932);
        m2343(this.f3082);
    }

    /* JADX INFO: renamed from: ᵛˀˊ, reason: contains not printable characters */
    public final void m2362() {
        m2386(new C5338(this, -1, 0), false);
    }

    /* JADX INFO: renamed from: ᵛˑﹳ, reason: contains not printable characters */
    public final C2064 m2363() {
        AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = this.f3076;
        return abstractComponentCallbacksC3393 != null ? abstractComponentCallbacksC3393.f13054.m2363() : this.f3050;
    }

    /* JADX INFO: renamed from: ᵜᵤ, reason: contains not printable characters */
    public final Bundle m2364() {
        int i;
        ArrayList arrayList;
        C1383[] c1383Arr;
        Bundle bundle = new Bundle();
        m2340();
        m2379();
        m2350(true);
        this.f3049 = true;
        this.f3046.f4357 = true;
        ᵥᵵᵶᵩ r1 = this.f3063;
        r1.getClass();
        HashMap map = (HashMap) r1.ᵔᵖᵹᵫ;
        ArrayList arrayList2 = new ArrayList(map.size());
        for (C4301 c4301 : map.values()) {
            if (c4301 != null) {
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = c4301.f16382;
                r1.ˁᵺˈ(abstractComponentCallbacksC3393.f13075, c4301.m9288());
                arrayList2.add(abstractComponentCallbacksC3393.f13075);
                if (m2324(2)) {
                    abstractComponentCallbacksC3393.toString();
                    Objects.toString(abstractComponentCallbacksC3393.f13063);
                }
            }
        }
        HashMap map2 = (HashMap) this.f3063.ᵨᵼⁱ;
        if (map2.isEmpty()) {
            m2324(2);
            return bundle;
        }
        ᵥᵵᵶᵩ r3 = this.f3063;
        synchronized (((ArrayList) r3.ᵜᵪʾ)) {
            try {
                if (((ArrayList) r3.ᵜᵪʾ).isEmpty()) {
                    arrayList = null;
                } else {
                    arrayList = new ArrayList(((ArrayList) r3.ᵜᵪʾ).size());
                    ArrayList arrayList3 = (ArrayList) r3.ᵜᵪʾ;
                    int size = arrayList3.size();
                    int i2 = 0;
                    while (i2 < size) {
                        Object obj = arrayList3.get(i2);
                        i2++;
                        AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = (AbstractComponentCallbacksC3393) obj;
                        arrayList.add(abstractComponentCallbacksC33932.f13075);
                        if (m2324(2)) {
                            abstractComponentCallbacksC33932.toString();
                        }
                    }
                }
            } finally {
            }
        }
        int size2 = this.f3084.size();
        if (size2 > 0) {
            c1383Arr = new C1383[size2];
            for (i = 0; i < size2; i++) {
                c1383Arr[i] = new C1383((C0586) this.f3084.get(i));
                if (m2324(2)) {
                    Objects.toString(this.f3084.get(i));
                }
            }
        } else {
            c1383Arr = null;
        }
        C1677 c1677 = new C1677();
        c1677.f6622 = null;
        ArrayList arrayList4 = new ArrayList();
        c1677.f6623 = arrayList4;
        ArrayList arrayList5 = new ArrayList();
        c1677.f6616 = arrayList5;
        c1677.f6617 = arrayList2;
        c1677.f6620 = arrayList;
        c1677.f6619 = c1383Arr;
        c1677.f6621 = this.f3083.get();
        AbstractComponentCallbacksC3393 abstractComponentCallbacksC33933 = this.f3082;
        if (abstractComponentCallbacksC33933 != null) {
            c1677.f6622 = abstractComponentCallbacksC33933.f13075;
        }
        arrayList4.addAll(this.f3075.keySet());
        arrayList5.addAll(this.f3075.values());
        c1677.f6618 = new ArrayList(this.f3071);
        bundle.putParcelable("state", c1677);
        for (String str : this.f3069.keySet()) {
            bundle.putBundle(AbstractC3589.m8102("result_", str), (Bundle) this.f3069.get(str));
        }
        for (String str2 : map2.keySet()) {
            bundle.putBundle(AbstractC3589.m8102("fragment_", str2), (Bundle) map2.get(str2));
        }
        return bundle;
    }

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final boolean m2365() {
        if (this.f3068 < 1) {
            return false;
        }
        boolean z = false;
        for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
            if (abstractComponentCallbacksC3393 != null && m2328(abstractComponentCallbacksC3393)) {
                if (!abstractComponentCallbacksC3393.f13032 ? abstractComponentCallbacksC3393.f13040.m2365() : false) {
                    z = true;
                }
            }
        }
        return z;
    }

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public final boolean m2366() {
        if (this.f3068 >= 1) {
            for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
                if (abstractComponentCallbacksC3393 != null) {
                    if (!abstractComponentCallbacksC3393.f13032 ? abstractComponentCallbacksC3393.f13040.m2366() : false) {
                        return true;
                    }
                }
            }
        }
        return false;
    }

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public final void m2367(boolean z) {
        if (z && this.f3066 != null) {
            m2377(new IllegalStateException("Do not call dispatchLowMemory() on host. Host implements OnTrimMemoryProvider and automatically dispatches low memory callbacks to fragments."));
            throw null;
        }
        for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
            if (abstractComponentCallbacksC3393 != null) {
                abstractComponentCallbacksC3393.f13066 = true;
                if (z) {
                    abstractComponentCallbacksC3393.f13040.m2367(true);
                }
            }
        }
    }

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public final AbstractComponentCallbacksC3393 m2368(String str) {
        ᵥᵵᵶᵩ r4 = this.f3063;
        ArrayList arrayList = (ArrayList) r4.ᵜᵪʾ;
        if (str != null) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = (AbstractComponentCallbacksC3393) arrayList.get(size);
                if (abstractComponentCallbacksC3393 != null && str.equals(abstractComponentCallbacksC3393.f13034)) {
                    return abstractComponentCallbacksC3393;
                }
            }
        }
        if (str == null) {
            return null;
        }
        for (C4301 c4301 : ((HashMap) r4.ᵔᵖᵹᵫ).values()) {
            if (c4301 != null) {
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = c4301.f16382;
                if (str.equals(abstractComponentCallbacksC33932.f13034)) {
                    return abstractComponentCallbacksC33932;
                }
            }
        }
        return null;
    }

    /* JADX INFO: renamed from: ᵡᵶ, reason: contains not printable characters */
    public final boolean m2369() {
        return m2370(-1, 0);
    }

    /* JADX INFO: renamed from: ᵡᵶᵬʤ, reason: contains not printable characters */
    public final boolean m2370(int i, int i2) {
        m2350(false);
        m2337(true);
        AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = this.f3082;
        if (abstractComponentCallbacksC3393 != null && i < 0 && abstractComponentCallbacksC3393.m7773().m2369()) {
            return true;
        }
        boolean zM2346 = m2346(this.f3067, this.f3080, i, i2);
        if (zM2346) {
            this.f3045 = true;
            try {
                m2335(this.f3067, this.f3080);
            } finally {
                m2385();
            }
        }
        m2352();
        if (this.f3055) {
            this.f3055 = false;
            m2390();
        }
        ((HashMap) this.f3063.ᵔᵖᵹᵫ).values().removeAll(Collections.singleton(null));
        return zM2346;
    }

    /* JADX INFO: renamed from: ᵨˈʼﹶ, reason: contains not printable characters */
    public final boolean m2371() {
        AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = this.f3076;
        if (abstractComponentCallbacksC3393 == null) {
            return true;
        }
        return abstractComponentCallbacksC3393.m7765() && this.f3076.m7758().m2371();
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final C0586 m2372() {
        return new C0586(this);
    }

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final void m2373(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) {
        int size;
        String strM2879 = AbstractC0793.m2879(str, "    ");
        ᵥᵵᵶᵩ r1 = this.f3063;
        ArrayList arrayList = (ArrayList) r1.ᵜᵪʾ;
        String strM28792 = AbstractC0793.m2879(str, "    ");
        HashMap map = (HashMap) r1.ᵔᵖᵹᵫ;
        if (!map.isEmpty()) {
            printWriter.print(str);
            printWriter.println("Active Fragments:");
            for (C4301 c4301 : map.values()) {
                printWriter.print(str);
                if (c4301 != null) {
                    AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = c4301.f16382;
                    printWriter.println(abstractComponentCallbacksC3393);
                    abstractComponentCallbacksC3393.getClass();
                    printWriter.print(strM28792);
                    printWriter.print("mFragmentId=#");
                    printWriter.print(Integer.toHexString(abstractComponentCallbacksC3393.f13064));
                    printWriter.print(" mContainerId=#");
                    printWriter.print(Integer.toHexString(abstractComponentCallbacksC3393.f13043));
                    printWriter.print(" mTag=");
                    printWriter.println(abstractComponentCallbacksC3393.f13034);
                    printWriter.print(strM28792);
                    printWriter.print("mState=");
                    printWriter.print(abstractComponentCallbacksC3393.f13048);
                    printWriter.print(" mWho=");
                    printWriter.print(abstractComponentCallbacksC3393.f13075);
                    printWriter.print(" mBackStackNesting=");
                    printWriter.println(abstractComponentCallbacksC3393.f13077);
                    printWriter.print(strM28792);
                    printWriter.print("mAdded=");
                    printWriter.print(abstractComponentCallbacksC3393.f13029);
                    printWriter.print(" mRemoving=");
                    printWriter.print(abstractComponentCallbacksC3393.f13065);
                    printWriter.print(" mFromLayout=");
                    printWriter.print(abstractComponentCallbacksC3393.f13035);
                    printWriter.print(" mInLayout=");
                    printWriter.println(abstractComponentCallbacksC3393.f13033);
                    printWriter.print(strM28792);
                    printWriter.print("mHidden=");
                    printWriter.print(abstractComponentCallbacksC3393.f13032);
                    printWriter.print(" mDetached=");
                    printWriter.print(abstractComponentCallbacksC3393.f13052);
                    printWriter.print(" mMenuVisible=");
                    printWriter.print(abstractComponentCallbacksC3393.f13031);
                    printWriter.print(" mHasMenu=");
                    printWriter.println(false);
                    printWriter.print(strM28792);
                    printWriter.print("mRetainInstance=");
                    printWriter.print(abstractComponentCallbacksC3393.f13060);
                    printWriter.print(" mUserVisibleHint=");
                    printWriter.println(abstractComponentCallbacksC3393.f13036);
                    if (abstractComponentCallbacksC3393.f13054 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mFragmentManager=");
                        printWriter.println(abstractComponentCallbacksC3393.f13054);
                    }
                    if (abstractComponentCallbacksC3393.f13028 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mHost=");
                        printWriter.println(abstractComponentCallbacksC3393.f13028);
                    }
                    if (abstractComponentCallbacksC3393.f13069 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mParentFragment=");
                        printWriter.println(abstractComponentCallbacksC3393.f13069);
                    }
                    if (abstractComponentCallbacksC3393.f13079 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mArguments=");
                        printWriter.println(abstractComponentCallbacksC3393.f13079);
                    }
                    if (abstractComponentCallbacksC3393.f13063 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mSavedFragmentState=");
                        printWriter.println(abstractComponentCallbacksC3393.f13063);
                    }
                    if (abstractComponentCallbacksC3393.f13056 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mSavedViewState=");
                        printWriter.println(abstractComponentCallbacksC3393.f13056);
                    }
                    if (abstractComponentCallbacksC3393.f13070 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mSavedViewRegistryState=");
                        printWriter.println(abstractComponentCallbacksC3393.f13070);
                    }
                    Object objM7768 = abstractComponentCallbacksC3393.m7768(false);
                    if (objM7768 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mTarget=");
                        printWriter.print(objM7768);
                        printWriter.print(" mTargetRequestCode=");
                        printWriter.println(abstractComponentCallbacksC3393.f13080);
                    }
                    printWriter.print(strM28792);
                    printWriter.print("mPopDirection=");
                    C4222 c4222 = abstractComponentCallbacksC3393.f13047;
                    printWriter.println(c4222 == null ? false : c4222.f16103);
                    C4222 c42222 = abstractComponentCallbacksC3393.f13047;
                    if ((c42222 == null ? 0 : c42222.f16092) != 0) {
                        printWriter.print(strM28792);
                        printWriter.print("getEnterAnim=");
                        C4222 c42223 = abstractComponentCallbacksC3393.f13047;
                        printWriter.println(c42223 == null ? 0 : c42223.f16092);
                    }
                    C4222 c42224 = abstractComponentCallbacksC3393.f13047;
                    if ((c42224 == null ? 0 : c42224.f16095) != 0) {
                        printWriter.print(strM28792);
                        printWriter.print("getExitAnim=");
                        C4222 c42225 = abstractComponentCallbacksC3393.f13047;
                        printWriter.println(c42225 == null ? 0 : c42225.f16095);
                    }
                    C4222 c42226 = abstractComponentCallbacksC3393.f13047;
                    if ((c42226 == null ? 0 : c42226.f16106) != 0) {
                        printWriter.print(strM28792);
                        printWriter.print("getPopEnterAnim=");
                        C4222 c42227 = abstractComponentCallbacksC3393.f13047;
                        printWriter.println(c42227 == null ? 0 : c42227.f16106);
                    }
                    C4222 c42228 = abstractComponentCallbacksC3393.f13047;
                    if ((c42228 == null ? 0 : c42228.f16098) != 0) {
                        printWriter.print(strM28792);
                        printWriter.print("getPopExitAnim=");
                        C4222 c42229 = abstractComponentCallbacksC3393.f13047;
                        printWriter.println(c42229 == null ? 0 : c42229.f16098);
                    }
                    if (abstractComponentCallbacksC3393.f13067 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mContainer=");
                        printWriter.println(abstractComponentCallbacksC3393.f13067);
                    }
                    if (abstractComponentCallbacksC3393.f13046 != null) {
                        printWriter.print(strM28792);
                        printWriter.print("mView=");
                        printWriter.println(abstractComponentCallbacksC3393.f13046);
                    }
                    if (abstractComponentCallbacksC3393.mo2403() != null) {
                        C4055 c4055 = new C4055(abstractComponentCallbacksC3393.mo4782(), C5273.f19920, C2449.f9508);
                        C4397 c4397M7898 = AbstractC3463.m7898(C5273.class);
                        String strM9410 = c4397M7898.m9410();
                        if (strM9410 != null) {
                            C5267 c5267 = ((C5273) c4055.m8876(c4397M7898, "androidx.lifecycle.ViewModelProvider.DefaultKey:".concat(strM9410))).f19921;
                            if (c5267.f19910 > 0) {
                                printWriter.print(strM28792);
                                printWriter.println("Loaders:");
                                if (c5267.f19910 > 0) {
                                    if (c5267.m10866(0) == null) {
                                        printWriter.print(strM28792);
                                        printWriter.print("  #");
                                        if (c5267.f19910 <= 0) {
                                            throw new ArrayIndexOutOfBoundsException();
                                        }
                                        printWriter.print(c5267.f19909[0]);
                                        printWriter.print(": ");
                                        throw null;
                                    }
                                    C1685.m4560();
                                }
                            }
                        } else {
                            ᵕᵩʽᵲ.ᵮᵣᵗˈ("Local and anonymous classes can not be ViewModels");
                        }
                    }
                    printWriter.print(strM28792);
                    printWriter.println("Child " + abstractComponentCallbacksC3393.f13040 + ":");
                    abstractComponentCallbacksC3393.f13040.m2373(strM28792.concat("  "), fileDescriptor, printWriter, strArr);
                } else {
                    printWriter.println("null");
                }
            }
        }
        int size2 = arrayList.size();
        if (size2 > 0) {
            printWriter.print(str);
            printWriter.println("Added Fragments:");
            for (int i = 0; i < size2; i++) {
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33932 = (AbstractComponentCallbacksC3393) arrayList.get(i);
                printWriter.print(str);
                printWriter.print("  #");
                printWriter.print(i);
                printWriter.print(": ");
                printWriter.println(abstractComponentCallbacksC33932.toString());
            }
        }
        ArrayList arrayList2 = this.f3072;
        if (arrayList2 != null && (size = arrayList2.size()) > 0) {
            printWriter.print(str);
            printWriter.println("Fragments Created Menus:");
            for (int i2 = 0; i2 < size; i2++) {
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC33933 = (AbstractComponentCallbacksC3393) this.f3072.get(i2);
                printWriter.print(str);
                printWriter.print("  #");
                printWriter.print(i2);
                printWriter.print(": ");
                printWriter.println(abstractComponentCallbacksC33933.toString());
            }
        }
        int size3 = this.f3084.size();
        if (size3 > 0) {
            printWriter.print(str);
            printWriter.println("Back Stack:");
            for (int i3 = 0; i3 < size3; i3++) {
                C0586 c0586 = (C0586) this.f3084.get(i3);
                printWriter.print(str);
                printWriter.print("  #");
                printWriter.print(i3);
                printWriter.print(": ");
                printWriter.println(c0586.toString());
                c0586.m2207(strM2879, printWriter, true);
            }
        }
        printWriter.print(str);
        printWriter.println("Back Stack Index: " + this.f3083.get());
        synchronized (this.f3079) {
            try {
                int size4 = this.f3079.size();
                if (size4 > 0) {
                    printWriter.print(str);
                    printWriter.println("Pending Actions:");
                    for (int i4 = 0; i4 < size4; i4++) {
                        Object obj = (InterfaceC4679) this.f3079.get(i4);
                        printWriter.print(str);
                        printWriter.print("  #");
                        printWriter.print(i4);
                        printWriter.print(": ");
                        printWriter.println(obj);
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        printWriter.print(str);
        printWriter.println("FragmentManager misc state:");
        printWriter.print(str);
        printWriter.print("  mHost=");
        printWriter.println(this.f3066);
        printWriter.print(str);
        printWriter.print("  mContainer=");
        printWriter.println(this.f3073);
        if (this.f3076 != null) {
            printWriter.print(str);
            printWriter.print("  mParent=");
            printWriter.println(this.f3076);
        }
        printWriter.print(str);
        printWriter.print("  mCurState=");
        printWriter.print(this.f3068);
        printWriter.print(" mStateSaved=");
        printWriter.print(this.f3049);
        printWriter.print(" mStopped=");
        printWriter.print(this.f3048);
        printWriter.print(" mDestroyed=");
        printWriter.println(this.f3058);
        if (this.f3053) {
            printWriter.print(str);
            printWriter.print("  mNeedMenuInvalidate=");
            printWriter.println(this.f3053);
        }
    }

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public final void m2374() {
        boolean zIsChangingConfigurations = true;
        this.f3058 = true;
        m2350(true);
        m2379();
        C1734 c1734 = this.f3066;
        ᵥᵵᵶᵩ r2 = this.f3063;
        if (c1734 != null) {
            zIsChangingConfigurations = ((C0995) r2.ᵯᵷʽ).f4359;
        } else {
            AbstractActivityC2057 abstractActivityC2057 = c1734.f6947;
            if (AbstractC0793.m2860(abstractActivityC2057)) {
                zIsChangingConfigurations = true ^ abstractActivityC2057.isChangingConfigurations();
            }
        }
        if (zIsChangingConfigurations) {
            Iterator it = this.f3075.values().iterator();
            while (it.hasNext()) {
                ArrayList arrayList = ((C2836) it.next()).f10865;
                int size = arrayList.size();
                int i = 0;
                while (i < size) {
                    Object obj = arrayList.get(i);
                    i++;
                    C0995 c0995 = (C0995) r2.ᵯᵷʽ;
                    c0995.getClass();
                    m2324(3);
                    c0995.m3322((String) obj, false);
                }
            }
        }
        m2359(-1);
        C1734 c17342 = this.f3066;
        if (c17342 != null) {
            c17342.f6948.f14869.remove(this.f3052);
        }
        C1734 c17343 = this.f3066;
        if (c17343 != null) {
            c17343.f6948.f14877.remove(this.f3054);
        }
        C1734 c17344 = this.f3066;
        if (c17344 != null) {
            c17344.f6948.f14866.remove(this.f3062);
        }
        C1734 c17345 = this.f3066;
        if (c17345 != null) {
            c17345.f6948.f14871.remove(this.f3056);
        }
        C1734 c17346 = this.f3066;
        if (c17346 != null && this.f3076 == null) {
            ᵣˊˈᵪ r0 = c17346.f6948.f14874;
            CopyOnWriteArrayList copyOnWriteArrayList = (CopyOnWriteArrayList) r0.ᵔᵖᵹᵫ;
            C4628 c4628 = this.f3060;
            copyOnWriteArrayList.remove(c4628);
            if (((HashMap) r0.ᵨᵼⁱ).remove(c4628) == null) {
                ((Runnable) r0.ᵜᵪʾ).run();
            } else {
                C1685.m4560();
            }
        }
        this.f3066 = null;
        this.f3073 = null;
        this.f3076 = null;
        if (this.f3081 != null) {
            Iterator it2 = this.f3078.f10122.iterator();
            while (it2.hasNext()) {
                ((InterfaceC3550) it2.next()).cancel();
            }
            this.f3081 = null;
        }
        C2710 c2710 = this.f3085;
        if (c2710 != null) {
            c2710.m6602();
            this.f3065.m6602();
            this.f3047.m6602();
        }
    }

    /* JADX INFO: renamed from: ᵫˈᵹ, reason: contains not printable characters */
    public final void m2375(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393, boolean z) {
        ViewGroup viewGroupM2342 = m2342(abstractComponentCallbacksC3393);
        if (viewGroupM2342 == null || !(viewGroupM2342 instanceof FragmentContainerView)) {
            return;
        }
        ((FragmentContainerView) viewGroupM2342).setDrawDisappearingViewsLast(!z);
    }

    /* JADX INFO: renamed from: ᵬᵦˋ, reason: contains not printable characters */
    public final void m2376(String str, ᵯﹳᵷʔ r8, InterfaceC0385 interfaceC0385) {
        C0727 c0727 = r8.f13058;
        if (c0727.f3300 == EnumC0038.f1189) {
            return;
        }
        C5321 c5321 = new C5321(this, str, interfaceC0385, c0727, 1);
        C5014 c5014 = (C5014) this.f3059.put(str, new C5014(c0727, interfaceC0385, c5321));
        if (c5014 != null) {
            c5014.f19001.m2598(c5014.f19002);
        }
        if (m2324(2)) {
            Objects.toString(interfaceC0385);
        }
        c0727.m2595(c5321);
    }

    /* JADX INFO: renamed from: ᵮᵟᵡ, reason: contains not printable characters */
    public final void m2377(IllegalStateException illegalStateException) {
        illegalStateException.getMessage();
        PrintWriter printWriter = new PrintWriter(new C1644());
        C1734 c1734 = this.f3066;
        try {
            if (c1734 != null) {
                c1734.f6948.dump("  ", null, printWriter, new String[0]);
            } else {
                m2373("  ", null, printWriter, new String[0]);
            }
            throw illegalStateException;
        } catch (Exception unused) {
            throw illegalStateException;
        }
    }

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final void m2378(boolean z, Configuration configuration) {
        if (z && this.f3066 != null) {
            m2377(new IllegalStateException("Do not call dispatchConfigurationChanged() on host. Host implements OnConfigurationChangedProvider and automatically dispatches configuration changes to fragments."));
            throw null;
        }
        for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
            if (abstractComponentCallbacksC3393 != null) {
                abstractComponentCallbacksC3393.onConfigurationChanged(configuration);
                if (z) {
                    abstractComponentCallbacksC3393.f13040.m2378(true, configuration);
                }
            }
        }
    }

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final void m2379() {
        Iterator it = m2344().iterator();
        while (it.hasNext()) {
            ((C2313) it.next()).m5956();
        }
    }

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public final void m2380(boolean z) {
        if (z && this.f3066 != null) {
            m2377(new IllegalStateException("Do not call dispatchMultiWindowModeChanged() on host. Host implements OnMultiWindowModeChangedProvider and automatically dispatches multi-window mode changes to fragments."));
            throw null;
        }
        for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 : this.f3063.ˉᵵᵜ()) {
            if (abstractComponentCallbacksC3393 != null && z) {
                abstractComponentCallbacksC3393.f13040.m2380(true);
            }
        }
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final C4301 m2381(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        String str = abstractComponentCallbacksC3393.f13075;
        ᵥᵵᵶᵩ r1 = this.f3063;
        C4301 c4301 = (C4301) ((HashMap) r1.ᵔᵖᵹᵫ).get(str);
        if (c4301 != null) {
            return c4301;
        }
        C4301 c43012 = new C4301(this.f3070, r1, abstractComponentCallbacksC3393);
        c43012.m9285(this.f3066.f6947.getClassLoader());
        c43012.f16383 = this.f3068;
        return c43012;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final C4301 m2382(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        String str = abstractComponentCallbacksC3393.f13072;
        if (str != null) {
            AbstractC1036.m3439(abstractComponentCallbacksC3393, str);
        }
        if (m2324(2)) {
            abstractComponentCallbacksC3393.toString();
        }
        C4301 c4301M2381 = m2381(abstractComponentCallbacksC3393);
        abstractComponentCallbacksC3393.f13054 = this;
        ᵥᵵᵶᵩ r1 = this.f3063;
        r1.ˊᵾʽʼ(c4301M2381);
        if (!abstractComponentCallbacksC3393.f13052) {
            r1.ᵻʽᵯ(abstractComponentCallbacksC3393);
            abstractComponentCallbacksC3393.f13065 = false;
            if (abstractComponentCallbacksC3393.f13046 == null) {
                abstractComponentCallbacksC3393.f13057 = false;
            }
            if (m2326(abstractComponentCallbacksC3393)) {
                this.f3053 = true;
            }
        }
        return c4301M2381;
    }

    /* JADX INFO: renamed from: ᵵᵬᵽ, reason: contains not printable characters */
    public final List m2383() {
        return this.f3063.ˉᵵᵜ();
    }

    /* JADX INFO: renamed from: ᵵᵸᵕᵸ, reason: contains not printable characters */
    public final void m2384(String str) {
        Bundle bundle = Bundle.EMPTY;
        C5014 c5014 = (C5014) this.f3059.get(str);
        if (c5014 == null || !c5014.f19001.f3300.m1024(EnumC0038.f1192)) {
            this.f3069.put(str, bundle);
        } else {
            c5014.mo1707(str, bundle);
        }
        if (m2324(2)) {
            Objects.toString(bundle);
        }
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final void m2385() {
        this.f3045 = false;
        this.f3080.clear();
        this.f3067.clear();
    }

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public final void m2386(InterfaceC4679 interfaceC4679, boolean z) {
        if (!z) {
            if (this.f3066 == null) {
                if (this.f3058) {
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ("FragmentManager has been destroyed");
                    return;
                } else {
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ("FragmentManager has not been attached to a host.");
                    return;
                }
            }
            if (m2334()) {
                ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Can not perform this action after onSaveInstanceState");
                return;
            }
        }
        synchronized (this.f3079) {
            try {
                if (this.f3066 == null) {
                    if (!z) {
                        throw new IllegalStateException("Activity has been destroyed");
                    }
                } else {
                    this.f3079.add(interfaceC4679);
                    m2360();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final void m2387(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        if (m2324(2)) {
            Objects.toString(abstractComponentCallbacksC3393);
        }
        if (abstractComponentCallbacksC3393.f13052) {
            return;
        }
        abstractComponentCallbacksC3393.f13052 = true;
        if (abstractComponentCallbacksC3393.f13029) {
            if (m2324(2)) {
                abstractComponentCallbacksC3393.toString();
            }
            ᵥᵵᵶᵩ r0 = this.f3063;
            synchronized (((ArrayList) r0.ᵜᵪʾ)) {
                ((ArrayList) r0.ᵜᵪʾ).remove(abstractComponentCallbacksC3393);
            }
            abstractComponentCallbacksC3393.f13029 = false;
            if (m2326(abstractComponentCallbacksC3393)) {
                this.f3053 = true;
            }
            m2336(abstractComponentCallbacksC3393);
        }
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final void m2388(AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393) {
        if (m2324(2)) {
            Objects.toString(abstractComponentCallbacksC3393);
        }
        if (abstractComponentCallbacksC3393.f13052) {
            abstractComponentCallbacksC3393.f13052 = false;
            if (abstractComponentCallbacksC3393.f13029) {
                return;
            }
            this.f3063.ᵻʽᵯ(abstractComponentCallbacksC3393);
            if (m2324(2)) {
                abstractComponentCallbacksC3393.toString();
            }
            if (m2326(abstractComponentCallbacksC3393)) {
                this.f3053 = true;
            }
        }
    }

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public final void m2389(C0586 c0586, boolean z) {
        if (z && (this.f3066 == null || this.f3058)) {
            return;
        }
        m2337(z);
        C0586 c05862 = this.f3057;
        if (c05862 != null) {
            c05862.f2866 = false;
            c05862.m2218();
            if (m2324(3)) {
                Objects.toString(this.f3057);
                Objects.toString(c0586);
            }
            this.f3057.m2217(false, false);
            this.f3057.mo1500(this.f3067, this.f3080);
            ArrayList arrayList = this.f3057.f2879;
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = ((C3123) obj).f11918;
                if (abstractComponentCallbacksC3393 != null) {
                    abstractComponentCallbacksC3393.f13042 = false;
                }
            }
            this.f3057 = null;
        }
        c0586.mo1500(this.f3067, this.f3080);
        this.f3045 = true;
        try {
            m2335(this.f3067, this.f3080);
            m2385();
            m2352();
            if (this.f3055) {
                this.f3055 = false;
                m2390();
            }
            ((HashMap) this.f3063.ᵔᵖᵹᵫ).values().removeAll(Collections.singleton(null));
        } catch (Throwable th) {
            m2385();
            throw th;
        }
    }

    /* JADX INFO: renamed from: ᵹʾᵢᵯ, reason: contains not printable characters */
    public final void m2390() {
        ArrayList arrayList = this.f3063.ˑˊᵲ();
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            C4301 c4301 = (C4301) obj;
            AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = c4301.f16382;
            if (abstractComponentCallbacksC3393.f13041) {
                if (this.f3045) {
                    this.f3055 = true;
                } else {
                    abstractComponentCallbacksC3393.f13041 = false;
                    c4301.m9294();
                }
            }
        }
    }

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final HashSet m2391(ArrayList arrayList, int i, int i2) {
        ViewGroup viewGroup;
        HashSet hashSet = new HashSet();
        while (i < i2) {
            ArrayList arrayList2 = ((C0586) arrayList.get(i)).f2879;
            int size = arrayList2.size();
            int i3 = 0;
            while (i3 < size) {
                Object obj = arrayList2.get(i3);
                i3++;
                AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = ((C3123) obj).f11918;
                if (abstractComponentCallbacksC3393 != null && (viewGroup = abstractComponentCallbacksC3393.f13067) != null) {
                    hashSet.add(C2313.m5943(viewGroup, this));
                }
            }
            i++;
        }
        return hashSet;
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final void m2392() {
        if (m2324(3)) {
            Objects.toString(this.f3057);
        }
        C0586 c0586 = this.f3057;
        if (c0586 != null) {
            c0586.f2866 = false;
            c0586.m2218();
            C0586 c05862 = this.f3057;
            RunnableC2846 runnableC2846 = new RunnableC2846(27, this);
            if (c05862.f2877 == null) {
                c05862.f2877 = new ArrayList();
            }
            c05862.f2877.add(runnableC2846);
            this.f3057.m2214();
            this.f3086 = true;
            m2350(true);
            m2340();
            this.f3086 = false;
            this.f3057 = null;
        }
    }
}
