p.smali

.class public final Lcom/squareup/okhttp/internal/http/p;
.super Ljava/lang/Object;
.source "HttpEngine.java"


# static fields
.field public static final bAw:Lcom/squareup/okhttp/ad;


# instance fields
.field public final bAA:Lcom/squareup/okhttp/y;

.field public bAB:Lcom/squareup/okhttp/ab;

.field public bAC:Lokio/r;

.field public final bAD:Z

.field public bAE:Lcom/squareup/okhttp/internal/http/b;

.field public bAF:Lcom/squareup/okhttp/internal/http/c;

.field public bAx:Lcom/squareup/okhttp/internal/http/s;

.field public bAy:Z

.field public final bAz:Z

.field public final bwi:Z

.field public bxu:Lcom/squareup/okhttp/ab;

.field public final bxv:Lcom/squareup/okhttp/ab;

.field public bzL:Lcom/squareup/okhttp/y;

.field public bzS:J

.field public final bzW:Lcom/squareup/okhttp/internal/http/z;

.field public final client:Lcom/squareup/okhttp/x;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 94
    new-instance v0, Lcom/squareup/okhttp/internal/http/p$1;

    invoke-direct {v0}, Lcom/squareup/okhttp/internal/http/p$1;-><init>()V

    sput-object v0, Lcom/squareup/okhttp/internal/http/p;->bAw:Lcom/squareup/okhttp/ad;

    return-void
.end method

.method public constructor <init>(Lcom/squareup/okhttp/x;Lcom/squareup/okhttp/y;ZZZLcom/squareup/okhttp/internal/http/z;Lcom/squareup/okhttp/internal/http/w;Lcom/squareup/okhttp/ab;)V
    .registers 25

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

    .line 113
    const-wide/16 v2, -0x1

    move-object/from16 v0, p0

    iput-wide v2, v0, Lcom/squareup/okhttp/internal/http/p;->bzS:J

    .line 175
    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/squareup/okhttp/internal/http/p;->client:Lcom/squareup/okhttp/x;

    .line 176
    move-object/from16 v0, p2

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/squareup/okhttp/internal/http/p;->bAA:Lcom/squareup/okhttp/y;

    .line 177
    move/from16 v0, p3

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/squareup/okhttp/internal/http/p;->bAz:Z

    .line 178
    move/from16 v0, p4

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/squareup/okhttp/internal/http/p;->bAD:Z

    .line 179
    move/from16 v0, p5

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/squareup/okhttp/internal/http/p;->bwi:Z

    .line 180
    if-eqz p6, :cond_3c

    .line 182
    :goto_29
    move-object/from16 v0, p6

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/squareup/okhttp/internal/http/p;->bzW:Lcom/squareup/okhttp/internal/http/z;

    .line 183
    move-object/from16 v0, p7

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/squareup/okhttp/internal/http/p;->bAC:Lokio/r;

    .line 184
    move-object/from16 v0, p8

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/squareup/okhttp/internal/http/p;->bxv:Lcom/squareup/okhttp/ab;

    .line 185
    return-void

    .line 180
    :cond_3c
    new-instance p6, Lcom/squareup/okhttp/internal/http/z;

    .line 1411
    move-object/from16 v0, p1

    iget-object v15, v0, Lcom/squareup/okhttp/x;->bxb:Lcom/squareup/okhttp/l;

    .line 1973
    const/4 v7, 0x0

    .line 1974
    const/4 v8, 0x0

    .line 1975
    const/4 v9, 0x0

    .line 1976
    invoke-virtual/range {p2 .. p2}, Lcom/squareup/okhttp/y;->GZ()Z

    move-result v2

    if-eqz v2, :cond_57

    .line 2350
    move-object/from16 v0, p1

    iget-object v7, v0, Lcom/squareup/okhttp/x;->bvR:Ljavax/net/ssl/SSLSocketFactory;

    .line 2365
    move-object/from16 v0, p1

    iget-object v8, v0, Lcom/squareup/okhttp/x;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;

    .line 2380
    move-object/from16 v0, p1

    iget-object v9, v0, Lcom/squareup/okhttp/x;->bvS:Lcom/squareup/okhttp/h;

    .line 1982
    :cond_57
    new-instance v2, Lcom/squareup/okhttp/a;

    .line 3048
    move-object/from16 v0, p2

    iget-object v3, v0, Lcom/squareup/okhttp/y;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 3391
    iget-object v3, v3, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 4048
    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/squareup/okhttp/y;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 4400
    iget v4, v4, Lcom/squareup/okhttp/HttpUrl;->port:I

    .line 5318
    move-object/from16 v0, p1

    iget-object v5, v0, Lcom/squareup/okhttp/x;->bvM:Lcom/squareup/okhttp/q;

    .line 5336
    move-object/from16 v0, p1

    iget-object v6, v0, Lcom/squareup/okhttp/x;->socketFactory:Ljavax/net/SocketFactory;

    .line 5396
    move-object/from16 v0, p1

    iget-object v10, v0, Lcom/squareup/okhttp/x;->bvN:Lcom/squareup/okhttp/b;

    .line 6250
    move-object/from16 v0, p1

    iget-object v11, v0, Lcom/squareup/okhttp/x;->bvQ:Ljava/net/Proxy;

    .line 6529
    move-object/from16 v0, p1

    iget-object v12, v0, Lcom/squareup/okhttp/x;->bvO:Ljava/util/List;

    .line 6538
    move-object/from16 v0, p1

    iget-object v13, v0, Lcom/squareup/okhttp/x;->bvP:Ljava/util/List;

    .line 7268
    move-object/from16 v0, p1

    iget-object v14, v0, Lcom/squareup/okhttp/x;->proxySelector:Ljava/net/ProxySelector;

    .line 1985
    invoke-direct/range {v2 .. v14}, Lcom/squareup/okhttp/a;-><init>(Ljava/lang/String;ILcom/squareup/okhttp/q;Ljavax/net/SocketFactory;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameVerifier;Lcom/squareup/okhttp/h;Lcom/squareup/okhttp/b;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V

    .line 182
    move-object/from16 v0, p6

    invoke-direct {v0, v15, v2}, Lcom/squareup/okhttp/internal/http/z;-><init>(Lcom/squareup/okhttp/l;Lcom/squareup/okhttp/a;)V

    goto :goto_29
.end method

.method public static a(Lcom/squareup/okhttp/s;Lcom/squareup/okhttp/s;)Lcom/squareup/okhttp/s;
    .registers 9

    .prologue
    const/4 v0, 0x0

    .line 849
    new-instance v2, Lcom/squareup/okhttp/t;

    invoke-direct {v2}, Lcom/squareup/okhttp/t;-><init>()V

    .line 19076
    iget-object v1, p0, Lcom/squareup/okhttp/s;->bwJ:[Ljava/lang/String;

    array-length v1, v1

    div-int/lit8 v3, v1, 0x2

    move v1, v0

    .line 851
    :goto_c
    if-ge v1, v3, :cond_38

    .line 852
    invoke-virtual {p0, v1}, Lcom/squareup/okhttp/s;->name(I)Ljava/lang/String;

    move-result-object v4

    .line 853
    invoke-virtual {p0, v1}, Lcom/squareup/okhttp/s;->eo(I)Ljava/lang/String;

    move-result-object v5

    .line 854
    const-string v6, "Warning"

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

    move-result v6

    if-eqz v6, :cond_26

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_35

    .line 857
    :cond_26
    invoke-static {v4}, Lcom/squareup/okhttp/internal/http/t;->gk(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_32

    invoke-virtual {p1, v4}, Lcom/squareup/okhttp/s;->get(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-nez v6, :cond_35

    .line 858
    :cond_32
    invoke-virtual {v2, v4, v5}, Lcom/squareup/okhttp/t;->aJ(Ljava/lang/String;Ljava/lang/String;)Lcom/squareup/okhttp/t;

    .line 851
    :cond_35
    add-int/lit8 v1, v1, 0x1

    goto :goto_c

    .line 20076
    :cond_38
    iget-object v1, p1, Lcom/squareup/okhttp/s;->bwJ:[Ljava/lang/String;

    array-length v1, v1

    div-int/lit8 v1, v1, 0x2

    .line 862
    :goto_3d
    if-ge v0, v1, :cond_5b

    .line 863
    invoke-virtual {p1, v0}, Lcom/squareup/okhttp/s;->name(I)Ljava/lang/String;

    move-result-object v3

    .line 864
    const-string v4, "Content-Length"

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

    move-result v4

    if-nez v4, :cond_58

    .line 867
    invoke-static {v3}, Lcom/squareup/okhttp/internal/http/t;->gk(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_58

    .line 868
    invoke-virtual {p1, v0}, Lcom/squareup/okhttp/s;->eo(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lcom/squareup/okhttp/t;->aJ(Ljava/lang/String;Ljava/lang/String;)Lcom/squareup/okhttp/t;

    .line 862
    :cond_58
    add-int/lit8 v0, v0, 0x1

    goto :goto_3d

    .line 872
    :cond_5b
    invoke-virtual {v2}, Lcom/squareup/okhttp/t;->GM()Lcom/squareup/okhttp/s;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/squareup/okhttp/internal/http/p;Lcom/squareup/okhttp/y;)Lcom/squareup/okhttp/y;
    .registers 2

    .prologue
    .line 87
    iput-object p1, p0, Lcom/squareup/okhttp/internal/http/p;->bzL:Lcom/squareup/okhttp/y;

    return-object p1
.end method

.method public static a(Lcom/squareup/okhttp/ab;Lcom/squareup/okhttp/ab;)Z
    .registers 8

    .prologue
    const/4 v0, 0x1

    .line 825
    .line 17088
    iget v1, p1, Lcom/squareup/okhttp/ab;->code:I

    .line 825
    const/16 v2, 0x130

    if-ne v1, v2, :cond_8

    .line 841
    :cond_7
    :goto_7
    return v0

    .line 17126
    :cond_8
    iget-object v1, p0, Lcom/squareup/okhttp/ab;->bxj:Lcom/squareup/okhttp/s;

    .line 832
    const-string v2, "Last-Modified"

    invoke-virtual {v1, v2}, Lcom/squareup/okhttp/s;->fX(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    .line 833
    if-eqz v1, :cond_28

    .line 18126
    iget-object v2, p1, Lcom/squareup/okhttp/ab;->bxj:Lcom/squareup/okhttp/s;

    .line 834
    const-string v3, "Last-Modified"

    invoke-virtual {v2, v3}, Lcom/squareup/okhttp/s;->fX(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    .line 835
    if-eqz v2, :cond_28

    .line 836
    invoke-virtual {v2}, Ljava/util/Date;->getTime()J

    move-result-wide v2

    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v4

    cmp-long v1, v2, v4

    if-ltz v1, :cond_7

    .line 841
    :cond_28
    const/4 v0, 0x0

    goto :goto_7
.end method

.method static synthetic b(Lcom/squareup/okhttp/internal/http/p;)Lcom/squareup/okhttp/internal/http/s;
    .registers 2

    .prologue
    .line 87
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAx:Lcom/squareup/okhttp/internal/http/s;

    return-object v0
.end method

.method static synthetic c(Lcom/squareup/okhttp/internal/http/p;)Lcom/squareup/okhttp/ab;
    .registers 2

    .prologue
    .line 87
    invoke-virtual {p0}, Lcom/squareup/okhttp/internal/http/p;->HX()Lcom/squareup/okhttp/ab;

    move-result-object v0

    return-object v0
.end method

.method public static e(Lcom/squareup/okhttp/ab;)Lcom/squareup/okhttp/ab;
    .registers 3

    .prologue
    .line 287
    if-eqz p0, :cond_11

    .line 8130
    iget-object v0, p0, Lcom/squareup/okhttp/ab;->bxs:Lcom/squareup/okhttp/ad;

    .line 287
    if-eqz v0, :cond_11

    .line 288
    invoke-virtual {p0}, Lcom/squareup/okhttp/ab;->Hd()Lcom/squareup/okhttp/ac;

    move-result-object v0

    .line 8305
    const/4 v1, 0x0

    iput-object v1, v0, Lcom/squareup/okhttp/ac;->bxs:Lcom/squareup/okhttp/ad;

    .line 288
    invoke-virtual {v0}, Lcom/squareup/okhttp/ac;->Hf()Lcom/squareup/okhttp/ab;

    move-result-object p0

    :cond_11
    return-object p0
.end method

.method public static f(Lcom/squareup/okhttp/y;)Z
    .registers 2

    .prologue
    .line 303
    .line 9070
    iget-object v0, p0, Lcom/squareup/okhttp/y;->method:Ljava/lang/String;

    .line 303
    invoke-static {v0}, Lcom/squareup/okhttp/internal/http/r;->gi(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public static g(Lcom/squareup/okhttp/ab;)Z
    .registers 7

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 490
    .line 13075
    iget-object v2, p0, Lcom/squareup/okhttp/ab;->bxp:Lcom/squareup/okhttp/y;

    .line 14070
    iget-object v2, v2, Lcom/squareup/okhttp/y;->method:Ljava/lang/String;

    .line 490
    const-string v3, "HEAD"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_f

    .line 509
    :cond_e
    :goto_e
    return v0

    .line 14088
    :cond_f
    iget v2, p0, Lcom/squareup/okhttp/ab;->code:I

    .line 495
    const/16 v3, 0x64

    if-lt v2, v3, :cond_19

    const/16 v3, 0xc8

    if-lt v2, v3, :cond_23

    :cond_19
    const/16 v3, 0xcc

    if-eq v2, v3, :cond_23

    const/16 v3, 0x130

    if-eq v2, v3, :cond_23

    move v0, v1

    .line 498
    goto :goto_e

    .line 504
    :cond_23
    invoke-static {p0}, Lcom/squareup/okhttp/internal/http/t;->h(Lcom/squareup/okhttp/ab;)J

    move-result-wide v2

    const-wide/16 v4, -0x1

    cmp-long v2, v2, v4

    if-nez v2, :cond_3b

    const-string v2, "chunked"

    const-string v3, "Transfer-Encoding"

    .line 505
    invoke-virtual {p0, v3}, Lcom/squareup/okhttp/ab;->gd(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

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

    move-result v2

    if-eqz v2, :cond_e

    :cond_3b
    move v0, v1

    .line 506
    goto :goto_e
.end method


# virtual methods
.method public final HV()V
    .registers 5

    .prologue
    .line 298
    iget-wide v0, p0, Lcom/squareup/okhttp/internal/http/p;->bzS:J

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-eqz v0, :cond_e

    new-instance v0, Ljava/lang/IllegalStateException;

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

    throw v0

    .line 299
    :cond_e
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/squareup/okhttp/internal/http/p;->bzS:J

    .line 300
    return-void
.end method

.method public final HW()Lcom/squareup/okhttp/internal/http/z;
    .registers 4

    .prologue
    const/4 v2, 0x1

    .line 437
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAC:Lokio/r;

    if-eqz v0, :cond_a

    .line 438
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAC:Lokio/r;

    invoke-static {v0}, Lcom/squareup/okhttp/internal/k;->closeQuietly(Ljava/io/Closeable;)V

    .line 441
    :cond_a
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAB:Lcom/squareup/okhttp/ab;

    if-eqz v0, :cond_18

    .line 442
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAB:Lcom/squareup/okhttp/ab;

    .line 9130
    iget-object v0, v0, Lcom/squareup/okhttp/ab;->bxs:Lcom/squareup/okhttp/ad;

    .line 442
    invoke-static {v0}, Lcom/squareup/okhttp/internal/k;->closeQuietly(Ljava/io/Closeable;)V

    .line 448
    :goto_15
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bzW:Lcom/squareup/okhttp/internal/http/z;

    return-object v0

    .line 445
    :cond_18
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bzW:Lcom/squareup/okhttp/internal/http/z;

    .line 9293
    const/4 v1, 0x0

    invoke-virtual {v0, v2, v1, v2}, Lcom/squareup/okhttp/internal/http/z;->a(ZZZ)V

    goto :goto_15
.end method

.method public final HX()Lcom/squareup/okhttp/ab;
    .registers 6

    .prologue
    const/4 v4, 0x0

    .line 735
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAx:Lcom/squareup/okhttp/internal/http/s;

    invoke-interface {v0}, Lcom/squareup/okhttp/internal/http/s;->HP()V

    .line 737
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAx:Lcom/squareup/okhttp/internal/http/s;

    invoke-interface {v0}, Lcom/squareup/okhttp/internal/http/s;->HO()Lcom/squareup/okhttp/ac;

    move-result-object v0

    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/p;->bzL:Lcom/squareup/okhttp/y;

    .line 14251
    iput-object v1, v0, Lcom/squareup/okhttp/ac;->bxp:Lcom/squareup/okhttp/y;

    .line 738
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/p;->bzW:Lcom/squareup/okhttp/internal/http/z;

    .line 739
    invoke-virtual {v1}, Lcom/squareup/okhttp/internal/http/z;->Id()Lcom/squareup/okhttp/internal/a/a;

    move-result-object v1

    .line 14354
    iget-object v1, v1, Lcom/squareup/okhttp/internal/a/a;->bxr:Lcom/squareup/okhttp/r;

    .line 15271
    iput-object v1, v0, Lcom/squareup/okhttp/ac;->bxr:Lcom/squareup/okhttp/r;

    .line 739
    sget-object v1, Lcom/squareup/okhttp/internal/http/t;->bAM:Ljava/lang/String;

    iget-wide v2, p0, Lcom/squareup/okhttp/internal/http/p;->bzS:J

    .line 740
    invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/squareup/okhttp/ac;->aQ(Ljava/lang/String;Ljava/lang/String;)Lcom/squareup/okhttp/ac;

    move-result-object v0

    sget-object v1, Lcom/squareup/okhttp/internal/http/t;->bAN:Ljava/lang/String;

    .line 741
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/squareup/okhttp/ac;->aQ(Ljava/lang/String;Ljava/lang/String;)Lcom/squareup/okhttp/ac;

    move-result-object v0

    .line 742
    invoke-virtual {v0}, Lcom/squareup/okhttp/ac;->Hf()Lcom/squareup/okhttp/ab;

    move-result-object v0

    .line 744
    iget-boolean v1, p0, Lcom/squareup/okhttp/internal/http/p;->bwi:Z

    if-nez v1, :cond_4c

    .line 745
    invoke-virtual {v0}, Lcom/squareup/okhttp/ab;->Hd()Lcom/squareup/okhttp/ac;

    move-result-object v1

    iget-object v2, p0, Lcom/squareup/okhttp/internal/http/p;->bAx:Lcom/squareup/okhttp/internal/http/s;

    .line 746
    invoke-interface {v2, v0}, Lcom/squareup/okhttp/internal/http/s;->d(Lcom/squareup/okhttp/ab;)Lcom/squareup/okhttp/ad;

    move-result-object v0

    .line 15305
    iput-object v0, v1, Lcom/squareup/okhttp/ac;->bxs:Lcom/squareup/okhttp/ad;

    .line 747
    invoke-virtual {v1}, Lcom/squareup/okhttp/ac;->Hf()Lcom/squareup/okhttp/ab;

    move-result-object v0

    .line 750
    :cond_4c
    const-string v1, "close"

    .line 16075
    iget-object v2, v0, Lcom/squareup/okhttp/ab;->bxp:Lcom/squareup/okhttp/y;

    .line 750
    const-string v3, "Connection"

    invoke-virtual {v2, v3}, Lcom/squareup/okhttp/y;->gd(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    move-result v1

    if-nez v1, :cond_6a

    const-string v1, "close"

    const-string v2, "Connection"

    .line 751
    invoke-virtual {v0, v2}, Lcom/squareup/okhttp/ab;->gd(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    move-result v1

    if-eqz v1, :cond_70

    .line 752
    :cond_6a
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/p;->bzW:Lcom/squareup/okhttp/internal/http/z;

    .line 16220
    const/4 v2, 0x1

    invoke-virtual {v1, v2, v4, v4}, Lcom/squareup/okhttp/internal/http/z;->a(ZZZ)V

    .line 755
    :cond_70
    return-object v0
.end method

.method public final c(Lcom/squareup/okhttp/s;)V
    .registers 5

    .prologue
    .line 876
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->client:Lcom/squareup/okhttp/x;

    .line 20284
    iget-object v0, v0, Lcom/squareup/okhttp/x;->bwZ:Ljava/net/CookieHandler;

    .line 877
    if-eqz v0, :cond_13

    .line 878
    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/p;->bAA:Lcom/squareup/okhttp/y;

    invoke-virtual {v1}, Lcom/squareup/okhttp/y;->GO()Ljava/net/URI;

    move-result-object v1

    invoke-static {p1}, Lcom/squareup/okhttp/internal/http/t;->e(Lcom/squareup/okhttp/s;)Ljava/util/Map;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/net/CookieHandler;->put(Ljava/net/URI;Ljava/util/Map;)V

    .line 880
    :cond_13
    return-void
.end method

.method public final f(Lcom/squareup/okhttp/ab;)Lcom/squareup/okhttp/ab;
    .registers 6

    .prologue
    .line 465
    iget-boolean v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAy:Z

    if-eqz v0, :cond_14

    const-string v0, "gzip"

    iget-object v1, p0, Lcom/squareup/okhttp/internal/http/p;->bAB:Lcom/squareup/okhttp/ab;

    const-string v2, "Content-Encoding"

    invoke-virtual {v1, v2}, Lcom/squareup/okhttp/ab;->gd(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-nez v0, :cond_15

    .line 481
    :cond_14
    :goto_14
    return-object p1

    .line 10130
    :cond_15
    iget-object v0, p1, Lcom/squareup/okhttp/ab;->bxs:Lcom/squareup/okhttp/ad;

    .line 469
    if-eqz v0, :cond_14

    .line 473
    new-instance v0, Lokio/k;

    .line 11130
    iget-object v1, p1, Lcom/squareup/okhttp/ab;->bxs:Lcom/squareup/okhttp/ad;

    .line 473
    invoke-virtual {v1}, Lcom/squareup/okhttp/ad;->source()Lokio/f;

    move-result-object v1

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

    .line 12126
    iget-object v1, p1, Lcom/squareup/okhttp/ab;->bxj:Lcom/squareup/okhttp/s;

    .line 474
    invoke-virtual {v1}, Lcom/squareup/okhttp/s;->GL()Lcom/squareup/okhttp/t;

    move-result-object v1

    const-string v2, "Content-Encoding"

    .line 475
    invoke-virtual {v1, v2}, Lcom/squareup/okhttp/t;->fY(Ljava/lang/String;)Lcom/squareup/okhttp/t;

    move-result-object v1

    const-string v2, "Content-Length"

    .line 476
    invoke-virtual {v1, v2}, Lcom/squareup/okhttp/t;->fY(Ljava/lang/String;)Lcom/squareup/okhttp/t;

    move-result-object v1

    .line 477
    invoke-virtual {v1}, Lcom/squareup/okhttp/t;->GM()Lcom/squareup/okhttp/s;

    move-result-object v1

    .line 478
    invoke-virtual {p1}, Lcom/squareup/okhttp/ab;->Hd()Lcom/squareup/okhttp/ac;

    move-result-object v2

    .line 479
    invoke-virtual {v2, v1}, Lcom/squareup/okhttp/ac;->b(Lcom/squareup/okhttp/s;)Lcom/squareup/okhttp/ac;

    move-result-object v2

    new-instance v3, Lcom/squareup/okhttp/internal/http/u;

    .line 480
    invoke-static {v0}, Lokio/m;->b(Lokio/s;)Lokio/f;

    move-result-object v0

    invoke-direct {v3, v1, v0}, Lcom/squareup/okhttp/internal/http/u;-><init>(Lcom/squareup/okhttp/s;Lokio/f;)V

    .line 12305
    iput-object v3, v2, Lcom/squareup/okhttp/ac;->bxs:Lcom/squareup/okhttp/ad;

    .line 481
    invoke-virtual {v2}, Lcom/squareup/okhttp/ac;->Hf()Lcom/squareup/okhttp/ab;

    move-result-object p1

    goto :goto_14
.end method

.method public final f(Lcom/squareup/okhttp/HttpUrl;)Z
    .registers 5

    .prologue
    .line 966
    iget-object v0, p0, Lcom/squareup/okhttp/internal/http/p;->bAA:Lcom/squareup/okhttp/y;

    .line 21048
    iget-object v0, v0, Lcom/squareup/okhttp/y;->bvL:Lcom/squareup/okhttp/HttpUrl;

    .line 21391
    iget-object v1, v0, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 22391
    iget-object v2, p1, Lcom/squareup/okhttp/HttpUrl;->zu:Ljava/lang/String;

    .line 967
    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_20

    .line 22400
    iget v1, v0, Lcom/squareup/okhttp/HttpUrl;->port:I

    .line 23400
    iget v2, p1, Lcom/squareup/okhttp/HttpUrl;->port:I

    .line 968
    if-ne v1, v2, :cond_20

    .line 24348
    iget-object v0, v0, Lcom/squareup/okhttp/HttpUrl;->bwm:Ljava/lang/String;

    .line 25348
    iget-object v1, p1, Lcom/squareup/okhttp/HttpUrl;->bwm:Ljava/lang/String;

    .line 969
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_20

    const/4 v0, 0x1

    :goto_1f
    return v0

    :cond_20
    const/4 v0, 0x0

    goto :goto_1f
.end method