package defpackage;

/* renamed from: ᵷᵿ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4937 {

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

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

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public int f18341;

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

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

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public int f18344;

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public static void m10381(AbstractC4483 abstractC4483, long j) {
        abstractC4483.f16720 = true;
        if (abstractC4483 instanceof C0835) {
            C0835 c0835 = (C0835) abstractC4483;
            ᵛᵾˏ.ᵿʗᵝʽ(c0835.f16720);
            c0835.f3838 = j;
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static void m10382(AbstractC4483 abstractC4483) {
        int i = abstractC4483.f16722;
        if (i == 2) {
            ᵛᵾˏ.ᵿʗᵝʽ(i == 2);
            abstractC4483.f16722 = 1;
            abstractC4483.mo387();
        }
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public static boolean m10383(AbstractC4483 abstractC4483) {
        return abstractC4483.f16722 != 0;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public boolean m10384(C0950 c0950, AbstractC4483 abstractC4483) {
        int i = this.f18341;
        if (abstractC4483 == null) {
            return true;
        }
        InterfaceC0772 interfaceC0772 = c0950.f4277[i];
        InterfaceC0772 interfaceC07722 = abstractC4483.f16719;
        if (interfaceC07722 == null) {
            return true;
        }
        if (interfaceC07722 == interfaceC0772) {
            if (interfaceC0772 == null || abstractC4483.m9538()) {
                return true;
            }
            C0950 c09502 = c0950.f4281;
            if (c0950.f4275.f20315 && c09502 != null && c09502.f4272 && ((abstractC4483 instanceof C0835) || (abstractC4483 instanceof C5501) || abstractC4483.f16730 >= c09502.m3206())) {
                return true;
            }
        }
        C0950 c09503 = c0950.f4281;
        return c09503 != null && c09503.f4277[i] == abstractC4483.f16719;
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public boolean m10385() {
        int i = this.f18344;
        if (i == 0 || i == 2 || i == 4) {
            return m10383((AbstractC4483) this.f18339);
        }
        AbstractC4483 abstractC4483 = (AbstractC4483) this.f18340;
        abstractC4483.getClass();
        return abstractC4483.f16722 != 0;
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public boolean m10386() {
        int i = this.f18344;
        return i == 2 || i == 4 || i == 3;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public int m10387() {
        boolean zM10383 = m10383((AbstractC4483) this.f18339);
        AbstractC4483 abstractC4483 = (AbstractC4483) this.f18340;
        return (zM10383 ? 1 : 0) + ((abstractC4483 == null || !m10383(abstractC4483)) ? 0 : 1);
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public void m10388(boolean z) {
        if (z) {
            if (this.f18342) {
                AbstractC4483 abstractC4483 = (AbstractC4483) this.f18339;
                ᵛᵾˏ.ᵿʗᵝʽ(abstractC4483.f16722 == 0);
                abstractC4483.f16732.m6736();
                abstractC4483.mo8507();
                this.f18342 = false;
                return;
            }
            return;
        }
        if (this.f18343) {
            AbstractC4483 abstractC44832 = (AbstractC4483) this.f18340;
            abstractC44832.getClass();
            ᵛᵾˏ.ᵿʗᵝʽ(abstractC44832.f16722 == 0);
            abstractC44832.f16732.m6736();
            abstractC44832.mo8507();
            this.f18343 = false;
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public void m10389(AbstractC4483 abstractC4483, C2056 c2056) {
        ᵛᵾˏ.ᵿʗᵝʽ(((AbstractC4483) this.f18339) == abstractC4483 || ((AbstractC4483) this.f18340) == abstractC4483);
        if (m10383(abstractC4483)) {
            if (abstractC4483 == c2056.f8208) {
                c2056.f8207 = null;
                c2056.f8208 = null;
                c2056.f8205 = true;
            }
            m10382(abstractC4483);
            ᵛᵾˏ.ᵿʗᵝʽ(abstractC4483.f16722 == 1);
            abstractC4483.f16732.m6736();
            abstractC4483.f16722 = 0;
            abstractC4483.f16719 = null;
            abstractC4483.f16718 = null;
            abstractC4483.f16720 = false;
            abstractC4483.mo388();
            abstractC4483.f16733 = null;
        }
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public void m10390() {
        int i;
        AbstractC4483 abstractC4483 = (AbstractC4483) this.f18339;
        int i2 = abstractC4483.f16722;
        if (i2 == 1 && this.f18344 != 4) {
            ᵛᵾˏ.ᵿʗᵝʽ(i2 == 1);
            abstractC4483.f16722 = 2;
            abstractC4483.mo383();
            return;
        }
        AbstractC4483 abstractC44832 = (AbstractC4483) this.f18340;
        if (abstractC44832 == null || (i = abstractC44832.f16722) != 1 || this.f18344 == 3) {
            return;
        }
        ᵛᵾˏ.ᵿʗᵝʽ(i == 1);
        abstractC44832.f16722 = 2;
        abstractC44832.mo383();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public int m10391(AbstractC4483 abstractC4483, C0950 c0950, C0723 c0723, C2056 c2056) {
        int i;
        AbstractC4483 abstractC44832 = (AbstractC4483) this.f18339;
        int i2 = this.f18341;
        if (abstractC4483 == null || abstractC4483.f16722 == 0 || (abstractC4483 == abstractC44832 && ((i = this.f18344) == 2 || i == 4))) {
            return 1;
        }
        if (abstractC4483 == ((AbstractC4483) this.f18340) && this.f18344 == 3) {
            return 1;
        }
        Object[] objArr = abstractC4483.f16719 != c0950.f4277[i2];
        boolean zM2754 = c0723.m2754(i2);
        if (!zM2754 || objArr != false) {
            if (!abstractC4483.f16720) {
                InterfaceC5264 interfaceC5264 = ((InterfaceC5264[]) c0723.f3480)[i2];
                int length = interfaceC5264 != null ? interfaceC5264.length() : 0;
                C3446[] c3446Arr = new C3446[length];
                for (int i3 = 0; i3 < length; i3++) {
                    interfaceC5264.getClass();
                    c3446Arr[i3] = interfaceC5264.mo5378(i3);
                }
                InterfaceC0772 interfaceC0772 = c0950.f4277[i2];
                interfaceC0772.getClass();
                abstractC4483.m9540(c3446Arr, interfaceC0772, c0950.m3206(), c0950.f4273, c0950.f4275.f20311);
                return 3;
            }
            if (!abstractC4483.mo375()) {
                return 0;
            }
            m10389(abstractC4483, c2056);
            if (!zM2754 || m10386()) {
                m10388(abstractC4483 == abstractC44832);
                return 1;
            }
        }
        return 1;
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public void m10392() {
        if (!m10383((AbstractC4483) this.f18339)) {
            m10388(true);
        }
        AbstractC4483 abstractC4483 = (AbstractC4483) this.f18340;
        if (abstractC4483 == null || abstractC4483.f16722 != 0) {
            return;
        }
        m10388(false);
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public AbstractC4483 m10393(C0950 c0950) {
        InterfaceC0772 interfaceC0772;
        if (c0950 != null && (interfaceC0772 = c0950.f4277[this.f18341]) != null) {
            AbstractC4483 abstractC4483 = (AbstractC4483) this.f18339;
            if (abstractC4483.f16719 == interfaceC0772) {
                return abstractC4483;
            }
            AbstractC4483 abstractC44832 = (AbstractC4483) this.f18340;
            if (abstractC44832 != null && abstractC44832.f16719 == interfaceC0772) {
                return abstractC44832;
            }
        }
        return null;
    }
}
