181 lines
4.8 KiB
Java
181 lines
4.8 KiB
Java
package o;
|
|
|
|
import o.fYL;
|
|
|
|
/* renamed from: o.fZw, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C13420fZw<T> extends AbstractC13422fZy<T> implements fYL.IeS<Object> {
|
|
private AbstractC13422fZy<T> a;
|
|
private boolean b;
|
|
private fYL<Object> c;
|
|
private volatile boolean e;
|
|
|
|
public C13420fZw(AbstractC13422fZy<T> abstractC13422fZy) {
|
|
this.a = abstractC13422fZy;
|
|
}
|
|
|
|
@Override // o.AbstractC13163fSk
|
|
public final void subscribeActual(InterfaceC13174fSv<? super T> interfaceC13174fSv) {
|
|
this.a.subscribe(interfaceC13174fSv);
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onSubscribe(fSJ fsj) {
|
|
if (!this.e) {
|
|
synchronized (this) {
|
|
boolean z = true;
|
|
if (!this.e) {
|
|
if (this.b) {
|
|
fYL<Object> fyl = this.c;
|
|
if (fyl == null) {
|
|
fyl = new fYL<>();
|
|
this.c = fyl;
|
|
}
|
|
fyl.d(fYX.d(fsj));
|
|
return;
|
|
}
|
|
this.b = true;
|
|
z = false;
|
|
}
|
|
if (!z) {
|
|
this.a.onSubscribe(fsj);
|
|
b();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
fsj.dispose();
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onNext(T t) {
|
|
if (this.e) {
|
|
return;
|
|
}
|
|
synchronized (this) {
|
|
if (this.e) {
|
|
return;
|
|
}
|
|
if (this.b) {
|
|
fYL<Object> fyl = this.c;
|
|
if (fyl == null) {
|
|
fyl = new fYL<>();
|
|
this.c = fyl;
|
|
}
|
|
fyl.d(fYX.d(t));
|
|
return;
|
|
}
|
|
this.b = true;
|
|
this.a.onNext(t);
|
|
b();
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
if (this.e) {
|
|
C13418fZu.c(th);
|
|
return;
|
|
}
|
|
synchronized (this) {
|
|
boolean z = true;
|
|
if (!this.e) {
|
|
this.e = true;
|
|
if (this.b) {
|
|
fYL<Object> fyl = this.c;
|
|
if (fyl == null) {
|
|
fyl = new fYL<>();
|
|
this.c = fyl;
|
|
}
|
|
fyl.c[0] = fYX.a(th);
|
|
return;
|
|
}
|
|
this.b = true;
|
|
z = false;
|
|
}
|
|
if (z) {
|
|
C13418fZu.c(th);
|
|
} else {
|
|
this.a.onError(th);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
if (this.e) {
|
|
return;
|
|
}
|
|
synchronized (this) {
|
|
if (this.e) {
|
|
return;
|
|
}
|
|
this.e = true;
|
|
if (this.b) {
|
|
fYL<Object> fyl = this.c;
|
|
if (fyl == null) {
|
|
fyl = new fYL<>();
|
|
this.c = fyl;
|
|
}
|
|
fyl.d(fYX.c());
|
|
return;
|
|
}
|
|
this.b = true;
|
|
this.a.onComplete();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x0024, code lost:
|
|
|
|
continue;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private void b() {
|
|
/*
|
|
r5 = this;
|
|
L0:
|
|
monitor-enter(r5)
|
|
o.fYL<java.lang.Object> r0 = r5.c // Catch: java.lang.Throwable -> L29
|
|
r1 = 0
|
|
if (r0 != 0) goto La
|
|
r5.b = r1 // Catch: java.lang.Throwable -> L29
|
|
monitor-exit(r5)
|
|
return
|
|
La:
|
|
r2 = 0
|
|
r5.c = r2 // Catch: java.lang.Throwable -> L29
|
|
monitor-exit(r5)
|
|
java.lang.Object[] r2 = r0.c
|
|
int r0 = r0.e
|
|
L12:
|
|
if (r2 == 0) goto L0
|
|
r3 = r1
|
|
L15:
|
|
if (r3 >= r0) goto L24
|
|
r4 = r2[r3]
|
|
if (r4 == 0) goto L24
|
|
boolean r4 = r5.a(r4)
|
|
if (r4 != 0) goto L0
|
|
int r3 = r3 + 1
|
|
goto L15
|
|
L24:
|
|
r2 = r2[r0]
|
|
java.lang.Object[] r2 = (java.lang.Object[]) r2
|
|
goto L12
|
|
L29:
|
|
r0 = move-exception
|
|
monitor-exit(r5)
|
|
throw r0
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C13420fZw.b():void");
|
|
}
|
|
|
|
@Override // o.fYL.IeS, o.InterfaceC13193fTg
|
|
public final boolean a(Object obj) {
|
|
return fYX.d(obj, this.a);
|
|
}
|
|
}
|