q.smali

.class final Lokio/q;
.super Ljava/lang/Object;
.source "SegmentPool.java"


# static fields
.field private static bZC:Lokio/p;

.field private static byteCount:J


# direct methods
.method private constructor <init>()V
    .registers 1

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

    .line 36
    return-void
.end method

.method static SD()Lokio/p;
    .registers 6

    .prologue
    .line 39
    const-class v1, Lokio/q;

    monitor-enter v1

    .line 40
    :try_start_3
    sget-object v0, Lokio/q;->bZC:Lokio/p;

    if-eqz v0, :cond_19

    .line 41
    sget-object v0, Lokio/q;->bZC:Lokio/p;

    .line 42
    iget-object v2, v0, Lokio/p;->bZC:Lokio/p;

    sput-object v2, Lokio/q;->bZC:Lokio/p;

    .line 43
    const/4 v2, 0x0

    iput-object v2, v0, Lokio/p;->bZC:Lokio/p;

    .line 44
    sget-wide v2, Lokio/q;->byteCount:J

    const-wide/16 v4, 0x2000

    sub-long/2addr v2, v4

    sput-wide v2, Lokio/q;->byteCount:J

    .line 45
    monitor-exit v1

    .line 48
    :goto_18
    return-object v0

    .line 47
    :cond_19
    monitor-exit v1
    :try_end_1a
    .catchall {:try_start_3 .. :try_end_1a} :catchall_20

    .line 48
    new-instance v0, Lokio/p;

    invoke-direct {v0}, Lokio/p;-><init>()V

    goto :goto_18

    .line 47
    :catchall_20
    move-exception v0

    :try_start_21
    monitor-exit v1
    :try_end_22
    .catchall {:try_start_21 .. :try_end_22} :catchall_20

    throw v0
.end method

.method static b(Lokio/p;)V
    .registers 9

    .prologue
    const-wide/16 v6, 0x2000

    .line 52
    iget-object v0, p0, Lokio/p;->bZC:Lokio/p;

    if-nez v0, :cond_a

    iget-object v0, p0, Lokio/p;->bZD:Lokio/p;

    if-eqz v0, :cond_10

    :cond_a
    new-instance v0, Ljava/lang/IllegalArgumentException;

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

    throw v0

    .line 53
    :cond_10
    iget-boolean v0, p0, Lokio/p;->bZA:Z

    if-eqz v0, :cond_15

    .line 60
    :goto_14
    return-void

    .line 54
    :cond_15
    const-class v1, Lokio/q;

    monitor-enter v1

    .line 55
    :try_start_18
    sget-wide v2, Lokio/q;->byteCount:J

    add-long/2addr v2, v6

    const-wide/32 v4, 0x10000

    cmp-long v0, v2, v4

    if-lez v0, :cond_27

    monitor-exit v1

    goto :goto_14

    .line 60
    :catchall_24
    move-exception v0

    monitor-exit v1
    :try_end_26
    .catchall {:try_start_18 .. :try_end_26} :catchall_24

    throw v0

    .line 56
    :cond_27
    :try_start_27
    sget-wide v2, Lokio/q;->byteCount:J

    add-long/2addr v2, v6

    sput-wide v2, Lokio/q;->byteCount:J

    .line 57
    sget-object v0, Lokio/q;->bZC:Lokio/p;

    iput-object v0, p0, Lokio/p;->bZC:Lokio/p;

    .line 58
    const/4 v0, 0x0

    iput v0, p0, Lokio/p;->limit:I

    iput v0, p0, Lokio/p;->pos:I

    .line 59
    sput-object p0, Lokio/q;->bZC:Lokio/p;

    .line 60
    monitor-exit v1
    :try_end_38
    .catchall {:try_start_27 .. :try_end_38} :catchall_24

    goto :goto_14
.end method