2022-06-10 21:38:30 +09:00

232 lines
4.2 KiB
Smali

.class public final Lio/reactivex/internal/operators/flowable/c0$a;
.super Lth/a;
.source "FlowableFilter.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/c0;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lth/a<",
"TT;TT;>;"
}
.end annotation
# instance fields
.field public final f:Lph/r;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lph/r<",
"-TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lrh/a;Lph/r;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrh/a<",
"-TT;>;",
"Lph/r<",
"-TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0, p1}, Lth/a;-><init>(Lrh/a;)V
.line 2
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/c0$a;->f:Lph/r;
return-void
.end method
# virtual methods
.method public onNext(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/flowable/c0$a;->tryOnNext(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_0
.line 2
iget-object p1, p0, Lth/a;->b:Lok/e;
const-wide/16 v0, 0x1
invoke-interface {p1, v0, v1}, Lok/e;->request(J)V
:cond_0
return-void
.end method
.method public poll()Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.annotation build Lio/reactivex/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lth/a;->c:Lrh/l;
.line 2
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/c0$a;->f:Lph/r;
.line 3
:cond_0
:goto_0
invoke-interface {v0}, Lrh/o;->poll()Ljava/lang/Object;
move-result-object v2
if-nez v2, :cond_1
const/4 v0, 0x0
return-object v0
.line 4
:cond_1
invoke-interface {v1, v2}, Lph/r;->test(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_2
return-object v2
.line 5
:cond_2
iget v2, p0, Lth/a;->e:I
const/4 v3, 0x2
if-ne v2, v3, :cond_0
const-wide/16 v2, 0x1
.line 6
invoke-interface {v0, v2, v3}, Lok/e;->request(J)V
goto :goto_0
.end method
.method public requestFusion(I)I
.locals 0
.line 1
invoke-virtual {p0, p1}, Lth/a;->d(I)I
move-result p1
return p1
.end method
.method public tryOnNext(Ljava/lang/Object;)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)Z"
}
.end annotation
.line 1
iget-boolean v0, p0, Lth/a;->d:Z
const/4 v1, 0x0
if-eqz v0, :cond_0
return v1
.line 2
:cond_0
iget v0, p0, Lth/a;->e:I
if-eqz v0, :cond_1
.line 3
iget-object p1, p0, Lth/a;->a:Lrh/a;
const/4 v0, 0x0
invoke-interface {p1, v0}, Lrh/a;->tryOnNext(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_1
const/4 v0, 0x1
.line 4
:try_start_0
iget-object v2, p0, Lio/reactivex/internal/operators/flowable/c0$a;->f:Lph/r;
invoke-interface {v2, p1}, Lph/r;->test(Ljava/lang/Object;)Z
move-result v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v2, :cond_2
.line 5
iget-object v2, p0, Lth/a;->a:Lrh/a;
invoke-interface {v2, p1}, Lrh/a;->tryOnNext(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_2
move v1, v0
:cond_2
return v1
:catchall_0
move-exception p1
.line 6
invoke-virtual {p0, p1}, Lth/a;->c(Ljava/lang/Throwable;)V
return v0
.end method