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

# interfaces
.implements Ljava/io/Closeable;


# static fields
.field static final synthetic a:Z

.field private static final l:Ljava/util/concurrent/ExecutorService;


# instance fields
.field final b:Lb/ae;

.field final c:Z

.field d:J

.field e:J

.field f:Lb/a/c/v;

.field final g:Lb/a/c/v;

.field final h:Lb/a/c/aa;

.field final i:Ljava/net/Socket;

.field final j:Lb/a/c/d;

.field final k:Lb/a/c/h;

.field private final m:Lb/a/c/g;

.field private final n:Ljava/util/Map;

.field private final o:Ljava/lang/String;

.field private p:I

.field private q:I

.field private r:Z

.field private final s:Ljava/util/concurrent/ExecutorService;

.field private t:Ljava/util/Map;

.field private final u:Lb/a/c/u;

.field private v:I

.field private w:Z

.field private final x:Ljava/util/Set;


# direct methods
.method static constructor <clinit>()V
    .locals 9

    const/4 v8, 0x1

    const/4 v2, 0x0

    const-class v0, Lb/a/c/e;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_0

    move v0, v8

    :goto_0
    sput-boolean v0, Lb/a/c/e;->a:Z

    new-instance v1, Ljava/util/concurrent/ThreadPoolExecutor;

    const v3, 0x7fffffff

    const-wide/16 v4, 0x3c

    sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    new-instance v7, Ljava/util/concurrent/SynchronousQueue;

    invoke-direct {v7}, Ljava/util/concurrent/SynchronousQueue;-><init>()V

    const-string v0, "OkHttp FramedConnection"

    invoke-static {v0, v8}, Lb/a/c;->a(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;

    move-result-object v8

    invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V

    sput-object v1, Lb/a/c/e;->l:Ljava/util/concurrent/ExecutorService;

    return-void

    :cond_0
    move v0, v2

    goto :goto_0
.end method

.method private constructor <init>(Lb/a/c/f;)V
    .locals 11

    const/4 v10, 0x7

    const/4 v1, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

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

    new-instance v0, Ljava/util/HashMap;

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

    iput-object v0, p0, Lb/a/c/e;->n:Ljava/util/Map;

    const-wide/16 v4, 0x0

    iput-wide v4, p0, Lb/a/c/e;->d:J

    new-instance v0, Lb/a/c/v;

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

    iput-object v0, p0, Lb/a/c/e;->f:Lb/a/c/v;

    new-instance v0, Lb/a/c/v;

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

    iput-object v0, p0, Lb/a/c/e;->g:Lb/a/c/v;

    iput-boolean v2, p0, Lb/a/c/e;->w:Z

    new-instance v0, Ljava/util/LinkedHashSet;

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

    iput-object v0, p0, Lb/a/c/e;->x:Ljava/util/Set;

    invoke-static {p1}, Lb/a/c/f;->a(Lb/a/c/f;)Lb/ae;

    move-result-object v0

    iput-object v0, p0, Lb/a/c/e;->b:Lb/ae;

    invoke-static {p1}, Lb/a/c/f;->b(Lb/a/c/f;)Lb/a/c/u;

    move-result-object v0

    iput-object v0, p0, Lb/a/c/e;->u:Lb/a/c/u;

    invoke-static {p1}, Lb/a/c/f;->c(Lb/a/c/f;)Z

    move-result v0

    iput-boolean v0, p0, Lb/a/c/e;->c:Z

    invoke-static {p1}, Lb/a/c/f;->d(Lb/a/c/f;)Lb/a/c/g;

    move-result-object v0

    iput-object v0, p0, Lb/a/c/e;->m:Lb/a/c/g;

    invoke-static {p1}, Lb/a/c/f;->c(Lb/a/c/f;)Z

    move-result v0

    if-eqz v0, :cond_3

    move v0, v3

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

    invoke-static {p1}, Lb/a/c/f;->c(Lb/a/c/f;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lb/a/c/e;->b:Lb/ae;

    sget-object v4, Lb/ae;->c:Lb/ae;

    if-ne v0, v4, :cond_0

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

    add-int/lit8 v0, v0, 0x2

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

    :cond_0
    invoke-static {p1}, Lb/a/c/f;->c(Lb/a/c/f;)Z

    move-result v0

    if-eqz v0, :cond_1

    move v1, v3

    :cond_1
    iput v1, p0, Lb/a/c/e;->v:I

    invoke-static {p1}, Lb/a/c/f;->c(Lb/a/c/f;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lb/a/c/e;->f:Lb/a/c/v;

    const/high16 v1, 0x1000000

    invoke-virtual {v0, v10, v2, v1}, Lb/a/c/v;->a(III)Lb/a/c/v;

    :cond_2
    invoke-static {p1}, Lb/a/c/f;->e(Lb/a/c/f;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lb/a/c/e;->o:Ljava/lang/String;

    iget-object v0, p0, Lb/a/c/e;->b:Lb/ae;

    sget-object v1, Lb/ae;->c:Lb/ae;

    if-ne v0, v1, :cond_4

    new-instance v0, Lb/a/c/o;

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

    iput-object v0, p0, Lb/a/c/e;->h:Lb/a/c/aa;

    new-instance v1, Ljava/util/concurrent/ThreadPoolExecutor;

    const-wide/16 v4, 0x3c

    sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    new-instance v7, Ljava/util/concurrent/LinkedBlockingQueue;

    invoke-direct {v7}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V

    const-string v0, "OkHttp %s Push Observer"

    new-array v8, v3, [Ljava/lang/Object;

    iget-object v9, p0, Lb/a/c/e;->o:Ljava/lang/String;

    aput-object v9, v8, v2

    invoke-static {v0, v8}, Lb/a/c;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v3}, Lb/a/c;->a(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;

    move-result-object v8

    invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V

    iput-object v1, p0, Lb/a/c/e;->s:Ljava/util/concurrent/ExecutorService;

    iget-object v0, p0, Lb/a/c/e;->g:Lb/a/c/v;

    const v1, 0xffff

    invoke-virtual {v0, v10, v2, v1}, Lb/a/c/v;->a(III)Lb/a/c/v;

    iget-object v0, p0, Lb/a/c/e;->g:Lb/a/c/v;

    const/4 v1, 0x5

    const/16 v3, 0x4000

    invoke-virtual {v0, v1, v2, v3}, Lb/a/c/v;->a(III)Lb/a/c/v;

    :goto_1
    iget-object v0, p0, Lb/a/c/e;->g:Lb/a/c/v;

    invoke-virtual {v0}, Lb/a/c/v;->e()I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lb/a/c/e;->e:J

    invoke-static {p1}, Lb/a/c/f;->f(Lb/a/c/f;)Ljava/net/Socket;

    move-result-object v0

    iput-object v0, p0, Lb/a/c/e;->i:Ljava/net/Socket;

    iget-object v0, p0, Lb/a/c/e;->h:Lb/a/c/aa;

    invoke-static {p1}, Lb/a/c/f;->g(Lb/a/c/f;)Lc/d;

    move-result-object v1

    iget-boolean v3, p0, Lb/a/c/e;->c:Z

    invoke-interface {v0, v1, v3}, Lb/a/c/aa;->a(Lc/d;Z)Lb/a/c/d;

    move-result-object v0

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

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

    iget-object v1, p0, Lb/a/c/e;->h:Lb/a/c/aa;

    invoke-static {p1}, Lb/a/c/f;->h(Lb/a/c/f;)Lc/e;

    move-result-object v3

    iget-boolean v4, p0, Lb/a/c/e;->c:Z

    invoke-interface {v1, v3, v4}, Lb/a/c/aa;->a(Lc/e;Z)Lb/a/c/b;

    move-result-object v1

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

    iput-object v0, p0, Lb/a/c/e;->k:Lb/a/c/h;

    return-void

    :cond_3
    move v0, v1

    goto/16 :goto_0

    :cond_4
    iget-object v0, p0, Lb/a/c/e;->b:Lb/ae;

    sget-object v1, Lb/ae;->d:Lb/ae;

    if-ne v0, v1, :cond_5

    new-instance v0, Lb/a/c/w;

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

    iput-object v0, p0, Lb/a/c/e;->h:Lb/a/c/aa;

    const/4 v0, 0x0

    iput-object v0, p0, Lb/a/c/e;->s:Ljava/util/concurrent/ExecutorService;

    goto :goto_1

    :cond_5
    new-instance v0, Ljava/lang/AssertionError;

    iget-object v1, p0, Lb/a/c/e;->b:Lb/ae;

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

    throw v0
.end method

.method synthetic constructor <init>(Lb/a/c/f;B)V
    .locals 0

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

    return-void
.end method

.method private a(ILjava/util/List;ZZ)Lb/a/c/i;
    .locals 12

    if-nez p3, :cond_0

    const/4 v3, 0x1

    :goto_0
    if-nez p4, :cond_1

    const/4 v4, 0x1

    :goto_1
    iget-object v9, p0, Lb/a/c/e;->j:Lb/a/c/d;

    monitor-enter v9

    :try_start_0
    monitor-enter p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :try_start_1
    iget-boolean v0, p0, Lb/a/c/e;->r:Z

    if-eqz v0, :cond_2

    new-instance v0, Ljava/io/IOException;

    const-string v1, "shutdown"

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

    throw v0

    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v0

    :catchall_1
    move-exception v0

    monitor-exit v9
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    throw v0

    :cond_0
    const/4 v3, 0x0

    goto :goto_0

    :cond_1
    const/4 v4, 0x0

    goto :goto_1

    :cond_2
    :try_start_3
    iget v1, p0, Lb/a/c/e;->q:I

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

    add-int/lit8 v0, v0, 0x2

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

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

    move-object v2, p0

    move-object v5, p2

    invoke-direct/range {v0 .. v5}, Lb/a/c/i;-><init>(ILb/a/c/e;ZZLjava/util/List;)V

    if-eqz p3, :cond_3

    iget-wide v6, p0, Lb/a/c/e;->e:J

    const-wide/16 v10, 0x0

    cmp-long v2, v6, v10

    if-eqz v2, :cond_3

    iget-wide v6, v0, Lb/a/c/i;->c:J

    const-wide/16 v10, 0x0

    cmp-long v2, v6, v10

    if-nez v2, :cond_6

    :cond_3
    const/4 v2, 0x1

    move v8, v2

    :goto_2
    invoke-virtual {v0}, Lb/a/c/i;->g()Z

    move-result v2

    if-eqz v2, :cond_4

    iget-object v2, p0, Lb/a/c/e;->n:Ljava/util/Map;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-interface {v2, v5, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_4
    monitor-exit p0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-nez p1, :cond_7

    :try_start_4
    iget-object v2, p0, Lb/a/c/e;->j:Lb/a/c/d;

    move v5, v1

    move v6, p1

    move-object v7, p2

    invoke-interface/range {v2 .. v7}, Lb/a/c/d;->a(ZZIILjava/util/List;)V

    :goto_3
    monitor-exit v9
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    if-eqz v8, :cond_5

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

    invoke-interface {v1}, Lb/a/c/d;->b()V

    :cond_5
    return-object v0

    :cond_6
    const/4 v2, 0x0

    move v8, v2

    goto :goto_2

    :cond_7
    :try_start_5
    iget-boolean v2, p0, Lb/a/c/e;->c:Z

    if-eqz v2, :cond_8

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "client streams shouldn\'t have associated stream IDs"

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

    throw v0

    :cond_8
    iget-object v2, p0, Lb/a/c/e;->j:Lb/a/c/d;

    invoke-interface {v2, p1, v1, p2}, Lb/a/c/d;->a(IILjava/util/List;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    goto :goto_3
.end method

.method static synthetic a(Lb/a/c/e;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lb/a/c/e;->o:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a()Ljava/util/concurrent/ExecutorService;
    .locals 1

    sget-object v0, Lb/a/c/e;->l:Ljava/util/concurrent/ExecutorService;

    return-object v0
.end method

.method private a(Lb/a/c/a;Lb/a/c/a;)V
    .locals 7

    const/4 v3, 0x0

    const/4 v2, 0x0

    sget-boolean v0, Lb/a/c/e;->a:Z

    if-nez v0, :cond_0

    invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    :cond_0
    :try_start_0
    invoke-virtual {p0, p1}, Lb/a/c/e;->a(Lb/a/c/a;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    move-object v1, v2

    :goto_0
    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lb/a/c/e;->n:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_7

    iget-object v0, p0, Lb/a/c/e;->n:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    iget-object v4, p0, Lb/a/c/e;->n:Ljava/util/Map;

    invoke-interface {v4}, Ljava/util/Map;->size()I

    move-result v4

    new-array v4, v4, [Lb/a/c/i;

    invoke-interface {v0, v4}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lb/a/c/i;

    iget-object v4, p0, Lb/a/c/e;->n:Ljava/util/Map;

    invoke-interface {v4}, Ljava/util/Map;->clear()V

    move-object v5, v0

    :goto_1
    iget-object v0, p0, Lb/a/c/e;->t:Ljava/util/Map;

    if-eqz v0, :cond_6

    iget-object v0, p0, Lb/a/c/e;->t:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    iget-object v2, p0, Lb/a/c/e;->t:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->size()I

    move-result v2

    new-array v2, v2, [Lb/a/c/t;

    invoke-interface {v0, v2}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lb/a/c/t;

    const/4 v2, 0x0

    iput-object v2, p0, Lb/a/c/e;->t:Ljava/util/Map;

    move-object v4, v0

    :goto_2
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v5, :cond_3

    array-length v6, v5

    move v2, v3

    move-object v0, v1

    :goto_3
    if-ge v2, v6, :cond_2

    aget-object v1, v5, v2

    :try_start_2
    invoke-virtual {v1, p2}, Lb/a/c/i;->b(Lb/a/c/a;)V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1

    :cond_1
    :goto_4
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_3

    :catch_0
    move-exception v0

    move-object v1, v0

    goto :goto_0

    :catchall_0
    move-exception v0

    :try_start_3
    monitor-exit p0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    throw v0

    :catch_1
    move-exception v1

    if-eqz v0, :cond_1

    move-object v0, v1

    goto :goto_4

    :cond_2
    move-object v1, v0

    :cond_3
    if-eqz v4, :cond_4

    array-length v2, v4

    move v0, v3

    :goto_5
    if-ge v0, v2, :cond_4

    aget-object v3, v4, v0

    invoke-virtual {v3}, Lb/a/c/t;->c()V

    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    :cond_4
    :try_start_4
    iget-object v0, p0, Lb/a/c/e;->j:Lb/a/c/d;

    invoke-interface {v0}, Lb/a/c/d;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2

    move-object v0, v1

    :cond_5
    :goto_6
    :try_start_5
    iget-object v1, p0, Lb/a/c/e;->i:Ljava/net/Socket;

    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3

    :goto_7
    if-eqz v0, :cond_8

    throw v0

    :catch_2
    move-exception v0

    if-eqz v1, :cond_5

    move-object v0, v1

    goto :goto_6

    :cond_6
    move-object v4, v2

    goto :goto_2

    :cond_7
    move-object v5, v2

    goto :goto_1

    :cond_8
    return-void

    :catch_3
    move-exception v0

    goto :goto_7
.end method

.method static synthetic a(Lb/a/c/e;II)V
    .locals 9

    const/4 v4, 0x1

    sget-object v8, Lb/a/c/e;->l:Ljava/util/concurrent/ExecutorService;

    new-instance v0, Lb/a/c/ad;

    const-string v2, "OkHttp %s ping %08x%08x"

    const/4 v1, 0x3

    new-array v3, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v5, p0, Lb/a/c/e;->o:Ljava/lang/String;

    aput-object v5, v3, v1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    aput-object v1, v3, v4

    const/4 v1, 0x2

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v1

    const/4 v7, 0x0

    move-object v1, p0

    move v5, p1

    move v6, p2

    invoke-direct/range {v0 .. v7}, Lb/a/c/ad;-><init>(Lb/a/c/e;Ljava/lang/String;[Ljava/lang/Object;ZIILb/a/c/t;)V

    invoke-interface {v8, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a(Lb/a/c/e;ILb/a/c/a;)V
    .locals 7

    iget-object v6, p0, Lb/a/c/e;->s:Ljava/util/concurrent/ExecutorService;

    new-instance v0, Lb/a/c/ah;

    const-string v2, "OkHttp %s Push Reset[%s]"

    const/4 v1, 0x2

    new-array v3, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v4, p0, Lb/a/c/e;->o:Ljava/lang/String;

    aput-object v4, v3, v1

    const/4 v1, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v1

    move-object v1, p0

    move v4, p1

    move-object v5, p2

    invoke-direct/range {v0 .. v5}, Lb/a/c/ah;-><init>(Lb/a/c/e;Ljava/lang/String;[Ljava/lang/Object;ILb/a/c/a;)V

    invoke-interface {v6, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a(Lb/a/c/e;ILc/e;IZ)V
    .locals 9

    new-instance v5, Lc/c;

    invoke-direct {v5}, Lc/c;-><init>()V

    int-to-long v0, p3

    invoke-interface {p2, v0, v1}, Lc/e;->f(J)V

    int-to-long v0, p3

    invoke-interface {p2, v5, v0, v1}, Lc/e;->a(Lc/c;J)J

    invoke-virtual {v5}, Lc/c;->s()J

    move-result-wide v0

    int-to-long v2, p3

    cmp-long v0, v0, v2

    if-eqz v0, :cond_0

    new-instance v0, Ljava/io/IOException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    invoke-virtual {v5}, Lc/c;->s()J

    move-result-wide v2

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

    move-result-object v1

    const-string v2, " != "

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

    move-result-object v1

    invoke-virtual {v1, p3}, 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/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v8, p0, Lb/a/c/e;->s:Ljava/util/concurrent/ExecutorService;

    new-instance v0, Lb/a/c/ag;

    const-string v2, "OkHttp %s Push Data[%s]"

    const/4 v1, 0x2

    new-array v3, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v4, p0, Lb/a/c/e;->o:Ljava/lang/String;

    aput-object v4, v3, v1

    const/4 v1, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v1

    move-object v1, p0

    move v4, p1

    move v6, p3

    move v7, p4

    invoke-direct/range {v0 .. v7}, Lb/a/c/ag;-><init>(Lb/a/c/e;Ljava/lang/String;[Ljava/lang/Object;ILc/c;IZ)V

    invoke-interface {v8, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a(Lb/a/c/e;ILjava/util/List;)V
    .locals 7

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lb/a/c/e;->x:Ljava/util/Set;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lb/a/c/a;->m:Lb/a/c/a;

    invoke-virtual {p0, p1, v0}, Lb/a/c/e;->a(ILb/a/c/a;)V

    monitor-exit p0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lb/a/c/e;->x:Ljava/util/Set;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    iget-object v6, p0, Lb/a/c/e;->s:Ljava/util/concurrent/ExecutorService;

    new-instance v0, Lb/a/c/ae;

    const-string v2, "OkHttp %s Push Request[%s]"

    const/4 v1, 0x2

    new-array v3, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v4, p0, Lb/a/c/e;->o:Ljava/lang/String;

    aput-object v4, v3, v1

    const/4 v1, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v1

    move-object v1, p0

    move v4, p1

    move-object v5, p2

    invoke-direct/range {v0 .. v5}, Lb/a/c/ae;-><init>(Lb/a/c/e;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;)V

    invoke-interface {v6, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0
.end method

.method static synthetic a(Lb/a/c/e;ILjava/util/List;Z)V
    .locals 8

    iget-object v7, p0, Lb/a/c/e;->s:Ljava/util/concurrent/ExecutorService;

    new-instance v0, Lb/a/c/af;

    const-string v2, "OkHttp %s Push Headers[%s]"

    const/4 v1, 0x2

    new-array v3, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v4, p0, Lb/a/c/e;->o:Ljava/lang/String;

    aput-object v4, v3, v1

    const/4 v1, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v1

    move-object v1, p0

    move v4, p1

    move-object v5, p2

    move v6, p3

    invoke-direct/range {v0 .. v6}, Lb/a/c/af;-><init>(Lb/a/c/e;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;Z)V

    invoke-interface {v7, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a(Lb/a/c/e;Lb/a/c/a;Lb/a/c/a;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lb/a/c/e;->a(Lb/a/c/a;Lb/a/c/a;)V

    return-void
.end method

.method static synthetic a(Lb/a/c/e;ZIILb/a/c/t;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3, p4}, Lb/a/c/e;->a(ZIILb/a/c/t;)V

    return-void
.end method

.method private a(ZIILb/a/c/t;)V
    .locals 2

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

    monitor-enter v1

    if-eqz p4, :cond_0

    :try_start_0
    invoke-virtual {p4}, Lb/a/c/t;->a()V

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

    invoke-interface {v0, p1, p2, p3}, Lb/a/c/d;->a(ZII)V

    monitor-exit v1

    return-void

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method static synthetic a(Lb/a/c/e;I)Z
    .locals 2

    iget-object v0, p0, Lb/a/c/e;->b:Lb/ae;

    sget-object v1, Lb/ae;->c:Lb/ae;

    if-ne v0, v1, :cond_0

    if-eqz p1, :cond_0

    and-int/lit8 v0, p1, 0x1

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

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

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

    return p1
.end method

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

    iget-boolean v0, p0, Lb/a/c/e;->r:Z

    return v0
.end method

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

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

    return v0
.end method

.method private c(I)Lb/a/c/t;
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lb/a/c/e;->t:Ljava/util/Map;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lb/a/c/e;->t:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lb/a/c/t;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_0
    monitor-exit p0

    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

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

    invoke-direct {p0, p1}, Lb/a/c/e;->c(I)Lb/a/c/t;

    move-result-object v0

    return-object v0
.end method

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

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

    return v0
.end method

.method static synthetic e(Lb/a/c/e;)Ljava/util/Map;
    .locals 1

    iget-object v0, p0, Lb/a/c/e;->n:Ljava/util/Map;

    return-object v0
.end method

.method static synthetic f(Lb/a/c/e;)Lb/a/c/g;
    .locals 1

    iget-object v0, p0, Lb/a/c/e;->m:Lb/a/c/g;

    return-object v0
.end method

.method static synthetic g(Lb/a/c/e;)Z
    .locals 1

    iget-boolean v0, p0, Lb/a/c/e;->w:Z

    return v0
.end method

.method static synthetic h(Lb/a/c/e;)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lb/a/c/e;->w:Z

    return v0
.end method

.method static synthetic i(Lb/a/c/e;)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lb/a/c/e;->r:Z

    return v0
.end method

.method static synthetic j(Lb/a/c/e;)Lb/a/c/u;
    .locals 1

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

    return-object v0
.end method

.method static synthetic k(Lb/a/c/e;)Ljava/util/Set;
    .locals 1

    iget-object v0, p0, Lb/a/c/e;->x:Ljava/util/Set;

    return-object v0
.end method


# virtual methods
.method final a(I)Lb/a/c/i;
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lb/a/c/e;->n:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lb/a/c/i;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final a(Ljava/util/List;ZZ)Lb/a/c/i;
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, v0, p1, p2, p3}, Lb/a/c/e;->a(ILjava/util/List;ZZ)Lb/a/c/i;

    move-result-object v0

    return-object v0
.end method

.method final a(IJ)V
    .locals 8

    sget-object v0, Lb/a/c/e;->l:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lb/a/c/ac;

    const-string v3, "OkHttp Window Update %s stream %d"

    const/4 v2, 0x2

    new-array v4, v2, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget-object v5, p0, Lb/a/c/e;->o:Ljava/lang/String;

    aput-object v5, v4, v2

    const/4 v2, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v4, v2

    move-object v2, p0

    move v5, p1

    move-wide v6, p2

    invoke-direct/range {v1 .. v7}, Lb/a/c/ac;-><init>(Lb/a/c/e;Ljava/lang/String;[Ljava/lang/Object;IJ)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method final a(ILb/a/c/a;)V
    .locals 7

    sget-object v6, Lb/a/c/e;->l:Ljava/util/concurrent/ExecutorService;

    new-instance v0, Lb/a/c/ab;

    const-string v2, "OkHttp %s stream %d"

    const/4 v1, 0x2

    new-array v3, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v4, p0, Lb/a/c/e;->o:Ljava/lang/String;

    aput-object v4, v3, v1

    const/4 v1, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v1

    move-object v1, p0

    move v4, p1

    move-object v5, p2

    invoke-direct/range {v0 .. v5}, Lb/a/c/ab;-><init>(Lb/a/c/e;Ljava/lang/String;[Ljava/lang/Object;ILb/a/c/a;)V

    invoke-interface {v6, v0}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    return-void
.end method

.method public final a(IZLc/c;J)V
    .locals 10

    const/4 v1, 0x0

    const-wide/16 v8, 0x0

    cmp-long v0, p4, v8

    if-nez v0, :cond_2

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

    invoke-interface {v0, p2, p1, p3, v1}, Lb/a/c/d;->a(ZILc/c;I)V

    :cond_0
    return-void

    :cond_1
    :try_start_0
    iget-wide v2, p0, Lb/a/c/e;->e:J

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

    move-result-wide v2

    long-to-int v0, v2

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

    invoke-interface {v2}, Lb/a/c/d;->c()I

    move-result v2

    invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I

    move-result v2

    iget-wide v4, p0, Lb/a/c/e;->e:J

    int-to-long v6, v2

    sub-long/2addr v4, v6

    iput-wide v4, p0, Lb/a/c/e;->e:J

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    int-to-long v4, v2

    sub-long/2addr p4, v4

    iget-object v3, p0, Lb/a/c/e;->j:Lb/a/c/d;

    if-eqz p2, :cond_4

    cmp-long v0, p4, v8

    if-nez v0, :cond_4

    const/4 v0, 0x1

    :goto_0
    invoke-interface {v3, v0, p1, p3, v2}, Lb/a/c/d;->a(ZILc/c;I)V

    :cond_2
    cmp-long v0, p4, v8

    if-lez v0, :cond_0

    monitor-enter p0

    :goto_1
    :try_start_1
    iget-wide v2, p0, Lb/a/c/e;->e:J

    cmp-long v0, v2, v8

    if-gtz v0, :cond_1

    iget-object v0, p0, Lb/a/c/e;->n:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    new-instance v0, Ljava/io/IOException;

    const-string v1, "stream closed"

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

    throw v0
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catch_0
    move-exception v0

    :try_start_2
    new-instance v0, Ljava/io/InterruptedIOException;

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

    throw v0

    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw v0

    :cond_3
    :try_start_3
    invoke-virtual {p0}, Ljava/lang/Object;->wait()V
    :try_end_3
    .catch Ljava/lang/InterruptedException; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_1

    :cond_4
    move v0, v1

    goto :goto_0
.end method

.method public final a(Lb/a/c/a;)V
    .locals 4

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

    monitor-enter v1

    :try_start_0
    monitor-enter p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :try_start_1
    iget-boolean v0, p0, Lb/a/c/e;->r:Z

    if-eqz v0, :cond_0

    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    :try_start_2
    monitor-exit v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    :try_start_3
    iput-boolean v0, p0, Lb/a/c/e;->r:Z

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

    monitor-exit p0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :try_start_4
    iget-object v2, p0, Lb/a/c/e;->j:Lb/a/c/d;

    sget-object v3, Lb/a/c;->a:[B

    invoke-interface {v2, v0, p1, v3}, Lb/a/c/d;->a(ILb/a/c/a;[B)V

    monitor-exit v1

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    throw v0

    :catchall_1
    move-exception v0

    :try_start_5
    monitor-exit p0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    :try_start_6
    throw v0
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0
.end method

.method final b(I)Lb/a/c/i;
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lb/a/c/e;->n:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lb/a/c/i;

    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final b()V
    .locals 1

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

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

    return-void
.end method

.method final b(ILb/a/c/a;)V
    .locals 1

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

    invoke-interface {v0, p1, p2}, Lb/a/c/d;->a(ILb/a/c/a;)V

    return-void
.end method

.method public final c()Lb/ae;
    .locals 1

    iget-object v0, p0, Lb/a/c/e;->b:Lb/ae;

    return-object v0
.end method

.method public final close()V
    .locals 2

    sget-object v0, Lb/a/c/a;->l:Lb/a/c/a;

    sget-object v1, Lb/a/c/a;->a:Lb/a/c/a;

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

    return-void
.end method

.method public final d()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lb/a/c/e;->r:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final e()I
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lb/a/c/e;->g:Lb/a/c/v;

    invoke-virtual {v0}, Lb/a/c/v;->d()I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final f()V
    .locals 6

    const/high16 v3, 0x10000

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

    invoke-interface {v0}, Lb/a/c/d;->a()V

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

    iget-object v1, p0, Lb/a/c/e;->f:Lb/a/c/v;

    invoke-interface {v0, v1}, Lb/a/c/d;->b(Lb/a/c/v;)V

    iget-object v0, p0, Lb/a/c/e;->f:Lb/a/c/v;

    invoke-virtual {v0}, Lb/a/c/v;->e()I

    move-result v0

    if-eq v0, v3, :cond_0

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

    const/4 v2, 0x0

    sub-int/2addr v0, v3

    int-to-long v4, v0

    invoke-interface {v1, v2, v4, v5}, Lb/a/c/d;->a(IJ)V

    :cond_0
    new-instance v0, Ljava/lang/Thread;

    iget-object v1, p0, Lb/a/c/e;->k:Lb/a/c/h;

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

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method
