Completable$13$1.smali
.class Lrx/Completable$13$1;
.super Ljava/lang/Object;
.source "Completable.java"
# interfaces
.implements Lrx/CompletableSubscriber;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lrx/Completable$13;->call(Lrx/CompletableSubscriber;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field d:Lrx/Subscription;
.field final synthetic this$0:Lrx/Completable$13;
.field final synthetic val$once:Ljava/util/concurrent/atomic/AtomicBoolean;
.field final synthetic val$resource:Ljava/lang/Object;
.field final synthetic val$s:Lrx/CompletableSubscriber;
# direct methods
.method constructor <init>(Lrx/Completable$13;Ljava/util/concurrent/atomic/AtomicBoolean;Ljava/lang/Object;Lrx/CompletableSubscriber;)V
.registers 5
.line 1
iput-object p1, p0, Lrx/Completable$13$1;->this$0:Lrx/Completable$13;
iput-object p2, p0, Lrx/Completable$13$1;->val$once:Ljava/util/concurrent/atomic/AtomicBoolean;
iput-object p3, p0, Lrx/Completable$13$1;->val$resource:Ljava/lang/Object;
iput-object p4, p0, Lrx/Completable$13$1;->val$s:Lrx/CompletableSubscriber;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method dispose()V
.registers 4
.line 1
iget-object v0, p0, Lrx/Completable$13$1;->d:Lrx/Subscription;
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
.line 2
iget-object v0, p0, Lrx/Completable$13$1;->val$once:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x0
const/4 v2, 0x1
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
if-eqz v0, :cond_1d
.line 3
:try_start_f
iget-object v0, p0, Lrx/Completable$13$1;->this$0:Lrx/Completable$13;
iget-object v0, v0, Lrx/Completable$13;->val$disposer:Lrx/functions/Action1;
iget-object v1, p0, Lrx/Completable$13$1;->val$resource:Ljava/lang/Object;
invoke-interface {v0, v1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
:try_end_18
.catch Ljava/lang/Throwable; {:try_start_f .. :try_end_18} :catch_19
goto :goto_1d
:catch_19
move-exception v0
.line 4
invoke-static {v0}, Lrx/plugins/RxJavaHooks;->onError(Ljava/lang/Throwable;)V
:cond_1d
:goto_1d
return-void
.end method
.method public onCompleted()V
.registers 4
.line 1
iget-object v0, p0, Lrx/Completable$13$1;->this$0:Lrx/Completable$13;
iget-boolean v0, v0, Lrx/Completable$13;->val$eager:Z
if-eqz v0, :cond_21
.line 2
iget-object v0, p0, Lrx/Completable$13$1;->val$once:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x0
const/4 v2, 0x1
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
if-eqz v0, :cond_21
.line 3
:try_start_10
iget-object v0, p0, Lrx/Completable$13$1;->this$0:Lrx/Completable$13;
iget-object v0, v0, Lrx/Completable$13;->val$disposer:Lrx/functions/Action1;
iget-object v1, p0, Lrx/Completable$13$1;->val$resource:Ljava/lang/Object;
invoke-interface {v0, v1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
:try_end_19
.catch Ljava/lang/Throwable; {:try_start_10 .. :try_end_19} :catch_1a
goto :goto_21
:catch_1a
move-exception v0
.line 4
iget-object v1, p0, Lrx/Completable$13$1;->val$s:Lrx/CompletableSubscriber;
invoke-interface {v1, v0}, Lrx/CompletableSubscriber;->onError(Ljava/lang/Throwable;)V
return-void
.line 5
:cond_21
:goto_21
iget-object v0, p0, Lrx/Completable$13$1;->val$s:Lrx/CompletableSubscriber;
invoke-interface {v0}, Lrx/CompletableSubscriber;->onCompleted()V
.line 6
iget-object v0, p0, Lrx/Completable$13$1;->this$0:Lrx/Completable$13;
iget-boolean v0, v0, Lrx/Completable$13;->val$eager:Z
if-nez v0, :cond_2f
.line 7
invoke-virtual {p0}, Lrx/Completable$13$1;->dispose()V
:cond_2f
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 7
.line 1
iget-object v0, p0, Lrx/Completable$13$1;->this$0:Lrx/Completable$13;
iget-boolean v0, v0, Lrx/Completable$13;->val$eager:Z
if-eqz v0, :cond_2c
.line 2
iget-object v0, p0, Lrx/Completable$13$1;->val$once:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x1
const/4 v2, 0x0
invoke-virtual {v0, v2, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
if-eqz v0, :cond_2c
.line 3
:try_start_10
iget-object v0, p0, Lrx/Completable$13$1;->this$0:Lrx/Completable$13;
iget-object v0, v0, Lrx/Completable$13;->val$disposer:Lrx/functions/Action1;
iget-object v3, p0, Lrx/Completable$13$1;->val$resource:Ljava/lang/Object;
invoke-interface {v0, v3}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
:try_end_19
.catch Ljava/lang/Throwable; {:try_start_10 .. :try_end_19} :catch_1a
goto :goto_2c
:catch_1a
move-exception v0
.line 4
new-instance v3, Lrx/exceptions/CompositeException;
const/4 v4, 0x2
new-array v4, v4, [Ljava/lang/Throwable;
aput-object p1, v4, v2
aput-object v0, v4, v1
invoke-static {v4}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
invoke-direct {v3, p1}, Lrx/exceptions/CompositeException;-><init>(Ljava/util/Collection;)V
move-object p1, v3
.line 5
:cond_2c
:goto_2c
iget-object v0, p0, Lrx/Completable$13$1;->val$s:Lrx/CompletableSubscriber;
invoke-interface {v0, p1}, Lrx/CompletableSubscriber;->onError(Ljava/lang/Throwable;)V
.line 6
iget-object p1, p0, Lrx/Completable$13$1;->this$0:Lrx/Completable$13;
iget-boolean p1, p1, Lrx/Completable$13;->val$eager:Z
if-nez p1, :cond_3a
.line 7
invoke-virtual {p0}, Lrx/Completable$13$1;->dispose()V
:cond_3a
return-void
.end method
.method public onSubscribe(Lrx/Subscription;)V
.registers 3
.line 1
iput-object p1, p0, Lrx/Completable$13$1;->d:Lrx/Subscription;
.line 2
iget-object p1, p0, Lrx/Completable$13$1;->val$s:Lrx/CompletableSubscriber;
new-instance v0, Lrx/Completable$13$1$1;
invoke-direct {v0, p0}, Lrx/Completable$13$1$1;-><init>(Lrx/Completable$13$1;)V
invoke-static {v0}, Lrx/subscriptions/Subscriptions;->create(Lrx/functions/Action0;)Lrx/Subscription;
move-result-object v0
invoke-interface {p1, v0}, Lrx/CompletableSubscriber;->onSubscribe(Lrx/Subscription;)V
return-void
.end method