a.smali
.class public final Lqp/a;
.super Ljava/lang/Object;
.source "CompositeDisposable.java"
# interfaces
.implements Lqp/b;
.implements Ltp/a;
# instance fields
.field public a:Ldq/c;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ldq/c<",
"Lqp/b;",
">;"
}
.end annotation
.end field
.field public volatile b:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Ldq/c;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ldq/c<",
"Lqp/b;",
">;)V"
}
.end annotation
if-nez p1, :cond_3
return-void
:cond_3
const/4 v0, 0x0
invoke-virtual {p1}, Ldq/c;->a()[Ljava/lang/Object;
move-result-object p1
array-length v1, p1
const/4 v2, 0x0
const/4 v3, 0x0
:goto_b
if-ge v3, v1, :cond_2a
aget-object v4, p1, v3
instance-of v5, v4, Lqp/b;
if-eqz v5, :cond_27
:try_start_13
check-cast v4, Lqp/b;
invoke-interface {v4}, Lqp/b;->dispose()V
:try_end_18
.catchall {:try_start_13 .. :try_end_18} :catchall_19
goto :goto_27
:catchall_19
move-exception v4
invoke-static {v4}, Lrp/b;->b(Ljava/lang/Throwable;)V
if-nez v0, :cond_24
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
:cond_24
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_27
:goto_27
add-int/lit8 v3, v3, 0x1
goto :goto_b
:cond_2a
if-eqz v0, :cond_44
invoke-interface {v0}, Ljava/util/List;->size()I
move-result p1
const/4 v1, 0x1
if-ne p1, v1, :cond_3e
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Throwable;
invoke-static {p1}, Ldq/b;->a(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
move-result-object p1
throw p1
:cond_3e
new-instance p1, Lrp/a;
invoke-direct {p1, v0}, Lrp/a;-><init>(Ljava/lang/Iterable;)V
throw p1
:cond_44
return-void
.end method
.method public a()Z
.registers 2
iget-boolean v0, p0, Lqp/a;->b:Z
return v0
.end method
.method public a(Lqp/b;)Z
.registers 3
invoke-virtual {p0, p1}, Lqp/a;->c(Lqp/b;)Z
move-result v0
if-eqz v0, :cond_b
invoke-interface {p1}, Lqp/b;->dispose()V
const/4 p1, 0x1
return p1
:cond_b
const/4 p1, 0x0
return p1
.end method
.method public b(Lqp/b;)Z
.registers 3
const-string v0, "d is null"
invoke-static {p1, v0}, Lup/a;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
iget-boolean v0, p0, Lqp/a;->b:Z
if-nez v0, :cond_24
monitor-enter p0
:try_start_a
iget-boolean v0, p0, Lqp/a;->b:Z
if-nez v0, :cond_1f
iget-object v0, p0, Lqp/a;->a:Ldq/c;
if-nez v0, :cond_19
new-instance v0, Ldq/c;
invoke-direct {v0}, Ldq/c;-><init>()V
iput-object v0, p0, Lqp/a;->a:Ldq/c;
:cond_19
invoke-virtual {v0, p1}, Ldq/c;->a(Ljava/lang/Object;)Z
const/4 p1, 0x1
monitor-exit p0
return p1
:cond_1f
monitor-exit p0
goto :goto_24
:catchall_21
move-exception p1
monitor-exit p0
:try_end_23
.catchall {:try_start_a .. :try_end_23} :catchall_21
throw p1
:cond_24
:goto_24
invoke-interface {p1}, Lqp/b;->dispose()V
const/4 p1, 0x0
return p1
.end method
.method public c(Lqp/b;)Z
.registers 4
const-string v0, "Disposable item is null"
invoke-static {p1, v0}, Lup/a;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
iget-boolean v0, p0, Lqp/a;->b:Z
const/4 v1, 0x0
if-eqz v0, :cond_b
return v1
:cond_b
monitor-enter p0
:try_start_c
iget-boolean v0, p0, Lqp/a;->b:Z
if-eqz v0, :cond_12
monitor-exit p0
return v1
:cond_12
iget-object v0, p0, Lqp/a;->a:Ldq/c;
if-eqz v0, :cond_20
invoke-virtual {v0, p1}, Ldq/c;->b(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_1d
goto :goto_20
:cond_1d
monitor-exit p0
const/4 p1, 0x1
return p1
:cond_20
:goto_20
monitor-exit p0
return v1
:catchall_22
move-exception p1
monitor-exit p0
:try_end_24
.catchall {:try_start_c .. :try_end_24} :catchall_22
throw p1
.end method
.method public dispose()V
.registers 3
iget-boolean v0, p0, Lqp/a;->b:Z
if-eqz v0, :cond_5
return-void
:cond_5
monitor-enter p0
:try_start_6
iget-boolean v0, p0, Lqp/a;->b:Z
if-eqz v0, :cond_c
monitor-exit p0
return-void
:cond_c
const/4 v0, 0x1
iput-boolean v0, p0, Lqp/a;->b:Z
iget-object v0, p0, Lqp/a;->a:Ldq/c;
const/4 v1, 0x0
iput-object v1, p0, Lqp/a;->a:Ldq/c;
monitor-exit p0
:try_end_15
.catchall {:try_start_6 .. :try_end_15} :catchall_19
invoke-virtual {p0, v0}, Lqp/a;->a(Ldq/c;)V
return-void
:catchall_19
move-exception v0
:try_start_1a
monitor-exit p0
:try_end_1b
.catchall {:try_start_1a .. :try_end_1b} :catchall_19
throw v0
.end method