o$b.smali

.class public final Lokio/o$b;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lokio/w;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lokio/o;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "b"
.end annotation


# instance fields
.field public final a:Lokio/x;

.field public final synthetic b:Lokio/o;


# direct methods
.method public constructor <init>(Lokio/o;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lokio/o$b;->b:Lokio/o;

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

    .line 2
    new-instance p1, Lokio/x;

    invoke-direct {p1}, Lokio/x;-><init>()V

    iput-object p1, p0, Lokio/o$b;->a:Lokio/x;

    return-void
.end method


# virtual methods
.method public final close()V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lokio/o$b;->b:Lokio/o;

    iget-object v0, v0, Lokio/o;->b:Lokio/b;

    monitor-enter v0

    .line 2
    :try_start_5
    iget-object v1, p0, Lokio/o$b;->b:Lokio/o;

    const/4 v2, 0x1

    iput-boolean v2, v1, Lokio/o;->d:Z

    .line 3
    iget-object v1, v1, Lokio/o;->b:Lokio/b;

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    .line 4
    monitor-exit v0

    return-void

    :catchall_11
    move-exception v1

    monitor-exit v0
    :try_end_13
    .catchall {:try_start_5 .. :try_end_13} :catchall_11

    throw v1
.end method

.method public final read(Lokio/b;J)J
    .registers 12
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lokio/o$b;->b:Lokio/o;

    iget-object v0, v0, Lokio/o;->b:Lokio/b;

    monitor-enter v0

    .line 2
    :try_start_5
    iget-object v1, p0, Lokio/o$b;->b:Lokio/o;

    iget-boolean v1, v1, Lokio/o;->d:Z

    if-nez v1, :cond_32

    .line 3
    :goto_b
    iget-object v1, p0, Lokio/o$b;->b:Lokio/o;

    iget-object v2, v1, Lokio/o;->b:Lokio/b;

    .line 4
    iget-wide v3, v2, Lokio/b;->b:J

    const-wide/16 v5, 0x0

    cmp-long v7, v3, v5

    if-nez v7, :cond_25

    .line 5
    iget-boolean v1, v1, Lokio/o;->c:Z

    if-eqz v1, :cond_1f

    const-wide/16 p1, -0x1

    monitor-exit v0

    return-wide p1

    .line 6
    :cond_1f
    iget-object v1, p0, Lokio/o$b;->a:Lokio/x;

    invoke-virtual {v1, v2}, Lokio/x;->waitUntilNotified(Ljava/lang/Object;)V

    goto :goto_b

    .line 7
    :cond_25
    invoke-virtual {v2, p1, p2, p3}, Lokio/b;->read(Lokio/b;J)J

    move-result-wide p1

    .line 8
    iget-object p3, p0, Lokio/o$b;->b:Lokio/o;

    iget-object p3, p3, Lokio/o;->b:Lokio/b;

    invoke-virtual {p3}, Ljava/lang/Object;->notifyAll()V

    .line 9
    monitor-exit v0

    return-wide p1

    .line 10
    :cond_32
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "closed"

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1

    :catchall_3a
    move-exception p1

    .line 11
    monitor-exit v0
    :try_end_3c
    .catchall {:try_start_5 .. :try_end_3c} :catchall_3a

    throw p1
.end method

.method public final timeout()Lokio/x;
    .registers 2

    iget-object v0, p0, Lokio/o$b;->a:Lokio/x;

    return-object v0
.end method