a$a.smali

.class public final Lio/reactivex/subjects/a$a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lio/reactivex/disposables/b;
.implements Lio/reactivex/internal/util/a$a;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lio/reactivex/subjects/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "a"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lio/reactivex/disposables/b;",
        "Lio/reactivex/internal/util/a$a<",
        "Ljava/lang/Object;",
        ">;"
    }
.end annotation


# instance fields
.field public final a:Lio/reactivex/s;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/s<",
            "-TT;>;"
        }
    .end annotation
.end field

.field public final b:Lio/reactivex/subjects/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/subjects/a<",
            "TT;>;"
        }
    .end annotation
.end field

.field public c:Z

.field public d:Z

.field public e:Lio/reactivex/internal/util/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/internal/util/a<",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field public f:Z

.field public volatile g:Z

.field public h:J


# direct methods
.method public constructor <init>(Lio/reactivex/s;Lio/reactivex/subjects/a;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lio/reactivex/s<",
            "-TT;>;",
            "Lio/reactivex/subjects/a<",
            "TT;>;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lio/reactivex/subjects/a$a;->a:Lio/reactivex/s;

    .line 3
    iput-object p2, p0, Lio/reactivex/subjects/a$a;->b:Lio/reactivex/subjects/a;

    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/Object;J)V
    .registers 7

    .line 1
    iget-boolean v0, p0, Lio/reactivex/subjects/a$a;->g:Z

    if-eqz v0, :cond_5

    return-void

    .line 2
    :cond_5
    iget-boolean v0, p0, Lio/reactivex/subjects/a$a;->f:Z

    if-nez v0, :cond_36

    .line 3
    monitor-enter p0

    .line 4
    :try_start_a
    iget-boolean v0, p0, Lio/reactivex/subjects/a$a;->g:Z

    if-eqz v0, :cond_10

    .line 5
    monitor-exit p0

    return-void

    .line 6
    :cond_10
    iget-wide v0, p0, Lio/reactivex/subjects/a$a;->h:J

    cmp-long v2, v0, p2

    if-nez v2, :cond_18

    .line 7
    monitor-exit p0

    return-void

    .line 8
    :cond_18
    iget-boolean p2, p0, Lio/reactivex/subjects/a$a;->d:Z

    if-eqz p2, :cond_2c

    .line 9
    iget-object p2, p0, Lio/reactivex/subjects/a$a;->e:Lio/reactivex/internal/util/a;

    if-nez p2, :cond_27

    .line 10
    new-instance p2, Lio/reactivex/internal/util/a;

    invoke-direct {p2}, Lio/reactivex/internal/util/a;-><init>()V

    .line 11
    iput-object p2, p0, Lio/reactivex/subjects/a$a;->e:Lio/reactivex/internal/util/a;

    .line 12
    :cond_27
    invoke-virtual {p2, p1}, Lio/reactivex/internal/util/a;->b(Ljava/lang/Object;)V

    .line 13
    monitor-exit p0

    return-void

    :cond_2c
    const/4 p2, 0x1

    .line 14
    iput-boolean p2, p0, Lio/reactivex/subjects/a$a;->c:Z

    .line 15
    monitor-exit p0
    :try_end_30
    .catchall {:try_start_a .. :try_end_30} :catchall_33

    .line 16
    iput-boolean p2, p0, Lio/reactivex/subjects/a$a;->f:Z

    goto :goto_36

    :catchall_33
    move-exception p1

    .line 17
    :try_start_34
    monitor-exit p0
    :try_end_35
    .catchall {:try_start_34 .. :try_end_35} :catchall_33

    throw p1

    .line 18
    :cond_36
    :goto_36
    invoke-virtual {p0, p1}, Lio/reactivex/subjects/a$a;->test(Ljava/lang/Object;)Z

    return-void
.end method

.method public final dispose()V
    .registers 2

    .line 1
    iget-boolean v0, p0, Lio/reactivex/subjects/a$a;->g:Z

    if-nez v0, :cond_c

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lio/reactivex/subjects/a$a;->g:Z

    .line 3
    iget-object v0, p0, Lio/reactivex/subjects/a$a;->b:Lio/reactivex/subjects/a;

    invoke-virtual {v0, p0}, Lio/reactivex/subjects/a;->a(Lio/reactivex/subjects/a$a;)V

    :cond_c
    return-void
.end method

.method public final isDisposed()Z
    .registers 2

    iget-boolean v0, p0, Lio/reactivex/subjects/a$a;->g:Z

    return v0
.end method

.method public final test(Ljava/lang/Object;)Z
    .registers 3

    iget-boolean v0, p0, Lio/reactivex/subjects/a$a;->g:Z

    if-nez v0, :cond_f

    iget-object v0, p0, Lio/reactivex/subjects/a$a;->a:Lio/reactivex/s;

    invoke-static {p1, v0}, Lio/reactivex/internal/util/j;->accept(Ljava/lang/Object;Lio/reactivex/s;)Z

    move-result p1

    if-eqz p1, :cond_d

    goto :goto_f

    :cond_d
    const/4 p1, 0x0

    goto :goto_10

    :cond_f
    :goto_f
    const/4 p1, 0x1

    :goto_10
    return p1
.end method