227 lines
6.0 KiB
Java
227 lines
6.0 KiB
Java
package o;
|
|
|
|
import o.VZJ;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class lJi implements VZJ, PXc {
|
|
private final VZJ c;
|
|
public volatile PXc d;
|
|
public volatile PXc e;
|
|
private final Object j;
|
|
private VZJ.RVV b = VZJ.RVV.CLEARED;
|
|
private VZJ.RVV a = VZJ.RVV.CLEARED;
|
|
|
|
public lJi(Object obj, VZJ vzj) {
|
|
this.j = obj;
|
|
this.c = vzj;
|
|
}
|
|
|
|
@Override // o.PXc
|
|
public final void a() {
|
|
synchronized (this.j) {
|
|
if (this.b != VZJ.RVV.RUNNING) {
|
|
this.b = VZJ.RVV.RUNNING;
|
|
this.d.a();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.PXc
|
|
public final void c() {
|
|
synchronized (this.j) {
|
|
this.b = VZJ.RVV.CLEARED;
|
|
this.d.c();
|
|
if (this.a != VZJ.RVV.CLEARED) {
|
|
this.a = VZJ.RVV.CLEARED;
|
|
this.e.c();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.PXc
|
|
public final void f() {
|
|
synchronized (this.j) {
|
|
if (this.b == VZJ.RVV.RUNNING) {
|
|
this.b = VZJ.RVV.PAUSED;
|
|
this.d.f();
|
|
}
|
|
if (this.a == VZJ.RVV.RUNNING) {
|
|
this.a = VZJ.RVV.PAUSED;
|
|
this.e.f();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.PXc
|
|
public final boolean h() {
|
|
boolean z;
|
|
synchronized (this.j) {
|
|
if (this.b != VZJ.RVV.RUNNING) {
|
|
z = this.a == VZJ.RVV.RUNNING;
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // o.PXc
|
|
public final boolean j() {
|
|
boolean z;
|
|
synchronized (this.j) {
|
|
if (this.b != VZJ.RVV.SUCCESS) {
|
|
z = this.a == VZJ.RVV.SUCCESS;
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // o.PXc
|
|
public final boolean d() {
|
|
boolean z;
|
|
synchronized (this.j) {
|
|
if (this.b == VZJ.RVV.CLEARED) {
|
|
z = this.a == VZJ.RVV.CLEARED;
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // o.PXc
|
|
public final boolean b(PXc pXc) {
|
|
if (!(pXc instanceof lJi)) {
|
|
return false;
|
|
}
|
|
lJi lji = (lJi) pXc;
|
|
return this.d.b(lji.d) && this.e.b(lji.e);
|
|
}
|
|
|
|
@Override // o.VZJ
|
|
public final boolean a(PXc pXc) {
|
|
boolean z;
|
|
synchronized (this.j) {
|
|
VZJ vzj = this.c;
|
|
z = vzj == null || vzj.a(this);
|
|
}
|
|
return z;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x002f, code lost:
|
|
|
|
if (r3.a == o.VZJ.RVV.FAILED) goto L20;
|
|
*/
|
|
@Override // o.VZJ
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final boolean c(o.PXc r4) {
|
|
/*
|
|
r3 = this;
|
|
java.lang.Object r0 = r3.j
|
|
monitor-enter(r0)
|
|
o.VZJ r1 = r3.c // Catch: java.lang.Throwable -> L36
|
|
if (r1 == 0) goto Le
|
|
boolean r1 = r1.c(r3) // Catch: java.lang.Throwable -> L36
|
|
if (r1 != 0) goto Le
|
|
goto L33
|
|
Le:
|
|
o.VZJ$RVV r1 = r3.b // Catch: java.lang.Throwable -> L36
|
|
o.VZJ$RVV r2 = o.VZJ.RVV.FAILED // Catch: java.lang.Throwable -> L36
|
|
if (r1 == r2) goto L1d
|
|
o.PXc r1 = r3.d // Catch: java.lang.Throwable -> L36
|
|
boolean r4 = r4.equals(r1) // Catch: java.lang.Throwable -> L36
|
|
if (r4 == 0) goto L33
|
|
goto L31
|
|
L1d:
|
|
o.PXc r1 = r3.e // Catch: java.lang.Throwable -> L36
|
|
boolean r4 = r4.equals(r1) // Catch: java.lang.Throwable -> L36
|
|
if (r4 == 0) goto L33
|
|
o.VZJ$RVV r4 = r3.a // Catch: java.lang.Throwable -> L36
|
|
o.VZJ$RVV r1 = o.VZJ.RVV.SUCCESS // Catch: java.lang.Throwable -> L36
|
|
if (r4 == r1) goto L31
|
|
o.VZJ$RVV r4 = r3.a // Catch: java.lang.Throwable -> L36
|
|
o.VZJ$RVV r1 = o.VZJ.RVV.FAILED // Catch: java.lang.Throwable -> L36
|
|
if (r4 != r1) goto L33
|
|
L31:
|
|
r4 = 1
|
|
goto L34
|
|
L33:
|
|
r4 = 0
|
|
L34:
|
|
monitor-exit(r0)
|
|
return r4
|
|
L36:
|
|
r4 = move-exception
|
|
monitor-exit(r0)
|
|
throw r4
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.lJi.c(o.PXc):boolean");
|
|
}
|
|
|
|
@Override // o.VZJ
|
|
public final boolean e(PXc pXc) {
|
|
boolean z;
|
|
synchronized (this.j) {
|
|
VZJ vzj = this.c;
|
|
if (vzj == null || vzj.e(this)) {
|
|
z = pXc.equals(this.d);
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // o.VZJ, o.PXc
|
|
public final boolean b() {
|
|
boolean z;
|
|
synchronized (this.j) {
|
|
if (!this.d.b()) {
|
|
z = this.e.b();
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // o.VZJ
|
|
public final void h(PXc pXc) {
|
|
synchronized (this.j) {
|
|
if (pXc.equals(this.d)) {
|
|
this.b = VZJ.RVV.SUCCESS;
|
|
} else if (pXc.equals(this.e)) {
|
|
this.a = VZJ.RVV.SUCCESS;
|
|
}
|
|
VZJ vzj = this.c;
|
|
if (vzj != null) {
|
|
vzj.h(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.VZJ
|
|
public final void d(PXc pXc) {
|
|
synchronized (this.j) {
|
|
if (!pXc.equals(this.e)) {
|
|
this.b = VZJ.RVV.FAILED;
|
|
if (this.a != VZJ.RVV.RUNNING) {
|
|
this.a = VZJ.RVV.RUNNING;
|
|
this.e.a();
|
|
}
|
|
return;
|
|
}
|
|
this.a = VZJ.RVV.FAILED;
|
|
VZJ vzj = this.c;
|
|
if (vzj != null) {
|
|
vzj.d(this);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.VZJ
|
|
public final VZJ e() {
|
|
VZJ e;
|
|
synchronized (this.j) {
|
|
VZJ vzj = this.c;
|
|
e = vzj != null ? vzj.e() : this;
|
|
}
|
|
return e;
|
|
}
|
|
}
|