735 lines
		
	
	
		
			20 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			735 lines
		
	
	
		
			20 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lio/reactivex/internal/operators/observable/ObservableCache;
 | |
| .super Lio/reactivex/internal/operators/observable/a;
 | |
| .source "ObservableCache.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Lkh/g0;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lio/reactivex/internal/operators/observable/ObservableCache$a;,
 | |
|         Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<T:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Lio/reactivex/internal/operators/observable/a<",
 | |
|         "TT;TT;>;",
 | |
|         "Lkh/g0<",
 | |
|         "TT;>;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final k:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
| .field public static final l:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final b:Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
| .field public final c:I
 | |
| 
 | |
| .field public final d:Ljava/util/concurrent/atomic/AtomicReference;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "[",
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable<",
 | |
|             "TT;>;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public volatile e:J
 | |
| 
 | |
| .field public final f:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableCache$a<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public g:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableCache$a<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public h:I
 | |
| 
 | |
| .field public i:Ljava/lang/Throwable;
 | |
| 
 | |
| .field public volatile j:Z
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 2
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     new-array v1, v0, [Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     .line 1
 | |
|     sput-object v1, Lio/reactivex/internal/operators/observable/ObservableCache;->k:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     new-array v0, v0, [Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     .line 2
 | |
|     sput-object v0, Lio/reactivex/internal/operators/observable/ObservableCache;->l:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Lkh/z;I)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/z<",
 | |
|             "TT;>;I)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1}, Lio/reactivex/internal/operators/observable/a;-><init>(Lkh/e0;)V
 | |
| 
 | |
|     .line 2
 | |
|     iput p2, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->c:I
 | |
| 
 | |
|     .line 3
 | |
|     new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
|     invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->b:Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
|     .line 4
 | |
|     new-instance p1, Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     invoke-direct {p1, p2}, Lio/reactivex/internal/operators/observable/ObservableCache$a;-><init>(I)V
 | |
| 
 | |
|     .line 5
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->f:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     .line 6
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->g:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     .line 7
 | |
|     new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     sget-object p2, Lio/reactivex/internal/operators/observable/ObservableCache;->k:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     invoke-direct {p1, p2}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
 | |
| 
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public b(Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;)V
 | |
|     .locals 4
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable<",
 | |
|             "TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d: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/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v1, Lio/reactivex/internal/operators/observable/ObservableCache;->l:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     if-ne v0, v1, :cond_1
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_1
 | |
|     array-length v1, v0
 | |
| 
 | |
|     add-int/lit8 v2, v1, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     new-array v2, v2, [Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0, v3, v2, v3, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
 | |
| 
 | |
|     .line 6
 | |
|     aput-object p1, v2, v1
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d: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_0
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public c()J
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->e:J
 | |
| 
 | |
|     return-wide v0
 | |
| .end method
 | |
| 
 | |
| .method public d()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d: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/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     array-length v0, v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public e()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->b:Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public f(Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;)V
 | |
|     .locals 6
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable<",
 | |
|             "TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d: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/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     .line 2
 | |
|     array-length v1, v0
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v2, -0x1
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     move v4, v3
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v4, v1, :cond_3
 | |
| 
 | |
|     .line 3
 | |
|     aget-object v5, v0, v4
 | |
| 
 | |
|     if-ne v5, p1, :cond_2
 | |
| 
 | |
|     move v2, v4
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     add-int/lit8 v4, v4, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_3
 | |
|     :goto_1
 | |
|     if-gez v2, :cond_4
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_4
 | |
|     const/4 v4, 0x1
 | |
| 
 | |
|     if-ne v1, v4, :cond_5
 | |
| 
 | |
|     .line 4
 | |
|     sget-object v1, Lio/reactivex/internal/operators/observable/ObservableCache;->k:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_5
 | |
|     add-int/lit8 v5, v1, -0x1
 | |
| 
 | |
|     .line 5
 | |
|     new-array v5, v5, [Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v0, v3, v5, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
 | |
| 
 | |
|     add-int/lit8 v3, v2, 0x1
 | |
| 
 | |
|     sub-int/2addr v1, v2
 | |
| 
 | |
|     sub-int/2addr v1, v4
 | |
| 
 | |
|     .line 7
 | |
|     invoke-static {v0, v3, v5, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
 | |
| 
 | |
|     move-object v1, v5
 | |
| 
 | |
|     .line 8
 | |
|     :goto_2
 | |
|     iget-object v2, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-virtual {v2, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public g(Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;)V
 | |
|     .locals 12
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable<",
 | |
|             "TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     iget-wide v0, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->index:J
 | |
| 
 | |
|     .line 3
 | |
|     iget v2, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->offset:I
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v3, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->node:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v4, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->downstream:Lkh/g0;
 | |
| 
 | |
|     .line 6
 | |
|     iget v5, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->c:I
 | |
| 
 | |
|     const/4 v6, 0x1
 | |
| 
 | |
|     move v7, v6
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     iget-boolean v8, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->disposed:Z
 | |
| 
 | |
|     const/4 v9, 0x0
 | |
| 
 | |
|     if-eqz v8, :cond_2
 | |
| 
 | |
|     .line 8
 | |
|     iput-object v9, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->node:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     iget-boolean v8, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->j:Z
 | |
| 
 | |
|     .line 10
 | |
|     iget-wide v10, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->e:J
 | |
| 
 | |
|     cmp-long v10, v10, v0
 | |
| 
 | |
|     const/4 v11, 0x0
 | |
| 
 | |
|     if-nez v10, :cond_3
 | |
| 
 | |
|     move v10, v6
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_3
 | |
|     move v10, v11
 | |
| 
 | |
|     :goto_1
 | |
|     if-eqz v8, :cond_5
 | |
| 
 | |
|     if-eqz v10, :cond_5
 | |
| 
 | |
|     .line 11
 | |
|     iput-object v9, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->node:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     .line 12
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->i:Ljava/lang/Throwable;
 | |
| 
 | |
|     if-eqz p1, :cond_4
 | |
| 
 | |
|     .line 13
 | |
|     invoke-interface {v4, p1}, Lkh/g0;->onError(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 14
 | |
|     :cond_4
 | |
|     invoke-interface {v4}, Lkh/g0;->onComplete()V
 | |
| 
 | |
|     :goto_2
 | |
|     return-void
 | |
| 
 | |
|     :cond_5
 | |
|     if-nez v10, :cond_7
 | |
| 
 | |
|     if-ne v2, v5, :cond_6
 | |
| 
 | |
|     .line 15
 | |
|     iget-object v2, v3, Lio/reactivex/internal/operators/observable/ObservableCache$a;->b:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     move-object v3, v2
 | |
| 
 | |
|     move v2, v11
 | |
| 
 | |
|     .line 16
 | |
|     :cond_6
 | |
|     iget-object v8, v3, Lio/reactivex/internal/operators/observable/ObservableCache$a;->a:[Ljava/lang/Object;
 | |
| 
 | |
|     aget-object v8, v8, v2
 | |
| 
 | |
|     invoke-interface {v4, v8}, Lkh/g0;->onNext(Ljava/lang/Object;)V
 | |
| 
 | |
|     add-int/2addr v2, v6
 | |
| 
 | |
|     const-wide/16 v8, 0x1
 | |
| 
 | |
|     add-long/2addr v0, v8
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 17
 | |
|     :cond_7
 | |
|     iput-wide v0, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->index:J
 | |
| 
 | |
|     .line 18
 | |
|     iput v2, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->offset:I
 | |
| 
 | |
|     .line 19
 | |
|     iput-object v3, p1, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;->node:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     neg-int v7, v7
 | |
| 
 | |
|     .line 20
 | |
|     invoke-virtual {p1, v7}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
 | |
| 
 | |
|     move-result v7
 | |
| 
 | |
|     if-nez v7, :cond_1
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onComplete()V
 | |
|     .locals 4
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->j:Z
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     sget-object v1, Lio/reactivex/internal/operators/observable/ObservableCache;->l:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     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/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     array-length v1, v0
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v2, v1, :cond_0
 | |
| 
 | |
|     aget-object v3, v0, v2
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v3}, Lio/reactivex/internal/operators/observable/ObservableCache;->g(Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;)V
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onError(Ljava/lang/Throwable;)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->i:Ljava/lang/Throwable;
 | |
| 
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->j:Z
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     sget-object v0, Lio/reactivex/internal/operators/observable/ObservableCache;->l:[Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, [Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     array-length v0, p1
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     if-ge v1, v0, :cond_0
 | |
| 
 | |
|     aget-object v2, p1, v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, v2}, Lio/reactivex/internal/operators/observable/ObservableCache;->g(Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;)V
 | |
| 
 | |
|     add-int/lit8 v1, v1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onNext(Ljava/lang/Object;)V
 | |
|     .locals 5
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TT;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->h:I
 | |
| 
 | |
|     .line 2
 | |
|     iget v1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->c:I
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     if-ne v0, v1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v1, Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     invoke-direct {v1, v0}, Lio/reactivex/internal/operators/observable/ObservableCache$a;-><init>(I)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, v1, Lio/reactivex/internal/operators/observable/ObservableCache$a;->a:[Ljava/lang/Object;
 | |
| 
 | |
|     aput-object p1, v0, v2
 | |
| 
 | |
|     .line 5
 | |
|     iput v3, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->h:I
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->g:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     iput-object v1, p1, Lio/reactivex/internal/operators/observable/ObservableCache$a;->b:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     .line 7
 | |
|     iput-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->g:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 8
 | |
|     :cond_0
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->g:Lio/reactivex/internal/operators/observable/ObservableCache$a;
 | |
| 
 | |
|     iget-object v1, v1, Lio/reactivex/internal/operators/observable/ObservableCache$a;->a:[Ljava/lang/Object;
 | |
| 
 | |
|     aput-object p1, v1, v0
 | |
| 
 | |
|     add-int/2addr v0, v3
 | |
| 
 | |
|     .line 9
 | |
|     iput v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->h:I
 | |
| 
 | |
|     .line 10
 | |
|     :goto_0
 | |
|     iget-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->e:J
 | |
| 
 | |
|     const-wide/16 v3, 0x1
 | |
| 
 | |
|     add-long/2addr v0, v3
 | |
| 
 | |
|     iput-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->e:J
 | |
| 
 | |
|     .line 11
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->d:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, [Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     array-length v0, p1
 | |
| 
 | |
|     :goto_1
 | |
|     if-ge v2, v0, :cond_1
 | |
| 
 | |
|     aget-object v1, p1, v2
 | |
| 
 | |
|     .line 12
 | |
|     invoke-virtual {p0, v1}, Lio/reactivex/internal/operators/observable/ObservableCache;->g(Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;)V
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onSubscribe(Lio/reactivex/disposables/b;)V
 | |
|     .locals 0
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public subscribeActual(Lkh/g0;)V
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/g0<",
 | |
|             "-TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;
 | |
| 
 | |
|     invoke-direct {v0, p1, p0}, Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;-><init>(Lkh/g0;Lio/reactivex/internal/operators/observable/ObservableCache;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p1, v0}, Lkh/g0;->onSubscribe(Lio/reactivex/disposables/b;)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v0}, Lio/reactivex/internal/operators/observable/ObservableCache;->b(Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->b:Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCache;->b:Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     invoke-virtual {p1, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/a;->a:Lkh/e0;
 | |
| 
 | |
|     invoke-interface {p1, p0}, Lkh/e0;->subscribe(Lkh/g0;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     invoke-virtual {p0, v0}, Lio/reactivex/internal/operators/observable/ObservableCache;->g(Lio/reactivex/internal/operators/observable/ObservableCache$CacheDisposable;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 |