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

551 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;
# 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
.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
iget-object p1, p1, Lokhttp3/j;->bYj:Ljava/util/Deque;
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
invoke-virtual {v0}, Lokhttp3/internal/b/c;->HS()Z
move-result v1
if-eqz v1, :cond_2
invoke-virtual {p3}, Lokhttp3/internal/b/g;->HX()Lokhttp3/internal/b/c;
move-result-object v1
if-eq v0, v1, :cond_2
sget-boolean p1, Lokhttp3/internal/b/g;->$assertionsDisabled:Z
if-nez p1, :cond_4
iget-object p1, p3, Lokhttp3/internal/b/g;->bZN:Lokhttp3/j;
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
iget-object p1, p3, Lokhttp3/internal/b/g;->ccp:Lokhttp3/internal/c/c;
if-nez p1, :cond_5
iget-object p1, p3, Lokhttp3/internal/b/g;->ccm:Lokhttp3/internal/b/c;
iget-object p1, p1, Lokhttp3/internal/b/c;->cbW:Ljava/util/List;
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p1
const/4 p2, 0x1
if-ne p1, p2, :cond_5
iget-object p1, p3, Lokhttp3/internal/b/g;->ccm:Lokhttp3/internal/b/c;
iget-object p1, p1, Lokhttp3/internal/b/c;->cbW:Ljava/util/List;
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
iput-object v0, p3, Lokhttp3/internal/b/g;->ccm:Lokhttp3/internal/b/c;
iget-object p3, v0, Lokhttp3/internal/b/c;->cbW:Ljava/util/List;
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
.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
iget-object p1, p1, Lokhttp3/j;->bYj:Ljava/util/Deque;
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
.method public final a(Lokhttp3/j;)Lokhttp3/internal/b/d;
.locals 0
iget-object p1, p1, Lokhttp3/j;->bYk:Lokhttp3/internal/b/d;
return-object p1
.end method
.method public final a(Lokhttp3/e;)Lokhttp3/internal/b/g;
.locals 0
check-cast p1, Lokhttp3/v;
iget-object p1, p1, Lokhttp3/v;->cad:Lokhttp3/internal/c/j;
iget-object p1, p1, Lokhttp3/internal/c/j;->ccu:Lokhttp3/internal/b/g;
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
invoke-virtual {p1, v2, p2}, Lokhttp3/Headers$a;->ai(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
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
invoke-virtual {p1, v0, p2}, Lokhttp3/Headers$a;->ai(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
return-void
:cond_1
const-string v0, ""
invoke-virtual {p1, v0, p2}, Lokhttp3/Headers$a;->ai(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
return-void
.end method
.method public final a(Lokhttp3/Headers$a;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
invoke-virtual {p1, p2, p3}, Lokhttp3/Headers$a;->ai(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
return-void
.end method
.method public final a(Lokhttp3/k;Ljavax/net/ssl/SSLSocket;Z)V
.locals 5
iget-object v0, p1, Lokhttp3/k;->bYv:[Ljava/lang/String;
if-eqz v0, :cond_0
sget-object v0, Lokhttp3/h;->bVV:Ljava/util/Comparator;
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
move-result-object v1
iget-object v2, p1, Lokhttp3/k;->bYv:[Ljava/lang/String;
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
iget-object v1, p1, Lokhttp3/k;->bYw:[Ljava/lang/String;
if-eqz v1, :cond_1
sget-object v1, Lokhttp3/internal/c;->bDp:Ljava/util/Comparator;
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
move-result-object v2
iget-object v3, p1, Lokhttp3/k;->bYw:[Ljava/lang/String;
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
sget-object v3, Lokhttp3/h;->bVV:Ljava/util/Comparator;
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
invoke-virtual {p3, v0}, Lokhttp3/k$a;->d([Ljava/lang/String;)Lokhttp3/k$a;
move-result-object p1
invoke-virtual {p1, v1}, Lokhttp3/k$a;->e([Ljava/lang/String;)Lokhttp3/k$a;
move-result-object p1
invoke-virtual {p1}, Lokhttp3/k$a;->Hb()Lokhttp3/k;
move-result-object p1
iget-object p3, p1, Lokhttp3/k;->bYw:[Ljava/lang/String;
if-eqz p3, :cond_3
iget-object p3, p1, Lokhttp3/k;->bYw:[Ljava/lang/String;
invoke-virtual {p2, p3}, Ljavax/net/ssl/SSLSocket;->setEnabledProtocols([Ljava/lang/String;)V
:cond_3
iget-object p3, p1, Lokhttp3/k;->bYv:[Ljava/lang/String;
if-eqz p3, :cond_4
iget-object p1, p1, Lokhttp3/k;->bYv:[Ljava/lang/String;
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
iget-boolean v0, p2, Lokhttp3/internal/b/c;->cbT:Z
if-nez v0, :cond_3
iget v0, p1, Lokhttp3/j;->bYg:I
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
iget-object p1, p1, Lokhttp3/j;->bYj:Ljava/util/Deque;
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
iget-boolean v0, p1, Lokhttp3/j;->bYl:Z
if-nez v0, :cond_2
const/4 v0, 0x1
iput-boolean v0, p1, Lokhttp3/j;->bYl:Z
sget-object v0, Lokhttp3/j;->executor:Ljava/util/concurrent/Executor;
iget-object v1, p1, Lokhttp3/j;->bYi:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
:cond_2
iget-object p1, p1, Lokhttp3/j;->bYj:Ljava/util/Deque;
invoke-interface {p1, p2}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
return-void
.end method