827 lines
		
	
	
		
			19 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			827 lines
		
	
	
		
			19 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lio/reactivex/internal/operators/observable/w1$c;
 | |
| .super Lsh/k;
 | |
| .source "ObservableWindowBoundarySelector.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Lio/reactivex/disposables/b;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lio/reactivex/internal/operators/observable/w1;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "c"
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<T:",
 | |
|         "Ljava/lang/Object;",
 | |
|         "B:",
 | |
|         "Ljava/lang/Object;",
 | |
|         "V:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Lsh/k<",
 | |
|         "TT;",
 | |
|         "Ljava/lang/Object;",
 | |
|         "Lkh/z<",
 | |
|         "TT;>;>;",
 | |
|         "Lio/reactivex/disposables/b;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final p1:Lkh/e0;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lkh/e0<",
 | |
|             "TB;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final q1:Lph/o;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lph/o<",
 | |
|             "-TB;+",
 | |
|             "Lkh/e0<",
 | |
|             "TV;>;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final r1:I
 | |
| 
 | |
| .field public final s1:Lio/reactivex/disposables/a;
 | |
| 
 | |
| .field public t1:Lio/reactivex/disposables/b;
 | |
| 
 | |
| .field public final u1:Ljava/util/concurrent/atomic/AtomicReference;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/disposables/b;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final v1:Ljava/util/List;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/List<",
 | |
|             "Lio/reactivex/subjects/UnicastSubject<",
 | |
|             "TT;>;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final w1:Ljava/util/concurrent/atomic/AtomicLong;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lkh/g0;Lkh/e0;Lph/o;I)V
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/g0<",
 | |
|             "-",
 | |
|             "Lkh/z<",
 | |
|             "TT;>;>;",
 | |
|             "Lkh/e0<",
 | |
|             "TB;>;",
 | |
|             "Lph/o<",
 | |
|             "-TB;+",
 | |
|             "Lkh/e0<",
 | |
|             "TV;>;>;I)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lio/reactivex/internal/queue/MpscLinkedQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Lio/reactivex/internal/queue/MpscLinkedQueue;-><init>()V
 | |
| 
 | |
|     invoke-direct {p0, p1, v0}, Lsh/k;-><init>(Lkh/g0;Lrh/n;)V
 | |
| 
 | |
|     .line 2
 | |
|     new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/w1$c;->u1:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     .line 3
 | |
|     new-instance p1, Ljava/util/concurrent/atomic/AtomicLong;
 | |
| 
 | |
|     invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/w1$c;->w1:Ljava/util/concurrent/atomic/AtomicLong;
 | |
| 
 | |
|     .line 4
 | |
|     iput-object p2, p0, Lio/reactivex/internal/operators/observable/w1$c;->p1:Lkh/e0;
 | |
| 
 | |
|     .line 5
 | |
|     iput-object p3, p0, Lio/reactivex/internal/operators/observable/w1$c;->q1:Lph/o;
 | |
| 
 | |
|     .line 6
 | |
|     iput p4, p0, Lio/reactivex/internal/operators/observable/w1$c;->r1:I
 | |
| 
 | |
|     .line 7
 | |
|     new-instance p2, Lio/reactivex/disposables/a;
 | |
| 
 | |
|     invoke-direct {p2}, Lio/reactivex/disposables/a;-><init>()V
 | |
| 
 | |
|     iput-object p2, p0, Lio/reactivex/internal/operators/observable/w1$c;->s1:Lio/reactivex/disposables/a;
 | |
| 
 | |
|     .line 8
 | |
|     new-instance p2, Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
 | |
| 
 | |
|     iput-object p2, p0, Lio/reactivex/internal/operators/observable/w1$c;->v1:Ljava/util/List;
 | |
| 
 | |
|     const-wide/16 p2, 0x1
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p1, p2, p3}, Ljava/util/concurrent/atomic/AtomicLong;->lazySet(J)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public dispose()V
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean v0, p0, Lsh/k;->m1:Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public f(Lkh/g0;Ljava/lang/Object;)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/g0<",
 | |
|             "-",
 | |
|             "Lkh/z<",
 | |
|             "TT;>;>;",
 | |
|             "Ljava/lang/Object;",
 | |
|             ")V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public isDisposed()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lsh/k;->m1:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public j(Lio/reactivex/internal/operators/observable/w1$a;)V
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lio/reactivex/internal/operators/observable/w1$a<",
 | |
|             "TT;TV;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->s1:Lio/reactivex/disposables/a;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lio/reactivex/disposables/a;->c(Lio/reactivex/disposables/b;)Z
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lsh/k;->l1:Lrh/n;
 | |
| 
 | |
|     new-instance v1, Lio/reactivex/internal/operators/observable/w1$d;
 | |
| 
 | |
|     iget-object p1, p1, Lio/reactivex/internal/operators/observable/w1$a;->c:Lio/reactivex/subjects/UnicastSubject;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-direct {v1, p1, v2}, Lio/reactivex/internal/operators/observable/w1$d;-><init>(Lio/reactivex/subjects/UnicastSubject;Ljava/lang/Object;)V
 | |
| 
 | |
|     invoke-interface {v0, v1}, Lrh/o;->offer(Ljava/lang/Object;)Z
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lsh/k;->c()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/w1$c;->l()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public k()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->s1:Lio/reactivex/disposables/a;
 | |
| 
 | |
|     invoke-virtual {v0}, Lio/reactivex/disposables/a;->dispose()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->u1:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-static {v0}, Lio/reactivex/internal/disposables/DisposableHelper;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public l()V
 | |
|     .locals 9
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lsh/k;->l1:Lrh/n;
 | |
| 
 | |
|     check-cast v0, Lio/reactivex/internal/queue/MpscLinkedQueue;
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lsh/k;->k1:Lkh/g0;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v2, p0, Lio/reactivex/internal/operators/observable/w1$c;->v1:Ljava/util/List;
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     move v4, v3
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     :goto_0
 | |
|     iget-boolean v5, p0, Lsh/k;->n1:Z
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0}, Lio/reactivex/internal/queue/MpscLinkedQueue;->poll()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     if-nez v6, :cond_1
 | |
| 
 | |
|     move v7, v3
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v7, 0x0
 | |
| 
 | |
|     :goto_1
 | |
|     if-eqz v5, :cond_4
 | |
| 
 | |
|     if-eqz v7, :cond_4
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/w1$c;->k()V
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v0, p0, Lsh/k;->o1:Ljava/lang/Throwable;
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 8
 | |
|     invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     :goto_2
 | |
|     invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     if-eqz v3, :cond_3
 | |
| 
 | |
|     invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     check-cast v3, Lio/reactivex/subjects/UnicastSubject;
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {v3, v0}, Lio/reactivex/subjects/UnicastSubject;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 10
 | |
|     :cond_2
 | |
|     invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     :goto_3
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_3
 | |
| 
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Lio/reactivex/subjects/UnicastSubject;
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {v1}, Lio/reactivex/subjects/UnicastSubject;->onComplete()V
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     .line 12
 | |
|     :cond_3
 | |
|     invoke-interface {v2}, Ljava/util/List;->clear()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_4
 | |
|     if-eqz v7, :cond_5
 | |
| 
 | |
|     neg-int v4, v4
 | |
| 
 | |
|     .line 13
 | |
|     invoke-virtual {p0, v4}, Lsh/k;->b(I)I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     if-nez v4, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 14
 | |
|     :cond_5
 | |
|     instance-of v5, v6, Lio/reactivex/internal/operators/observable/w1$d;
 | |
| 
 | |
|     if-eqz v5, :cond_8
 | |
| 
 | |
|     .line 15
 | |
|     check-cast v6, Lio/reactivex/internal/operators/observable/w1$d;
 | |
| 
 | |
|     .line 16
 | |
|     iget-object v5, v6, Lio/reactivex/internal/operators/observable/w1$d;->a:Lio/reactivex/subjects/UnicastSubject;
 | |
| 
 | |
|     if-eqz v5, :cond_6
 | |
| 
 | |
|     .line 17
 | |
|     invoke-interface {v2, v5}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     if-eqz v5, :cond_0
 | |
| 
 | |
|     .line 18
 | |
|     iget-object v5, v6, Lio/reactivex/internal/operators/observable/w1$d;->a:Lio/reactivex/subjects/UnicastSubject;
 | |
| 
 | |
|     invoke-virtual {v5}, Lio/reactivex/subjects/UnicastSubject;->onComplete()V
 | |
| 
 | |
|     .line 19
 | |
|     iget-object v5, p0, Lio/reactivex/internal/operators/observable/w1$c;->w1:Ljava/util/concurrent/atomic/AtomicLong;
 | |
| 
 | |
|     invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicLong;->decrementAndGet()J
 | |
| 
 | |
|     move-result-wide v5
 | |
| 
 | |
|     const-wide/16 v7, 0x0
 | |
| 
 | |
|     cmp-long v5, v5, v7
 | |
| 
 | |
|     if-nez v5, :cond_0
 | |
| 
 | |
|     .line 20
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/w1$c;->k()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 21
 | |
|     :cond_6
 | |
|     iget-boolean v5, p0, Lsh/k;->m1:Z
 | |
| 
 | |
|     if-eqz v5, :cond_7
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 22
 | |
|     :cond_7
 | |
|     iget v5, p0, Lio/reactivex/internal/operators/observable/w1$c;->r1:I
 | |
| 
 | |
|     invoke-static {v5}, Lio/reactivex/subjects/UnicastSubject;->h(I)Lio/reactivex/subjects/UnicastSubject;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     .line 23
 | |
|     invoke-interface {v2, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
 | |
| 
 | |
|     .line 24
 | |
|     invoke-interface {v1, v5}, Lkh/g0;->onNext(Ljava/lang/Object;)V
 | |
| 
 | |
|     .line 25
 | |
|     :try_start_0
 | |
|     iget-object v7, p0, Lio/reactivex/internal/operators/observable/w1$c;->q1:Lph/o;
 | |
| 
 | |
|     iget-object v6, v6, Lio/reactivex/internal/operators/observable/w1$d;->b:Ljava/lang/Object;
 | |
| 
 | |
|     invoke-interface {v7, v6}, Lph/o;->apply(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     const-string v7, "The ObservableSource supplied is null"
 | |
| 
 | |
|     invoke-static {v6, v7}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     check-cast v6, Lkh/e0;
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 26
 | |
|     new-instance v7, Lio/reactivex/internal/operators/observable/w1$a;
 | |
| 
 | |
|     invoke-direct {v7, p0, v5}, Lio/reactivex/internal/operators/observable/w1$a;-><init>(Lio/reactivex/internal/operators/observable/w1$c;Lio/reactivex/subjects/UnicastSubject;)V
 | |
| 
 | |
|     .line 27
 | |
|     iget-object v5, p0, Lio/reactivex/internal/operators/observable/w1$c;->s1:Lio/reactivex/disposables/a;
 | |
| 
 | |
|     invoke-virtual {v5, v7}, Lio/reactivex/disposables/a;->b(Lio/reactivex/disposables/b;)Z
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     if-eqz v5, :cond_0
 | |
| 
 | |
|     .line 28
 | |
|     iget-object v5, p0, Lio/reactivex/internal/operators/observable/w1$c;->w1:Ljava/util/concurrent/atomic/AtomicLong;
 | |
| 
 | |
|     invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicLong;->getAndIncrement()J
 | |
| 
 | |
|     .line 29
 | |
|     invoke-interface {v6, v7}, Lkh/e0;->subscribe(Lkh/g0;)V
 | |
| 
 | |
|     goto/16 :goto_0
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception v5
 | |
| 
 | |
|     .line 30
 | |
|     invoke-static {v5}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     .line 31
 | |
|     iput-boolean v3, p0, Lsh/k;->m1:Z
 | |
| 
 | |
|     .line 32
 | |
|     invoke-interface {v1, v5}, Lkh/g0;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     goto/16 :goto_0
 | |
| 
 | |
|     .line 33
 | |
|     :cond_8
 | |
|     invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     :goto_4
 | |
|     invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v7
 | |
| 
 | |
|     if-eqz v7, :cond_0
 | |
| 
 | |
|     invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v7
 | |
| 
 | |
|     check-cast v7, Lio/reactivex/subjects/UnicastSubject;
 | |
| 
 | |
|     .line 34
 | |
|     invoke-static {v6}, Lio/reactivex/internal/util/NotificationLite;->getValue(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v8
 | |
| 
 | |
|     invoke-virtual {v7, v8}, Lio/reactivex/subjects/UnicastSubject;->onNext(Ljava/lang/Object;)V
 | |
| 
 | |
|     goto :goto_4
 | |
| .end method
 | |
| 
 | |
| .method public m(Ljava/lang/Throwable;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->t1:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->s1:Lio/reactivex/disposables/a;
 | |
| 
 | |
|     invoke-virtual {v0}, Lio/reactivex/disposables/a;->dispose()V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/w1$c;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public n(Ljava/lang/Object;)V
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TB;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lsh/k;->l1:Lrh/n;
 | |
| 
 | |
|     new-instance v1, Lio/reactivex/internal/operators/observable/w1$d;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-direct {v1, v2, p1}, Lio/reactivex/internal/operators/observable/w1$d;-><init>(Lio/reactivex/subjects/UnicastSubject;Ljava/lang/Object;)V
 | |
| 
 | |
|     invoke-interface {v0, v1}, Lrh/o;->offer(Ljava/lang/Object;)Z
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lsh/k;->c()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/w1$c;->l()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onComplete()V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lsh/k;->n1:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean v0, p0, Lsh/k;->n1:Z
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Lsh/k;->c()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/w1$c;->l()V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->w1:Ljava/util/concurrent/atomic/AtomicLong;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->decrementAndGet()J
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     const-wide/16 v2, 0x0
 | |
| 
 | |
|     cmp-long v0, v0, v2
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->s1:Lio/reactivex/disposables/a;
 | |
| 
 | |
|     invoke-virtual {v0}, Lio/reactivex/disposables/a;->dispose()V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     iget-object v0, p0, Lsh/k;->k1:Lkh/g0;
 | |
| 
 | |
|     invoke-interface {v0}, Lkh/g0;->onComplete()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onError(Ljava/lang/Throwable;)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lsh/k;->n1:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p1}, Lwh/a;->Y(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iput-object p1, p0, Lsh/k;->o1:Ljava/lang/Throwable;
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean v0, p0, Lsh/k;->n1:Z
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Lsh/k;->c()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/w1$c;->l()V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->w1:Ljava/util/concurrent/atomic/AtomicLong;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->decrementAndGet()J
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     const-wide/16 v2, 0x0
 | |
| 
 | |
|     cmp-long v0, v0, v2
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->s1:Lio/reactivex/disposables/a;
 | |
| 
 | |
|     invoke-virtual {v0}, Lio/reactivex/disposables/a;->dispose()V
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     iget-object v0, p0, Lsh/k;->k1:Lkh/g0;
 | |
| 
 | |
|     invoke-interface {v0, p1}, Lkh/g0;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onNext(Ljava/lang/Object;)V
 | |
|     .locals 2
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TT;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lsh/k;->g()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->v1:Ljava/util/List;
 | |
| 
 | |
|     invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Lio/reactivex/subjects/UnicastSubject;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v1, p1}, Lio/reactivex/subjects/UnicastSubject;->onNext(Ljava/lang/Object;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, -0x1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, p1}, Lsh/k;->b(I)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-nez p1, :cond_2
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lsh/k;->l1:Lrh/n;
 | |
| 
 | |
|     invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->next(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-interface {v0, p1}, Lrh/o;->offer(Ljava/lang/Object;)Z
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Lsh/k;->c()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-nez p1, :cond_2
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/w1$c;->l()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onSubscribe(Lio/reactivex/disposables/b;)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->t1: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_1
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/w1$c;->t1:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Lsh/k;->k1:Lkh/g0;
 | |
| 
 | |
|     invoke-interface {p1, p0}, Lkh/g0;->onSubscribe(Lio/reactivex/disposables/b;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-boolean p1, p0, Lsh/k;->m1:Z
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     new-instance p1, Lio/reactivex/internal/operators/observable/w1$b;
 | |
| 
 | |
|     invoke-direct {p1, p0}, Lio/reactivex/internal/operators/observable/w1$b;-><init>(Lio/reactivex/internal/operators/observable/w1$c;)V
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->u1:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->w1:Ljava/util/concurrent/atomic/AtomicLong;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->getAndIncrement()J
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/w1$c;->p1:Lkh/e0;
 | |
| 
 | |
|     invoke-interface {v0, p1}, Lkh/e0;->subscribe(Lkh/g0;)V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 |