package p025.p026.p027;

import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;

/* JADX INFO: renamed from: އ.֏.֏.އ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1287<E> {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final AtomicReferenceFieldUpdater f4418 = AtomicReferenceFieldUpdater.newUpdater(C1287.class, Object.class, "_cur");
    public volatile Object _cur;

    public C1287(boolean z) {
        this._cur = new C1288(8, z);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m2581() {
        while (true) {
            C1288 c1288 = (C1288) this._cur;
            if (c1288.m2586()) {
                return;
            } else {
                f4418.compareAndSet(this, c1288, c1288.m2588());
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final boolean m2582(E e) {
        while (true) {
            C1288 c1288 = (C1288) this._cur;
            int iM2585 = c1288.m2585(e);
            if (iM2585 == 0) {
                return true;
            }
            if (iM2585 == 1) {
                f4418.compareAndSet(this, c1288, c1288.m2588());
            } else if (iM2585 == 2) {
                return false;
            }
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final int m2583() {
        long j = ((C1288) this._cur)._state;
        return 1073741823 & (((int) ((j & 1152921503533105152L) >> 30)) - ((int) ((1073741823 & j) >> 0)));
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final E m2584() {
        while (true) {
            C1288 c1288 = (C1288) this._cur;
            E e = (E) c1288.m2589();
            if (e != C1288.f4421) {
                return e;
            }
            f4418.compareAndSet(this, c1288, c1288.m2588());
        }
    }
}
