w$1.smali

.class final Lcom/squareup/okhttp/internal/framed/w$1;
.super Lokio/i;
.source "NameValueBlockReader.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/squareup/okhttp/internal/framed/w;-><init>(Lokio/f;)V
.end annotation


# instance fields
.field private synthetic bzB:Lcom/squareup/okhttp/internal/framed/w;


# direct methods
.method constructor <init>(Lcom/squareup/okhttp/internal/framed/w;Lokio/s;)V
    .registers 3

    .prologue
    .line 54
    iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/w$1;->bzB:Lcom/squareup/okhttp/internal/framed/w;

    invoke-direct {p0, p2}, Lokio/i;-><init>(Lokio/s;)V

    return-void
.end method


# virtual methods
.method public final read(Lokio/d;J)J
    .registers 10

    .prologue
    const-wide/16 v0, -0x1

    .line 56
    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/w$1;->bzB:Lcom/squareup/okhttp/internal/framed/w;

    .line 1037
    iget v2, v2, Lcom/squareup/okhttp/internal/framed/w;->compressedLimit:I

    .line 56
    if-nez v2, :cond_9

    .line 60
    :cond_8
    :goto_8
    return-wide v0

    .line 57
    :cond_9
    iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/w$1;->bzB:Lcom/squareup/okhttp/internal/framed/w;

    .line 2037
    iget v2, v2, Lcom/squareup/okhttp/internal/framed/w;->compressedLimit:I

    .line 57
    int-to-long v2, v2

    invoke-static {p2, p3, v2, v3}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v2

    invoke-super {p0, p1, v2, v3}, Lokio/i;->read(Lokio/d;J)J

    move-result-wide v2

    .line 58
    cmp-long v4, v2, v0

    if-eqz v4, :cond_8

    .line 59
    iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/w$1;->bzB:Lcom/squareup/okhttp/internal/framed/w;

    iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/w$1;->bzB:Lcom/squareup/okhttp/internal/framed/w;

    .line 3037
    iget v1, v1, Lcom/squareup/okhttp/internal/framed/w;->compressedLimit:I

    .line 59
    int-to-long v4, v1

    sub-long/2addr v4, v2

    long-to-int v1, v4

    .line 4037
    iput v1, v0, Lcom/squareup/okhttp/internal/framed/w;->compressedLimit:I

    move-wide v0, v2

    .line 60
    goto :goto_8
.end method