apkfuckery/com.discord/smali/okhttp3/t$1.smali

570 lines
12 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Lokhttp3/t$1;
.super Lokhttp3/internal/a;
2019-02-04 20:29:01 +00:00
.source "OkHttpClient.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/t;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# direct methods
.method constructor <init>()V
.locals 0
invoke-direct {p0}, Lokhttp3/internal/a;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Lokhttp3/Response$a;)I
.locals 0
iget p1, p1, Lokhttp3/Response$a;->code:I
return p1
.end method
2019-02-17 02:24:41 +00:00
.method public final a(Lokhttp3/e;Ljava/io/IOException;)Ljava/io/IOException;
.locals 0
.param p2 # Ljava/io/IOException;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
check-cast p1, Lokhttp3/v;
invoke-virtual {p1, p2}, Lokhttp3/v;->b(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object p1
return-object p1
.end method
2019-02-04 20:08:30 +00:00
.method public final a(Lokhttp3/j;Lokhttp3/a;Lokhttp3/internal/b/g;)Ljava/net/Socket;
.locals 2
sget-boolean v0, Lokhttp3/j;->$assertionsDisabled:Z
if-nez v0, :cond_1
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_1
:goto_0
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/j;->bmh:Ljava/util/Deque;
2019-02-04 20:08:30 +00:00
invoke-interface {p1}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_2
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_6
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokhttp3/internal/b/c;
invoke-virtual {v0, p2, v1}, Lokhttp3/internal/b/c;->a(Lokhttp3/a;Lokhttp3/y;)Z
move-result v1
if-eqz v1, :cond_2
2019-03-08 06:19:26 +00:00
invoke-virtual {v0}, Lokhttp3/internal/b/c;->AQ()Z
2019-02-04 20:08:30 +00:00
move-result v1
if-eqz v1, :cond_2
2019-03-08 06:19:26 +00:00
invoke-virtual {p3}, Lokhttp3/internal/b/g;->AV()Lokhttp3/internal/b/c;
2019-02-04 20:08:30 +00:00
move-result-object v1
if-eq v0, v1, :cond_2
sget-boolean p1, Lokhttp3/internal/b/g;->$assertionsDisabled:Z
if-nez p1, :cond_4
2019-03-14 20:04:00 +00:00
iget-object p1, p3, Lokhttp3/internal/b/g;->bnM:Lokhttp3/j;
2019-02-04 20:08:30 +00:00
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_3
goto :goto_1
:cond_3
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_4
:goto_1
2019-03-14 20:04:00 +00:00
iget-object p1, p3, Lokhttp3/internal/b/g;->bqs:Lokhttp3/internal/c/c;
2019-02-04 20:08:30 +00:00
if-nez p1, :cond_5
2019-03-14 20:04:00 +00:00
iget-object p1, p3, Lokhttp3/internal/b/g;->bqp:Lokhttp3/internal/b/c;
2019-02-04 20:08:30 +00:00
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/internal/b/c;->bpZ:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p1
const/4 p2, 0x1
if-ne p1, p2, :cond_5
2019-03-14 20:04:00 +00:00
iget-object p1, p3, Lokhttp3/internal/b/g;->bqp:Lokhttp3/internal/b/c;
2019-02-04 20:08:30 +00:00
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/internal/b/c;->bpZ:Ljava/util/List;
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/ref/Reference;
invoke-virtual {p3, p2, v1, v1}, Lokhttp3/internal/b/g;->a(ZZZ)Ljava/net/Socket;
move-result-object p2
2019-03-14 20:04:00 +00:00
iput-object v0, p3, Lokhttp3/internal/b/g;->bqp:Lokhttp3/internal/b/c;
2019-02-04 20:08:30 +00:00
2019-03-14 20:04:00 +00:00
iget-object p3, v0, Lokhttp3/internal/b/c;->bpZ:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-interface {p3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p2
:cond_5
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
throw p1
:cond_6
return-object v1
.end method
.method public final a(Lokhttp3/t;Lokhttp3/w;)Lokhttp3/e;
.locals 1
const/4 v0, 0x1
invoke-static {p1, p2, v0}, Lokhttp3/v;->a(Lokhttp3/t;Lokhttp3/w;Z)Lokhttp3/v;
move-result-object p1
return-object p1
.end method
2019-02-27 21:13:14 +00:00
.method public final a(Lokhttp3/j;Lokhttp3/a;Lokhttp3/internal/b/g;Lokhttp3/y;)Lokhttp3/internal/b/c;
.locals 2
sget-boolean v0, Lokhttp3/j;->$assertionsDisabled:Z
if-nez v0, :cond_1
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_1
:goto_0
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/j;->bmh:Ljava/util/Deque;
2019-02-27 21:13:14 +00:00
invoke-interface {p1}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_2
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_3
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokhttp3/internal/b/c;
invoke-virtual {v0, p2, p4}, Lokhttp3/internal/b/c;->a(Lokhttp3/a;Lokhttp3/y;)Z
move-result v1
if-eqz v1, :cond_2
const/4 p1, 0x1
invoke-virtual {p3, v0, p1}, Lokhttp3/internal/b/g;->a(Lokhttp3/internal/b/c;Z)V
return-object v0
:cond_3
const/4 p1, 0x0
return-object p1
.end method
2019-02-04 20:08:30 +00:00
.method public final a(Lokhttp3/j;)Lokhttp3/internal/b/d;
.locals 0
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/j;->bmi:Lokhttp3/internal/b/d;
2019-02-04 20:08:30 +00:00
return-object p1
.end method
.method public final a(Lokhttp3/e;)Lokhttp3/internal/b/g;
.locals 0
check-cast p1, Lokhttp3/v;
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/v;->bod:Lokhttp3/internal/c/j;
2019-02-04 20:08:30 +00:00
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/internal/c/j;->bqz:Lokhttp3/internal/b/g;
2019-02-04 20:08:30 +00:00
return-object p1
.end method
.method public final a(Lokhttp3/Headers$a;Ljava/lang/String;)V
.locals 3
const-string v0, ":"
const/4 v1, 0x1
invoke-virtual {p2, v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I
move-result v0
const/4 v2, -0x1
if-eq v0, v2, :cond_0
const/4 v2, 0x0
invoke-virtual {p2, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v2
add-int/2addr v0, v1
invoke-virtual {p2, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p2
2019-02-27 21:13:14 +00:00
invoke-virtual {p1, v2, p2}, Lokhttp3/Headers$a;->af(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
2019-02-04 20:08:30 +00:00
return-void
:cond_0
const-string v0, ":"
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_1
const-string v0, ""
invoke-virtual {p2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p2
2019-02-27 21:13:14 +00:00
invoke-virtual {p1, v0, p2}, Lokhttp3/Headers$a;->af(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
2019-02-04 20:08:30 +00:00
return-void
:cond_1
const-string v0, ""
2019-02-27 21:13:14 +00:00
invoke-virtual {p1, v0, p2}, Lokhttp3/Headers$a;->af(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public final a(Lokhttp3/Headers$a;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
2019-02-27 21:13:14 +00:00
invoke-virtual {p1, p2, p3}, Lokhttp3/Headers$a;->af(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
2019-02-27 00:16:35 +00:00
return-void
.end method
2019-02-04 20:08:30 +00:00
.method public final a(Lokhttp3/k;Ljavax/net/ssl/SSLSocket;Z)V
.locals 5
2019-03-14 20:04:00 +00:00
iget-object v0, p1, Lokhttp3/k;->bmt:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-03-14 20:04:00 +00:00
sget-object v0, Lokhttp3/h;->bjN:Ljava/util/Comparator;
2019-02-04 20:08:30 +00:00
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
move-result-object v1
2019-03-14 20:04:00 +00:00
iget-object v2, p1, Lokhttp3/k;->bmt:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-static {v0, v1, v2}, Lokhttp3/internal/c;->a(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
move-result-object v0
:goto_0
2019-03-14 20:04:00 +00:00
iget-object v1, p1, Lokhttp3/k;->bmu:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_1
2019-03-14 20:04:00 +00:00
sget-object v1, Lokhttp3/internal/c;->aRo:Ljava/util/Comparator;
2019-02-04 20:08:30 +00:00
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
move-result-object v2
2019-03-14 20:04:00 +00:00
iget-object v3, p1, Lokhttp3/k;->bmu:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-static {v1, v2, v3}, Lokhttp3/internal/c;->a(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
move-result-object v1
goto :goto_1
:cond_1
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
move-result-object v1
:goto_1
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getSupportedCipherSuites()[Ljava/lang/String;
move-result-object v2
2019-03-14 20:04:00 +00:00
sget-object v3, Lokhttp3/h;->bjN:Ljava/util/Comparator;
2019-02-04 20:08:30 +00:00
const-string v4, "TLS_FALLBACK_SCSV"
invoke-static {v3, v2, v4}, Lokhttp3/internal/c;->a(Ljava/util/Comparator;[Ljava/lang/String;Ljava/lang/String;)I
move-result v3
if-eqz p3, :cond_2
const/4 p3, -0x1
if-eq v3, p3, :cond_2
aget-object p3, v2, v3
invoke-static {v0, p3}, Lokhttp3/internal/c;->c([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
move-result-object v0
:cond_2
new-instance p3, Lokhttp3/k$a;
invoke-direct {p3, p1}, Lokhttp3/k$a;-><init>(Lokhttp3/k;)V
2019-02-04 20:32:01 +00:00
invoke-virtual {p3, v0}, Lokhttp3/k$a;->c([Ljava/lang/String;)Lokhttp3/k$a;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:32:01 +00:00
invoke-virtual {p1, v1}, Lokhttp3/k$a;->d([Ljava/lang/String;)Lokhttp3/k$a;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-03-08 06:19:26 +00:00
invoke-virtual {p1}, Lokhttp3/k$a;->zY()Lokhttp3/k;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-03-14 20:04:00 +00:00
iget-object p3, p1, Lokhttp3/k;->bmu:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
if-eqz p3, :cond_3
2019-03-14 20:04:00 +00:00
iget-object p3, p1, Lokhttp3/k;->bmu:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {p2, p3}, Ljavax/net/ssl/SSLSocket;->setEnabledProtocols([Ljava/lang/String;)V
:cond_3
2019-03-14 20:04:00 +00:00
iget-object p3, p1, Lokhttp3/k;->bmt:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
if-eqz p3, :cond_4
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/k;->bmt:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {p2, p1}, Ljavax/net/ssl/SSLSocket;->setEnabledCipherSuites([Ljava/lang/String;)V
:cond_4
return-void
.end method
.method public final a(Lokhttp3/a;Lokhttp3/a;)Z
.locals 0
invoke-virtual {p1, p2}, Lokhttp3/a;->a(Lokhttp3/a;)Z
move-result p1
return p1
.end method
.method public final a(Lokhttp3/j;Lokhttp3/internal/b/c;)Z
.locals 1
sget-boolean v0, Lokhttp3/j;->$assertionsDisabled:Z
if-nez v0, :cond_1
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_1
:goto_0
2019-03-14 20:04:00 +00:00
iget-boolean v0, p2, Lokhttp3/internal/b/c;->bpW:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_3
2019-03-14 20:04:00 +00:00
iget v0, p1, Lokhttp3/j;->bme:I
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
goto :goto_1
:cond_2
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
const/4 p1, 0x0
return p1
:cond_3
:goto_1
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/j;->bmh:Ljava/util/Deque;
2019-02-04 20:08:30 +00:00
invoke-interface {p1, p2}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z
const/4 p1, 0x1
return p1
.end method
.method public final b(Lokhttp3/j;Lokhttp3/internal/b/c;)V
.locals 2
sget-boolean v0, Lokhttp3/j;->$assertionsDisabled:Z
if-nez v0, :cond_1
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_1
:goto_0
2019-03-14 20:04:00 +00:00
iget-boolean v0, p1, Lokhttp3/j;->bmj:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
const/4 v0, 0x1
2019-03-14 20:04:00 +00:00
iput-boolean v0, p1, Lokhttp3/j;->bmj:Z
2019-02-04 20:08:30 +00:00
sget-object v0, Lokhttp3/j;->executor:Ljava/util/concurrent/Executor;
2019-03-14 20:04:00 +00:00
iget-object v1, p1, Lokhttp3/j;->bmg:Ljava/lang/Runnable;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
:cond_2
2019-03-14 20:04:00 +00:00
iget-object p1, p1, Lokhttp3/j;->bmh:Ljava/util/Deque;
2019-02-04 20:08:30 +00:00
invoke-interface {p1, p2}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
return-void
.end method