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