what-the-bank/sources/o/C13325fXX.java

86 lines
2.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.concurrent.atomic.AtomicInteger;
/* renamed from: o.fXX, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13325fXX<T> extends AbstractC13175fSw<T> {
private fSP a;
private fSD<T> c;
public C13325fXX(fSD<T> fsd, fSP fsp) {
this.c = fsd;
this.a = fsp;
}
@Override // o.AbstractC13175fSw
public final void e(InterfaceC13176fSx<? super T> interfaceC13176fSx) {
this.c.c(new LWm(interfaceC13176fSx, this.a));
}
/* renamed from: o.fXX$LWm */
/* loaded from: classes6.dex */
static final class LWm<T> extends AtomicInteger implements InterfaceC13176fSx<T>, fSJ {
private fSJ b;
private InterfaceC13176fSx<? super T> c;
private fSP d;
LWm(InterfaceC13176fSx<? super T> interfaceC13176fSx, fSP fsp) {
this.c = interfaceC13176fSx;
this.d = fsp;
}
@Override // o.InterfaceC13176fSx
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.b, fsj)) {
this.b = fsj;
this.c.onSubscribe(this);
}
}
@Override // o.InterfaceC13176fSx
public final void e(T t) {
this.c.e(t);
if (compareAndSet(0, 1)) {
try {
this.d.c();
} catch (Throwable th) {
C13147fSI.c(th);
C13418fZu.c(th);
}
}
}
@Override // o.InterfaceC13176fSx
public final void onError(Throwable th) {
this.c.onError(th);
if (compareAndSet(0, 1)) {
try {
this.d.c();
} catch (Throwable th2) {
C13147fSI.c(th2);
C13418fZu.c(th2);
}
}
}
@Override // o.fSJ
public final void dispose() {
this.b.dispose();
if (compareAndSet(0, 1)) {
try {
this.d.c();
} catch (Throwable th) {
C13147fSI.c(th);
C13418fZu.c(th);
}
}
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.b.isDisposed();
}
}
}