package defpackage;

import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
import sun.misc.Unsafe;

/* renamed from: ˊᵮˈ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public class C1386 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static final /* synthetic */ AtomicReferenceFieldUpdater f5693 = AtomicReferenceFieldUpdater.newUpdater(C1386.class, Object.class, "_cur$volatile");

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static final /* synthetic */ long f5694 = AbstractC3747.f13986.objectFieldOffset(C1386.class.getDeclaredField("_cur$volatile"));
    private volatile /* synthetic */ Object _cur$volatile = new C0807(8, false);

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final int m4266() {
        f5693.getClass();
        C0807 c0807 = (C0807) AbstractC3747.f13986.getObjectVolatile(this, f5694);
        c0807.getClass();
        long j = C0807.f3745.get(c0807);
        return 1073741823 & (((int) ((j & 1152921503533105152L) >> 30)) - ((int) (1073741823 & j)));
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final boolean m4267(Runnable runnable) {
        C1386 c1386;
        while (true) {
            f5693.getClass();
            Unsafe unsafe = AbstractC3747.f13986;
            long j = f5694;
            C0807 c0807 = (C0807) unsafe.getObjectVolatile(this, j);
            int iM2906 = c0807.m2906(runnable);
            if (iM2906 == 0) {
                return true;
            }
            if (iM2906 == 1) {
                C0807 c0807M2908 = c0807.m2908();
                while (true) {
                    Unsafe unsafe2 = AbstractC3747.f13986;
                    c1386 = this;
                    if (!unsafe2.compareAndSwapObject(c1386, f5694, c0807, c0807M2908) && unsafe2.getObjectVolatile(c1386, j) == c0807) {
                        this = c1386;
                    }
                }
            } else {
                if (iM2906 == 2) {
                    return false;
                }
                c1386 = this;
            }
            this = c1386;
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m4268() {
        C1386 c1386;
        while (true) {
            f5693.getClass();
            Unsafe unsafe = AbstractC3747.f13986;
            long j = f5694;
            C0807 c0807 = (C0807) unsafe.getObjectVolatile(this, j);
            if (c0807.m2905()) {
                return;
            }
            C0807 c0807M2908 = c0807.m2908();
            while (true) {
                Unsafe unsafe2 = AbstractC3747.f13986;
                c1386 = this;
                if (!unsafe2.compareAndSwapObject(c1386, f5694, c0807, c0807M2908) && unsafe2.getObjectVolatile(c1386, j) == c0807) {
                    this = c1386;
                }
            }
            this = c1386;
        }
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final Object m4269() {
        C1386 c1386;
        while (true) {
            f5693.getClass();
            Unsafe unsafe = AbstractC3747.f13986;
            long j = f5694;
            C0807 c0807 = (C0807) unsafe.getObjectVolatile(this, j);
            Object objM2904 = c0807.m2904();
            if (objM2904 != C0807.f3744) {
                return objM2904;
            }
            C0807 c0807M2908 = c0807.m2908();
            while (true) {
                Unsafe unsafe2 = AbstractC3747.f13986;
                c1386 = this;
                if (!unsafe2.compareAndSwapObject(c1386, f5694, c0807, c0807M2908) && unsafe2.getObjectVolatile(c1386, j) == c0807) {
                    this = c1386;
                }
            }
            this = c1386;
        }
    }
}
