package defpackage;

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

/* JADX INFO: renamed from: ˑᵿʾ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public class C2157 {
    private volatile /* synthetic */ Object _cur$volatile = new C3410(8, false);

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static final /* synthetic */ AtomicReferenceFieldUpdater f8589 = AtomicReferenceFieldUpdater.newUpdater(C2157.class, Object.class, "_cur$volatile");

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static final /* synthetic */ long f8588 = AbstractC1929.f7689.objectFieldOffset(C2157.class.getDeclaredField("_cur$volatile"));

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final void m5671() {
        C2157 c2157;
        while (true) {
            f8589.getClass();
            Unsafe unsafe = AbstractC1929.f7689;
            long j = f8588;
            C3410 c3410 = (C3410) unsafe.getObjectVolatile(this, j);
            if (c3410.m7810()) {
                return;
            }
            C3410 c3410M7813 = c3410.m7813();
            while (true) {
                Unsafe unsafe2 = AbstractC1929.f7689;
                c2157 = this;
                if (!unsafe2.compareAndSwapObject(c2157, f8588, c3410, c3410M7813) && unsafe2.getObjectVolatile(c2157, j) == c3410) {
                    this = c2157;
                }
            }
            this = c2157;
        }
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final int m5672() {
        f8589.getClass();
        C3410 c3410 = (C3410) AbstractC1929.f7689.getObjectVolatile(this, f8588);
        c3410.getClass();
        long j = C3410.f13136.get(c3410);
        return 1073741823 & (((int) ((j & 1152921503533105152L) >> 30)) - ((int) (1073741823 & j)));
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final boolean m5673(Runnable runnable) {
        C2157 c2157;
        while (true) {
            f8589.getClass();
            Unsafe unsafe = AbstractC1929.f7689;
            long j = f8588;
            C3410 c3410 = (C3410) unsafe.getObjectVolatile(this, j);
            int iM7812 = c3410.m7812(runnable);
            if (iM7812 == 0) {
                return true;
            }
            if (iM7812 == 1) {
                C3410 c3410M7813 = c3410.m7813();
                while (true) {
                    Unsafe unsafe2 = AbstractC1929.f7689;
                    c2157 = this;
                    if (!unsafe2.compareAndSwapObject(c2157, f8588, c3410, c3410M7813) && unsafe2.getObjectVolatile(c2157, j) == c3410) {
                        this = c2157;
                    }
                }
            } else {
                if (iM7812 == 2) {
                    return false;
                }
                c2157 = this;
            }
            this = c2157;
        }
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final Object m5674() {
        C2157 c2157;
        while (true) {
            f8589.getClass();
            Unsafe unsafe = AbstractC1929.f7689;
            long j = f8588;
            C3410 c3410 = (C3410) unsafe.getObjectVolatile(this, j);
            Object objM7811 = c3410.m7811();
            if (objM7811 != C3410.f13135) {
                return objM7811;
            }
            C3410 c3410M7813 = c3410.m7813();
            while (true) {
                Unsafe unsafe2 = AbstractC1929.f7689;
                c2157 = this;
                if (!unsafe2.compareAndSwapObject(c2157, f8588, c3410, c3410M7813) && unsafe2.getObjectVolatile(c2157, j) == c3410) {
                    this = c2157;
                }
            }
            this = c2157;
        }
    }
}
