apkfuckery/com.discord/smali_classes2/d0/h0/n/d.smali

2467 lines
52 KiB
Smali
Raw Normal View History

2020-11-16 01:00:50 +00:00
.class public final Ld0/h0/n/d;
2020-11-12 02:11:44 +00:00
.super Ljava/lang/Object;
.source "RealWebSocket.kt"
# interfaces
.implements Lokhttp3/WebSocket;
2020-11-16 01:00:50 +00:00
.implements Ld0/h0/n/h$a;
2020-11-12 02:11:44 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-11-16 01:00:50 +00:00
Ld0/h0/n/d$b;,
Ld0/h0/n/d$a;,
Ld0/h0/n/d$c;,
Ld0/h0/n/d$d;
2020-11-12 02:11:44 +00:00
}
.end annotation
# static fields
.field public static final z:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
2020-11-16 01:00:50 +00:00
"Ld0/a0;",
2020-11-12 02:11:44 +00:00
">;"
}
.end annotation
.end field
# instance fields
.field public final a:Ljava/lang/String;
2020-11-16 01:00:50 +00:00
.field public b:Ld0/f;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
.field public c:Ld0/h0/f/a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
.field public d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
.field public e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
.field public f:Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
.field public g:Ljava/lang/String;
2020-11-16 01:00:50 +00:00
.field public h:Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
.field public final i:Ljava/util/ArrayDeque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
"Lokio/ByteString;",
">;"
}
.end annotation
.end field
.field public final j:Ljava/util/ArrayDeque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public k:J
.field public l:Z
.field public m:I
.field public n:Ljava/lang/String;
.field public o:Z
.field public p:I
.field public q:I
.field public r:I
.field public s:Z
2020-11-16 01:00:50 +00:00
.field public final t:Ld0/b0;
2020-11-12 02:11:44 +00:00
.field public final u:Lokhttp3/WebSocketListener;
.field public final v:Ljava/util/Random;
.field public final w:J
2020-11-16 01:00:50 +00:00
.field public x:Ld0/h0/n/f;
2020-11-12 02:11:44 +00:00
.field public y:J
# direct methods
.method public static constructor <clinit>()V
.locals 1
2020-11-16 01:00:50 +00:00
sget-object v0, Ld0/a0;->e:Ld0/a0;
2020-11-12 02:11:44 +00:00
invoke-static {v0}, Lf/h/a/f/f/n/f;->listOf(Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
2020-11-16 01:00:50 +00:00
sput-object v0, Ld0/h0/n/d;->z:Ljava/util/List;
2020-11-12 02:11:44 +00:00
return-void
.end method
2020-11-16 01:00:50 +00:00
.method public constructor <init>(Ld0/h0/f/d;Ld0/b0;Lokhttp3/WebSocketListener;Ljava/util/Random;JLd0/h0/n/f;J)V
2020-11-12 02:11:44 +00:00
.locals 0
const-string p7, "taskRunner"
2020-11-16 01:00:50 +00:00
invoke-static {p1, p7}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
const-string p7, "originalRequest"
2020-11-16 01:00:50 +00:00
invoke-static {p2, p7}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
const-string p7, "listener"
2020-11-16 01:00:50 +00:00
invoke-static {p3, p7}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
const-string p7, "random"
2020-11-16 01:00:50 +00:00
invoke-static {p4, p7}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-11-16 01:00:50 +00:00
iput-object p2, p0, Ld0/h0/n/d;->t:Ld0/b0;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object p3, p0, Ld0/h0/n/d;->u:Lokhttp3/WebSocketListener;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object p4, p0, Ld0/h0/n/d;->v:Ljava/util/Random;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-wide p5, p0, Ld0/h0/n/d;->w:J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
const/4 p2, 0x0
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object p2, p0, Ld0/h0/n/d;->x:Ld0/h0/n/f;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-wide p8, p0, Ld0/h0/n/d;->y:J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {p1}, Ld0/h0/f/d;->f()Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
move-result-object p1
2020-11-16 01:00:50 +00:00
iput-object p1, p0, Ld0/h0/n/d;->f:Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
new-instance p1, Ljava/util/ArrayDeque;
invoke-direct {p1}, Ljava/util/ArrayDeque;-><init>()V
2020-11-16 01:00:50 +00:00
iput-object p1, p0, Ld0/h0/n/d;->i:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
new-instance p1, Ljava/util/ArrayDeque;
invoke-direct {p1}, Ljava/util/ArrayDeque;-><init>()V
2020-11-16 01:00:50 +00:00
iput-object p1, p0, Ld0/h0/n/d;->j:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
const/4 p1, -0x1
2020-11-16 01:00:50 +00:00
iput p1, p0, Ld0/h0/n/d;->m:I
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object p1, p0, Ld0/h0/n/d;->t:Ld0/b0;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object p1, p1, Ld0/b0;->c:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
const-string p2, "GET"
invoke-static {p2, p1}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-11-12 02:11:44 +00:00
move-result p1
if-eqz p1, :cond_0
sget-object p1, Lokio/ByteString;->g:Lokio/ByteString$a;
const/16 p2, 0x10
new-array p2, p2, [B
2020-11-16 01:00:50 +00:00
iget-object p3, p0, Ld0/h0/n/d;->v:Ljava/util/Random;
invoke-virtual {p3, p2}, Ljava/util/Random;->nextBytes([B)V
2020-11-12 02:11:44 +00:00
const/4 p3, 0x3
const/4 p4, 0x0
invoke-static {p1, p2, p4, p4, p3}, Lokio/ByteString$a;->c(Lokio/ByteString$a;[BIII)Lokio/ByteString;
move-result-object p1
invoke-virtual {p1}, Lokio/ByteString;->f()Ljava/lang/String;
move-result-object p1
2020-11-16 01:00:50 +00:00
iput-object p1, p0, Ld0/h0/n/d;->a:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
return-void
:cond_0
const-string p1, "Request must be GET: "
2020-11-16 01:00:50 +00:00
invoke-static {p1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-12 02:11:44 +00:00
move-result-object p1
2020-11-16 01:00:50 +00:00
iget-object p2, p0, Ld0/h0/n/d;->t:Ld0/b0;
iget-object p2, p2, Ld0/b0;->c:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
# virtual methods
.method public a(Ljava/lang/String;)Z
.locals 7
const-string v0, "text"
2020-11-16 01:00:50 +00:00
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
invoke-virtual {v0, p1}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
move-result-object p1
monitor-enter p0
:try_start_0
2020-11-16 01:00:50 +00:00
iget-boolean v0, p0, Ld0/h0/n/d;->o:Z
2020-11-12 02:11:44 +00:00
const/4 v1, 0x0
const/4 v2, 0x1
if-nez v0, :cond_2
2020-11-16 01:00:50 +00:00
iget-boolean v0, p0, Ld0/h0/n/d;->l:Z
2020-11-12 02:11:44 +00:00
if-eqz v0, :cond_0
goto :goto_0
:cond_0
2020-11-16 01:00:50 +00:00
iget-wide v3, p0, Ld0/h0/n/d;->k:J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, p1, Lokio/ByteString;->data:[B
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
array-length v0, v0
2020-11-12 02:11:44 +00:00
int-to-long v5, v0
add-long/2addr v3, v5
const-wide/32 v5, 0x1000000
cmp-long v0, v3, v5
if-lez v0, :cond_1
const/16 p1, 0x3e9
const/4 v0, 0x0
2020-11-16 01:00:50 +00:00
invoke-virtual {p0, p1, v0}, Ld0/h0/n/d;->e(ILjava/lang/String;)Z
2020-11-12 02:11:44 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
goto :goto_1
:cond_1
:try_start_1
2020-11-16 01:00:50 +00:00
iget-wide v0, p0, Ld0/h0/n/d;->k:J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v3, p1, Lokio/ByteString;->data:[B
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
array-length v3, v3
2020-11-12 02:11:44 +00:00
int-to-long v3, v3
add-long/2addr v0, v3
2020-11-16 01:00:50 +00:00
iput-wide v0, p0, Ld0/h0/n/d;->k:J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->j:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
new-instance v1, Ld0/h0/n/d$b;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-direct {v1, v2, p1}, Ld0/h0/n/d$b;-><init>(ILokio/ByteString;)V
2020-11-12 02:11:44 +00:00
invoke-virtual {v0, v1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2020-11-16 01:00:50 +00:00
invoke-virtual {p0}, Ld0/h0/n/d;->l()V
2020-11-12 02:11:44 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
const/4 v1, 0x1
goto :goto_1
:cond_2
:goto_0
monitor-exit p0
:goto_1
return v1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public b(Lokio/ByteString;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "bytes"
2020-11-16 01:00:50 +00:00
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->u:Lokhttp3/WebSocketListener;
2020-11-12 02:11:44 +00:00
invoke-virtual {v0, p0, p1}, Lokhttp3/WebSocketListener;->onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V
return-void
.end method
.method public c(Ljava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "text"
2020-11-16 01:00:50 +00:00
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->u:Lokhttp3/WebSocketListener;
2020-11-12 02:11:44 +00:00
invoke-virtual {v0, p0, p1}, Lokhttp3/WebSocketListener;->onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V
return-void
.end method
.method public cancel()V
.locals 1
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->b:Ld0/f;
2020-11-12 02:11:44 +00:00
if-eqz v0, :cond_0
2020-11-16 01:00:50 +00:00
invoke-interface {v0}, Ld0/f;->cancel()V
2020-11-12 02:11:44 +00:00
return-void
:cond_0
2020-11-16 01:00:50 +00:00
invoke-static {}, Lz/n/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
const/4 v0, 0x0
throw v0
.end method
.method public declared-synchronized d(Lokio/ByteString;)V
.locals 1
monitor-enter p0
:try_start_0
const-string v0, "payload"
2020-11-16 01:00:50 +00:00
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v0, p0, Ld0/h0/n/d;->o:Z
2020-11-12 02:11:44 +00:00
if-nez v0, :cond_1
2020-11-16 01:00:50 +00:00
iget-boolean v0, p0, Ld0/h0/n/d;->l:Z
2020-11-12 02:11:44 +00:00
if-eqz v0, :cond_0
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->j:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->i:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2020-11-16 01:00:50 +00:00
invoke-virtual {p0}, Ld0/h0/n/d;->l()V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget p1, p0, Ld0/h0/n/d;->q:I
2020-11-12 02:11:44 +00:00
add-int/lit8 p1, p1, 0x1
2020-11-16 01:00:50 +00:00
iput p1, p0, Ld0/h0/n/d;->q:I
2020-11-12 02:11:44 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:cond_1
:goto_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public e(ILjava/lang/String;)Z
2020-11-16 01:00:50 +00:00
.locals 7
2020-11-12 02:11:44 +00:00
monitor-enter p0
:try_start_0
2020-11-16 01:00:50 +00:00
invoke-static {p1}, Ld0/h0/n/g;->c(I)V
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
const/4 v0, 0x0
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
const/4 v1, 0x1
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
if-eqz p2, :cond_2
2020-11-14 03:19:56 +00:00
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
invoke-virtual {v0, p2}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
2020-11-16 01:00:50 +00:00
move-result-object v0
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v0}, Lokio/ByteString;->i()I
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
move-result v2
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
int-to-long v2, v2
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
const-wide/16 v4, 0x7b
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
cmp-long v6, v2, v4
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
if-gtz v6, :cond_0
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
const/4 v2, 0x1
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
goto :goto_0
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
:cond_0
const/4 v2, 0x0
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
:goto_0
if-eqz v2, :cond_1
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
goto :goto_1
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
:cond_1
2020-11-12 02:11:44 +00:00
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "reason.size() > 123: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
2020-11-16 01:00:50 +00:00
:cond_2
:goto_1
iget-boolean p2, p0, Ld0/h0/n/d;->o:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-nez p2, :cond_4
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean p2, p0, Ld0/h0/n/d;->l:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz p2, :cond_3
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
goto :goto_2
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_3
iput-boolean v1, p0, Ld0/h0/n/d;->l:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object p2, p0, Ld0/h0/n/d;->j:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
new-instance v2, Ld0/h0/n/d$a;
2020-11-12 02:11:44 +00:00
const-wide/32 v3, 0xea60
2020-11-16 01:00:50 +00:00
invoke-direct {v2, p1, v0, v3, v4}, Ld0/h0/n/d$a;-><init>(ILokio/ByteString;J)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {p2, v2}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {p0}, Ld0/h0/n/d;->l()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-11-12 02:11:44 +00:00
monitor-exit p0
2020-11-16 01:00:50 +00:00
goto :goto_3
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_4
:goto_2
2020-11-12 02:11:44 +00:00
monitor-exit p0
2020-11-16 01:00:50 +00:00
const/4 v1, 0x0
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:goto_3
return v1
2020-11-12 02:11:44 +00:00
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized f(Lokio/ByteString;)V
.locals 1
monitor-enter p0
:try_start_0
const-string v0, "payload"
2020-11-16 01:00:50 +00:00
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget p1, p0, Ld0/h0/n/d;->r:I
2020-11-12 02:11:44 +00:00
add-int/lit8 p1, p1, 0x1
2020-11-16 01:00:50 +00:00
iput p1, p0, Ld0/h0/n/d;->r:I
2020-11-12 02:11:44 +00:00
const/4 p1, 0x0
2020-11-16 01:00:50 +00:00
iput-boolean p1, p0, Ld0/h0/n/d;->s:Z
2020-11-12 02:11:44 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public g(ILjava/lang/String;)V
.locals 4
const-string v0, "reason"
2020-11-16 01:00:50 +00:00
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
const/4 v0, 0x0
const/4 v1, 0x1
const/4 v2, -0x1
if-eq p1, v2, :cond_0
const/4 v3, 0x1
goto :goto_0
:cond_0
const/4 v3, 0x0
:goto_0
if-eqz v3, :cond_b
monitor-enter p0
:try_start_0
2020-11-16 01:00:50 +00:00
iget v3, p0, Ld0/h0/n/d;->m:I
2020-11-12 02:11:44 +00:00
if-ne v3, v2, :cond_1
const/4 v0, 0x1
:cond_1
if-eqz v0, :cond_a
2020-11-16 01:00:50 +00:00
iput p1, p0, Ld0/h0/n/d;->m:I
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object p2, p0, Ld0/h0/n/d;->n:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v0, p0, Ld0/h0/n/d;->l:Z
2020-11-12 02:11:44 +00:00
const/4 v1, 0x0
if-eqz v0, :cond_2
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->j:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z
move-result v0
if-eqz v0, :cond_2
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->h:Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v1, p0, Ld0/h0/n/d;->h:Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v2, p0, Ld0/h0/n/d;->d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v1, p0, Ld0/h0/n/d;->d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v3, p0, Ld0/h0/n/d;->e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v1, p0, Ld0/h0/n/d;->e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v1, p0, Ld0/h0/n/d;->f:Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v1}, Ld0/h0/f/c;->f()V
2020-11-12 02:11:44 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
move-object v1, v0
goto :goto_1
:cond_2
move-object v2, v1
move-object v3, v2
:goto_1
monitor-exit p0
:try_start_1
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->u:Lokhttp3/WebSocketListener;
2020-11-12 02:11:44 +00:00
invoke-virtual {v0, p0, p1, p2}, Lokhttp3/WebSocketListener;->onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V
if-eqz v1, :cond_3
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->u:Lokhttp3/WebSocketListener;
2020-11-12 02:11:44 +00:00
invoke-virtual {v0, p0, p1, p2}, Lokhttp3/WebSocketListener;->onClosed(Lokhttp3/WebSocket;ILjava/lang/String;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:cond_3
if-eqz v1, :cond_4
2020-11-16 01:00:50 +00:00
invoke-static {v1}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
:cond_4
if-eqz v2, :cond_5
2020-11-16 01:00:50 +00:00
invoke-static {v2}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
:cond_5
if-eqz v3, :cond_6
2020-11-16 01:00:50 +00:00
invoke-static {v3}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
:cond_6
return-void
:catchall_0
move-exception p1
if-eqz v1, :cond_7
2020-11-16 01:00:50 +00:00
invoke-static {v1}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
:cond_7
if-eqz v2, :cond_8
2020-11-16 01:00:50 +00:00
invoke-static {v2}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
:cond_8
if-eqz v3, :cond_9
2020-11-16 01:00:50 +00:00
invoke-static {v3}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
:cond_9
throw p1
:cond_a
2020-11-16 01:00:50 +00:00
:try_start_2
2020-11-12 02:11:44 +00:00
const-string p1, "already closed"
new-instance p2, Ljava/lang/IllegalStateException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p2
2020-11-16 01:00:50 +00:00
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
2020-11-12 02:11:44 +00:00
:catchall_1
move-exception p1
monitor-exit p0
throw p1
:cond_b
const-string p1, "Failed requirement."
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
2020-11-16 01:00:50 +00:00
.method public final h(Lokhttp3/Response;Ld0/h0/g/c;)V
2020-11-12 02:11:44 +00:00
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "response"
2020-11-16 01:00:50 +00:00
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
iget v0, p1, Lokhttp3/Response;->g:I
const/16 v1, 0x65
const/16 v2, 0x27
if-ne v0, v1, :cond_4
const/4 v0, 0x0
const/4 v1, 0x2
const-string v3, "Connection"
invoke-static {p1, v3, v0, v1}, Lokhttp3/Response;->a(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
move-result-object v3
const-string v4, "Upgrade"
const/4 v5, 0x1
2020-11-16 01:00:50 +00:00
invoke-static {v4, v3, v5}, Lz/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-11-12 02:11:44 +00:00
move-result v6
if-eqz v6, :cond_3
invoke-static {p1, v4, v0, v1}, Lokhttp3/Response;->a(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
move-result-object v3
const-string v4, "websocket"
2020-11-16 01:00:50 +00:00
invoke-static {v4, v3, v5}, Lz/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-11-12 02:11:44 +00:00
move-result v4
if-eqz v4, :cond_2
const-string v3, "Sec-WebSocket-Accept"
invoke-static {p1, v3, v0, v1}, Lokhttp3/Response;->a(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
move-result-object p1
sget-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
2020-11-16 01:00:50 +00:00
iget-object v3, p0, Ld0/h0/n/d;->a:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
const-string v1, "SHA-1"
invoke-virtual {v0, v1}, Lokio/ByteString;->g(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->f()Ljava/lang/String;
move-result-object v0
2020-11-16 01:00:50 +00:00
invoke-static {v0, p1}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-11-12 02:11:44 +00:00
move-result v1
xor-int/2addr v1, v5
if-nez v1, :cond_1
if-eqz p2, :cond_0
return-void
:cond_0
new-instance p1, Ljava/net/ProtocolException;
const-string p2, "Web Socket exchange missing: bad interceptor?"
invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance p2, Ljava/net/ProtocolException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Expected \'Sec-WebSocket-Accept\' header value \'"
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "\' but was \'"
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p2
:cond_2
new-instance p1, Ljava/net/ProtocolException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Expected \'Upgrade\' header value \'websocket\' but was \'"
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/net/ProtocolException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Expected \'Connection\' header value \'Upgrade\' but was \'"
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
new-instance p2, Ljava/net/ProtocolException;
const-string v0, "Expected HTTP 101 response but was \'"
2020-11-16 01:00:50 +00:00
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-12 02:11:44 +00:00
move-result-object v0
iget v1, p1, Lokhttp3/Response;->g:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const/16 v1, 0x20
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget-object p1, p1, Lokhttp3/Response;->f:Ljava/lang/String;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p2
.end method
.method public final i(Ljava/lang/Exception;Lokhttp3/Response;)V
.locals 4
const-string v0, "e"
2020-11-16 01:00:50 +00:00
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
monitor-enter p0
:try_start_0
2020-11-16 01:00:50 +00:00
iget-boolean v0, p0, Ld0/h0/n/d;->o:Z
2020-11-12 02:11:44 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
const/4 v0, 0x1
:try_start_1
2020-11-16 01:00:50 +00:00
iput-boolean v0, p0, Ld0/h0/n/d;->o:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->h:Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
const/4 v1, 0x0
2020-11-16 01:00:50 +00:00
iput-object v1, p0, Ld0/h0/n/d;->h:Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v2, p0, Ld0/h0/n/d;->d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v1, p0, Ld0/h0/n/d;->d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v3, p0, Ld0/h0/n/d;->e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v1, p0, Ld0/h0/n/d;->e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v1, p0, Ld0/h0/n/d;->f:Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v1}, Ld0/h0/f/c;->f()V
2020-11-12 02:11:44 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
monitor-exit p0
:try_start_2
2020-11-16 01:00:50 +00:00
iget-object v1, p0, Ld0/h0/n/d;->u:Lokhttp3/WebSocketListener;
2020-11-12 02:11:44 +00:00
invoke-virtual {v1, p0, p1, p2}, Lokhttp3/WebSocketListener;->onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
if-eqz v0, :cond_1
const-string p1, "$this$closeQuietly"
2020-11-16 01:00:50 +00:00
invoke-static {v0, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
:try_start_3
invoke-interface {v0}, Ljava/io/Closeable;->close()V
:try_end_3
.catch Ljava/lang/RuntimeException; {:try_start_3 .. :try_end_3} :catch_1
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
goto :goto_0
:catch_0
nop
goto :goto_0
:catch_1
move-exception p1
throw p1
:cond_1
:goto_0
if-eqz v2, :cond_2
const-string p1, "$this$closeQuietly"
2020-11-16 01:00:50 +00:00
invoke-static {v2, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
:try_start_4
2020-11-16 01:00:50 +00:00
invoke-virtual {v2}, Ld0/h0/n/h;->close()V
2020-11-12 02:11:44 +00:00
:try_end_4
.catch Ljava/lang/RuntimeException; {:try_start_4 .. :try_end_4} :catch_3
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
goto :goto_1
:catch_2
nop
goto :goto_1
:catch_3
move-exception p1
throw p1
:cond_2
:goto_1
if-eqz v3, :cond_3
const-string p1, "$this$closeQuietly"
2020-11-16 01:00:50 +00:00
invoke-static {v3, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
:try_start_5
2020-11-16 01:00:50 +00:00
invoke-virtual {v3}, Ld0/h0/n/i;->close()V
2020-11-12 02:11:44 +00:00
:try_end_5
.catch Ljava/lang/RuntimeException; {:try_start_5 .. :try_end_5} :catch_4
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_5
goto :goto_2
:catch_4
move-exception p1
throw p1
:catch_5
:cond_3
:goto_2
return-void
:catchall_0
move-exception p1
if-eqz v0, :cond_4
const-string p2, "$this$closeQuietly"
2020-11-16 01:00:50 +00:00
invoke-static {v0, p2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
:try_start_6
invoke-interface {v0}, Ljava/io/Closeable;->close()V
:try_end_6
.catch Ljava/lang/RuntimeException; {:try_start_6 .. :try_end_6} :catch_7
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_6
goto :goto_3
:catch_6
nop
goto :goto_3
:catch_7
move-exception p1
throw p1
:cond_4
:goto_3
if-eqz v2, :cond_5
const-string p2, "$this$closeQuietly"
2020-11-16 01:00:50 +00:00
invoke-static {v2, p2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
:try_start_7
2020-11-16 01:00:50 +00:00
invoke-virtual {v2}, Ld0/h0/n/h;->close()V
2020-11-12 02:11:44 +00:00
:try_end_7
.catch Ljava/lang/RuntimeException; {:try_start_7 .. :try_end_7} :catch_9
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_8
goto :goto_4
:catch_8
nop
goto :goto_4
:catch_9
move-exception p1
throw p1
:cond_5
:goto_4
if-eqz v3, :cond_6
const-string p2, "$this$closeQuietly"
2020-11-16 01:00:50 +00:00
invoke-static {v3, p2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
:try_start_8
2020-11-16 01:00:50 +00:00
invoke-virtual {v3}, Ld0/h0/n/i;->close()V
2020-11-12 02:11:44 +00:00
:try_end_8
.catch Ljava/lang/RuntimeException; {:try_start_8 .. :try_end_8} :catch_a
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_b
goto :goto_5
:catch_a
move-exception p1
throw p1
:catch_b
:cond_6
:goto_5
throw p1
:catchall_1
move-exception p1
monitor-exit p0
throw p1
.end method
2020-11-16 01:00:50 +00:00
.method public final j(Ljava/lang/String;Ld0/h0/n/d$c;)V
2020-11-12 02:11:44 +00:00
.locals 16
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v10, p0
move-object/from16 v0, p1
move-object/from16 v11, p2
const-string v1, "name"
2020-11-16 01:00:50 +00:00
invoke-static {v0, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
const-string v1, "streams"
2020-11-16 01:00:50 +00:00
invoke-static {v11, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v12, v10, Ld0/h0/n/d;->x:Ld0/h0/n/f;
2020-11-12 02:11:44 +00:00
if-eqz v12, :cond_4
monitor-enter p0
:try_start_0
2020-11-16 01:00:50 +00:00
iput-object v0, v10, Ld0/h0/n/d;->g:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v11, v10, Ld0/h0/n/d;->h:Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
new-instance v9, Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v2, v11, Ld0/h0/n/d$c;->d:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v3, v11, Ld0/h0/n/d$c;->f:Lokio/BufferedSink;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v4, v10, Ld0/h0/n/d;->v:Ljava/util/Random;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v5, v12, Ld0/h0/n/f;->a:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v1, v11, Ld0/h0/n/d$c;->d:Z
2020-11-14 02:19:59 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v1, :cond_0
iget-boolean v1, v12, Ld0/h0/n/f;->c:Z
2020-11-12 02:11:44 +00:00
goto :goto_0
:cond_0
2020-11-16 01:00:50 +00:00
iget-boolean v1, v12, Ld0/h0/n/f;->e:Z
2020-11-12 02:11:44 +00:00
:goto_0
move v6, v1
2020-11-16 01:00:50 +00:00
iget-wide v7, v10, Ld0/h0/n/d;->y:J
2020-11-12 02:11:44 +00:00
move-object v1, v9
2020-11-16 01:00:50 +00:00
invoke-direct/range {v1 .. v8}, Ld0/h0/n/i;-><init>(ZLokio/BufferedSink;Ljava/util/Random;ZZJ)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v9, v10, Ld0/h0/n/d;->e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
new-instance v1, Ld0/h0/n/d$d;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-direct {v1, v10}, Ld0/h0/n/d$d;-><init>(Ld0/h0/n/d;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v1, v10, Ld0/h0/n/d;->c:Ld0/h0/f/a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-wide v1, v10, Ld0/h0/n/d;->w:J
2020-11-12 02:11:44 +00:00
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-eqz v5, :cond_1
2020-11-16 01:00:50 +00:00
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
2020-11-14 02:19:59 +00:00
2020-11-16 01:00:50 +00:00
iget-wide v2, v10, Ld0/h0/n/d;->w:J
invoke-virtual {v1, v2, v3}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
2020-11-12 02:11:44 +00:00
move-result-wide v13
2020-11-16 01:00:50 +00:00
iget-object v15, v10, Ld0/h0/n/d;->f:Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, " ping"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
2020-11-16 01:00:50 +00:00
new-instance v9, Ld0/h0/n/d$e;
2020-11-12 02:11:44 +00:00
move-object v1, v9
move-object v2, v3
move-wide v4, v13
move-object/from16 v6, p0
move-object/from16 v7, p1
move-object/from16 v8, p2
move-object v0, v9
move-object v9, v12
2020-11-16 01:00:50 +00:00
invoke-direct/range {v1 .. v9}, Ld0/h0/n/d$e;-><init>(Ljava/lang/String;Ljava/lang/String;JLd0/h0/n/d;Ljava/lang/String;Ld0/h0/n/d$c;Ld0/h0/n/f;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v15, v0, v13, v14}, Ld0/h0/f/c;->c(Ld0/h0/f/a;J)V
2020-11-12 02:11:44 +00:00
:cond_1
2020-11-16 01:00:50 +00:00
iget-object v0, v10, Ld0/h0/n/d;->j:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_2
2020-11-16 01:00:50 +00:00
invoke-virtual/range {p0 .. p0}, Ld0/h0/n/d;->l()V
2020-11-12 02:11:44 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_2
monitor-exit p0
2020-11-16 01:00:50 +00:00
new-instance v0, Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v2, v11, Ld0/h0/n/d$c;->d:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v3, v11, Ld0/h0/n/d$c;->e:Le0/g;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v5, v12, Ld0/h0/n/f;->a:Z
2020-11-12 02:11:44 +00:00
xor-int/lit8 v1, v2, 0x1
if-eqz v1, :cond_3
2020-11-16 01:00:50 +00:00
iget-boolean v1, v12, Ld0/h0/n/f;->c:Z
2020-11-12 02:11:44 +00:00
goto :goto_1
:cond_3
2020-11-16 01:00:50 +00:00
iget-boolean v1, v12, Ld0/h0/n/f;->e:Z
2020-11-12 02:11:44 +00:00
:goto_1
move v6, v1
move-object v1, v0
move-object/from16 v4, p0
2020-11-16 01:00:50 +00:00
invoke-direct/range {v1 .. v6}, Ld0/h0/n/h;-><init>(ZLe0/g;Ld0/h0/n/h$a;ZZ)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v0, v10, Ld0/h0/n/d;->d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
:cond_4
2020-11-16 01:00:50 +00:00
invoke-static {}, Lz/n/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
const/4 v0, 0x0
throw v0
.end method
.method public final k()V
.locals 12
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:goto_0
2020-11-16 01:00:50 +00:00
iget v0, p0, Ld0/h0/n/d;->m:I
2020-11-12 02:11:44 +00:00
const/4 v1, -0x1
if-ne v0, v1, :cond_13
2020-11-16 01:00:50 +00:00
iget-object v0, p0, Ld0/h0/n/d;->d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
const/4 v1, 0x0
if-eqz v0, :cond_12
2020-11-16 01:00:50 +00:00
invoke-virtual {v0}, Ld0/h0/n/h;->b()V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v2, v0, Ld0/h0/n/h;->h:Z
2020-11-12 02:11:44 +00:00
if-eqz v2, :cond_0
2020-11-16 01:00:50 +00:00
invoke-virtual {v0}, Ld0/h0/n/h;->a()V
2020-11-12 02:11:44 +00:00
goto :goto_0
:cond_0
2020-11-16 01:00:50 +00:00
iget v2, v0, Ld0/h0/n/h;->e:I
2020-11-12 02:11:44 +00:00
const/4 v3, 0x1
if-eq v2, v3, :cond_2
const/4 v4, 0x2
if-ne v2, v4, :cond_1
goto :goto_1
:cond_1
new-instance v0, Ljava/net/ProtocolException;
const-string v1, "Unknown opcode: "
2020-11-16 01:00:50 +00:00
invoke-static {v1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-12 02:11:44 +00:00
move-result-object v1
2020-11-16 01:00:50 +00:00
invoke-static {v2}, Ld0/h0/c;->C(I)Ljava/lang/String;
2020-11-12 02:11:44 +00:00
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
:cond_2
:goto_1
2020-11-16 01:00:50 +00:00
iget-boolean v4, v0, Ld0/h0/n/h;->d:Z
2020-11-12 02:11:44 +00:00
if-nez v4, :cond_11
2020-11-16 01:00:50 +00:00
iget-wide v4, v0, Ld0/h0/n/h;->f:J
2020-11-12 02:11:44 +00:00
const-wide/16 v6, 0x0
cmp-long v8, v4, v6
if-lez v8, :cond_5
2020-11-16 01:00:50 +00:00
iget-object v8, v0, Ld0/h0/n/h;->p:Le0/g;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v9, v0, Ld0/h0/n/h;->k:Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-interface {v8, v9, v4, v5}, Le0/g;->P(Le0/e;J)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v4, v0, Ld0/h0/n/h;->o:Z
2020-11-12 02:11:44 +00:00
if-nez v4, :cond_5
2020-11-16 01:00:50 +00:00
iget-object v4, v0, Ld0/h0/n/h;->k:Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v5, v0, Ld0/h0/n/h;->n:Le0/e$a;
2020-11-12 02:11:44 +00:00
if-eqz v5, :cond_4
2020-11-16 01:00:50 +00:00
invoke-virtual {v4, v5}, Le0/e;->j(Le0/e$a;)Le0/e$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v4, v0, Ld0/h0/n/h;->n:Le0/e$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v5, v0, Ld0/h0/n/h;->k:Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-wide v8, v5, Le0/e;->e:J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-wide v10, v0, Ld0/h0/n/h;->f:J
2020-11-12 02:11:44 +00:00
sub-long/2addr v8, v10
2020-11-16 01:00:50 +00:00
invoke-virtual {v4, v8, v9}, Le0/e$a;->b(J)I
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v4, v0, Ld0/h0/n/h;->n:Le0/e$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v5, v0, Ld0/h0/n/h;->m:[B
2020-11-12 02:11:44 +00:00
if-eqz v5, :cond_3
2020-11-16 01:00:50 +00:00
invoke-static {v4, v5}, Ld0/h0/n/g;->b(Le0/e$a;[B)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v4, v0, Ld0/h0/n/h;->n:Le0/e$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v4}, Le0/e$a;->close()V
2020-11-12 02:11:44 +00:00
goto :goto_2
:cond_3
2020-11-16 01:00:50 +00:00
invoke-static {}, Lz/n/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
throw v1
:cond_4
2020-11-16 01:00:50 +00:00
invoke-static {}, Lz/n/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
throw v1
:cond_5
:goto_2
2020-11-16 01:00:50 +00:00
iget-boolean v4, v0, Ld0/h0/n/h;->g:Z
2020-11-12 02:11:44 +00:00
if-eqz v4, :cond_d
2020-11-16 01:00:50 +00:00
iget-boolean v1, v0, Ld0/h0/n/h;->i:Z
2020-11-12 02:11:44 +00:00
if-eqz v1, :cond_b
2020-11-16 01:00:50 +00:00
iget-object v1, v0, Ld0/h0/n/h;->l:Ld0/h0/n/c;
2020-11-12 02:11:44 +00:00
if-eqz v1, :cond_6
goto :goto_3
:cond_6
2020-11-16 01:00:50 +00:00
new-instance v1, Ld0/h0/n/c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v4, v0, Ld0/h0/n/h;->s:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-direct {v1, v4}, Ld0/h0/n/c;-><init>(Z)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-object v1, v0, Ld0/h0/n/h;->l:Ld0/h0/n/c;
2020-11-12 02:11:44 +00:00
:goto_3
2020-11-16 01:00:50 +00:00
iget-object v4, v0, Ld0/h0/n/h;->k:Le0/e;
2020-11-12 02:11:44 +00:00
const-string v5, "buffer"
2020-11-16 01:00:50 +00:00
invoke-static {v4, v5}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v5, v1, Ld0/h0/n/c;->d:Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-wide v8, v5, Le0/e;->e:J
2020-11-12 02:11:44 +00:00
cmp-long v5, v8, v6
if-nez v5, :cond_7
const/4 v5, 0x1
goto :goto_4
:cond_7
const/4 v5, 0x0
:goto_4
if-eqz v5, :cond_a
2020-11-16 01:00:50 +00:00
iget-boolean v5, v1, Ld0/h0/n/c;->g:Z
2020-11-12 02:11:44 +00:00
if-eqz v5, :cond_8
2020-11-16 01:00:50 +00:00
iget-object v5, v1, Ld0/h0/n/c;->e:Ljava/util/zip/Inflater;
2020-11-12 02:11:44 +00:00
invoke-virtual {v5}, Ljava/util/zip/Inflater;->reset()V
:cond_8
2020-11-16 01:00:50 +00:00
iget-object v5, v1, Ld0/h0/n/c;->d:Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v5, v4}, Le0/e;->e0(Le0/x;)J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v5, v1, Ld0/h0/n/c;->d:Le0/e;
2020-11-12 02:11:44 +00:00
const v6, 0xffff
2020-11-16 01:00:50 +00:00
invoke-virtual {v5, v6}, Le0/e;->L(I)Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v5, v1, Ld0/h0/n/c;->e:Ljava/util/zip/Inflater;
2020-11-12 02:11:44 +00:00
invoke-virtual {v5}, Ljava/util/zip/Inflater;->getBytesRead()J
move-result-wide v5
2020-11-16 01:00:50 +00:00
iget-object v7, v1, Ld0/h0/n/c;->d:Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-wide v7, v7, Le0/e;->e:J
2020-11-12 02:11:44 +00:00
add-long/2addr v5, v7
:cond_9
2020-11-16 01:00:50 +00:00
iget-object v7, v1, Ld0/h0/n/c;->f:Le0/m;
2020-11-12 02:11:44 +00:00
const-wide v8, 0x7fffffffffffffffL
2020-11-16 01:00:50 +00:00
invoke-virtual {v7, v4, v8, v9}, Le0/m;->a(Le0/e;J)J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v7, v1, Ld0/h0/n/c;->e:Ljava/util/zip/Inflater;
2020-11-12 02:11:44 +00:00
invoke-virtual {v7}, Ljava/util/zip/Inflater;->getBytesRead()J
move-result-wide v7
cmp-long v9, v7, v5
if-ltz v9, :cond_9
goto :goto_5
:cond_a
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Failed requirement."
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_b
:goto_5
if-ne v2, v3, :cond_c
2020-11-16 01:00:50 +00:00
iget-object v1, v0, Ld0/h0/n/h;->q:Ld0/h0/n/h$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, v0, Ld0/h0/n/h;->k:Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v0}, Le0/e;->s()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
move-result-object v0
2020-11-16 01:00:50 +00:00
invoke-interface {v1, v0}, Ld0/h0/n/h$a;->c(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
goto/16 :goto_0
:cond_c
2020-11-16 01:00:50 +00:00
iget-object v1, v0, Ld0/h0/n/h;->q:Ld0/h0/n/h$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, v0, Ld0/h0/n/h;->k:Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v0}, Le0/e;->o()Lokio/ByteString;
2020-11-12 02:11:44 +00:00
move-result-object v0
2020-11-16 01:00:50 +00:00
invoke-interface {v1, v0}, Ld0/h0/n/h$a;->b(Lokio/ByteString;)V
2020-11-12 02:11:44 +00:00
goto/16 :goto_0
:cond_d
:goto_6
2020-11-16 01:00:50 +00:00
iget-boolean v4, v0, Ld0/h0/n/h;->d:Z
2020-11-12 02:11:44 +00:00
if-nez v4, :cond_f
2020-11-16 01:00:50 +00:00
invoke-virtual {v0}, Ld0/h0/n/h;->b()V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-boolean v4, v0, Ld0/h0/n/h;->h:Z
2020-11-12 02:11:44 +00:00
if-nez v4, :cond_e
goto :goto_7
:cond_e
2020-11-16 01:00:50 +00:00
invoke-virtual {v0}, Ld0/h0/n/h;->a()V
2020-11-12 02:11:44 +00:00
goto :goto_6
:cond_f
:goto_7
2020-11-16 01:00:50 +00:00
iget v4, v0, Ld0/h0/n/h;->e:I
2020-11-12 02:11:44 +00:00
if-nez v4, :cond_10
goto/16 :goto_1
:cond_10
new-instance v1, Ljava/net/ProtocolException;
const-string v2, "Expected continuation opcode. Got: "
2020-11-16 01:00:50 +00:00
invoke-static {v2}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-12 02:11:44 +00:00
move-result-object v2
2020-11-16 01:00:50 +00:00
iget v0, v0, Ld0/h0/n/h;->e:I
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v0}, Ld0/h0/c;->C(I)Ljava/lang/String;
2020-11-12 02:11:44 +00:00
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v1
:cond_11
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_12
2020-11-16 01:00:50 +00:00
invoke-static {}, Lz/n/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
throw v1
:cond_13
return-void
.end method
.method public final l()V
2020-11-16 01:00:50 +00:00
.locals 5
2020-11-14 02:19:59 +00:00
2020-11-16 01:00:50 +00:00
sget-boolean v0, Ld0/h0/c;->g:Z
2020-11-14 02:19:59 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v0, :cond_1
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
2020-11-12 02:11:44 +00:00
if-eqz v0, :cond_0
2020-11-16 01:00:50 +00:00
goto :goto_0
:cond_0
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "Thread "
invoke-static {v1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v2
const-string v3, "Thread.currentThread()"
invoke-static {v2, v3}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, " MUST hold lock on "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
:cond_1
:goto_0
iget-object v0, p0, Ld0/h0/n/d;->c:Ld0/h0/f/a;
if-eqz v0, :cond_2
iget-object v1, p0, Ld0/h0/n/d;->f:Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
const-wide/16 v2, 0x0
2020-11-16 01:00:50 +00:00
const/4 v4, 0x2
2020-11-14 02:19:59 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v1, v0, v2, v3, v4}, Ld0/h0/f/c;->d(Ld0/h0/f/c;Ld0/h0/f/a;JI)V
:cond_2
2020-11-12 02:11:44 +00:00
return-void
.end method
.method public final m()Z
.locals 28
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v15, p0
new-instance v0, Lkotlin/jvm/internal/Ref$ObjectRef;
invoke-direct {v0}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
const/4 v14, 0x0
iput-object v14, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
new-instance v13, Lkotlin/jvm/internal/Ref$IntRef;
invoke-direct {v13}, Lkotlin/jvm/internal/Ref$IntRef;-><init>()V
const/4 v1, -0x1
iput v1, v13, Lkotlin/jvm/internal/Ref$IntRef;->element:I
new-instance v12, Lkotlin/jvm/internal/Ref$ObjectRef;
invoke-direct {v12}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
iput-object v14, v12, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
new-instance v11, Lkotlin/jvm/internal/Ref$ObjectRef;
invoke-direct {v11}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
iput-object v14, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
new-instance v10, Lkotlin/jvm/internal/Ref$ObjectRef;
invoke-direct {v10}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
iput-object v14, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
new-instance v9, Lkotlin/jvm/internal/Ref$ObjectRef;
invoke-direct {v9}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
iput-object v14, v9, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
monitor-enter p0
:try_start_0
2020-11-16 01:00:50 +00:00
iget-boolean v2, v15, Ld0/h0/n/d;->o:Z
2020-11-12 02:11:44 +00:00
:try_end_0
2020-11-16 01:00:50 +00:00
.catchall {:try_start_0 .. :try_end_0} :catchall_5
2020-11-12 02:11:44 +00:00
const/4 v3, 0x0
if-eqz v2, :cond_0
monitor-exit p0
return v3
:cond_0
:try_start_1
2020-11-16 01:00:50 +00:00
iget-object v8, v15, Ld0/h0/n/d;->e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v2, v15, Ld0/h0/n/d;->i:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
invoke-virtual {v2}, Ljava/util/ArrayDeque;->poll()Ljava/lang/Object;
move-result-object v2
move-object v7, v2
check-cast v7, Lokio/ByteString;
if-nez v7, :cond_4
2020-11-16 01:00:50 +00:00
iget-object v2, v15, Ld0/h0/n/d;->j:Ljava/util/ArrayDeque;
2020-11-12 02:11:44 +00:00
invoke-virtual {v2}, Ljava/util/ArrayDeque;->poll()Ljava/lang/Object;
move-result-object v2
iput-object v2, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-16 01:00:50 +00:00
instance-of v4, v2, Ld0/h0/n/d$a;
2020-11-12 02:11:44 +00:00
if-eqz v4, :cond_3
2020-11-16 01:00:50 +00:00
iget v2, v15, Ld0/h0/n/d;->m:I
2020-11-12 02:11:44 +00:00
iput v2, v13, Lkotlin/jvm/internal/Ref$IntRef;->element:I
2020-11-16 01:00:50 +00:00
iget-object v3, v15, Ld0/h0/n/d;->n:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
iput-object v3, v12, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
if-eq v2, v1, :cond_1
2020-11-16 01:00:50 +00:00
iget-object v1, v15, Ld0/h0/n/d;->h:Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
iput-object v1, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-16 01:00:50 +00:00
iput-object v14, v15, Ld0/h0/n/d;->h:Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v1, v15, Ld0/h0/n/d;->d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
iput-object v1, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-16 01:00:50 +00:00
iput-object v14, v15, Ld0/h0/n/d;->d:Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v1, v15, Ld0/h0/n/d;->e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
iput-object v1, v9, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-16 01:00:50 +00:00
iput-object v14, v15, Ld0/h0/n/d;->e:Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v1, v15, Ld0/h0/n/d;->f:Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v1}, Ld0/h0/f/c;->f()V
2020-11-12 02:11:44 +00:00
goto/16 :goto_0
:cond_1
iget-object v1, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
if-eqz v1, :cond_2
2020-11-16 01:00:50 +00:00
check-cast v1, Ld0/h0/n/d$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-wide v1, v1, Ld0/h0/n/d$a;->c:J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v6, v15, Ld0/h0/n/d;->f:Ld0/h0/f/c;
2020-11-12 02:11:44 +00:00
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
2020-11-16 01:00:50 +00:00
iget-object v4, v15, Ld0/h0/n/d;->g:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v4, " cancel"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
sget-object v3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v3, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
move-result-wide v2
const/4 v5, 0x1
2020-11-16 01:00:50 +00:00
new-instance v1, Ld0/h0/n/d$f;
2020-11-12 02:11:44 +00:00
move-object/from16 v16, v1
move-object/from16 v1, v16
move-wide/from16 v17, v2
move-object v2, v4
move v3, v5
move-object/from16 v19, v6
move-object/from16 v6, p0
move-object/from16 v20, v7
move-object v7, v8
move-object/from16 v21, v8
move-object/from16 v8, v20
move-object/from16 v22, v9
move-object v9, v0
move-object/from16 v23, v10
move-object v10, v13
move-object/from16 v24, v11
move-object v11, v12
move-object/from16 v25, v12
move-object/from16 v12, v24
move-object/from16 v26, v13
move-object/from16 v13, v23
move-object/from16 v27, v14
move-object/from16 v14, v22
2020-11-16 01:00:50 +00:00
invoke-direct/range {v1 .. v14}, Ld0/h0/n/d$f;-><init>(Ljava/lang/String;ZLjava/lang/String;ZLd0/h0/n/d;Ld0/h0/n/i;Lokio/ByteString;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$IntRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
2020-11-12 02:11:44 +00:00
move-object/from16 v4, v16
move-wide/from16 v2, v17
move-object/from16 v1, v19
2020-11-16 01:00:50 +00:00
invoke-virtual {v1, v4, v2, v3}, Ld0/h0/f/c;->c(Ld0/h0/f/a;J)V
2020-11-12 02:11:44 +00:00
goto :goto_1
:cond_2
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type okhttp3.internal.ws.RealWebSocket.Close"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_1
2020-11-16 01:00:50 +00:00
.catchall {:try_start_1 .. :try_end_1} :catchall_5
2020-11-12 02:11:44 +00:00
:cond_3
move-object/from16 v20, v7
move-object/from16 v21, v8
move-object/from16 v22, v9
move-object/from16 v23, v10
move-object/from16 v24, v11
move-object/from16 v25, v12
move-object/from16 v26, v13
move-object/from16 v27, v14
if-nez v2, :cond_5
monitor-exit p0
return v3
:cond_4
:goto_0
move-object/from16 v20, v7
move-object/from16 v21, v8
move-object/from16 v22, v9
move-object/from16 v23, v10
move-object/from16 v24, v11
move-object/from16 v25, v12
move-object/from16 v26, v13
move-object/from16 v27, v14
:cond_5
:goto_1
monitor-exit p0
2020-11-16 01:00:50 +00:00
const/4 v1, 0x1
2020-11-12 02:11:44 +00:00
move-object/from16 v2, v20
if-eqz v2, :cond_7
2020-11-16 01:00:50 +00:00
move-object/from16 v3, v21
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v3, :cond_6
2020-11-12 02:11:44 +00:00
:try_start_2
const-string v0, "payload"
2020-11-16 01:00:50 +00:00
invoke-static {v2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
const/16 v0, 0xa
2020-11-16 01:00:50 +00:00
invoke-virtual {v3, v0, v2}, Ld0/h0/n/i;->a(ILokio/ByteString;)V
2020-11-12 02:11:44 +00:00
goto :goto_2
:cond_6
2020-11-16 01:00:50 +00:00
invoke-static {}, Lz/n/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
:try_end_2
2020-11-16 01:00:50 +00:00
.catchall {:try_start_2 .. :try_end_2} :catchall_4
2020-11-12 02:11:44 +00:00
throw v27
:cond_7
2020-11-16 01:00:50 +00:00
move-object/from16 v3, v21
2020-11-12 02:11:44 +00:00
:try_start_3
2020-11-16 01:00:50 +00:00
iget-object v2, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
instance-of v2, v2, Ld0/h0/n/d$b;
2020-11-12 02:11:44 +00:00
if-eqz v2, :cond_a
2020-11-16 01:00:50 +00:00
iget-object v0, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
if-eqz v0, :cond_9
2020-11-16 01:00:50 +00:00
check-cast v0, Ld0/h0/n/d$b;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v3, :cond_8
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget v2, v0, Ld0/h0/n/d$b;->a:I
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v4, v0, Ld0/h0/n/d$b;->b:Lokio/ByteString;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v3, v2, v4}, Ld0/h0/n/i;->b(ILokio/ByteString;)V
2020-11-12 02:11:44 +00:00
monitor-enter p0
:try_end_3
2020-11-16 01:00:50 +00:00
.catchall {:try_start_3 .. :try_end_3} :catchall_4
2020-11-12 02:11:44 +00:00
:try_start_4
2020-11-16 01:00:50 +00:00
iget-wide v2, v15, Ld0/h0/n/d;->k:J
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, v0, Ld0/h0/n/d$b;->b:Lokio/ByteString;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v0}, Lokio/ByteString;->i()I
2020-11-12 02:11:44 +00:00
move-result v0
2020-11-16 01:00:50 +00:00
int-to-long v4, v0
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
sub-long/2addr v2, v4
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iput-wide v2, v15, Ld0/h0/n/d;->k:J
2020-11-12 02:11:44 +00:00
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
:try_start_5
monitor-exit p0
:goto_2
2020-11-16 01:00:50 +00:00
move-object/from16 v2, v24
2020-11-12 02:11:44 +00:00
goto :goto_3
:catchall_0
move-exception v0
monitor-exit p0
throw v0
:cond_8
2020-11-16 01:00:50 +00:00
invoke-static {}, Lz/n/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
:try_end_5
2020-11-16 01:00:50 +00:00
.catchall {:try_start_5 .. :try_end_5} :catchall_4
2020-11-12 02:11:44 +00:00
throw v27
:cond_9
:try_start_6
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type okhttp3.internal.ws.RealWebSocket.Message"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
:cond_a
2020-11-16 01:00:50 +00:00
iget-object v2, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
instance-of v2, v2, Ld0/h0/n/d$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v2, :cond_16
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v0, :cond_15
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
check-cast v0, Ld0/h0/n/d$a;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v3, :cond_14
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget v2, v0, Ld0/h0/n/d$a;->a:I
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, v0, Ld0/h0/n/d$a;->b:Lokio/ByteString;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
sget-object v4, Lokio/ByteString;->f:Lokio/ByteString;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-nez v2, :cond_b
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v0, :cond_e
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_b
if-eqz v2, :cond_c
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v2}, Ld0/h0/n/g;->c(I)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_c
new-instance v4, Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-direct {v4}, Le0/e;-><init>()V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v4, v2}, Le0/e;->M(I)Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v0, :cond_d
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v4, v0}, Le0/e;->B(Lokio/ByteString;)Le0/e;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_d
invoke-virtual {v4}, Le0/e;->o()Lokio/ByteString;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-result-object v4
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_4
2020-11-14 02:19:59 +00:00
2020-11-16 01:00:50 +00:00
:cond_e
const/16 v0, 0x8
:try_start_7
invoke-virtual {v3, v0, v4}, Ld0/h0/n/i;->a(ILokio/ByteString;)V
2020-11-12 02:11:44 +00:00
:try_end_7
2020-11-16 01:00:50 +00:00
.catchall {:try_start_7 .. :try_end_7} :catchall_2
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:try_start_8
iput-boolean v1, v3, Ld0/h0/n/i;->f:Z
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_4
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v2, v24
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:try_start_9
iget-object v0, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
check-cast v0, Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v0, :cond_10
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, v15, Ld0/h0/n/d;->u:Lokhttp3/WebSocketListener;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v3, v26
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget v3, v3, Lkotlin/jvm/internal/Ref$IntRef;->element:I
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v4, v25
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v4, v4, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
check-cast v4, Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v4, :cond_f
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-virtual {v0, v15, v3, v4}, Lokhttp3/WebSocketListener;->onClosed(Lokhttp3/WebSocket;ILjava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
goto :goto_3
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_f
invoke-static {}, Lz/n/c/j;->throwNpe()V
:try_end_9
.catchall {:try_start_9 .. :try_end_9} :catchall_1
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
throw v27
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_10
:goto_3
iget-object v0, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
check-cast v0, Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v0, :cond_11
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v0}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_11
move-object/from16 v4, v23
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, v4, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
check-cast v0, Ld0/h0/n/h;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v0, :cond_12
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v0}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_12
move-object/from16 v5, v22
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
iget-object v0, v5, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
check-cast v0, Ld0/h0/n/i;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v0, :cond_13
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v0}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_13
return v1
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:catchall_1
move-exception v0
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v5, v22
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v4, v23
2020-11-14 02:19:59 +00:00
2020-11-16 01:00:50 +00:00
goto :goto_4
:catchall_2
2020-11-12 02:11:44 +00:00
move-exception v0
2020-11-16 01:00:50 +00:00
move-object/from16 v5, v22
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v4, v23
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v2, v24
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object v6, v0
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:try_start_a
iput-boolean v1, v3, Ld0/h0/n/i;->f:Z
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
throw v6
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_14
move-object/from16 v5, v22
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v4, v23
2020-11-13 19:18:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v2, v24
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {}, Lz/n/c/j;->throwNpe()V
:try_end_a
.catchall {:try_start_a .. :try_end_a} :catchall_3
2020-11-12 02:11:44 +00:00
throw v27
2020-11-16 01:00:50 +00:00
:cond_15
move-object/from16 v5, v22
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v4, v23
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v2, v24
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:try_start_b
2020-11-12 02:11:44 +00:00
new-instance v0, Lkotlin/TypeCastException;
2020-11-16 01:00:50 +00:00
const-string v1, "null cannot be cast to non-null type okhttp3.internal.ws.RealWebSocket.Close"
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
throw v0
2020-11-16 01:00:50 +00:00
:cond_16
move-object/from16 v5, v22
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v4, v23
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v2, v24
2020-11-12 02:11:44 +00:00
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
2020-11-16 01:00:50 +00:00
:try_end_b
.catchall {:try_start_b .. :try_end_b} :catchall_3
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
:catchall_3
2020-11-13 19:18:44 +00:00
move-exception v0
2020-11-16 01:00:50 +00:00
goto :goto_4
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
:catchall_4
2020-11-14 03:19:56 +00:00
move-exception v0
2020-11-16 01:00:50 +00:00
move-object/from16 v5, v22
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v4, v23
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
move-object/from16 v2, v24
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
:goto_4
iget-object v1, v2, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
check-cast v1, Ld0/h0/n/d$c;
2020-11-12 02:11:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v1, :cond_17
2020-11-13 19:18:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v1}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-13 19:18:44 +00:00
2020-11-16 01:00:50 +00:00
:cond_17
iget-object v1, v4, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-13 19:18:44 +00:00
2020-11-16 01:00:50 +00:00
check-cast v1, Ld0/h0/n/h;
2020-11-13 19:18:44 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v1, :cond_18
2020-11-13 19:18:44 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v1}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
:cond_18
iget-object v1, v5, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
check-cast v1, Ld0/h0/n/i;
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
if-eqz v1, :cond_19
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
invoke-static {v1}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
2020-11-14 03:19:56 +00:00
2020-11-16 01:00:50 +00:00
:cond_19
2020-11-12 02:11:44 +00:00
throw v0
2020-11-16 01:00:50 +00:00
:catchall_5
2020-11-12 02:11:44 +00:00
move-exception v0
monitor-exit p0
throw v0
.end method