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

88 lines
2.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* renamed from: o.fWO, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13287fWO extends AbstractC13163fSk<Integer> {
private final int a;
private final long c;
public C13287fWO(int i, int i2) {
this.a = i;
this.c = i + i2;
}
@Override // o.AbstractC13163fSk
public final void subscribeActual(InterfaceC13174fSv<? super Integer> interfaceC13174fSv) {
RVV rvv = new RVV(interfaceC13174fSv, this.a, this.c);
interfaceC13174fSv.onSubscribe(rvv);
if (rvv.b) {
return;
}
InterfaceC13174fSv<? super Integer> interfaceC13174fSv2 = rvv.e;
long j = rvv.a;
for (long j2 = rvv.c; j2 != j && rvv.get() == 0; j2++) {
interfaceC13174fSv2.onNext(Integer.valueOf((int) j2));
}
if (rvv.get() == 0) {
rvv.lazySet(1);
interfaceC13174fSv2.onComplete();
}
}
/* renamed from: o.fWO$RVV */
/* loaded from: classes6.dex */
static final class RVV extends AbstractC13183fTH<Integer> {
final long a;
boolean b;
long c;
final InterfaceC13174fSv<? super Integer> e;
@Override // o.InterfaceC13414fZq
public final /* synthetic */ Object b() throws Throwable {
long j = this.c;
if (j != this.a) {
this.c = 1 + j;
return Integer.valueOf((int) j);
}
lazySet(1);
return null;
}
RVV(InterfaceC13174fSv<? super Integer> interfaceC13174fSv, long j, long j2) {
this.e = interfaceC13174fSv;
this.c = j;
this.a = j2;
}
@Override // o.InterfaceC13414fZq
public final void e() {
this.c = this.a;
lazySet(1);
}
@Override // o.fSJ
public final void dispose() {
set(1);
}
@Override // o.fSJ
public final boolean isDisposed() {
return get() != 0;
}
@Override // o.InterfaceC13413fZp
public final int b(int i) {
if ((i & 1) == 0) {
return 0;
}
this.b = true;
return 1;
}
@Override // o.InterfaceC13414fZq
public final boolean c() {
return this.c == this.a;
}
}
}