274 lines
		
	
	
		
			7.1 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			274 lines
		
	
	
		
			7.1 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lio/reactivex/internal/operators/observable/ObservablePublish;
 | |
| .super Luh/a;
 | |
| .source "ObservablePublish.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Lrh/g;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lio/reactivex/internal/operators/observable/ObservablePublish$b;,
 | |
|         Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;,
 | |
|         Lio/reactivex/internal/operators/observable/ObservablePublish$a;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<T:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Luh/a<",
 | |
|         "TT;>;",
 | |
|         "Lrh/g<",
 | |
|         "TT;>;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final a:Lkh/e0;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lkh/e0<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final b:Ljava/util/concurrent/atomic/AtomicReference;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/internal/operators/observable/ObservablePublish$a<",
 | |
|             "TT;>;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final c:Lkh/e0;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lkh/e0<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lkh/e0;Lkh/e0;Ljava/util/concurrent/atomic/AtomicReference;)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/e0<",
 | |
|             "TT;>;",
 | |
|             "Lkh/e0<",
 | |
|             "TT;>;",
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/internal/operators/observable/ObservablePublish$a<",
 | |
|             "TT;>;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Luh/a;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->c:Lkh/e0;
 | |
| 
 | |
|     .line 3
 | |
|     iput-object p2, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->a:Lkh/e0;
 | |
| 
 | |
|     .line 4
 | |
|     iput-object p3, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->b:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static m(Lkh/e0;)Luh/a;
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<T:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Lkh/e0<",
 | |
|             "TT;>;)",
 | |
|             "Luh/a<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v1, Lio/reactivex/internal/operators/observable/ObservablePublish$b;
 | |
| 
 | |
|     invoke-direct {v1, v0}, Lio/reactivex/internal/operators/observable/ObservablePublish$b;-><init>(Ljava/util/concurrent/atomic/AtomicReference;)V
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v2, Lio/reactivex/internal/operators/observable/ObservablePublish;
 | |
| 
 | |
|     invoke-direct {v2, v1, p0, v0}, Lio/reactivex/internal/operators/observable/ObservablePublish;-><init>(Lkh/e0;Lkh/e0;Ljava/util/concurrent/atomic/AtomicReference;)V
 | |
| 
 | |
|     invoke-static {v2}, Lwh/a;->U(Luh/a;)Luh/a;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public f(Lph/g;)V
 | |
|     .locals 4
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lph/g<",
 | |
|             "-",
 | |
|             "Lio/reactivex/disposables/b;",
 | |
|             ">;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->b: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/ObservablePublish$a;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Lio/reactivex/internal/operators/observable/ObservablePublish$a;->isDisposed()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance v1, Lio/reactivex/internal/operators/observable/ObservablePublish$a;
 | |
| 
 | |
|     iget-object v2, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->b:Ljava/util/concurrent/atomic/AtomicReference;
 | |
| 
 | |
|     invoke-direct {v1, v2}, Lio/reactivex/internal/operators/observable/ObservablePublish$a;-><init>(Ljava/util/concurrent/atomic/AtomicReference;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v2, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->b: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-nez v0, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     move-object v0, v1
 | |
| 
 | |
|     .line 5
 | |
|     :cond_2
 | |
|     iget-object v1, v0, Lio/reactivex/internal/operators/observable/ObservablePublish$a;->c:Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
|     invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     if-nez v1, :cond_3
 | |
| 
 | |
|     iget-object v1, v0, Lio/reactivex/internal/operators/observable/ObservablePublish$a;->c:Ljava/util/concurrent/atomic/AtomicBoolean;
 | |
| 
 | |
|     invoke-virtual {v1, v3, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_3
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_3
 | |
|     move v2, v3
 | |
| 
 | |
|     .line 6
 | |
|     :goto_1
 | |
|     :try_start_0
 | |
|     invoke-interface {p1, v0}, Lph/g;->accept(Ljava/lang/Object;)V
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     if-eqz v2, :cond_4
 | |
| 
 | |
|     .line 7
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->a:Lkh/e0;
 | |
| 
 | |
|     invoke-interface {p1, v0}, Lkh/e0;->subscribe(Lkh/g0;)V
 | |
| 
 | |
|     :cond_4
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     .line 9
 | |
|     invoke-static {p1}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public source()Lkh/e0;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Lkh/e0<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->a:Lkh/e0;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public subscribeActual(Lkh/g0;)V
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/g0<",
 | |
|             "-TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservablePublish;->c:Lkh/e0;
 | |
| 
 | |
|     invoke-interface {v0, p1}, Lkh/e0;->subscribe(Lkh/g0;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |