o.smali

.class public abstract Lrx/o;
.super Ljava/lang/Object;
.source "Subscriber.java"

# interfaces
.implements Lrx/h;
.implements Lrx/p;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lrx/h",
        "<TT;>;",
        "Lrx/p;"
    }
.end annotation


# instance fields
.field private final cae:Lrx/internal/util/k;

.field private final caf:Lrx/o;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lrx/o",
            "<*>;"
        }
    .end annotation
.end field

.field private cag:Lrx/i;

.field private cah:J


# direct methods
.method protected constructor <init>()V
    .registers 3

    .prologue
    .line 46
    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lrx/o;-><init>(Lrx/o;Z)V

    .line 47
    return-void
.end method

.method protected constructor <init>(Lrx/o;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lrx/o",
            "<*>;)V"
        }
    .end annotation

    .prologue
    .line 58
    const/4 v0, 0x1

    invoke-direct {p0, p1, v0}, Lrx/o;-><init>(Lrx/o;Z)V

    .line 59
    return-void
.end method

.method protected constructor <init>(Lrx/o;Z)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lrx/o",
            "<*>;Z)V"
        }
    .end annotation

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

    .line 43
    const-wide/high16 v0, -0x8000000000000000L

    iput-wide v0, p0, Lrx/o;->cah:J

    .line 80
    iput-object p1, p0, Lrx/o;->caf:Lrx/o;

    .line 81
    if-eqz p2, :cond_12

    if-eqz p1, :cond_12

    iget-object v0, p1, Lrx/o;->cae:Lrx/internal/util/k;

    :goto_f
    iput-object v0, p0, Lrx/o;->cae:Lrx/internal/util/k;

    .line 82
    return-void

    .line 81
    :cond_12
    new-instance v0, Lrx/internal/util/k;

    invoke-direct {v0}, Lrx/internal/util/k;-><init>()V

    goto :goto_f
.end method


# virtual methods
.method public a(Lrx/i;)V
    .registers 8

    .prologue
    const-wide/high16 v4, -0x8000000000000000L

    .line 191
    const/4 v0, 0x0

    .line 192
    monitor-enter p0

    .line 193
    :try_start_4
    iget-wide v2, p0, Lrx/o;->cah:J

    .line 194
    iput-object p1, p0, Lrx/o;->cag:Lrx/i;

    .line 195
    iget-object v1, p0, Lrx/o;->caf:Lrx/o;

    if-eqz v1, :cond_11

    .line 197
    cmp-long v1, v2, v4

    if-nez v1, :cond_11

    .line 199
    const/4 v0, 0x1

    .line 202
    :cond_11
    monitor-exit p0
    :try_end_12
    .catchall {:try_start_4 .. :try_end_12} :catchall_1c

    .line 204
    if-eqz v0, :cond_1f

    .line 205
    iget-object v0, p0, Lrx/o;->caf:Lrx/o;

    iget-object v1, p0, Lrx/o;->cag:Lrx/i;

    invoke-virtual {v0, v1}, Lrx/o;->a(Lrx/i;)V

    .line 214
    :goto_1b
    return-void

    .line 202
    :catchall_1c
    move-exception v0

    :try_start_1d
    monitor-exit p0
    :try_end_1e
    .catchall {:try_start_1d .. :try_end_1e} :catchall_1c

    throw v0

    .line 208
    :cond_1f
    cmp-long v0, v2, v4

    if-nez v0, :cond_2e

    .line 209
    iget-object v0, p0, Lrx/o;->cag:Lrx/i;

    const-wide v2, 0x7fffffffffffffffL

    invoke-interface {v0, v2, v3}, Lrx/i;->request(J)V

    goto :goto_1b

    .line 211
    :cond_2e
    iget-object v0, p0, Lrx/o;->cag:Lrx/i;

    invoke-interface {v0, v2, v3}, Lrx/i;->request(J)V

    goto :goto_1b
.end method

.method public final add(Lrx/p;)V
    .registers 3

    .prologue
    .line 93
    iget-object v0, p0, Lrx/o;->cae:Lrx/internal/util/k;

    invoke-virtual {v0, p1}, Lrx/internal/util/k;->add(Lrx/p;)V

    .line 94
    return-void
.end method

.method public final isUnsubscribed()Z
    .registers 2

    .prologue
    .line 108
    iget-object v0, p0, Lrx/o;->cae:Lrx/internal/util/k;

    invoke-virtual {v0}, Lrx/internal/util/k;->isUnsubscribed()Z

    move-result v0

    return v0
.end method

.method public onStart()V
    .registers 1

    .prologue
    .line 118
    return-void
.end method

.method protected final request(J)V
    .registers 10

    .prologue
    const-wide/16 v4, 0x0

    .line 141
    cmp-long v0, p1, v4

    if-gez v0, :cond_1b

    .line 142
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "number requested cannot be negative: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 148
    :cond_1b
    monitor-enter p0

    .line 149
    :try_start_1c
    iget-object v0, p0, Lrx/o;->cag:Lrx/i;

    if-eqz v0, :cond_27

    .line 150
    iget-object v0, p0, Lrx/o;->cag:Lrx/i;

    .line 155
    monitor-exit p0
    :try_end_23
    .catchall {:try_start_1c .. :try_end_23} :catchall_33

    .line 157
    invoke-interface {v0, p1, p2}, Lrx/i;->request(J)V

    .line 158
    :goto_26
    return-void

    .line 1161
    :cond_27
    :try_start_27
    iget-wide v0, p0, Lrx/o;->cah:J

    const-wide/high16 v2, -0x8000000000000000L

    cmp-long v0, v0, v2

    if-nez v0, :cond_36

    .line 1162
    iput-wide p1, p0, Lrx/o;->cah:J

    .line 153
    :goto_31
    monitor-exit p0

    goto :goto_26

    .line 155
    :catchall_33
    move-exception v0

    monitor-exit p0
    :try_end_35
    .catchall {:try_start_27 .. :try_end_35} :catchall_33

    throw v0

    .line 1164
    :cond_36
    :try_start_36
    iget-wide v0, p0, Lrx/o;->cah:J

    add-long/2addr v0, p1

    .line 1166
    cmp-long v2, v0, v4

    if-gez v2, :cond_45

    .line 1167
    const-wide v0, 0x7fffffffffffffffL

    iput-wide v0, p0, Lrx/o;->cah:J

    goto :goto_31

    .line 1169
    :cond_45
    iput-wide v0, p0, Lrx/o;->cah:J
    :try_end_47
    .catchall {:try_start_36 .. :try_end_47} :catchall_33

    goto :goto_31
.end method

.method public final unsubscribe()V
    .registers 2

    .prologue
    .line 98
    iget-object v0, p0, Lrx/o;->cae:Lrx/internal/util/k;

    invoke-virtual {v0}, Lrx/internal/util/k;->unsubscribe()V

    .line 99
    return-void
.end method