264 lines
8.1 KiB
Java
264 lines
8.1 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class ggU {
|
||
|
public volatile Object _next = this;
|
||
|
public volatile Object _prev = this;
|
||
|
private volatile Object _removedRef = null;
|
||
|
public static final AtomicReferenceFieldUpdater b = AtomicReferenceFieldUpdater.newUpdater(ggU.class, Object.class, "_next");
|
||
|
public static AtomicReferenceFieldUpdater e = AtomicReferenceFieldUpdater.newUpdater(ggU.class, Object.class, "_prev");
|
||
|
private static final AtomicReferenceFieldUpdater d = AtomicReferenceFieldUpdater.newUpdater(ggU.class, Object.class, "_removedRef");
|
||
|
|
||
|
private final C15113ghb j() {
|
||
|
C15113ghb c15113ghb = (C15113ghb) this._removedRef;
|
||
|
if (c15113ghb != null) {
|
||
|
return c15113ghb;
|
||
|
}
|
||
|
C15113ghb c15113ghb2 = new C15113ghb(this);
|
||
|
d.lazySet(this, c15113ghb2);
|
||
|
return c15113ghb2;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static abstract class HBt extends ggF<ggU> {
|
||
|
private ggU c;
|
||
|
public ggU e;
|
||
|
|
||
|
@Override // o.ggF
|
||
|
public final /* synthetic */ void c(ggU ggu, Object obj) {
|
||
|
ggU ggu2 = ggu;
|
||
|
boolean z = obj == null;
|
||
|
ggU ggu3 = z ? this.c : this.e;
|
||
|
if (ggu3 != null) {
|
||
|
AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = ggU.b;
|
||
|
while (!atomicReferenceFieldUpdater.compareAndSet(ggu2, this, ggu3)) {
|
||
|
if (atomicReferenceFieldUpdater.get(ggu2) != this) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
if (z) {
|
||
|
ggU ggu4 = this.c;
|
||
|
ggU ggu5 = this.e;
|
||
|
C14957gcv.e(ggu5);
|
||
|
ggu4.b(ggu5);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public HBt(ggU ggu) {
|
||
|
this.c = ggu;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public boolean bu_() {
|
||
|
while (true) {
|
||
|
Object obj = this._next;
|
||
|
if (!(obj instanceof AbstractC15115ghd)) {
|
||
|
return obj instanceof C15113ghb;
|
||
|
}
|
||
|
((AbstractC15115ghd) obj).a(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static ggU a(ggU ggu) {
|
||
|
while (ggu.bu_()) {
|
||
|
ggu = (ggU) ggu._prev;
|
||
|
}
|
||
|
return ggu;
|
||
|
}
|
||
|
|
||
|
public final boolean e(ggU ggu) {
|
||
|
e.lazySet(ggu, this);
|
||
|
b.lazySet(ggu, this);
|
||
|
while (true) {
|
||
|
Object obj = this._next;
|
||
|
if (!(obj instanceof AbstractC15115ghd)) {
|
||
|
if (obj != this) {
|
||
|
return false;
|
||
|
}
|
||
|
AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = b;
|
||
|
while (!atomicReferenceFieldUpdater.compareAndSet(this, this, ggu)) {
|
||
|
if (atomicReferenceFieldUpdater.get(this) != this) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
ggu.b(this);
|
||
|
return true;
|
||
|
}
|
||
|
((AbstractC15115ghd) obj).a(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final int e(ggU ggu, ggU ggu2, HBt hBt) {
|
||
|
e.lazySet(ggu, this);
|
||
|
AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = b;
|
||
|
atomicReferenceFieldUpdater.lazySet(ggu, ggu2);
|
||
|
hBt.e = ggu2;
|
||
|
while (!atomicReferenceFieldUpdater.compareAndSet(this, ggu2, hBt)) {
|
||
|
if (atomicReferenceFieldUpdater.get(this) != ggu2) {
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
return hBt.a(this) == null ? 1 : 2;
|
||
|
}
|
||
|
|
||
|
public boolean bw_() {
|
||
|
return f() == null;
|
||
|
}
|
||
|
|
||
|
public final ggU f() {
|
||
|
while (true) {
|
||
|
Object obj = this._next;
|
||
|
if (!(obj instanceof AbstractC15115ghd)) {
|
||
|
if (obj instanceof C15113ghb) {
|
||
|
return ((C15113ghb) obj).c;
|
||
|
}
|
||
|
if (obj == this) {
|
||
|
return (ggU) obj;
|
||
|
}
|
||
|
ggU ggu = (ggU) obj;
|
||
|
C15113ghb j = ggu.j();
|
||
|
AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = b;
|
||
|
while (!atomicReferenceFieldUpdater.compareAndSet(this, obj, j)) {
|
||
|
if (atomicReferenceFieldUpdater.get(this) != obj) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
ggu.b();
|
||
|
return null;
|
||
|
}
|
||
|
((AbstractC15115ghd) obj).a(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x0038, code lost:
|
||
|
|
||
|
r5 = o.ggU.b;
|
||
|
r4 = ((o.C15113ghb) r4).c;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x0042, code lost:
|
||
|
|
||
|
if (r5.compareAndSet(r3, r1, r4) == false) goto L30;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x004a, code lost:
|
||
|
|
||
|
if (r5.get(r3) == r1) goto L52;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final o.ggU b() {
|
||
|
/*
|
||
|
r7 = this;
|
||
|
L0:
|
||
|
java.lang.Object r0 = r7._prev
|
||
|
o.ggU r0 = (o.ggU) r0
|
||
|
r1 = r0
|
||
|
L5:
|
||
|
r2 = 0
|
||
|
r3 = r2
|
||
|
L7:
|
||
|
java.lang.Object r4 = r1._next
|
||
|
if (r4 != r7) goto L1e
|
||
|
if (r0 != r1) goto Le
|
||
|
return r1
|
||
|
Le:
|
||
|
java.util.concurrent.atomic.AtomicReferenceFieldUpdater r5 = o.ggU.e
|
||
|
L10:
|
||
|
boolean r2 = r5.compareAndSet(r7, r0, r1)
|
||
|
if (r2 == 0) goto L17
|
||
|
return r1
|
||
|
L17:
|
||
|
java.lang.Object r2 = r5.get(r7)
|
||
|
if (r2 == r0) goto L10
|
||
|
goto L0
|
||
|
L1e:
|
||
|
boolean r5 = r7.bu_()
|
||
|
if (r5 == 0) goto L25
|
||
|
return r2
|
||
|
L25:
|
||
|
if (r4 != 0) goto L28
|
||
|
return r1
|
||
|
L28:
|
||
|
boolean r5 = r4 instanceof o.AbstractC15115ghd
|
||
|
if (r5 == 0) goto L32
|
||
|
o.ghd r4 = (o.AbstractC15115ghd) r4
|
||
|
r4.a(r1)
|
||
|
goto L0
|
||
|
L32:
|
||
|
boolean r5 = r4 instanceof o.C15113ghb
|
||
|
if (r5 == 0) goto L52
|
||
|
if (r3 == 0) goto L4d
|
||
|
java.util.concurrent.atomic.AtomicReferenceFieldUpdater r5 = o.ggU.b
|
||
|
o.ghb r4 = (o.C15113ghb) r4
|
||
|
o.ggU r4 = r4.c
|
||
|
L3e:
|
||
|
boolean r2 = r5.compareAndSet(r3, r1, r4)
|
||
|
if (r2 == 0) goto L46
|
||
|
r1 = r3
|
||
|
goto L5
|
||
|
L46:
|
||
|
java.lang.Object r2 = r5.get(r3)
|
||
|
if (r2 == r1) goto L3e
|
||
|
goto L0
|
||
|
L4d:
|
||
|
java.lang.Object r1 = r1._prev
|
||
|
o.ggU r1 = (o.ggU) r1
|
||
|
goto L7
|
||
|
L52:
|
||
|
r3 = r4
|
||
|
o.ggU r3 = (o.ggU) r3
|
||
|
r6 = r3
|
||
|
r3 = r1
|
||
|
r1 = r6
|
||
|
goto L7
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.ggU.b():o.ggU");
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(new C14928gcE(this) { // from class: o.ggU.RVV
|
||
|
@Override // o.C14928gcE, o.InterfaceC14990gdv
|
||
|
public final Object i() {
|
||
|
return C15041gfa.a(this.f);
|
||
|
}
|
||
|
});
|
||
|
sb.append('@');
|
||
|
sb.append(C15041gfa.b(this));
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
public final void b(ggU ggu) {
|
||
|
Object obj;
|
||
|
while (true) {
|
||
|
ggU ggu2 = (ggU) ggu._prev;
|
||
|
while (true) {
|
||
|
obj = this._next;
|
||
|
if (!(obj instanceof AbstractC15115ghd)) {
|
||
|
break;
|
||
|
} else {
|
||
|
((AbstractC15115ghd) obj).a(this);
|
||
|
}
|
||
|
}
|
||
|
if (obj != ggu) {
|
||
|
return;
|
||
|
}
|
||
|
AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = e;
|
||
|
while (!atomicReferenceFieldUpdater.compareAndSet(ggu, ggu2, this)) {
|
||
|
if (atomicReferenceFieldUpdater.get(ggu) != ggu2) {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
if (bu_()) {
|
||
|
ggu.b();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|