package o;

import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.dJ, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0992dJ extends C2707vM implements InterfaceC2567ts, WG {

    /* renamed from: o, reason: collision with root package name */
    public C1375hJ f489o;

    @Override // o.InterfaceC2567ts
    public final void a() {
        C1375hJ c1375hJ = this.f489o;
        if (c1375hJ == null) {
            c1375hJ = null;
        }
        c1375hJ.getClass();
        while (true) {
            AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = C1375hJ.l;
            Object obj = atomicReferenceFieldUpdater.get(c1375hJ);
            if (obj instanceof AbstractC0992dJ) {
                if (obj != this) {
                    return;
                }
                C0203Hv c0203Hv = AbstractC2841wm0.i;
                while (!atomicReferenceFieldUpdater.compareAndSet(c1375hJ, obj, c0203Hv)) {
                    if (atomicReferenceFieldUpdater.get(c1375hJ) != obj) {
                        break;
                    }
                }
                return;
            }
            if (!(obj instanceof WG) || ((WG) obj).d() == null) {
                return;
            }
            while (true) {
                AtomicReferenceFieldUpdater atomicReferenceFieldUpdater2 = C2707vM.l;
                Object obj2 = atomicReferenceFieldUpdater2.get(this);
                if (obj2 instanceof C0777b20) {
                    return;
                }
                if (obj2 == this) {
                    return;
                }
                C2707vM c2707vM = (C2707vM) obj2;
                c2707vM.getClass();
                AtomicReferenceFieldUpdater atomicReferenceFieldUpdater3 = C2707vM.n;
                C0777b20 c0777b20 = (C0777b20) atomicReferenceFieldUpdater3.get(c2707vM);
                if (c0777b20 == null) {
                    c0777b20 = new C0777b20(c2707vM);
                    atomicReferenceFieldUpdater3.set(c2707vM, c0777b20);
                }
                while (!atomicReferenceFieldUpdater2.compareAndSet(this, obj2, c0777b20)) {
                    if (atomicReferenceFieldUpdater2.get(this) != obj2) {
                        break;
                    }
                }
                c2707vM.f();
                return;
            }
        }
    }

    @Override // o.WG
    public final boolean b() {
        return true;
    }

    @Override // o.WG
    public final C2428sS d() {
        return null;
    }

    public abstract boolean j();

    public abstract void k(Throwable th);

    @Override // o.C2707vM
    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append('@');
        sb.append(AbstractC0249Jp.K(this));
        sb.append("[job@");
        C1375hJ c1375hJ = this.f489o;
        if (c1375hJ == null) {
            c1375hJ = null;
        }
        sb.append(AbstractC0249Jp.K(c1375hJ));
        sb.append(']');
        return sb.toString();
    }
}
