200 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			200 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class final Lio/reactivex/internal/operators/flowable/FlowableRange$RangeConditionalSubscription;
 | |
| .super Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;
 | |
| .source "FlowableRange.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lio/reactivex/internal/operators/flowable/FlowableRange;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "RangeConditionalSubscription"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final serialVersionUID:J = 0x23e7f25903d0c345L
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final downstream:Lrh/a;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lrh/a<",
 | |
|             "-",
 | |
|             "Ljava/lang/Integer;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lrh/a;II)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lrh/a<",
 | |
|             "-",
 | |
|             "Ljava/lang/Integer;",
 | |
|             ">;II)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p2, p3}, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;-><init>(II)V
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$RangeConditionalSubscription;->downstream:Lrh/a;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public fastPath()V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->end:I
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$RangeConditionalSubscription;->downstream:Lrh/a;
 | |
| 
 | |
|     .line 3
 | |
|     iget v2, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->index:I
 | |
| 
 | |
|     :goto_0
 | |
|     if-eq v2, v0, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean v3, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->cancelled:Z
 | |
| 
 | |
|     if-eqz v3, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     invoke-interface {v1, v3}, Lrh/a;->tryOnNext(Ljava/lang/Object;)Z
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->cancelled:Z
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     invoke-interface {v1}, Lok/d;->onComplete()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public slowPath(J)V
 | |
|     .locals 9
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->end:I
 | |
| 
 | |
|     .line 2
 | |
|     iget v1, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->index:I
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v2, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$RangeConditionalSubscription;->downstream:Lrh/a;
 | |
| 
 | |
|     const-wide/16 v3, 0x0
 | |
| 
 | |
|     :cond_0
 | |
|     move-wide v5, v3
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     cmp-long v7, v5, p1
 | |
| 
 | |
|     if-eqz v7, :cond_4
 | |
| 
 | |
|     if-eq v1, v0, :cond_4
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean v7, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->cancelled:Z
 | |
| 
 | |
|     if-eqz v7, :cond_2
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_2
 | |
|     invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v7
 | |
| 
 | |
|     invoke-interface {v2, v7}, Lrh/a;->tryOnNext(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v7
 | |
| 
 | |
|     if-eqz v7, :cond_3
 | |
| 
 | |
|     const-wide/16 v7, 0x1
 | |
| 
 | |
|     add-long/2addr v5, v7
 | |
| 
 | |
|     :cond_3
 | |
|     add-int/lit8 v1, v1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_4
 | |
|     if-ne v1, v0, :cond_6
 | |
| 
 | |
|     .line 6
 | |
|     iget-boolean p1, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->cancelled:Z
 | |
| 
 | |
|     if-nez p1, :cond_5
 | |
| 
 | |
|     .line 7
 | |
|     invoke-interface {v2}, Lok/d;->onComplete()V
 | |
| 
 | |
|     :cond_5
 | |
|     return-void
 | |
| 
 | |
|     .line 8
 | |
|     :cond_6
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
 | |
| 
 | |
|     move-result-wide p1
 | |
| 
 | |
|     cmp-long v7, v5, p1
 | |
| 
 | |
|     if-nez v7, :cond_1
 | |
| 
 | |
|     .line 9
 | |
|     iput v1, p0, Lio/reactivex/internal/operators/flowable/FlowableRange$BaseRangeSubscription;->index:I
 | |
| 
 | |
|     neg-long p1, v5
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicLong;->addAndGet(J)J
 | |
| 
 | |
|     move-result-wide p1
 | |
| 
 | |
|     cmp-long v5, p1, v3
 | |
| 
 | |
|     if-nez v5, :cond_0
 | |
| 
 | |
|     return-void
 | |
| .end method
 |