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 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.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicInteger;

/* renamed from: ᵵᵙ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC4731 {

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public boolean f17479;

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public ArrayList f17480;

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public C4152 f17481;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public C2430 f17484;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public C3339 f17485;

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public ArrayList f17488;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public C3339 f17489;

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public final C2181 f17490;

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public boolean f17491;

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public ArrayList f17492;

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public final C2181 f17494;

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public ArrayList f17497;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public AbstractComponentCallbacksC3693 f17498;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public AbstractComponentCallbacksC3693 f17500;

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public final C2181 f17504;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public C3339 f17506;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public boolean f17509;

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public boolean f17510;

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public final C2181 f17512;

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public boolean f17515;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public ˆᴵ f17517;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public C0600 f17518;

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public boolean f17519;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final ArrayList f17501 = new ArrayList();

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final ᵮᵥٴ f17487 = new ᵮᵥٴ(12);

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public ArrayList f17516 = new ArrayList();

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final LayoutInflaterFactory2C1421 f17486 = new LayoutInflaterFactory2C1421(this);

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public C4877 f17514 = null;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public boolean f17493 = false;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final C5136 f17511 = new C5136(this);

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final AtomicInteger f17513 = new AtomicInteger();

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final Map f17483 = DesugarCollections.synchronizedMap(new HashMap());

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public final Map f17507 = DesugarCollections.synchronizedMap(new HashMap());

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public final Map f17505 = DesugarCollections.synchronizedMap(new HashMap());

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public final ArrayList f17508 = new ArrayList();

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public final C2720 f17482 = new C2720(this);

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public final CopyOnWriteArrayList f17495 = new CopyOnWriteArrayList();

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final C0270 f17503 = new C0270(this);

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int f17499 = -1;

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final C2944 f17477 = new C2944(this);

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final ʾᵚᵱ f17496 = new ʾᵚᵱ(25);

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public ArrayDeque f17502 = new ArrayDeque();

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public final RunnableC2802 f17478 = new RunnableC2802(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 AbstractC4731() {
        final int i = 0;
        this.f17512 = new InterfaceC4387(this) { // from class: ᵎˉ

            /* renamed from: ᵴᵳ, reason: contains not printable characters */
            public final /* synthetic */ AbstractC4731 f8593;

            {
                this.f8593 = this;
            }

            @Override // defpackage.InterfaceC4387
            public final void accept(Object obj) {
                int i2 = i;
                AbstractC4731 abstractC4731 = this.f8593;
                switch (i2) {
                    case 0:
                        Configuration configuration = (Configuration) obj;
                        if (abstractC4731.m9925()) {
                            abstractC4731.m9975(false, configuration);
                            break;
                        }
                        break;
                    case 1:
                        Integer num = (Integer) obj;
                        if (abstractC4731.m9925() && num.intValue() == 80) {
                            abstractC4731.m9968(false);
                            break;
                        }
                        break;
                    case 2:
                        C3117 c3117 = (C3117) obj;
                        if (abstractC4731.m9925()) {
                            boolean z = c3117.f11878;
                            abstractC4731.m9931(false);
                            break;
                        }
                        break;
                    default:
                        C2914 c2914 = (C2914) obj;
                        if (abstractC4731.m9925()) {
                            abstractC4731.m9941(c2914.f11345, false);
                            break;
                        }
                        break;
                }
            }
        };
        final int i2 = 1;
        this.f17494 = new InterfaceC4387(this) { // from class: ᵎˉ

            /* renamed from: ᵴᵳ, reason: contains not printable characters */
            public final /* synthetic */ AbstractC4731 f8593;

            {
                this.f8593 = this;
            }

            @Override // defpackage.InterfaceC4387
            public final void accept(Object obj) {
                int i22 = i2;
                AbstractC4731 abstractC4731 = this.f8593;
                switch (i22) {
                    case 0:
                        Configuration configuration = (Configuration) obj;
                        if (abstractC4731.m9925()) {
                            abstractC4731.m9975(false, configuration);
                            break;
                        }
                        break;
                    case 1:
                        Integer num = (Integer) obj;
                        if (abstractC4731.m9925() && num.intValue() == 80) {
                            abstractC4731.m9968(false);
                            break;
                        }
                        break;
                    case 2:
                        C3117 c3117 = (C3117) obj;
                        if (abstractC4731.m9925()) {
                            boolean z = c3117.f11878;
                            abstractC4731.m9931(false);
                            break;
                        }
                        break;
                    default:
                        C2914 c2914 = (C2914) obj;
                        if (abstractC4731.m9925()) {
                            abstractC4731.m9941(c2914.f11345, false);
                            break;
                        }
                        break;
                }
            }
        };
        final int i3 = 2;
        this.f17504 = new InterfaceC4387(this) { // from class: ᵎˉ

            /* renamed from: ᵴᵳ, reason: contains not printable characters */
            public final /* synthetic */ AbstractC4731 f8593;

            {
                this.f8593 = this;
            }

            @Override // defpackage.InterfaceC4387
            public final void accept(Object obj) {
                int i22 = i3;
                AbstractC4731 abstractC4731 = this.f8593;
                switch (i22) {
                    case 0:
                        Configuration configuration = (Configuration) obj;
                        if (abstractC4731.m9925()) {
                            abstractC4731.m9975(false, configuration);
                            break;
                        }
                        break;
                    case 1:
                        Integer num = (Integer) obj;
                        if (abstractC4731.m9925() && num.intValue() == 80) {
                            abstractC4731.m9968(false);
                            break;
                        }
                        break;
                    case 2:
                        C3117 c3117 = (C3117) obj;
                        if (abstractC4731.m9925()) {
                            boolean z = c3117.f11878;
                            abstractC4731.m9931(false);
                            break;
                        }
                        break;
                    default:
                        C2914 c2914 = (C2914) obj;
                        if (abstractC4731.m9925()) {
                            abstractC4731.m9941(c2914.f11345, false);
                            break;
                        }
                        break;
                }
            }
        };
        final int i4 = 3;
        this.f17490 = new InterfaceC4387(this) { // from class: ᵎˉ

            /* renamed from: ᵴᵳ, reason: contains not printable characters */
            public final /* synthetic */ AbstractC4731 f8593;

            {
                this.f8593 = this;
            }

            @Override // defpackage.InterfaceC4387
            public final void accept(Object obj) {
                int i22 = i4;
                AbstractC4731 abstractC4731 = this.f8593;
                switch (i22) {
                    case 0:
                        Configuration configuration = (Configuration) obj;
                        if (abstractC4731.m9925()) {
                            abstractC4731.m9975(false, configuration);
                            break;
                        }
                        break;
                    case 1:
                        Integer num = (Integer) obj;
                        if (abstractC4731.m9925() && num.intValue() == 80) {
                            abstractC4731.m9968(false);
                            break;
                        }
                        break;
                    case 2:
                        C3117 c3117 = (C3117) obj;
                        if (abstractC4731.m9925()) {
                            boolean z = c3117.f11878;
                            abstractC4731.m9931(false);
                            break;
                        }
                        break;
                    default:
                        C2914 c2914 = (C2914) obj;
                        if (abstractC4731.m9925()) {
                            abstractC4731.m9941(c2914.f11345, false);
                            break;
                        }
                        break;
                }
            }
        };
    }

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public static boolean m9916(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        if (abstractComponentCallbacksC3693 == null) {
            return true;
        }
        if (abstractComponentCallbacksC3693.f13778) {
            return abstractComponentCallbacksC3693.f13758 == null || m9916(abstractComponentCallbacksC3693.f13750);
        }
        return false;
    }

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public static boolean m9917(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        abstractComponentCallbacksC3693.getClass();
        ArrayList arrayList = abstractComponentCallbacksC3693.f13747.f17487.ˑᵥˁ();
        int size = arrayList.size();
        boolean zM9917 = false;
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = (AbstractComponentCallbacksC3693) obj;
            if (abstractComponentCallbacksC36932 != null) {
                zM9917 = m9917(abstractComponentCallbacksC36932);
            }
            if (zM9917) {
                return true;
            }
        }
        return false;
    }

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public static boolean m9918(int i) {
        return Log.isLoggable("FragmentManager", i);
    }

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public static boolean m9919(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        if (abstractComponentCallbacksC3693 == null) {
            return true;
        }
        AbstractC4731 abstractC4731 = abstractComponentCallbacksC3693.f13758;
        return abstractComponentCallbacksC3693 == abstractC4731.f17498 && m9919(abstractC4731.f17500);
    }

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public static HashSet m9920(C4877 c4877) {
        HashSet hashSet = new HashSet();
        for (int i = 0; i < c4877.f18154.size(); i++) {
            AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = ((C1174) c4877.f18154.get(i)).f4996;
            if (abstractComponentCallbacksC3693 != null && c4877.f18148) {
                hashSet.add(abstractComponentCallbacksC3693);
            }
        }
        return hashSet;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder(128);
        sb.append("FragmentManager{");
        sb.append(Integer.toHexString(System.identityHashCode(this)));
        sb.append(" in ");
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = this.f17500;
        if (abstractComponentCallbacksC3693 != null) {
            sb.append(abstractComponentCallbacksC3693.getClass().getSimpleName());
            sb.append("{");
            sb.append(Integer.toHexString(System.identityHashCode(this.f17500)));
            sb.append("}");
        } else {
            C0600 c0600 = this.f17518;
            if (c0600 != null) {
                sb.append(c0600.getClass().getSimpleName());
                sb.append("{");
                sb.append(Integer.toHexString(System.identityHashCode(this.f17518)));
                sb.append("}");
            } else {
                sb.append("null");
            }
        }
        sb.append("}}");
        return sb.toString();
    }

    /* renamed from: ʽᵢˊ, reason: contains not printable characters */
    public final void m9921(IllegalStateException illegalStateException) {
        illegalStateException.getMessage();
        PrintWriter printWriter = new PrintWriter(new C0176());
        C0600 c0600 = this.f17518;
        try {
            if (c0600 != null) {
                c0600.f3053.dump("  ", null, printWriter, new String[0]);
            } else {
                m9981("  ", null, printWriter, new String[0]);
            }
            throw illegalStateException;
        } catch (Exception unused) {
            throw illegalStateException;
        }
    }

    /* renamed from: ʾᵻᵭٴ, reason: contains not printable characters */
    public final C2534 m9922(ʽʿˊ r5) {
        C4534 c4534 = (C4534) ((HashMap) this.f17487.ᵿʗᵝʽ).get(r5.f13772);
        if (c4534 != null) {
            AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = c4534.f16864;
            abstractComponentCallbacksC3693.getClass();
            if (abstractComponentCallbacksC3693 == r5) {
                if (abstractComponentCallbacksC3693.f13776 > -1) {
                    return new C2534(c4534.m9632());
                }
                return null;
            }
        }
        m9921(new IllegalStateException("Fragment " + r5 + " is not currently in the FragmentManager"));
        throw null;
    }

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public final boolean m9923(ArrayList arrayList, ArrayList arrayList2, int i, int i2) {
        boolean z = (i2 & 1) != 0;
        int size = -1;
        if (!this.f17516.isEmpty()) {
            if (i < 0) {
                size = z ? 0 : this.f17516.size() - 1;
            } else {
                int size2 = this.f17516.size() - 1;
                while (size2 >= 0) {
                    C4877 c4877 = (C4877) this.f17516.get(size2);
                    if (i >= 0 && i == c4877.f18155) {
                        break;
                    }
                    size2--;
                }
                if (size2 < 0) {
                    size = size2;
                } else if (z) {
                    size = size2;
                    while (size > 0) {
                        C4877 c48772 = (C4877) this.f17516.get(size - 1);
                        if (i < 0 || i != c48772.f18155) {
                            break;
                        }
                        size--;
                    }
                } else if (size2 != this.f17516.size() - 1) {
                    size = size2 + 1;
                }
            }
        }
        if (size < 0) {
            return false;
        }
        for (int size3 = this.f17516.size() - 1; size3 >= size; size3--) {
            arrayList.add((C4877) this.f17516.remove(size3));
            arrayList2.add(Boolean.TRUE);
        }
        return true;
    }

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final boolean m9924(boolean z) {
        boolean zMo5478;
        ArrayList arrayList;
        C4877 c4877;
        m9952(z);
        if (!this.f17493 && (c4877 = this.f17514) != null) {
            c4877.f18152 = false;
            c4877.m10301();
            if (m9918(3)) {
                Objects.toString(this.f17514);
                Objects.toString(this.f17501);
            }
            this.f17514.m10303(false, false);
            this.f17501.add(0, this.f17514);
            ArrayList arrayList2 = this.f17514.f18154;
            int size = arrayList2.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList2.get(i);
                i++;
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = ((C1174) obj).f4996;
                if (abstractComponentCallbacksC3693 != null) {
                    abstractComponentCallbacksC3693.f13785 = false;
                }
            }
            this.f17514 = null;
        }
        boolean z2 = false;
        while (true) {
            ArrayList arrayList3 = this.f17492;
            ArrayList arrayList4 = this.f17497;
            synchronized (this.f17501) {
                if (this.f17501.isEmpty()) {
                    zMo5478 = false;
                } else {
                    try {
                        int size2 = this.f17501.size();
                        int i2 = 0;
                        zMo5478 = false;
                        while (true) {
                            arrayList = this.f17501;
                            if (i2 >= size2) {
                                break;
                            }
                            zMo5478 |= ((InterfaceC3668) arrayList.get(i2)).mo5478(arrayList3, arrayList4);
                            i2++;
                        }
                        arrayList.clear();
                        this.f17518.f3052.removeCallbacks(this.f17478);
                    } finally {
                    }
                }
            }
            if (!zMo5478) {
                break;
            }
            z2 = true;
            this.f17509 = true;
            try {
                m9973(this.f17492, this.f17497);
            } finally {
                m9938();
            }
        }
        m9946();
        if (this.f17519) {
            this.f17519 = false;
            m9961();
        }
        ((HashMap) this.f17487.ᵿʗᵝʽ).values().removeAll(Collections.singleton(null));
        return z2;
    }

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public final boolean m9925() {
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = this.f17500;
        if (abstractComponentCallbacksC3693 == null) {
            return true;
        }
        return abstractComponentCallbacksC3693.m8308() && this.f17500.m8326().m9925();
    }

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public final ViewGroup m9926(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        ViewGroup viewGroup = abstractComponentCallbacksC3693.f13745;
        if (viewGroup != null) {
            return viewGroup;
        }
        if (abstractComponentCallbacksC3693.f13754 <= 0 || !this.f17517.ᵞʡ()) {
            return null;
        }
        View view = this.f17517.ᵸʓᵠ(abstractComponentCallbacksC3693.f13754);
        if (view instanceof ViewGroup) {
            return (ViewGroup) view;
        }
        return null;
    }

    /* renamed from: ˆᵴᵜˏ, reason: contains not printable characters */
    public final void m9927(String str) {
        Bundle bundle = Bundle.EMPTY;
        C3380 c3380 = (C3380) this.f17505.get(str);
        if (c3380 == null || !c3380.f12628.f15587.m10953(EnumC5294.f19812)) {
            this.f17507.put(str, bundle);
        } else {
            c3380.mo7759(str, bundle);
        }
        if (m9918(2)) {
            Objects.toString(bundle);
        }
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final C4877 m9928() {
        return new C4877(this);
    }

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public final void m9929() {
        m9955(new C5326(this, -1, 0), false);
    }

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public final void m9930(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        if (m9918(2)) {
            Objects.toString(abstractComponentCallbacksC3693);
        }
        boolean zM8310 = abstractComponentCallbacksC3693.m8310();
        if (abstractComponentCallbacksC3693.f13751 && zM8310) {
            return;
        }
        ᵮᵥٴ r0 = this.f17487;
        synchronized (((ArrayList) r0.ᵢˇᵭ)) {
            ((ArrayList) r0.ᵢˇᵭ).remove(abstractComponentCallbacksC3693);
        }
        abstractComponentCallbacksC3693.f13779 = false;
        if (m9917(abstractComponentCallbacksC3693)) {
            this.f17515 = true;
        }
        abstractComponentCallbacksC3693.f13775 = true;
        m9967(abstractComponentCallbacksC3693);
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public final void m9931(boolean z) {
        if (z && this.f17518 != null) {
            m9921(new IllegalStateException("Do not call dispatchMultiWindowModeChanged() on host. Host implements OnMultiWindowModeChangedProvider and automatically dispatches multi-window mode changes to fragments."));
            throw null;
        }
        for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
            if (abstractComponentCallbacksC3693 != null && z) {
                abstractComponentCallbacksC3693.f13747.m9931(true);
            }
        }
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final boolean m9932() {
        if (this.f17499 >= 1) {
            for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
                if (abstractComponentCallbacksC3693 != null) {
                    if (!abstractComponentCallbacksC3693.f13768 ? abstractComponentCallbacksC3693.f13747.m9932() : false) {
                        return true;
                    }
                }
            }
        }
        return false;
    }

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public final boolean m9933() {
        return this.f17491 || this.f17510;
    }

    /* renamed from: ˌᵹᵨˑ, reason: contains not printable characters */
    public final void m9934(Bundle bundle) {
        C2720 c2720;
        int i;
        int i2;
        C4534 c4534;
        Bundle bundle2;
        Bundle bundle3;
        Bundle bundle4;
        for (String str : bundle.keySet()) {
            if (str.startsWith("result_") && (bundle4 = bundle.getBundle(str)) != null) {
                bundle4.setClassLoader(this.f17518.f3055.getClassLoader());
                this.f17507.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.f17518.f3055.getClassLoader());
                map.put(str2.substring(9), bundle3);
            }
        }
        ᵮᵥٴ r3 = this.f17487;
        HashMap map2 = (HashMap) r3.ᵾᵬ;
        HashMap map3 = (HashMap) r3.ᵿʗᵝʽ;
        map2.clear();
        map2.putAll(map);
        C5523 c5523 = (C5523) bundle.getParcelable("state");
        if (c5523 == null) {
            return;
        }
        map3.clear();
        ArrayList arrayList = c5523.f20770;
        int size = arrayList.size();
        int i3 = 0;
        while (true) {
            c2720 = this.f17482;
            i = 2;
            if (i3 >= size) {
                break;
            }
            Object obj = arrayList.get(i3);
            i3++;
            Bundle bundle5 = r3.ˊʾˊ((String) obj, (Bundle) null);
            if (bundle5 != null) {
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = (AbstractComponentCallbacksC3693) this.f17481.f15515.get(((C1590) bundle5.getParcelable("state")).f6318);
                if (abstractComponentCallbacksC3693 != null) {
                    if (m9918(2)) {
                        abstractComponentCallbacksC3693.toString();
                    }
                    c4534 = new C4534(c2720, r3, abstractComponentCallbacksC3693, bundle5);
                    bundle2 = bundle5;
                } else {
                    c4534 = new C4534(this.f17482, this.f17487, this.f17518.f3055.getClassLoader(), m9983(), bundle5);
                    bundle2 = bundle5;
                }
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = c4534.f16864;
                abstractComponentCallbacksC36932.f13770 = bundle2;
                abstractComponentCallbacksC36932.f13758 = this;
                if (m9918(2)) {
                    abstractComponentCallbacksC36932.toString();
                }
                c4534.m9631(this.f17518.f3055.getClassLoader());
                r3.ᐧﾞ(c4534);
                c4534.f16863 = this.f17499;
            }
        }
        C4152 c4152 = this.f17481;
        c4152.getClass();
        ArrayList arrayList2 = new ArrayList(c4152.f15515.values());
        int size2 = arrayList2.size();
        int i4 = 0;
        while (i4 < size2) {
            Object obj2 = arrayList2.get(i4);
            i4++;
            AbstractComponentCallbacksC3693 abstractComponentCallbacksC36933 = (AbstractComponentCallbacksC3693) obj2;
            if (map3.get(abstractComponentCallbacksC36933.f13772) == null) {
                if (m9918(2)) {
                    abstractComponentCallbacksC36933.toString();
                    Objects.toString(c5523.f20770);
                }
                this.f17481.m9054(abstractComponentCallbacksC36933);
                abstractComponentCallbacksC36933.f13758 = this;
                C4534 c45342 = new C4534(c2720, r3, abstractComponentCallbacksC36933);
                c45342.f16863 = 1;
                c45342.m9636();
                abstractComponentCallbacksC36933.f13775 = true;
                c45342.m9636();
            }
        }
        ArrayList arrayList3 = c5523.f20768;
        ((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;
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC36934 = r3.ᵾᵬ(str3);
                if (abstractComponentCallbacksC36934 == null) {
                    ᵹˉᵞ.ᵳٴᵶ(AbstractC4486.m9550("No instantiated fragment for (", str3, ")"));
                    return;
                } else {
                    if (m9918(2)) {
                        abstractComponentCallbacksC36934.toString();
                    }
                    r3.ᵸˑ(abstractComponentCallbacksC36934);
                }
            }
        }
        if (c5523.f20772 != null) {
            this.f17516 = new ArrayList(c5523.f20772.length);
            int i6 = 0;
            while (true) {
                C5132[] c5132Arr = c5523.f20772;
                if (i6 >= c5132Arr.length) {
                    break;
                }
                C5132 c5132 = c5132Arr[i6];
                ArrayList arrayList4 = c5132.f19120;
                C4877 c4877 = new C4877(this);
                int[] iArr = c5132.f19123;
                int i7 = 0;
                int i8 = 0;
                while (i7 < iArr.length) {
                    C1174 c1174 = new C1174();
                    int i9 = i7 + 1;
                    c1174.f4995 = iArr[i7];
                    if (m9918(i)) {
                        Objects.toString(c4877);
                        int i10 = iArr[i9];
                    }
                    int i11 = i;
                    c1174.f4997 = EnumC5294.values()[c5132.f19127[i8]];
                    c1174.f4994 = EnumC5294.values()[c5132.f19126[i8]];
                    int i12 = i7 + 2;
                    c1174.f4993 = iArr[i9] != 0;
                    int i13 = iArr[i12];
                    c1174.f4998 = i13;
                    int i14 = iArr[i7 + 3];
                    c1174.f4990 = i14;
                    int i15 = i7 + 5;
                    int i16 = iArr[i7 + 4];
                    c1174.f4992 = i16;
                    i7 += 6;
                    int i17 = iArr[i15];
                    c1174.f4991 = i17;
                    c4877.f18159 = i13;
                    c4877.f18150 = i14;
                    c4877.f18164 = i16;
                    c4877.f18145 = i17;
                    c4877.m10302(c1174);
                    i8++;
                    i = i11;
                }
                int i18 = i;
                c4877.f18149 = c5132.f19121;
                c4877.f18151 = c5132.f19119;
                c4877.f18148 = true;
                c4877.f18160 = c5132.f19118;
                c4877.f18162 = c5132.f19116;
                c4877.f18147 = c5132.f19115;
                c4877.f18157 = c5132.f19124;
                c4877.f18156 = c5132.f19122;
                c4877.f18158 = c5132.f19125;
                c4877.f18146 = c5132.f19117;
                c4877.f18155 = c5132.f19114;
                for (int i19 = 0; i19 < arrayList4.size(); i19++) {
                    String str4 = (String) arrayList4.get(i19);
                    if (str4 != null) {
                        ((C1174) c4877.f18154.get(i19)).f4996 = r3.ᵾᵬ(str4);
                    }
                }
                c4877.m10297(1);
                if (m9918(i18)) {
                    c4877.toString();
                    PrintWriter printWriter = new PrintWriter(new C0176());
                    c4877.m10308("  ", printWriter, false);
                    printWriter.close();
                }
                this.f17516.add(c4877);
                i6++;
                i = i18;
            }
            i2 = 0;
        } else {
            i2 = 0;
            this.f17516 = new ArrayList();
        }
        this.f17513.set(c5523.f20771);
        String str5 = c5523.f20769;
        if (str5 != null) {
            AbstractComponentCallbacksC3693 abstractComponentCallbacksC36935 = r3.ᵾᵬ(str5);
            this.f17498 = abstractComponentCallbacksC36935;
            m9962(abstractComponentCallbacksC36935);
        }
        ArrayList arrayList5 = c5523.f20767;
        if (arrayList5 != null) {
            while (i2 < arrayList5.size()) {
                this.f17483.put((String) arrayList5.get(i2), (C2660) c5523.f20765.get(i2));
                i2++;
            }
        }
        this.f17502 = new ArrayDeque(c5523.f20766);
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final HashSet m9935() {
        C0970 c0970;
        HashSet hashSet = new HashSet();
        ArrayList arrayList = this.f17487.ᵡˎ();
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            ViewGroup viewGroup = ((C4534) obj).f16864.f13745;
            if (viewGroup != null) {
                m9950();
                Object tag = viewGroup.getTag(R.id._11_res_0x7f0b0375);
                if (tag instanceof C0970) {
                    c0970 = (C0970) tag;
                } else {
                    c0970 = new C0970(viewGroup);
                    viewGroup.setTag(R.id._11_res_0x7f0b0375, c0970);
                }
                hashSet.add(c0970);
            }
        }
        return hashSet;
    }

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public final AbstractComponentCallbacksC3693 m9936(int i) {
        ᵮᵥٴ r4 = this.f17487;
        ArrayList arrayList = (ArrayList) r4.ᵢˇᵭ;
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = (AbstractComponentCallbacksC3693) arrayList.get(size);
            if (abstractComponentCallbacksC3693 != null && abstractComponentCallbacksC3693.f13763 == i) {
                return abstractComponentCallbacksC3693;
            }
        }
        for (C4534 c4534 : ((HashMap) r4.ᵿʗᵝʽ).values()) {
            if (c4534 != null) {
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = c4534.f16864;
                if (abstractComponentCallbacksC36932.f13763 == i) {
                    return abstractComponentCallbacksC36932;
                }
            }
        }
        return null;
    }

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public final void m9937(int i, int i2, boolean z) {
        if (i >= 0) {
            m9955(new C5326(this, i, i2), z);
        } else {
            ᵹˉᵞ.ˌᵜᵹᵩ(AbstractC2990.m7313(i, "Bad id: "));
        }
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final void m9938() {
        this.f17509 = false;
        this.f17497.clear();
        this.f17492.clear();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m9939(C0600 c0600, ˆᴵ r12, AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        if (this.f17518 != null) {
            ᵹˉᵞ.ᵳٴᵶ("Already attached");
            return;
        }
        this.f17518 = c0600;
        this.f17517 = r12;
        this.f17500 = abstractComponentCallbacksC3693;
        CopyOnWriteArrayList copyOnWriteArrayList = this.f17495;
        if (abstractComponentCallbacksC3693 != 0) {
            copyOnWriteArrayList.add(new C5097(abstractComponentCallbacksC3693));
        } else if (c0600 != null) {
            copyOnWriteArrayList.add(c0600);
        }
        if (this.f17500 != null) {
            m9946();
        }
        if (c0600 != null) {
            C2430 c2430M10514 = c0600.f3053.m10514();
            this.f17484 = c2430M10514;
            C0600 c06002 = abstractComponentCallbacksC3693 != 0 ? abstractComponentCallbacksC3693 : c0600;
            c2430M10514.getClass();
            C4171 c4171Mo2484 = c06002.mo2484();
            if (c4171Mo2484.f15587 != EnumC5294.f19811) {
                C5136 c5136 = this.f17511;
                c5136.f19136.add(new C0115(c2430M10514, c4171Mo2484, c5136));
                c2430M10514.m6209();
                c5136.f19134 = new ᵺʓᵯˁ(0, c2430M10514, C2430.class, "updateEnabledCallbacks", "updateEnabledCallbacks()V", 0, 0, 5);
            }
        }
        boolean z = false;
        Object[] objArr = 0;
        if (abstractComponentCallbacksC3693 != 0) {
            C4152 c4152 = abstractComponentCallbacksC3693.f13758.f17481;
            HashMap map = c4152.f15514;
            C4152 c41522 = (C4152) map.get(abstractComponentCallbacksC3693.f13772);
            if (c41522 == null) {
                c41522 = new C4152(c4152.f15511);
                map.put(abstractComponentCallbacksC3693.f13772, c41522);
            }
            this.f17481 = c41522;
        } else if (c0600 != null) {
            C0030 c0030 = new C0030(c0600.f3053.mo2486(), C4152.f15510, C2929.f11360);
            C5563 c5563M4709 = AbstractC1641.m4709(C4152.class);
            String strM11198 = c5563M4709.m11198();
            if (strM11198 == null) {
                ᵹˉᵞ.ˌᵜᵹᵩ("Local and anonymous classes can not be ViewModels");
                return;
            }
            this.f17481 = (C4152) c0030.m1020(c5563M4709, "androidx.lifecycle.ViewModelProvider.DefaultKey:".concat(strM11198));
        } else {
            this.f17481 = new C4152(false);
        }
        this.f17481.f15512 = m9933();
        this.f17487.ᵤᵙᵷ = this.f17481;
        C0600 c06003 = this.f17518;
        int i = 2;
        if (c06003 != null && abstractComponentCallbacksC3693 == 0) {
            C5553 c5553Mo2487 = c06003.mo2487();
            c5553Mo2487.m11185("android:support:fragments", new C1609(i, (C3319) this));
            Bundle bundleM11190 = c5553Mo2487.m11190("android:support:fragments");
            if (bundleM11190 != null) {
                m9934(bundleM11190);
            }
        }
        C0600 c06004 = this.f17518;
        if (c06004 != null) {
            C5371 c5371 = c06004.f3053.f18858;
            String strConcat = "FragmentManager:".concat(abstractComponentCallbacksC3693 != 0 ? AbstractC1327.m4107(new StringBuilder(), abstractComponentCallbacksC3693.f13772, ":") : "");
            C3319 c3319 = (C3319) this;
            this.f17489 = c5371.m11030(strConcat.concat("StartActivityForResult"), new C5462(i, z), new ˊᵘʛ(27, c3319));
            this.f17485 = c5371.m11030(strConcat.concat("StartIntentSenderForResult"), new C5462(4), new C2931(c3319));
            this.f17506 = c5371.m11030(strConcat.concat("RequestPermissions"), new C5462(objArr == true ? 1 : 0), new C3718(c3319));
        }
        C0600 c06005 = this.f17518;
        if (c06005 != null) {
            c06005.f3053.m10516(this.f17512);
        }
        C0600 c06006 = this.f17518;
        if (c06006 != null) {
            c06006.f3053.f18860.add(this.f17494);
        }
        C0600 c06007 = this.f17518;
        if (c06007 != null) {
            c06007.f3053.f18859.add(this.f17504);
        }
        C0600 c06008 = this.f17518;
        if (c06008 != null) {
            c06008.f3053.f18848.add(this.f17490);
        }
        C0600 c06009 = this.f17518;
        if (c06009 == null || abstractComponentCallbacksC3693 != 0) {
            return;
        }
        ᵧˉʙ r11 = c06009.f3053.f18862;
        ((CopyOnWriteArrayList) r11.ᵿʗᵝʽ).add(this.f17503);
        ((Runnable) r11.ᵢˇᵭ).run();
    }

    /* 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  */
    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void m9940(java.util.ArrayList r27, java.util.ArrayList r28, int r29, int r30) {
        /*
            Method dump skipped, instructions count: 1466
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.AbstractC4731.m9940(java.util.ArrayList, java.util.ArrayList, int, int):void");
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public final void m9941(boolean z, boolean z2) {
        if (z2 && this.f17518 != null) {
            m9921(new IllegalStateException("Do not call dispatchPictureInPictureModeChanged() on host. Host implements OnPictureInPictureModeChangedProvider and automatically dispatches picture-in-picture mode changes to fragments."));
            throw null;
        }
        for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
            if (abstractComponentCallbacksC3693 != null) {
                abstractComponentCallbacksC3693.m8321(z);
                if (z2) {
                    abstractComponentCallbacksC3693.f13747.m9941(z, true);
                }
            }
        }
    }

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public final C4877 m9942(int i) {
        if (i != this.f17516.size()) {
            return (C4877) this.f17516.get(i);
        }
        C4877 c4877 = this.f17514;
        if (c4877 != null) {
            return c4877;
        }
        C0190.m1431();
        return null;
    }

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public final List m9943() {
        return this.f17487.ᵮᵠـˌ();
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final C4534 m9944(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        String str = abstractComponentCallbacksC3693.f13772;
        ᵮᵥٴ r1 = this.f17487;
        C4534 c4534 = (C4534) ((HashMap) r1.ᵿʗᵝʽ).get(str);
        if (c4534 != null) {
            return c4534;
        }
        C4534 c45342 = new C4534(this.f17482, r1, abstractComponentCallbacksC3693);
        c45342.m9631(this.f17518.f3055.getClassLoader());
        c45342.f16863 = this.f17499;
        return c45342;
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public final void m9945() {
        if (this.f17499 < 1) {
            return;
        }
        for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
            if (abstractComponentCallbacksC3693 != null && !abstractComponentCallbacksC3693.f13768) {
                abstractComponentCallbacksC3693.f13747.m9945();
            }
        }
    }

    /* renamed from: ᵠᵪˀᵻ, reason: contains not printable characters */
    public final void m9946() {
        synchronized (this.f17501) {
            try {
                if (!this.f17501.isEmpty()) {
                    C5136 c5136 = this.f17511;
                    c5136.f19135 = true;
                    InterfaceC4622 interfaceC4622 = c5136.f19134;
                    if (interfaceC4622 != null) {
                        interfaceC4622.mo1401();
                    }
                    if (m9918(3)) {
                        toString();
                    }
                    return;
                }
                boolean z = m9971() > 0 && m9919(this.f17500);
                if (m9918(3)) {
                    toString();
                }
                C5136 c51362 = this.f17511;
                c51362.f19135 = z;
                InterfaceC4622 interfaceC46222 = c51362.f19134;
                if (interfaceC46222 != null) {
                    interfaceC46222.mo1401();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* renamed from: ᵠᵿː, reason: contains not printable characters */
    public final Bundle m9947() {
        int i;
        ArrayList arrayList;
        C5132[] c5132Arr;
        Bundle bundle = new Bundle();
        m9959();
        m9980();
        m9924(true);
        this.f17491 = true;
        this.f17481.f15512 = true;
        ᵮᵥٴ r1 = this.f17487;
        r1.getClass();
        HashMap map = (HashMap) r1.ᵿʗᵝʽ;
        ArrayList arrayList2 = new ArrayList(map.size());
        for (C4534 c4534 : map.values()) {
            if (c4534 != null) {
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = c4534.f16864;
                r1.ˊʾˊ(abstractComponentCallbacksC3693.f13772, c4534.m9632());
                arrayList2.add(abstractComponentCallbacksC3693.f13772);
                if (m9918(2)) {
                    abstractComponentCallbacksC3693.toString();
                    Objects.toString(abstractComponentCallbacksC3693.f13770);
                }
            }
        }
        HashMap map2 = (HashMap) this.f17487.ᵾᵬ;
        if (map2.isEmpty()) {
            m9918(2);
            return bundle;
        }
        ᵮᵥٴ r3 = this.f17487;
        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++;
                        AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = (AbstractComponentCallbacksC3693) obj;
                        arrayList.add(abstractComponentCallbacksC36932.f13772);
                        if (m9918(2)) {
                            abstractComponentCallbacksC36932.toString();
                        }
                    }
                }
            } finally {
            }
        }
        int size2 = this.f17516.size();
        if (size2 > 0) {
            c5132Arr = new C5132[size2];
            for (i = 0; i < size2; i++) {
                c5132Arr[i] = new C5132((C4877) this.f17516.get(i));
                if (m9918(2)) {
                    Objects.toString(this.f17516.get(i));
                }
            }
        } else {
            c5132Arr = null;
        }
        C5523 c5523 = new C5523();
        c5523.f20769 = null;
        ArrayList arrayList4 = new ArrayList();
        c5523.f20767 = arrayList4;
        ArrayList arrayList5 = new ArrayList();
        c5523.f20765 = arrayList5;
        c5523.f20770 = arrayList2;
        c5523.f20768 = arrayList;
        c5523.f20772 = c5132Arr;
        c5523.f20771 = this.f17513.get();
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC36933 = this.f17498;
        if (abstractComponentCallbacksC36933 != null) {
            c5523.f20769 = abstractComponentCallbacksC36933.f13772;
        }
        arrayList4.addAll(this.f17483.keySet());
        arrayList5.addAll(this.f17483.values());
        c5523.f20766 = new ArrayList(this.f17502);
        bundle.putParcelable("state", c5523);
        for (String str : this.f17507.keySet()) {
            bundle.putBundle(AbstractC4486.m9562("result_", str), (Bundle) this.f17507.get(str));
        }
        for (String str2 : map2.keySet()) {
            bundle.putBundle(AbstractC4486.m9562("fragment_", str2), (Bundle) map2.get(str2));
        }
        return bundle;
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public final void m9948() {
        ArrayList arrayList = this.f17487.ˑᵥˁ();
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = (AbstractComponentCallbacksC3693) obj;
            if (abstractComponentCallbacksC3693 != null) {
                abstractComponentCallbacksC3693.m8317();
                abstractComponentCallbacksC3693.f13747.m9948();
            }
        }
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final void m9949(C4877 c4877, boolean z) {
        if (z && (this.f17518 == null || this.f17479)) {
            return;
        }
        m9952(z);
        C4877 c48772 = this.f17514;
        if (c48772 != null) {
            c48772.f18152 = false;
            c48772.m10301();
            if (m9918(3)) {
                Objects.toString(this.f17514);
                Objects.toString(c4877);
            }
            this.f17514.m10303(false, false);
            this.f17514.mo5478(this.f17492, this.f17497);
            ArrayList arrayList = this.f17514.f18154;
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = ((C1174) obj).f4996;
                if (abstractComponentCallbacksC3693 != null) {
                    abstractComponentCallbacksC3693.f13785 = false;
                }
            }
            this.f17514 = null;
        }
        c4877.mo5478(this.f17492, this.f17497);
        this.f17509 = true;
        try {
            m9973(this.f17492, this.f17497);
            m9938();
            m9946();
            if (this.f17519) {
                this.f17519 = false;
                m9961();
            }
            ((HashMap) this.f17487.ᵿʗᵝʽ).values().removeAll(Collections.singleton(null));
        } catch (Throwable th) {
            m9938();
            throw th;
        }
    }

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public final ʾᵚᵱ m9950() {
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = this.f17500;
        return abstractComponentCallbacksC3693 != null ? abstractComponentCallbacksC3693.f13758.m9950() : this.f17496;
    }

    /* renamed from: ᵡᵶᵡ, reason: contains not printable characters */
    public final void m9951() {
        if (this.f17518 == null) {
            return;
        }
        this.f17491 = false;
        this.f17510 = false;
        this.f17481.f15512 = false;
        for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
            if (abstractComponentCallbacksC3693 != null) {
                abstractComponentCallbacksC3693.f13747.m9951();
            }
        }
    }

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final void m9952(boolean z) {
        if (this.f17509) {
            ᵹˉᵞ.ᵳٴᵶ("FragmentManager is already executing transactions");
            return;
        }
        if (this.f17518 == null) {
            if (this.f17479) {
                ᵹˉᵞ.ᵳٴᵶ("FragmentManager has been destroyed");
                return;
            } else {
                ᵹˉᵞ.ᵳٴᵶ("FragmentManager has not been attached to a host.");
                return;
            }
        }
        if (Looper.myLooper() != this.f17518.f3052.getLooper()) {
            ᵹˉᵞ.ᵳٴᵶ("Must be called from main thread of fragment host");
            return;
        }
        if (!z && m9933()) {
            ᵹˉᵞ.ᵳٴᵶ("Can not perform this action after onSaveInstanceState");
        } else if (this.f17492 == null) {
            this.f17492 = new ArrayList();
            this.f17497 = new ArrayList();
        }
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final void m9953(int i) {
        try {
            this.f17509 = true;
            for (C4534 c4534 : ((HashMap) this.f17487.ᵿʗᵝʽ).values()) {
                if (c4534 != null) {
                    c4534.f16863 = i;
                }
            }
            m9969(i, false);
            Iterator it = m9935().iterator();
            while (it.hasNext()) {
                ((C0970) it.next()).m3312();
            }
            this.f17509 = false;
            m9924(true);
        } catch (Throwable th) {
            this.f17509 = false;
            throw th;
        }
    }

    /* renamed from: ᵣᵟᵔ, reason: contains not printable characters */
    public final void m9954(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693, EnumC5294 enumC5294) {
        if (abstractComponentCallbacksC3693 == this.f17487.ᵾᵬ(abstractComponentCallbacksC3693.f13772) && (abstractComponentCallbacksC3693.f13753 == null || abstractComponentCallbacksC3693.f13758 == this)) {
            abstractComponentCallbacksC3693.f13774 = enumC5294;
        } else {
            C0190.m1426("Fragment ", abstractComponentCallbacksC3693, " is not an active fragment of FragmentManager ", this);
        }
    }

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final void m9955(InterfaceC3668 interfaceC3668, boolean z) {
        if (!z) {
            if (this.f17518 == null) {
                if (this.f17479) {
                    ᵹˉᵞ.ᵳٴᵶ("FragmentManager has been destroyed");
                    return;
                } else {
                    ᵹˉᵞ.ᵳٴᵶ("FragmentManager has not been attached to a host.");
                    return;
                }
            }
            if (m9933()) {
                ᵹˉᵞ.ᵳٴᵶ("Can not perform this action after onSaveInstanceState");
                return;
            }
        }
        synchronized (this.f17501) {
            try {
                if (this.f17518 == null) {
                    if (!z) {
                        throw new IllegalStateException("Activity has been destroyed");
                    }
                } else {
                    this.f17501.add(interfaceC3668);
                    m9977();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* renamed from: ᵤᵼˑʠ, reason: contains not printable characters */
    public final void m9956(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693, boolean z) {
        ViewGroup viewGroupM9926 = m9926(abstractComponentCallbacksC3693);
        if (viewGroupM9926 == null || !(viewGroupM9926 instanceof FragmentContainerView)) {
            return;
        }
        ((FragmentContainerView) viewGroupM9926).setDrawDisappearingViewsLast(!z);
    }

    /* renamed from: ᵥʩᵩˑ, reason: contains not printable characters */
    public final void m9957(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        if (abstractComponentCallbacksC3693 != null) {
            if (abstractComponentCallbacksC3693 != this.f17487.ᵾᵬ(abstractComponentCallbacksC3693.f13772) || (abstractComponentCallbacksC3693.f13753 != null && abstractComponentCallbacksC3693.f13758 != this)) {
                C0190.m1426("Fragment ", abstractComponentCallbacksC3693, " is not an active fragment of FragmentManager ", this);
                return;
            }
        }
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = this.f17498;
        this.f17498 = abstractComponentCallbacksC3693;
        m9962(abstractComponentCallbacksC36932);
        m9962(this.f17498);
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C4534 m9958(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        String str = abstractComponentCallbacksC3693.f13771;
        if (str != null) {
            AbstractC3918.m8662(abstractComponentCallbacksC3693, str);
        }
        if (m9918(2)) {
            abstractComponentCallbacksC3693.toString();
        }
        C4534 c4534M9944 = m9944(abstractComponentCallbacksC3693);
        abstractComponentCallbacksC3693.f13758 = this;
        ᵮᵥٴ r1 = this.f17487;
        r1.ᐧﾞ(c4534M9944);
        if (!abstractComponentCallbacksC3693.f13751) {
            r1.ᵸˑ(abstractComponentCallbacksC3693);
            abstractComponentCallbacksC3693.f13775 = false;
            if (abstractComponentCallbacksC3693.f13752 == null) {
                abstractComponentCallbacksC3693.f13773 = false;
            }
            if (m9917(abstractComponentCallbacksC3693)) {
                this.f17515 = true;
            }
        }
        return c4534M9944;
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public final void m9959() {
        Iterator it = m9935().iterator();
        while (it.hasNext()) {
            C0970 c0970 = (C0970) it.next();
            if (c0970.f4323) {
                m9918(2);
                c0970.f4323 = false;
                c0970.m3308();
            }
        }
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final boolean m9960() {
        if (this.f17499 < 1) {
            return false;
        }
        boolean z = false;
        for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
            if (abstractComponentCallbacksC3693 != null && m9916(abstractComponentCallbacksC3693)) {
                if (!abstractComponentCallbacksC3693.f13768 ? abstractComponentCallbacksC3693.f13747.m9960() : false) {
                    z = true;
                }
            }
        }
        return z;
    }

    /* renamed from: ᵨٴ, reason: contains not printable characters */
    public final void m9961() {
        ArrayList arrayList = this.f17487.ᵡˎ();
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            C4534 c4534 = (C4534) obj;
            AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = c4534.f16864;
            if (abstractComponentCallbacksC3693.f13784) {
                if (this.f17509) {
                    this.f17519 = true;
                } else {
                    abstractComponentCallbacksC3693.f13784 = false;
                    c4534.m9636();
                }
            }
        }
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public final void m9962(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        if (abstractComponentCallbacksC3693 != null) {
            if (abstractComponentCallbacksC3693 != this.f17487.ᵾᵬ(abstractComponentCallbacksC3693.f13772)) {
                return;
            }
            abstractComponentCallbacksC3693.f13758.getClass();
            boolean zM9919 = m9919(abstractComponentCallbacksC3693);
            Boolean bool = abstractComponentCallbacksC3693.f13756;
            if (bool == null || bool.booleanValue() != zM9919) {
                abstractComponentCallbacksC3693.f13756 = Boolean.valueOf(zM9919);
                C3319 c3319 = abstractComponentCallbacksC3693.f13747;
                c3319.m9946();
                c3319.m9962(c3319.f17498);
            }
        }
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public final void m9963() {
        boolean zIsChangingConfigurations = true;
        this.f17479 = true;
        m9924(true);
        m9980();
        C0600 c0600 = this.f17518;
        ᵮᵥٴ r2 = this.f17487;
        if (c0600 != null) {
            zIsChangingConfigurations = ((C4152) r2.ᵤᵙᵷ).f15513;
        } else {
            AbstractActivityC3177 abstractActivityC3177 = c0600.f3055;
            if (AbstractC3915.m8586(abstractActivityC3177)) {
                zIsChangingConfigurations = true ^ abstractActivityC3177.isChangingConfigurations();
            }
        }
        if (zIsChangingConfigurations) {
            Iterator it = this.f17483.values().iterator();
            while (it.hasNext()) {
                ArrayList arrayList = ((C2660) it.next()).f10327;
                int size = arrayList.size();
                int i = 0;
                while (i < size) {
                    Object obj = arrayList.get(i);
                    i++;
                    C4152 c4152 = (C4152) r2.ᵤᵙᵷ;
                    c4152.getClass();
                    m9918(3);
                    c4152.m9053((String) obj, false);
                }
            }
        }
        m9953(-1);
        C0600 c06002 = this.f17518;
        if (c06002 != null) {
            c06002.f3053.f18860.remove(this.f17494);
        }
        C0600 c06003 = this.f17518;
        if (c06003 != null) {
            c06003.f3053.f18857.remove(this.f17512);
        }
        C0600 c06004 = this.f17518;
        if (c06004 != null) {
            c06004.f3053.f18859.remove(this.f17504);
        }
        C0600 c06005 = this.f17518;
        if (c06005 != null) {
            c06005.f3053.f18848.remove(this.f17490);
        }
        C0600 c06006 = this.f17518;
        if (c06006 != null && this.f17500 == null) {
            ᵧˉʙ r0 = c06006.f3053.f18862;
            CopyOnWriteArrayList copyOnWriteArrayList = (CopyOnWriteArrayList) r0.ᵿʗᵝʽ;
            C0270 c0270 = this.f17503;
            copyOnWriteArrayList.remove(c0270);
            if (((HashMap) r0.ᵾᵬ).remove(c0270) == null) {
                ((Runnable) r0.ᵢˇᵭ).run();
            } else {
                C0910.m3050();
            }
        }
        this.f17518 = null;
        this.f17517 = null;
        this.f17500 = null;
        if (this.f17484 != null) {
            Iterator it2 = this.f17511.f19136.iterator();
            while (it2.hasNext()) {
                ((InterfaceC4693) it2.next()).cancel();
            }
            this.f17484 = null;
        }
        C3339 c3339 = this.f17489;
        if (c3339 != null) {
            c3339.m7729();
            this.f17485.m7729();
            this.f17506.m7729();
        }
    }

    /* renamed from: ᵫᵮʾ, reason: contains not printable characters */
    public final boolean m9964() {
        return m9979(-1, 0);
    }

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public final AbstractComponentCallbacksC3693 m9965(String str) {
        ᵮᵥٴ r4 = this.f17487;
        ArrayList arrayList = (ArrayList) r4.ᵢˇᵭ;
        if (str != null) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = (AbstractComponentCallbacksC3693) arrayList.get(size);
                if (abstractComponentCallbacksC3693 != null && str.equals(abstractComponentCallbacksC3693.f13782)) {
                    return abstractComponentCallbacksC3693;
                }
            }
        }
        if (str == null) {
            return null;
        }
        for (C4534 c4534 : ((HashMap) r4.ᵿʗᵝʽ).values()) {
            if (c4534 != null) {
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = c4534.f16864;
                if (str.equals(abstractComponentCallbacksC36932.f13782)) {
                    return abstractComponentCallbacksC36932;
                }
            }
        }
        return null;
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public final boolean m9966() {
        if (this.f17499 < 1) {
            return false;
        }
        ArrayList arrayList = null;
        boolean z = false;
        for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
            if (abstractComponentCallbacksC3693 != null && m9916(abstractComponentCallbacksC3693)) {
                if (!abstractComponentCallbacksC3693.f13768 ? abstractComponentCallbacksC3693.f13747.m9966() : false) {
                    if (arrayList == null) {
                        arrayList = new ArrayList();
                    }
                    arrayList.add(abstractComponentCallbacksC3693);
                    z = true;
                }
            }
        }
        if (this.f17480 != null) {
            for (int i = 0; i < this.f17480.size(); i++) {
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = (AbstractComponentCallbacksC3693) this.f17480.get(i);
                if (arrayList == null || !arrayList.contains(abstractComponentCallbacksC36932)) {
                    abstractComponentCallbacksC36932.getClass();
                }
            }
        }
        this.f17480 = arrayList;
        return z;
    }

    /* renamed from: ᵲᵟ, reason: contains not printable characters */
    public final void m9967(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        ViewGroup viewGroupM9926 = m9926(abstractComponentCallbacksC3693);
        if (viewGroupM9926 != null) {
            C3371 c3371 = abstractComponentCallbacksC3693.f13765;
            if ((c3371 == null ? 0 : c3371.f12596) + (c3371 == null ? 0 : c3371.f12612) + (c3371 == null ? 0 : c3371.f12601) + (c3371 == null ? 0 : c3371.f12608) > 0) {
                if (viewGroupM9926.getTag(R.id._11_res_0x7f0b0449) == null) {
                    viewGroupM9926.setTag(R.id._11_res_0x7f0b0449, abstractComponentCallbacksC3693);
                }
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = (AbstractComponentCallbacksC3693) viewGroupM9926.getTag(R.id._11_res_0x7f0b0449);
                C3371 c33712 = abstractComponentCallbacksC3693.f13765;
                boolean z = c33712 != null ? c33712.f12604 : false;
                if (abstractComponentCallbacksC36932.f13765 == null) {
                    return;
                }
                abstractComponentCallbacksC36932.m8304().f12604 = z;
            }
        }
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public final void m9968(boolean z) {
        if (z && this.f17518 != null) {
            m9921(new IllegalStateException("Do not call dispatchLowMemory() on host. Host implements OnTrimMemoryProvider and automatically dispatches low memory callbacks to fragments."));
            throw null;
        }
        for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
            if (abstractComponentCallbacksC3693 != null) {
                abstractComponentCallbacksC3693.f13788 = true;
                if (z) {
                    abstractComponentCallbacksC3693.f13747.m9968(true);
                }
            }
        }
    }

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public final void m9969(int i, boolean z) {
        C0600 c0600;
        if (this.f17518 == null && i != -1) {
            ᵹˉᵞ.ᵳٴᵶ("No activity");
            return;
        }
        if (z || i != this.f17499) {
            this.f17499 = i;
            ᵮᵥٴ r6 = this.f17487;
            HashMap map = (HashMap) r6.ᵿʗᵝʽ;
            ArrayList arrayList = (ArrayList) r6.ᵢˇᵭ;
            int size = arrayList.size();
            int i2 = 0;
            while (i2 < size) {
                Object obj = arrayList.get(i2);
                i2++;
                C4534 c4534 = (C4534) map.get(((AbstractComponentCallbacksC3693) obj).f13772);
                if (c4534 != null) {
                    c4534.m9636();
                }
            }
            for (C4534 c45342 : map.values()) {
                if (c45342 != null) {
                    c45342.m9636();
                    AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = c45342.f16864;
                    if (abstractComponentCallbacksC3693.f13775 && !abstractComponentCallbacksC3693.m8310()) {
                        r6.ᵶʔᵢˊ(c45342);
                    }
                }
            }
            m9961();
            if (this.f17515 && (c0600 = this.f17518) != null && this.f17499 == 7) {
                c0600.f3053.invalidateOptionsMenu();
                this.f17515 = false;
            }
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m9970(ˁʾˌᵕ r1) {
        this.f17508.add(r1);
    }

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final int m9971() {
        return this.f17516.size() + (this.f17514 != null ? 1 : 0);
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final void m9972(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        if (m9918(2)) {
            Objects.toString(abstractComponentCallbacksC3693);
        }
        if (abstractComponentCallbacksC3693.f13751) {
            return;
        }
        abstractComponentCallbacksC3693.f13751 = true;
        if (abstractComponentCallbacksC3693.f13779) {
            if (m9918(2)) {
                abstractComponentCallbacksC3693.toString();
            }
            ᵮᵥٴ r0 = this.f17487;
            synchronized (((ArrayList) r0.ᵢˇᵭ)) {
                ((ArrayList) r0.ᵢˇᵭ).remove(abstractComponentCallbacksC3693);
            }
            abstractComponentCallbacksC3693.f13779 = false;
            if (m9917(abstractComponentCallbacksC3693)) {
                this.f17515 = true;
            }
            m9967(abstractComponentCallbacksC3693);
        }
    }

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public final void m9973(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 (!((C4877) arrayList.get(i)).f18146) {
                if (i2 != i) {
                    m9940(arrayList, arrayList2, i2, i);
                }
                i2 = i + 1;
                if (((Boolean) arrayList2.get(i)).booleanValue()) {
                    while (i2 < size && ((Boolean) arrayList2.get(i2)).booleanValue() && !((C4877) arrayList.get(i2)).f18146) {
                        i2++;
                    }
                }
                m9940(arrayList, arrayList2, i, i2);
                i = i2 - 1;
            }
            i++;
        }
        if (i2 != size) {
            m9940(arrayList, arrayList2, i2, size);
        }
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public final boolean m9974() {
        if (this.f17499 >= 1) {
            for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
                if (abstractComponentCallbacksC3693 != null) {
                    if (!abstractComponentCallbacksC3693.f13768 ? abstractComponentCallbacksC3693.f13747.m9974() : false) {
                        return true;
                    }
                }
            }
        }
        return false;
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final void m9975(boolean z, Configuration configuration) {
        if (z && this.f17518 != null) {
            m9921(new IllegalStateException("Do not call dispatchConfigurationChanged() on host. Host implements OnConfigurationChangedProvider and automatically dispatches configuration changes to fragments."));
            throw null;
        }
        for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 : this.f17487.ᵮᵠـˌ()) {
            if (abstractComponentCallbacksC3693 != null) {
                abstractComponentCallbacksC3693.onConfigurationChanged(configuration);
                if (z) {
                    abstractComponentCallbacksC3693.f13747.m9975(true, configuration);
                }
            }
        }
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final HashSet m9976(ArrayList arrayList, int i, int i2) {
        ViewGroup viewGroup;
        HashSet hashSet = new HashSet();
        while (i < i2) {
            ArrayList arrayList2 = ((C4877) arrayList.get(i)).f18154;
            int size = arrayList2.size();
            int i3 = 0;
            while (i3 < size) {
                Object obj = arrayList2.get(i3);
                i3++;
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = ((C1174) obj).f4996;
                if (abstractComponentCallbacksC3693 != null && (viewGroup = abstractComponentCallbacksC3693.f13745) != null) {
                    hashSet.add(C0970.m3306(viewGroup, this));
                }
            }
            i++;
        }
        return hashSet;
    }

    /* renamed from: ᵺᵠ, reason: contains not printable characters */
    public final void m9977() {
        synchronized (this.f17501) {
            try {
                if (this.f17501.size() == 1) {
                    this.f17518.f3052.removeCallbacks(this.f17478);
                    this.f17518.f3052.post(this.f17478);
                    m9946();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final void m9978(AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693) {
        if (m9918(2)) {
            Objects.toString(abstractComponentCallbacksC3693);
        }
        if (abstractComponentCallbacksC3693.f13751) {
            abstractComponentCallbacksC3693.f13751 = false;
            if (abstractComponentCallbacksC3693.f13779) {
                return;
            }
            this.f17487.ᵸˑ(abstractComponentCallbacksC3693);
            if (m9918(2)) {
                abstractComponentCallbacksC3693.toString();
            }
            if (m9917(abstractComponentCallbacksC3693)) {
                this.f17515 = true;
            }
        }
    }

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public final boolean m9979(int i, int i2) {
        m9924(false);
        m9952(true);
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = this.f17498;
        if (abstractComponentCallbacksC3693 != null && i < 0 && abstractComponentCallbacksC3693.m8298().m9964()) {
            return true;
        }
        boolean zM9923 = m9923(this.f17492, this.f17497, i, i2);
        if (zM9923) {
            this.f17509 = true;
            try {
                m9973(this.f17492, this.f17497);
            } finally {
                m9938();
            }
        }
        m9946();
        if (this.f17519) {
            this.f17519 = false;
            m9961();
        }
        ((HashMap) this.f17487.ᵿʗᵝʽ).values().removeAll(Collections.singleton(null));
        return zM9923;
    }

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final void m9980() {
        Iterator it = m9935().iterator();
        while (it.hasNext()) {
            ((C0970) it.next()).m3312();
        }
    }

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final void m9981(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) {
        int size;
        String strM8598 = AbstractC3915.m8598(str, "    ");
        ᵮᵥٴ r1 = this.f17487;
        ArrayList arrayList = (ArrayList) r1.ᵢˇᵭ;
        String strM85982 = AbstractC3915.m8598(str, "    ");
        HashMap map = (HashMap) r1.ᵿʗᵝʽ;
        if (!map.isEmpty()) {
            printWriter.print(str);
            printWriter.println("Active Fragments:");
            for (C4534 c4534 : map.values()) {
                printWriter.print(str);
                if (c4534 != null) {
                    AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = c4534.f16864;
                    printWriter.println(abstractComponentCallbacksC3693);
                    abstractComponentCallbacksC3693.getClass();
                    printWriter.print(strM85982);
                    printWriter.print("mFragmentId=#");
                    printWriter.print(Integer.toHexString(abstractComponentCallbacksC3693.f13763));
                    printWriter.print(" mContainerId=#");
                    printWriter.print(Integer.toHexString(abstractComponentCallbacksC3693.f13754));
                    printWriter.print(" mTag=");
                    printWriter.println(abstractComponentCallbacksC3693.f13782);
                    printWriter.print(strM85982);
                    printWriter.print("mState=");
                    printWriter.print(abstractComponentCallbacksC3693.f13776);
                    printWriter.print(" mWho=");
                    printWriter.print(abstractComponentCallbacksC3693.f13772);
                    printWriter.print(" mBackStackNesting=");
                    printWriter.println(abstractComponentCallbacksC3693.f13767);
                    printWriter.print(strM85982);
                    printWriter.print("mAdded=");
                    printWriter.print(abstractComponentCallbacksC3693.f13779);
                    printWriter.print(" mRemoving=");
                    printWriter.print(abstractComponentCallbacksC3693.f13775);
                    printWriter.print(" mFromLayout=");
                    printWriter.print(abstractComponentCallbacksC3693.f13760);
                    printWriter.print(" mInLayout=");
                    printWriter.println(abstractComponentCallbacksC3693.f13783);
                    printWriter.print(strM85982);
                    printWriter.print("mHidden=");
                    printWriter.print(abstractComponentCallbacksC3693.f13768);
                    printWriter.print(" mDetached=");
                    printWriter.print(abstractComponentCallbacksC3693.f13751);
                    printWriter.print(" mMenuVisible=");
                    printWriter.print(abstractComponentCallbacksC3693.f13778);
                    printWriter.print(" mHasMenu=");
                    printWriter.println(false);
                    printWriter.print(strM85982);
                    printWriter.print("mRetainInstance=");
                    printWriter.print(abstractComponentCallbacksC3693.f13757);
                    printWriter.print(" mUserVisibleHint=");
                    printWriter.println(abstractComponentCallbacksC3693.f13755);
                    if (abstractComponentCallbacksC3693.f13758 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mFragmentManager=");
                        printWriter.println(abstractComponentCallbacksC3693.f13758);
                    }
                    if (abstractComponentCallbacksC3693.f13753 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mHost=");
                        printWriter.println(abstractComponentCallbacksC3693.f13753);
                    }
                    if (abstractComponentCallbacksC3693.f13750 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mParentFragment=");
                        printWriter.println(abstractComponentCallbacksC3693.f13750);
                    }
                    if (abstractComponentCallbacksC3693.f13769 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mArguments=");
                        printWriter.println(abstractComponentCallbacksC3693.f13769);
                    }
                    if (abstractComponentCallbacksC3693.f13770 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mSavedFragmentState=");
                        printWriter.println(abstractComponentCallbacksC3693.f13770);
                    }
                    if (abstractComponentCallbacksC3693.f13790 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mSavedViewState=");
                        printWriter.println(abstractComponentCallbacksC3693.f13790);
                    }
                    if (abstractComponentCallbacksC3693.f13789 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mSavedViewRegistryState=");
                        printWriter.println(abstractComponentCallbacksC3693.f13789);
                    }
                    Object objM8327 = abstractComponentCallbacksC3693.m8327(false);
                    if (objM8327 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mTarget=");
                        printWriter.print(objM8327);
                        printWriter.print(" mTargetRequestCode=");
                        printWriter.println(abstractComponentCallbacksC3693.f13759);
                    }
                    printWriter.print(strM85982);
                    printWriter.print("mPopDirection=");
                    C3371 c3371 = abstractComponentCallbacksC3693.f13765;
                    printWriter.println(c3371 == null ? false : c3371.f12604);
                    C3371 c33712 = abstractComponentCallbacksC3693.f13765;
                    if ((c33712 == null ? 0 : c33712.f12608) != 0) {
                        printWriter.print(strM85982);
                        printWriter.print("getEnterAnim=");
                        C3371 c33713 = abstractComponentCallbacksC3693.f13765;
                        printWriter.println(c33713 == null ? 0 : c33713.f12608);
                    }
                    C3371 c33714 = abstractComponentCallbacksC3693.f13765;
                    if ((c33714 == null ? 0 : c33714.f12601) != 0) {
                        printWriter.print(strM85982);
                        printWriter.print("getExitAnim=");
                        C3371 c33715 = abstractComponentCallbacksC3693.f13765;
                        printWriter.println(c33715 == null ? 0 : c33715.f12601);
                    }
                    C3371 c33716 = abstractComponentCallbacksC3693.f13765;
                    if ((c33716 == null ? 0 : c33716.f12612) != 0) {
                        printWriter.print(strM85982);
                        printWriter.print("getPopEnterAnim=");
                        C3371 c33717 = abstractComponentCallbacksC3693.f13765;
                        printWriter.println(c33717 == null ? 0 : c33717.f12612);
                    }
                    C3371 c33718 = abstractComponentCallbacksC3693.f13765;
                    if ((c33718 == null ? 0 : c33718.f12596) != 0) {
                        printWriter.print(strM85982);
                        printWriter.print("getPopExitAnim=");
                        C3371 c33719 = abstractComponentCallbacksC3693.f13765;
                        printWriter.println(c33719 == null ? 0 : c33719.f12596);
                    }
                    if (abstractComponentCallbacksC3693.f13745 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mContainer=");
                        printWriter.println(abstractComponentCallbacksC3693.f13745);
                    }
                    if (abstractComponentCallbacksC3693.f13752 != null) {
                        printWriter.print(strM85982);
                        printWriter.print("mView=");
                        printWriter.println(abstractComponentCallbacksC3693.f13752);
                    }
                    if (abstractComponentCallbacksC3693.mo4691() != null) {
                        C0030 c0030 = new C0030(abstractComponentCallbacksC3693.mo2486(), C2158.f8536, C2929.f11360);
                        C5563 c5563M4709 = AbstractC1641.m4709(C2158.class);
                        String strM11198 = c5563M4709.m11198();
                        if (strM11198 != null) {
                            C0525 c0525 = ((C2158) c0030.m1020(c5563M4709, "androidx.lifecycle.ViewModelProvider.DefaultKey:".concat(strM11198))).f8537;
                            if (c0525.f2742 > 0) {
                                printWriter.print(strM85982);
                                printWriter.println("Loaders:");
                                if (c0525.f2742 > 0) {
                                    if (c0525.m2317(0) == null) {
                                        printWriter.print(strM85982);
                                        printWriter.print("  #");
                                        if (c0525.f2742 <= 0) {
                                            throw new ArrayIndexOutOfBoundsException();
                                        }
                                        printWriter.print(c0525.f2741[0]);
                                        printWriter.print(": ");
                                        throw null;
                                    }
                                    C0910.m3050();
                                }
                            }
                        } else {
                            ᵹˉᵞ.ˌᵜᵹᵩ("Local and anonymous classes can not be ViewModels");
                        }
                    }
                    printWriter.print(strM85982);
                    printWriter.println("Child " + abstractComponentCallbacksC3693.f13747 + ":");
                    abstractComponentCallbacksC3693.f13747.m9981(strM85982.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++) {
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC36932 = (AbstractComponentCallbacksC3693) arrayList.get(i);
                printWriter.print(str);
                printWriter.print("  #");
                printWriter.print(i);
                printWriter.print(": ");
                printWriter.println(abstractComponentCallbacksC36932.toString());
            }
        }
        ArrayList arrayList2 = this.f17480;
        if (arrayList2 != null && (size = arrayList2.size()) > 0) {
            printWriter.print(str);
            printWriter.println("Fragments Created Menus:");
            for (int i2 = 0; i2 < size; i2++) {
                AbstractComponentCallbacksC3693 abstractComponentCallbacksC36933 = (AbstractComponentCallbacksC3693) this.f17480.get(i2);
                printWriter.print(str);
                printWriter.print("  #");
                printWriter.print(i2);
                printWriter.print(": ");
                printWriter.println(abstractComponentCallbacksC36933.toString());
            }
        }
        int size3 = this.f17516.size();
        if (size3 > 0) {
            printWriter.print(str);
            printWriter.println("Back Stack:");
            for (int i3 = 0; i3 < size3; i3++) {
                C4877 c4877 = (C4877) this.f17516.get(i3);
                printWriter.print(str);
                printWriter.print("  #");
                printWriter.print(i3);
                printWriter.print(": ");
                printWriter.println(c4877.toString());
                c4877.m10308(strM8598, printWriter, true);
            }
        }
        printWriter.print(str);
        printWriter.println("Back Stack Index: " + this.f17513.get());
        synchronized (this.f17501) {
            try {
                int size4 = this.f17501.size();
                if (size4 > 0) {
                    printWriter.print(str);
                    printWriter.println("Pending Actions:");
                    for (int i4 = 0; i4 < size4; i4++) {
                        Object obj = (InterfaceC3668) this.f17501.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.f17518);
        printWriter.print(str);
        printWriter.print("  mContainer=");
        printWriter.println(this.f17517);
        if (this.f17500 != null) {
            printWriter.print(str);
            printWriter.print("  mParent=");
            printWriter.println(this.f17500);
        }
        printWriter.print(str);
        printWriter.print("  mCurState=");
        printWriter.print(this.f17499);
        printWriter.print(" mStateSaved=");
        printWriter.print(this.f17491);
        printWriter.print(" mStopped=");
        printWriter.print(this.f17510);
        printWriter.print(" mDestroyed=");
        printWriter.println(this.f17479);
        if (this.f17515) {
            printWriter.print(str);
            printWriter.print("  mNeedMenuInvalidate=");
            printWriter.println(this.f17515);
        }
    }

    /* renamed from: ﹶـ, reason: contains not printable characters */
    public final void m9982(String str, ˎˏᵸ r8, InterfaceC4155 interfaceC4155) {
        C4171 c4171 = r8.f13781;
        if (c4171.f15587 == EnumC5294.f19811) {
            return;
        }
        C3178 c3178 = new C3178(this, str, interfaceC4155, c4171, 1);
        C3380 c3380 = (C3380) this.f17505.put(str, new C3380(c4171, interfaceC4155, c3178));
        if (c3380 != null) {
            c3380.f12628.m9080(c3380.f12629);
        }
        if (m9918(2)) {
            Objects.toString(interfaceC4155);
        }
        c4171.m9082(c3178);
    }

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public final C2944 m9983() {
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = this.f17500;
        return abstractComponentCallbacksC3693 != null ? abstractComponentCallbacksC3693.f13758.m9983() : this.f17477;
    }
}
