521 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			521 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final enum Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| .super Ljava/lang/Enum;
 | |
| .source "DisposableHelper.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Lio/reactivex/rxjava3/disposables/c;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "Ljava/lang/Enum<",
 | |
|         "Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;",
 | |
|         ">;",
 | |
|         "Lio/reactivex/rxjava3/disposables/c;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final synthetic $VALUES:[Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
| .field public static final enum DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     const-string v1, "DISPOSED"
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-direct {v0, v1, v2}, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;-><init>(Ljava/lang/String;I)V
 | |
| 
 | |
|     sput-object v0, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     new-array v1, v1, [Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     aput-object v0, v1, v2
 | |
| 
 | |
|     .line 2
 | |
|     sput-object v1, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->$VALUES:[Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private constructor <init>(Ljava/lang/String;I)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x1000,
 | |
|             0x1000
 | |
|         }
 | |
|         names = {
 | |
|             "$enum$name",
 | |
|             "$enum$ordinal"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
 | |
|     .locals 2
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x0
 | |
|         }
 | |
|         names = {
 | |
|             "field"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ">;)Z"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lio/reactivex/rxjava3/disposables/c;
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v1, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     if-eq v0, v1, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     check-cast p0, Lio/reactivex/rxjava3/disposables/c;
 | |
| 
 | |
|     if-eq p0, v1, :cond_1
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-interface {p0}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static isDisposed(Lio/reactivex/rxjava3/disposables/c;)Z
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x0
 | |
|         }
 | |
|         names = {
 | |
|             "d"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     if-ne p0, v0, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static replace(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/rxjava3/disposables/c;)Z
 | |
|     .locals 2
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x0,
 | |
|             0x0
 | |
|         }
 | |
|         names = {
 | |
|             "field",
 | |
|             "d"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ">;",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ")Z"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lio/reactivex/rxjava3/disposables/c;
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v1, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     if-ne v0, v1, :cond_2
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_2
 | |
|     invoke-virtual {p0, v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static reportDisposableSet()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lio/reactivex/rxjava3/exceptions/ProtocolViolationException;
 | |
| 
 | |
|     const-string v1, "Disposable already set!"
 | |
| 
 | |
|     invoke-direct {v0, v1}, Lio/reactivex/rxjava3/exceptions/ProtocolViolationException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-static {v0}, Lji/a;->Y(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static set(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/rxjava3/disposables/c;)Z
 | |
|     .locals 2
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x0,
 | |
|             0x0
 | |
|         }
 | |
|         names = {
 | |
|             "field",
 | |
|             "d"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ">;",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ")Z"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lio/reactivex/rxjava3/disposables/c;
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v1, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     if-ne v0, v1, :cond_2
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_2
 | |
|     invoke-virtual {p0, v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     if-eqz v0, :cond_3
 | |
| 
 | |
|     .line 5
 | |
|     invoke-interface {v0}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
 | |
| 
 | |
|     :cond_3
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static setOnce(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/rxjava3/disposables/c;)Z
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x0,
 | |
|             0x0
 | |
|         }
 | |
|         names = {
 | |
|             "field",
 | |
|             "d"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ">;",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ")Z"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "d is null"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     sget-object p1, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     if-eq p0, p1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {}, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->reportDisposableSet()V
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static trySet(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/rxjava3/disposables/c;)Z
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x0,
 | |
|             0x0
 | |
|         }
 | |
|         names = {
 | |
|             "field",
 | |
|             "d"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/util/concurrent/atomic/AtomicReference<",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ">;",
 | |
|             "Lio/reactivex/rxjava3/disposables/c;",
 | |
|             ")Z"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     sget-object v0, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     if-ne p0, v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static validate(Lio/reactivex/rxjava3/disposables/c;Lio/reactivex/rxjava3/disposables/c;)Z
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x0,
 | |
|             0x0
 | |
|         }
 | |
|         names = {
 | |
|             "current",
 | |
|             "next"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     .line 1
 | |
|     new-instance p0, Ljava/lang/NullPointerException;
 | |
| 
 | |
|     const-string p1, "next is null"
 | |
| 
 | |
|     invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-static {p0}, Lji/a;->Y(Ljava/lang/Throwable;)V
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :cond_0
 | |
|     if-eqz p0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {}, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->reportDisposableSet()V
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static valueOf(Ljava/lang/String;)Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x8000
 | |
|         }
 | |
|         names = {
 | |
|             "name"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     const-class v0, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     check-cast p0, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static values()[Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->$VALUES:[Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     invoke-virtual {v0}, [Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->clone()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, [Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public dispose()V
 | |
|     .locals 0
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public isDisposed()Z
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     return v0
 | |
| .end method
 |