package defpackage;

import android.view.ViewGroup;
import j$.util.Objects;
import java.util.ArrayList;

/* renamed from: ʿᵔᵤ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0423 {

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

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final C4534 f2342;

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

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public boolean f2344;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final AbstractComponentCallbacksC3693 f2345;

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

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public int f2347;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public int f2348;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final ArrayList f2349;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final ArrayList f2350;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public boolean f2351;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final ArrayList f2352;

    public C0423(int i, int i2, C4534 c4534) {
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = c4534.f16864;
        this.f2347 = i;
        this.f2348 = i2;
        this.f2345 = abstractComponentCallbacksC3693;
        this.f2352 = new ArrayList();
        this.f2346 = true;
        ArrayList arrayList = new ArrayList();
        this.f2349 = arrayList;
        this.f2350 = arrayList;
        this.f2342 = c4534;
    }

    public final String toString() {
        String hexString = Integer.toHexString(System.identityHashCode(this));
        StringBuilder sb = new StringBuilder("Operation {");
        sb.append(hexString);
        sb.append("} {finalState = ");
        int i = this.f2347;
        String str = "null";
        sb.append(i != 1 ? i != 2 ? i != 3 ? i != 4 ? "null" : "INVISIBLE" : "GONE" : "VISIBLE" : "REMOVED");
        sb.append(" lifecycleImpact = ");
        int i2 = this.f2348;
        if (i2 == 1) {
            str = "NONE";
        } else if (i2 == 2) {
            str = "ADDING";
        } else if (i2 == 3) {
            str = "REMOVING";
        }
        sb.append(str);
        sb.append(" fragment = ");
        sb.append(this.f2345);
        sb.append('}');
        return sb.toString();
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m1968(AbstractC0243 abstractC0243) {
        ArrayList arrayList = this.f2349;
        if (arrayList.remove(abstractC0243) && arrayList.isEmpty()) {
            m1970();
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void m1969(ViewGroup viewGroup) {
        this.f2351 = false;
        if (this.f2341) {
            return;
        }
        this.f2341 = true;
        if (this.f2349.isEmpty()) {
            m1970();
            return;
        }
        for (AbstractC0243 abstractC0243 : AbstractC2767.m6825(this.f2350)) {
            if (!abstractC0243.f1787) {
                abstractC0243.mo1550(viewGroup);
            }
            abstractC0243.f1787 = true;
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m1970() {
        this.f2351 = false;
        if (!this.f2344) {
            if (AbstractC4731.m9918(2)) {
                toString();
            }
            this.f2344 = true;
            ArrayList arrayList = this.f2352;
            int size = arrayList.size();
            int i = 0;
            while (i < size) {
                Object obj = arrayList.get(i);
                i++;
                ((Runnable) obj).run();
            }
        }
        this.f2345.f13785 = false;
        this.f2342.m9636();
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final void m1971(int i, int i2) {
        int iM4088 = AbstractC1327.m4088(i2);
        AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = this.f2345;
        if (iM4088 == 0) {
            if (this.f2347 != 1) {
                if (AbstractC4731.m9918(2)) {
                    Objects.toString(abstractComponentCallbacksC3693);
                    if (i != 1 && i != 2 && i != 3 && i != 4) {
                        throw null;
                    }
                }
                this.f2347 = i;
                return;
            }
            return;
        }
        if (iM4088 != 1) {
            if (iM4088 != 2) {
                return;
            }
            if (AbstractC4731.m9918(2)) {
                Objects.toString(abstractComponentCallbacksC3693);
            }
            this.f2347 = 1;
            this.f2348 = 3;
            this.f2346 = true;
            return;
        }
        if (this.f2347 == 1) {
            if (AbstractC4731.m9918(2)) {
                Objects.toString(abstractComponentCallbacksC3693);
            }
            this.f2347 = 2;
            this.f2348 = 2;
            this.f2346 = true;
        }
    }
}
