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

96 lines
2.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Objects;
/* renamed from: o.fXd, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13330fXd<T> extends fUX<T, T> {
private fSL<T, T, T> e;
public C13330fXd(InterfaceC13169fSq<T> interfaceC13169fSq, fSL<T, T, T> fsl) {
super(interfaceC13169fSq);
this.e = fsl;
}
@Override // o.AbstractC13163fSk
public final void subscribeActual(InterfaceC13174fSv<? super T> interfaceC13174fSv) {
this.c.subscribe(new RVV(interfaceC13174fSv, this.e));
}
/* renamed from: o.fXd$RVV */
/* loaded from: classes6.dex */
static final class RVV<T> implements InterfaceC13174fSv<T>, fSJ {
private boolean a;
private InterfaceC13174fSv<? super T> b;
private fSL<T, T, T> c;
private T d;
private fSJ e;
RVV(InterfaceC13174fSv<? super T> interfaceC13174fSv, fSL<T, T, T> fsl) {
this.b = interfaceC13174fSv;
this.c = fsl;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.e, fsj)) {
this.e = fsj;
this.b.onSubscribe(this);
}
}
@Override // o.fSJ
public final void dispose() {
this.e.dispose();
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.e.isDisposed();
}
/* JADX WARN: Type inference failed for: r4v3, types: [T, java.lang.Object] */
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
if (this.a) {
return;
}
InterfaceC13174fSv<? super T> interfaceC13174fSv = this.b;
T t2 = this.d;
if (t2 == null) {
this.d = t;
interfaceC13174fSv.onNext(t);
return;
}
try {
?? r4 = (T) Objects.requireNonNull(this.c.e(t2, t), "The value returned by the accumulator is null");
this.d = r4;
interfaceC13174fSv.onNext(r4);
} catch (Throwable th) {
C13147fSI.c(th);
this.e.dispose();
onError(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (this.a) {
C13418fZu.c(th);
} else {
this.a = true;
this.b.onError(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
if (this.a) {
return;
}
this.a = true;
this.b.onComplete();
}
}
}