821 lines
		
	
	
		
			24 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			821 lines
		
	
	
		
			24 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class final Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;
 | |
| .super Ljava/util/concurrent/atomic/AtomicInteger;
 | |
| .source "ObservableSwitchMap.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Lkh/g0;
 | |
| .implements Lio/reactivex/disposables/b;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lio/reactivex/internal/operators/observable/ObservableSwitchMap;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "SwitchMapObserver"
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<T:",
 | |
|         "Ljava/lang/Object;",
 | |
|         "R:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Ljava/util/concurrent/atomic/AtomicInteger;",
 | |
|         "Lkh/g0<",
 | |
|         "TT;>;",
 | |
|         "Lio/reactivex/disposables/b;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final CANCELLED:Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver<",
 | |
|             "Ljava/lang/Object;",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private static final serialVersionUID:J = -0x3072c973d405526bL
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final active:Ljava/util/concurrent/atomic/AtomicReference;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver<",
 | |
|             "TT;TR;>;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final bufferSize:I
 | |
| 
 | |
| .field public volatile cancelled:Z
 | |
| 
 | |
| .field public final delayErrors:Z
 | |
| 
 | |
| .field public volatile done:Z
 | |
| 
 | |
| .field public final downstream:Lkh/g0;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lkh/g0<",
 | |
|             "-TR;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
| .field public final mapper:Lph/o;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lph/o<",
 | |
|             "-TT;+",
 | |
|             "Lkh/e0<",
 | |
|             "+TR;>;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public volatile unique:J
 | |
| 
 | |
| .field public upstream:Lio/reactivex/disposables/b;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 5
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     const-wide/16 v2, -0x1
 | |
| 
 | |
|     const/4 v4, 0x1
 | |
| 
 | |
|     invoke-direct {v0, v1, v2, v3, v4}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;-><init>(Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;JI)V
 | |
| 
 | |
|     sput-object v0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->CANCELLED:Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->cancel()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Lkh/g0;Lph/o;IZ)V
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/g0<",
 | |
|             "-TR;>;",
 | |
|             "Lph/o<",
 | |
|             "-TT;+",
 | |
|             "Lkh/e0<",
 | |
|             "+TR;>;>;IZ)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->active:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     .line 3
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->downstream:Lkh/g0;
 | |
| 
 | |
|     .line 4
 | |
|     iput-object p2, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->mapper:Lph/o;
 | |
| 
 | |
|     .line 5
 | |
|     iput p3, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->bufferSize:I
 | |
| 
 | |
|     .line 6
 | |
|     iput-boolean p4, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->delayErrors:Z
 | |
| 
 | |
|     .line 7
 | |
|     new-instance p1, Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-direct {p1}, Lio/reactivex/internal/util/AtomicThrowable;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public dispose()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->cancelled:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->cancelled:Z
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->upstream:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->disposeInner()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public disposeInner()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->active:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v1, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->CANCELLED:Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     if-eq v0, v1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->active:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     if-eq v0, v1, :cond_0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->cancel()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public drain()V
 | |
|     .locals 13
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->downstream:Lkh/g0;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->active:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean v2, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->delayErrors:Z
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     move v4, v3
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     iget-boolean v5, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->cancelled:Z
 | |
| 
 | |
|     if-eqz v5, :cond_2
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 6
 | |
|     :cond_2
 | |
|     iget-boolean v5, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->done:Z
 | |
| 
 | |
|     const/4 v6, 0x0
 | |
| 
 | |
|     if-eqz v5, :cond_7
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     if-nez v5, :cond_3
 | |
| 
 | |
|     move v5, v3
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_3
 | |
|     move v5, v6
 | |
| 
 | |
|     :goto_1
 | |
|     if-eqz v2, :cond_5
 | |
| 
 | |
|     if-eqz v5, :cond_7
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Ljava/lang/Throwable;
 | |
| 
 | |
|     if-eqz v1, :cond_4
 | |
| 
 | |
|     .line 9
 | |
|     invoke-interface {v0, v1}, Lkh/g0;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 10
 | |
|     :cond_4
 | |
|     invoke-interface {v0}, Lkh/g0;->onComplete()V
 | |
| 
 | |
|     :goto_2
 | |
|     return-void
 | |
| 
 | |
|     .line 11
 | |
|     :cond_5
 | |
|     iget-object v7, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v7}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v7
 | |
| 
 | |
|     check-cast v7, Ljava/lang/Throwable;
 | |
| 
 | |
|     if-eqz v7, :cond_6
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v1}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-interface {v0, v1}, Lkh/g0;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_6
 | |
|     if-eqz v5, :cond_7
 | |
| 
 | |
|     .line 13
 | |
|     invoke-interface {v0}, Lkh/g0;->onComplete()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 14
 | |
|     :cond_7
 | |
|     invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     check-cast v5, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     if-eqz v5, :cond_12
 | |
| 
 | |
|     .line 15
 | |
|     iget-object v7, v5, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->queue:Lrh/o;
 | |
| 
 | |
|     if-eqz v7, :cond_12
 | |
| 
 | |
|     .line 16
 | |
|     iget-boolean v8, v5, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->done:Z
 | |
| 
 | |
|     const/4 v9, 0x0
 | |
| 
 | |
|     if-eqz v8, :cond_a
 | |
| 
 | |
|     .line 17
 | |
|     invoke-interface {v7}, Lrh/o;->isEmpty()Z
 | |
| 
 | |
|     move-result v8
 | |
| 
 | |
|     if-eqz v2, :cond_8
 | |
| 
 | |
|     if-eqz v8, :cond_a
 | |
| 
 | |
|     .line 18
 | |
|     invoke-virtual {v1, v5, v9}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 19
 | |
|     :cond_8
 | |
|     iget-object v10, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v10}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v10
 | |
| 
 | |
|     check-cast v10, Ljava/lang/Throwable;
 | |
| 
 | |
|     if-eqz v10, :cond_9
 | |
| 
 | |
|     .line 20
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v1}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-interface {v0, v1}, Lkh/g0;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_9
 | |
|     if-eqz v8, :cond_a
 | |
| 
 | |
|     .line 21
 | |
|     invoke-virtual {v1, v5, v9}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_a
 | |
|     move v8, v6
 | |
| 
 | |
|     .line 22
 | |
|     :goto_3
 | |
|     iget-boolean v10, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->cancelled:Z
 | |
| 
 | |
|     if-eqz v10, :cond_b
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 23
 | |
|     :cond_b
 | |
|     invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v10
 | |
| 
 | |
|     if-eq v5, v10, :cond_c
 | |
| 
 | |
|     :goto_4
 | |
|     move v8, v3
 | |
| 
 | |
|     goto :goto_8
 | |
| 
 | |
|     :cond_c
 | |
|     if-nez v2, :cond_d
 | |
| 
 | |
|     .line 24
 | |
|     iget-object v10, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v10}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v10
 | |
| 
 | |
|     check-cast v10, Ljava/lang/Throwable;
 | |
| 
 | |
|     if-eqz v10, :cond_d
 | |
| 
 | |
|     .line 25
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v1}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-interface {v0, v1}, Lkh/g0;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 26
 | |
|     :cond_d
 | |
|     iget-boolean v10, v5, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->done:Z
 | |
| 
 | |
|     .line 27
 | |
|     :try_start_0
 | |
|     invoke-interface {v7}, Lrh/o;->poll()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v11
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     goto :goto_6
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception v8
 | |
| 
 | |
|     .line 28
 | |
|     invoke-static {v8}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     .line 29
 | |
|     iget-object v11, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v11, v8}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
 | |
| 
 | |
|     .line 30
 | |
|     invoke-virtual {v1, v5, v9}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     if-nez v2, :cond_e
 | |
| 
 | |
|     .line 31
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->disposeInner()V
 | |
| 
 | |
|     .line 32
 | |
|     iget-object v8, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->upstream:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-interface {v8}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     .line 33
 | |
|     iput-boolean v3, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->done:Z
 | |
| 
 | |
|     goto :goto_5
 | |
| 
 | |
|     .line 34
 | |
|     :cond_e
 | |
|     invoke-virtual {v5}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->cancel()V
 | |
| 
 | |
|     :goto_5
 | |
|     move v8, v3
 | |
| 
 | |
|     move-object v11, v9
 | |
| 
 | |
|     :goto_6
 | |
|     if-nez v11, :cond_f
 | |
| 
 | |
|     move v12, v3
 | |
| 
 | |
|     goto :goto_7
 | |
| 
 | |
|     :cond_f
 | |
|     move v12, v6
 | |
| 
 | |
|     :goto_7
 | |
|     if-eqz v10, :cond_10
 | |
| 
 | |
|     if-eqz v12, :cond_10
 | |
| 
 | |
|     .line 35
 | |
|     invoke-virtual {v1, v5, v9}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     goto :goto_4
 | |
| 
 | |
|     :cond_10
 | |
|     if-eqz v12, :cond_11
 | |
| 
 | |
|     :goto_8
 | |
|     if-eqz v8, :cond_12
 | |
| 
 | |
|     goto/16 :goto_0
 | |
| 
 | |
|     .line 36
 | |
|     :cond_11
 | |
|     invoke-interface {v0, v11}, Lkh/g0;->onNext(Ljava/lang/Object;)V
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     :cond_12
 | |
|     neg-int v4, v4
 | |
| 
 | |
|     .line 37
 | |
|     invoke-virtual {p0, v4}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     if-nez v4, :cond_1
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public innerError(Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;Ljava/lang/Throwable;)V
 | |
|     .locals 4
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver<",
 | |
|             "TT;TR;>;",
 | |
|             "Ljava/lang/Throwable;",
 | |
|             ")V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-wide v0, p1, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->index:J
 | |
| 
 | |
|     iget-wide v2, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->unique:J
 | |
| 
 | |
|     cmp-long v0, v0, v2
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-boolean p2, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->delayErrors:Z
 | |
| 
 | |
|     if-nez p2, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p2, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->upstream:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-interface {p2}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p2, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean p2, p1, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->done:Z
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->drain()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-static {p2}, Lwh/a;->Y(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public isDisposed()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->cancelled:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public onComplete()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->done:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->done:Z
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->drain()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onError(Ljava/lang/Throwable;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->done:Z
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->errors:Lio/reactivex/internal/util/AtomicThrowable;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-boolean p1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->delayErrors:Z
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->disposeInner()V
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean p1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->done:Z
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->drain()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-static {p1}, Lwh/a;->Y(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onNext(Ljava/lang/Object;)V
 | |
|     .locals 4
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TT;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->unique:J
 | |
| 
 | |
|     const-wide/16 v2, 0x1
 | |
| 
 | |
|     add-long/2addr v0, v2
 | |
| 
 | |
|     .line 2
 | |
|     iput-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->unique:J
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v2, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->active:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v2}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;->cancel()V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     :try_start_0
 | |
|     iget-object v2, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->mapper:Lph/o;
 | |
| 
 | |
|     invoke-interface {v2, p1}, Lph/o;->apply(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const-string v2, "The ObservableSource returned is null"
 | |
| 
 | |
|     invoke-static {p1, v2}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Lkh/e0;
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 6
 | |
|     new-instance v2, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     iget v3, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->bufferSize:I
 | |
| 
 | |
|     invoke-direct {v2, p0, v0, v1, v3}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;-><init>(Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;JI)V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->active:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     .line 8
 | |
|     sget-object v1, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->CANCELLED:Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapInnerObserver;
 | |
| 
 | |
|     if-ne v0, v1, :cond_2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->active:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-virtual {v1, v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 10
 | |
|     invoke-interface {p1, v2}, Lkh/e0;->subscribe(Lkh/g0;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 11
 | |
|     invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->upstream:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     .line 13
 | |
|     invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onSubscribe(Lio/reactivex/disposables/b;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->upstream:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-static {v0, p1}, Lio/reactivex/internal/disposables/DisposableHelper;->validate(Lio/reactivex/disposables/b;Lio/reactivex/disposables/b;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->upstream:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableSwitchMap$SwitchMapObserver;->downstream:Lkh/g0;
 | |
| 
 | |
|     invoke-interface {p1, p0}, Lkh/g0;->onSubscribe(Lio/reactivex/disposables/b;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 |