package defpackage;

import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;

/* renamed from: ᵔʽˉᵬ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2200 implements InterfaceC5233 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public C4385 f8636;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public Object f8637 = AbstractC2710.f10503;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ C3920 f8638;

    public C2200(C3920 c3920) {
        this.f8638 = c3920;
    }

    @Override // defpackage.InterfaceC5233
    /* renamed from: ᵥᵯˎ */
    public final void mo2137(AbstractC2858 abstractC2858, int i) {
        C4385 c4385 = this.f8636;
        if (c4385 != null) {
            c4385.mo2137(abstractC2858, i);
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final Object m5860(C0409 c0409) throws Throwable {
        C1215 c1215;
        C1215 c12152;
        Object obj = this.f8637;
        boolean z = true;
        if (obj == AbstractC2710.f10503 || obj == AbstractC2710.f10504) {
            AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = C3920.f14790;
            C3920 c3920 = this.f8638;
            C1215 c12153 = (C1215) atomicReferenceFieldUpdater.get(c3920);
            while (true) {
                if (c3920.m8671()) {
                    this.f8637 = AbstractC2710.f10504;
                    Throwable thM8684 = c3920.m8684();
                    if (thM8684 != null) {
                        int i = AbstractC3909.f14653;
                        throw thM8684;
                    }
                    z = false;
                } else {
                    long andIncrement = C3920.f14803.getAndIncrement(c3920);
                    long j = AbstractC2710.f10515;
                    long j2 = andIncrement / j;
                    int i2 = (int) (andIncrement % j);
                    if (c12153.f11081 != j2) {
                        C1215 c1215M8685 = c3920.m8685(j2, c12153);
                        if (c1215M8685 == null) {
                            continue;
                        } else {
                            c1215 = c1215M8685;
                        }
                    } else {
                        c1215 = c12153;
                    }
                    Object objM8676 = c3920.m8676(c1215, i2, andIncrement, null);
                    C0434 c0434 = AbstractC2710.f10513;
                    if (objM8676 == c0434) {
                        ᵹˉᵞ.ᵳٴᵶ("unreachable");
                        return null;
                    }
                    C0434 c04342 = AbstractC2710.f10514;
                    if (objM8676 == c04342) {
                        if (andIncrement < c3920.m8692()) {
                            c1215.m10146();
                        }
                        c12153 = c1215;
                    } else {
                        if (objM8676 == AbstractC2710.f10512) {
                            C4385 c4385 = ˁـᵛ.ᵡʠ(ᵱᵞᵪ.ᵞʡ(c0409));
                            try {
                                this.f8636 = c4385;
                                Object objM86762 = c3920.m8676(c1215, i2, andIncrement, this);
                                if (objM86762 == c0434) {
                                    mo2137(c1215, i2);
                                } else {
                                    if (objM86762 == c04342) {
                                        if (andIncrement < c3920.m8692()) {
                                            c1215.m10146();
                                        }
                                        C1215 c12154 = (C1215) C3920.f14790.get(c3920);
                                        while (true) {
                                            if (c3920.m8671()) {
                                                C4385 c43852 = this.f8636;
                                                this.f8636 = null;
                                                this.f8637 = AbstractC2710.f10504;
                                                Throwable thM86842 = c3920.m8684();
                                                if (thM86842 == null) {
                                                    c43852.mo2134(Boolean.FALSE);
                                                } else {
                                                    c43852.mo2134(new C2952(thM86842));
                                                }
                                            } else {
                                                long andIncrement2 = C3920.f14803.getAndIncrement(c3920);
                                                long j3 = AbstractC2710.f10515;
                                                long j4 = andIncrement2 / j3;
                                                int i3 = (int) (andIncrement2 % j3);
                                                if (c12154.f11081 != j4) {
                                                    C1215 c1215M86852 = c3920.m8685(j4, c12154);
                                                    if (c1215M86852 != null) {
                                                        c12152 = c1215M86852;
                                                    }
                                                } else {
                                                    c12152 = c12154;
                                                }
                                                Object objM86763 = c3920.m8676(c12152, i3, andIncrement2, this);
                                                C1215 c12155 = c12152;
                                                if (objM86763 == AbstractC2710.f10513) {
                                                    mo2137(c12155, i3);
                                                    break;
                                                }
                                                if (objM86763 == AbstractC2710.f10514) {
                                                    if (andIncrement2 < c3920.m8692()) {
                                                        c12155.m10146();
                                                    }
                                                    c12154 = c12155;
                                                } else {
                                                    if (objM86763 == AbstractC2710.f10512) {
                                                        throw new IllegalStateException("unexpected");
                                                    }
                                                    c12155.m10146();
                                                    this.f8637 = objM86763;
                                                    this.f8636 = null;
                                                }
                                            }
                                        }
                                    } else {
                                        c1215.m10146();
                                        this.f8637 = objM86762;
                                        this.f8636 = null;
                                    }
                                    c4385.mo2138(Boolean.TRUE, null);
                                }
                                return c4385.m9405();
                            } catch (Throwable th) {
                                c4385.m9396();
                                throw th;
                            }
                        }
                        c1215.m10146();
                        this.f8637 = objM8676;
                    }
                }
            }
        }
        return Boolean.valueOf(z);
    }
}
