.class public final Lb/a/d/c;
.super Ljava/lang/Object;

# interfaces
.implements Lb/a/d/o;


# instance fields
.field private final a:Lb/ac;

.field private final b:Lb/a/b/g;

.field private final c:Lc/e;

.field private final d:Lc/d;

.field private e:I


# direct methods
.method public constructor <init>(Lb/ac;Lb/a/b/g;Lc/e;Lc/d;)V
    .locals 1

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

    const/4 v0, 0x0

    iput v0, p0, Lb/a/d/c;->e:I

    iput-object p1, p0, Lb/a/d/c;->a:Lb/ac;

    iput-object p2, p0, Lb/a/d/c;->b:Lb/a/b/g;

    iput-object p3, p0, Lb/a/d/c;->c:Lc/e;

    iput-object p4, p0, Lb/a/d/c;->d:Lc/d;

    return-void
.end method

.method static synthetic a(Lb/a/d/c;I)I
    .locals 0

    iput p1, p0, Lb/a/d/c;->e:I

    return p1
.end method

.method static synthetic a(Lb/a/d/c;)Lc/d;
    .locals 1

    iget-object v0, p0, Lb/a/d/c;->d:Lc/d;

    return-object v0
.end method

.method static synthetic a(Lc/i;)V
    .locals 2

    invoke-virtual {p0}, Lc/i;->d()Lc/o;

    move-result-object v0

    sget-object v1, Lc/o;->b:Lc/o;

    invoke-virtual {p0, v1}, Lc/i;->a(Lc/o;)Lc/i;

    invoke-virtual {v0}, Lc/o;->d_()Lc/o;

    invoke-virtual {v0}, Lc/o;->b()Lc/o;

    return-void
.end method

.method static synthetic b(Lb/a/d/c;)Lc/e;
    .locals 1

    iget-object v0, p0, Lb/a/d/c;->c:Lc/e;

    return-object v0
.end method

.method static synthetic c(Lb/a/d/c;)I
    .locals 1

    iget v0, p0, Lb/a/d/c;->e:I

    return v0
.end method

.method static synthetic d(Lb/a/d/c;)Lb/a/b/g;
    .locals 1

    iget-object v0, p0, Lb/a/d/c;->b:Lb/a/b/g;

    return-object v0
.end method

.method static synthetic e(Lb/a/d/c;)Lb/ac;
    .locals 1

    iget-object v0, p0, Lb/a/d/c;->a:Lb/ac;

    return-object v0
.end method


# virtual methods
.method public final a(Lb/ai;)Lb/ak;
    .locals 4

    invoke-static {p1}, Lb/a/d/m;->b(Lb/ai;)Z

    move-result v0

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    invoke-virtual {p0, v0, v1}, Lb/a/d/c;->b(J)Lc/n;

    move-result-object v0

    :goto_0
    new-instance v1, Lb/a/d/q;

    invoke-virtual {p1}, Lb/ai;->e()Lb/u;

    move-result-object v2

    invoke-static {v0}, Lc/l;->a(Lc/n;)Lc/e;

    move-result-object v0

    invoke-direct {v1, v2, v0}, Lb/a/d/q;-><init>(Lb/u;Lc/e;)V

    return-object v1

    :cond_0
    const-string v0, "chunked"

    const-string v1, "Transfer-Encoding"

    invoke-virtual {p1, v1}, Lb/ai;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Lb/ai;->h()Lb/af;

    move-result-object v0

    invoke-virtual {v0}, Lb/af;->g()Lb/w;

    move-result-object v0

    invoke-virtual {p0, v0}, Lb/a/d/c;->a(Lb/w;)Lc/n;

    move-result-object v0

    goto :goto_0

    :cond_1
    invoke-static {p1}, Lb/a/d/m;->a(Lb/ai;)J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v2, v0, v2

    if-eqz v2, :cond_2

    invoke-virtual {p0, v0, v1}, Lb/a/d/c;->b(J)Lc/n;

    move-result-object v0

    goto :goto_0

    :cond_2
    invoke-virtual {p0}, Lb/a/d/c;->c()Lc/n;

    move-result-object v0

    goto :goto_0
.end method

.method public final a(J)Lc/m;
    .locals 3

    iget v0, p0, Lb/a/d/c;->e:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "state: "

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

    iget v2, p0, Lb/a/d/c;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)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/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    const/4 v0, 0x2

    iput v0, p0, Lb/a/d/c;->e:I

    new-instance v0, Lb/a/d/g;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, p2, v1}, Lb/a/d/g;-><init>(Lb/a/d/c;JB)V

    return-object v0
.end method

.method public final a(Lb/af;J)Lc/m;
    .locals 2

    const-string v0, "chunked"

    const-string v1, "Transfer-Encoding"

    invoke-virtual {p1, v1}, Lb/af;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lb/a/d/c;->b()Lc/m;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const-wide/16 v0, -0x1

    cmp-long v0, p2, v0

    if-eqz v0, :cond_1

    invoke-virtual {p0, p2, p3}, Lb/a/d/c;->a(J)Lc/m;

    move-result-object v0

    goto :goto_0

    :cond_1
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Cannot stream a request body without chunked encoding or a known content length!"

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

    throw v0
.end method

.method public final a(Lb/w;)Lc/n;
    .locals 3

    iget v0, p0, Lb/a/d/c;->e:I

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "state: "

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

    iget v2, p0, Lb/a/d/c;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)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/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    const/4 v0, 0x5

    iput v0, p0, Lb/a/d/c;->e:I

    new-instance v0, Lb/a/d/f;

    invoke-direct {v0, p0, p1}, Lb/a/d/f;-><init>(Lb/a/d/c;Lb/w;)V

    return-object v0
.end method

.method public final a()V
    .locals 1

    iget-object v0, p0, Lb/a/d/c;->d:Lc/d;

    invoke-interface {v0}, Lc/d;->flush()V

    return-void
.end method

.method public final a(Lb/af;)V
    .locals 2

    iget-object v0, p0, Lb/a/d/c;->b:Lb/a/b/g;

    invoke-virtual {v0}, Lb/a/b/g;->a()Lb/a/b/c;

    move-result-object v0

    invoke-virtual {v0}, Lb/a/b/c;->a()Lb/al;

    move-result-object v0

    invoke-virtual {v0}, Lb/al;->b()Ljava/net/Proxy;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;

    move-result-object v0

    invoke-static {p1, v0}, Lb/a/d/r;->a(Lb/af;Ljava/net/Proxy$Type;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Lb/af;->c()Lb/u;

    move-result-object v1

    invoke-virtual {p0, v1, v0}, Lb/a/d/c;->a(Lb/u;Ljava/lang/String;)V

    return-void
.end method

.method public final a(Lb/u;Ljava/lang/String;)V
    .locals 4

    iget v0, p0, Lb/a/d/c;->e:I

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "state: "

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

    iget v2, p0, Lb/a/d/c;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)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/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v0, p0, Lb/a/d/c;->d:Lc/d;

    invoke-interface {v0, p2}, Lc/d;->b(Ljava/lang/String;)Lc/d;

    move-result-object v0

    const-string v1, "\r\n"

    invoke-interface {v0, v1}, Lc/d;->b(Ljava/lang/String;)Lc/d;

    const/4 v0, 0x0

    invoke-virtual {p1}, Lb/u;->b()I

    move-result v1

    :goto_0
    if-ge v0, v1, :cond_1

    iget-object v2, p0, Lb/a/d/c;->d:Lc/d;

    invoke-virtual {p1, v0}, Lb/u;->a(I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v2, v3}, Lc/d;->b(Ljava/lang/String;)Lc/d;

    move-result-object v2

    const-string v3, ": "

    invoke-interface {v2, v3}, Lc/d;->b(Ljava/lang/String;)Lc/d;

    move-result-object v2

    invoke-virtual {p1, v0}, Lb/u;->b(I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v2, v3}, Lc/d;->b(Ljava/lang/String;)Lc/d;

    move-result-object v2

    const-string v3, "\r\n"

    invoke-interface {v2, v3}, Lc/d;->b(Ljava/lang/String;)Lc/d;

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lb/a/d/c;->d:Lc/d;

    const-string v1, "\r\n"

    invoke-interface {v0, v1}, Lc/d;->b(Ljava/lang/String;)Lc/d;

    const/4 v0, 0x1

    iput v0, p0, Lb/a/d/c;->e:I

    return-void
.end method

.method public final b()Lc/m;
    .locals 3

    iget v0, p0, Lb/a/d/c;->e:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "state: "

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

    iget v2, p0, Lb/a/d/c;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)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/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    const/4 v0, 0x2

    iput v0, p0, Lb/a/d/c;->e:I

    new-instance v0, Lb/a/d/e;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lb/a/d/e;-><init>(Lb/a/d/c;B)V

    return-object v0
.end method

.method public final b(J)Lc/n;
    .locals 3

    iget v0, p0, Lb/a/d/c;->e:I

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "state: "

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

    iget v2, p0, Lb/a/d/c;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)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/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    const/4 v0, 0x5

    iput v0, p0, Lb/a/d/c;->e:I

    new-instance v0, Lb/a/d/h;

    invoke-direct {v0, p0, p1, p2}, Lb/a/d/h;-><init>(Lb/a/d/c;J)V

    return-object v0
.end method

.method public final c()Lc/n;
    .locals 3

    iget v0, p0, Lb/a/d/c;->e:I

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "state: "

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

    iget v2, p0, Lb/a/d/c;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)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/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v0, p0, Lb/a/d/c;->b:Lb/a/b/g;

    if-nez v0, :cond_1

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "streamAllocation == null"

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

    throw v0

    :cond_1
    const/4 v0, 0x5

    iput v0, p0, Lb/a/d/c;->e:I

    iget-object v0, p0, Lb/a/d/c;->b:Lb/a/b/g;

    invoke-virtual {v0}, Lb/a/b/g;->c()V

    new-instance v0, Lb/a/d/i;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lb/a/d/i;-><init>(Lb/a/d/c;B)V

    return-object v0
.end method

.method public final d()Lb/u;
    .locals 3

    new-instance v0, Lb/v;

    invoke-direct {v0}, Lb/v;-><init>()V

    :goto_0
    iget-object v1, p0, Lb/a/d/c;->c:Lc/e;

    invoke-interface {v1}, Lc/e;->r()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-eqz v2, :cond_0

    sget-object v2, Lb/a/a;->a:Lb/a/a;

    invoke-virtual {v2, v0, v1}, Lb/a/a;->a(Lb/v;Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    invoke-virtual {v0}, Lb/v;->a()Lb/u;

    move-result-object v0

    return-object v0
.end method

.method public final e()Lb/aj;
    .locals 4

    iget v0, p0, Lb/a/d/c;->e:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_0

    iget v0, p0, Lb/a/d/c;->e:I

    const/4 v1, 0x3

    if-eq v0, v1, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "state: "

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

    iget v2, p0, Lb/a/d/c;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)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/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    :try_start_0
    iget-object v0, p0, Lb/a/d/c;->c:Lc/e;

    invoke-interface {v0}, Lc/e;->r()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lb/a/d/t;->a(Ljava/lang/String;)Lb/a/d/t;

    move-result-object v0

    new-instance v1, Lb/aj;

    invoke-direct {v1}, Lb/aj;-><init>()V

    iget-object v2, v0, Lb/a/d/t;->c:Lb/ae;

    invoke-virtual {v1, v2}, Lb/aj;->a(Lb/ae;)Lb/aj;

    move-result-object v1

    iget v2, v0, Lb/a/d/t;->a:I

    invoke-virtual {v1, v2}, Lb/aj;->a(I)Lb/aj;

    move-result-object v1

    iget-object v2, v0, Lb/a/d/t;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lb/aj;->a(Ljava/lang/String;)Lb/aj;

    move-result-object v1

    invoke-virtual {p0}, Lb/a/d/c;->d()Lb/u;

    move-result-object v2

    invoke-virtual {v1, v2}, Lb/aj;->a(Lb/u;)Lb/aj;

    move-result-object v1

    iget v0, v0, Lb/a/d/t;->a:I

    const/16 v2, 0x64

    if-eq v0, v2, :cond_0

    const/4 v0, 0x4

    iput v0, p0, Lb/a/d/c;->e:I
    :try_end_0
    .catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v1

    :catch_0
    move-exception v0

    new-instance v1, Ljava/io/IOException;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "unexpected end of stream on "

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

    iget-object v3, p0, Lb/a/d/c;->b:Lb/a/b/g;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

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

    move-result-object v2

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

    invoke-virtual {v1, v0}, Ljava/io/IOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    throw v1
.end method

.method public final f()Lb/aj;
    .locals 1

    invoke-virtual {p0}, Lb/a/d/c;->e()Lb/aj;

    move-result-object v0

    return-object v0
.end method
