apkfuckery/com.discord/smali_classes2/o0/z.smali
2020-09-08 08:16:32 +00:00

739 lines
15 KiB
Smali

.class public final Lo0/z;
.super Ljava/lang/Object;
.source "RealCall.kt"
# interfaces
.implements Lo0/f;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lo0/z$a;
}
.end annotation
# instance fields
.field public d:Lo0/g0/d/m;
.field public e:Z
.field public final f:Lo0/x;
.field public final g:Lo0/a0;
.field public final h:Z
# direct methods
.method public constructor <init>(Lo0/x;Lo0/a0;ZLkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lo0/z;->f:Lo0/x;
iput-object p2, p0, Lo0/z;->g:Lo0/a0;
iput-boolean p3, p0, Lo0/z;->h:Z
return-void
.end method
# virtual methods
.method public F(Lo0/g;)V
.locals 6
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lo0/z;->e:Z
const/4 v1, 0x1
xor-int/2addr v0, v1
if-eqz v0, :cond_6
iput-boolean v1, p0, Lo0/z;->e:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
monitor-exit p0
iget-object v0, p0, Lo0/z;->d:Lo0/g0/d/m;
const/4 v1, 0x0
if-eqz v0, :cond_5
invoke-virtual {v0}, Lo0/g0/d/m;->b()V
iget-object v0, p0, Lo0/z;->f:Lo0/x;
iget-object v0, v0, Lo0/x;->d:Lo0/q;
new-instance v2, Lo0/z$a;
invoke-direct {v2, p0, p1}, Lo0/z$a;-><init>(Lo0/z;Lo0/g;)V
monitor-enter v0
:try_start_1
iget-object p1, v0, Lo0/q;->d:Ljava/util/ArrayDeque;
invoke-virtual {p1, v2}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
iget-object p1, v2, Lo0/z$a;->f:Lo0/z;
iget-boolean p1, p1, Lo0/z;->h:Z
if-nez p1, :cond_4
invoke-virtual {v2}, Lo0/z$a;->a()Ljava/lang/String;
move-result-object p1
iget-object v3, v0, Lo0/q;->e:Ljava/util/ArrayDeque;
invoke-virtual {v3}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
move-result-object v3
:cond_0
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_1
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lo0/z$a;
invoke-virtual {v4}, Lo0/z$a;->a()Ljava/lang/String;
move-result-object v5
invoke-static {v5, p1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_0
:goto_0
move-object v1, v4
goto :goto_1
:cond_1
iget-object v3, v0, Lo0/q;->d:Ljava/util/ArrayDeque;
invoke-virtual {v3}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
move-result-object v3
:cond_2
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_3
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lo0/z$a;
invoke-virtual {v4}, Lo0/z$a;->a()Ljava/lang/String;
move-result-object v5
invoke-static {v5, p1}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_2
goto :goto_0
:cond_3
:goto_1
if-eqz v1, :cond_4
iget-object p1, v1, Lo0/z$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
iput-object p1, v2, Lo0/z$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:cond_4
monitor-exit v0
invoke-virtual {v0}, Lo0/q;->d()Z
return-void
:catchall_0
move-exception p1
monitor-exit v0
throw p1
:cond_5
const-string p1, "transmitter"
invoke-static {p1}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v1
:cond_6
:try_start_2
const-string p1, "Already Executed"
new-instance v0, Ljava/lang/IllegalStateException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
:catchall_1
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final b()Lokhttp3/Response;
.locals 13
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iget-object v0, p0, Lo0/z;->f:Lo0/x;
iget-object v0, v0, Lo0/x;->f:Ljava/util/List;
invoke-static {v1, v0}, Lf/n/a/k/a;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
new-instance v0, Lo0/g0/e/i;
iget-object v2, p0, Lo0/z;->f:Lo0/x;
invoke-direct {v0, v2}, Lo0/g0/e/i;-><init>(Lo0/x;)V
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
new-instance v0, Lo0/g0/e/a;
iget-object v2, p0, Lo0/z;->f:Lo0/x;
iget-object v2, v2, Lo0/x;->m:Lo0/p;
invoke-direct {v0, v2}, Lo0/g0/e/a;-><init>(Lo0/p;)V
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
new-instance v0, Lo0/g0/c/a;
iget-object v2, p0, Lo0/z;->f:Lo0/x;
const/4 v10, 0x0
if-eqz v2, :cond_9
invoke-direct {v0}, Lo0/g0/c/a;-><init>()V
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
sget-object v0, Lo0/g0/d/a;->b:Lo0/g0/d/a;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget-boolean v0, p0, Lo0/z;->h:Z
if-nez v0, :cond_0
iget-object v0, p0, Lo0/z;->f:Lo0/x;
iget-object v0, v0, Lo0/x;->g:Ljava/util/List;
invoke-static {v1, v0}, Lf/n/a/k/a;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
:cond_0
new-instance v0, Lo0/g0/e/b;
iget-boolean v2, p0, Lo0/z;->h:Z
invoke-direct {v0, v2}, Lo0/g0/e/b;-><init>(Z)V
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
new-instance v11, Lo0/g0/e/g;
iget-object v2, p0, Lo0/z;->d:Lo0/g0/d/m;
const-string v12, "transmitter"
if-eqz v2, :cond_8
const/4 v3, 0x0
const/4 v4, 0x0
iget-object v5, p0, Lo0/z;->g:Lo0/a0;
iget-object v0, p0, Lo0/z;->f:Lo0/x;
iget v7, v0, Lo0/x;->B:I
iget v8, v0, Lo0/x;->C:I
iget v9, v0, Lo0/x;->D:I
move-object v0, v11
move-object v6, p0
invoke-direct/range {v0 .. v9}, Lo0/g0/e/g;-><init>(Ljava/util/List;Lo0/g0/d/m;Lo0/g0/d/c;ILo0/a0;Lo0/f;III)V
const/4 v0, 0x0
:try_start_0
iget-object v1, p0, Lo0/z;->g:Lo0/a0;
invoke-virtual {v11, v1}, Lo0/g0/e/g;->d(Lo0/a0;)Lokhttp3/Response;
move-result-object v1
iget-object v2, p0, Lo0/z;->d:Lo0/g0/d/m;
if-eqz v2, :cond_3
invoke-virtual {v2}, Lo0/g0/d/m;->f()Z
move-result v2
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v2, :cond_2
iget-object v0, p0, Lo0/z;->d:Lo0/g0/d/m;
if-eqz v0, :cond_1
invoke-virtual {v0, v10}, Lo0/g0/d/m;->h(Ljava/io/IOException;)Ljava/io/IOException;
return-object v1
:cond_1
invoke-static {v12}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v10
:cond_2
:try_start_1
invoke-static {v1}, Lo0/g0/b;->f(Ljava/io/Closeable;)V
new-instance v1, Ljava/io/IOException;
const-string v2, "Canceled"
invoke-direct {v1, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v1
:cond_3
invoke-static {v12}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v10
:catchall_0
move-exception v1
goto :goto_0
:catch_0
move-exception v0
:try_start_2
iget-object v1, p0, Lo0/z;->d:Lo0/g0/d/m;
if-eqz v1, :cond_5
invoke-virtual {v1, v0}, Lo0/g0/d/m;->h(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
if-nez v0, :cond_4
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type kotlin.Throwable"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
:cond_4
throw v0
:cond_5
invoke-static {v12}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
throw v10
:catchall_1
move-exception v0
move-object v1, v0
const/4 v0, 0x1
:goto_0
if-nez v0, :cond_7
iget-object v0, p0, Lo0/z;->d:Lo0/g0/d/m;
if-nez v0, :cond_6
invoke-static {v12}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v10
:cond_6
invoke-virtual {v0, v10}, Lo0/g0/d/m;->h(Ljava/io/IOException;)Ljava/io/IOException;
:cond_7
throw v1
:cond_8
invoke-static {v12}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v10
:cond_9
throw v10
.end method
.method public final c()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lo0/z;->d:Lo0/g0/d/m;
if-eqz v1, :cond_2
invoke-virtual {v1}, Lo0/g0/d/m;->f()Z
move-result v1
if-eqz v1, :cond_0
const-string v1, "canceled "
goto :goto_0
:cond_0
const-string v1, ""
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Lo0/z;->h:Z
if-eqz v1, :cond_1
const-string v1, "web socket"
goto :goto_1
:cond_1
const-string v1, "call"
:goto_1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " to "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lo0/z;->g:Lo0/a0;
iget-object v1, v1, Lo0/a0;->b:Lo0/w;
invoke-virtual {v1}, Lo0/w;->i()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_2
const-string v0, "transmitter"
invoke-static {v0}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 v0, 0x0
throw v0
.end method
.method public cancel()V
.locals 1
iget-object v0, p0, Lo0/z;->d:Lo0/g0/d/m;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lo0/g0/d/m;->c()V
return-void
:cond_0
const-string v0, "transmitter"
invoke-static {v0}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 v0, 0x0
throw v0
.end method
.method public clone()Ljava/lang/Object;
.locals 5
iget-object v0, p0, Lo0/z;->f:Lo0/x;
iget-object v1, p0, Lo0/z;->g:Lo0/a0;
iget-boolean v2, p0, Lo0/z;->h:Z
const/4 v3, 0x0
if-eqz v0, :cond_1
if-eqz v1, :cond_0
new-instance v4, Lo0/z;
invoke-direct {v4, v0, v1, v2, v3}, Lo0/z;-><init>(Lo0/x;Lo0/a0;ZLkotlin/jvm/internal/DefaultConstructorMarker;)V
new-instance v1, Lo0/g0/d/m;
invoke-direct {v1, v0, v4}, Lo0/g0/d/m;-><init>(Lo0/x;Lo0/f;)V
iput-object v1, v4, Lo0/z;->d:Lo0/g0/d/m;
return-object v4
:cond_0
const-string v0, "originalRequest"
invoke-static {v0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v3
:cond_1
const-string v0, "client"
invoke-static {v0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v3
.end method
.method public execute()Lokhttp3/Response;
.locals 3
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lo0/z;->e:Z
const/4 v1, 0x1
xor-int/2addr v0, v1
if-eqz v0, :cond_2
iput-boolean v1, p0, Lo0/z;->e:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_2
monitor-exit p0
iget-object v0, p0, Lo0/z;->d:Lo0/g0/d/m;
const/4 v1, 0x0
if-eqz v0, :cond_1
iget-object v0, v0, Lo0/g0/d/m;->c:Lo0/g0/d/m$b;
invoke-virtual {v0}, Lp0/b;->i()V
iget-object v0, p0, Lo0/z;->d:Lo0/g0/d/m;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lo0/g0/d/m;->b()V
:try_start_1
iget-object v0, p0, Lo0/z;->f:Lo0/x;
iget-object v0, v0, Lo0/x;->d:Lo0/q;
monitor-enter v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:try_start_2
iget-object v1, v0, Lo0/q;->f:Ljava/util/ArrayDeque;
invoke-virtual {v1, p0}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:try_start_3
monitor-exit v0
invoke-virtual {p0}, Lo0/z;->b()Lokhttp3/Response;
move-result-object v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
iget-object v1, p0, Lo0/z;->f:Lo0/x;
iget-object v1, v1, Lo0/x;->d:Lo0/q;
iget-object v2, v1, Lo0/q;->f:Ljava/util/ArrayDeque;
invoke-virtual {v1, v2, p0}, Lo0/q;->b(Ljava/util/Deque;Ljava/lang/Object;)V
return-object v0
:catchall_0
move-exception v1
:try_start_4
monitor-exit v0
throw v1
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
:catchall_1
move-exception v0
iget-object v1, p0, Lo0/z;->f:Lo0/x;
iget-object v1, v1, Lo0/x;->d:Lo0/q;
iget-object v2, v1, Lo0/q;->f:Ljava/util/ArrayDeque;
invoke-virtual {v1, v2, p0}, Lo0/q;->b(Ljava/util/Deque;Ljava/lang/Object;)V
throw v0
:cond_0
const-string v0, "transmitter"
invoke-static {v0}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v1
:cond_1
const-string v0, "transmitter"
invoke-static {v0}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v1
:cond_2
:try_start_5
const-string v0, "Already Executed"
new-instance v1, Ljava/lang/IllegalStateException;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_2
:catchall_2
move-exception v0
monitor-exit p0
throw v0
.end method
.method public k()Z
.locals 1
iget-object v0, p0, Lo0/z;->d:Lo0/g0/d/m;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lo0/g0/d/m;->f()Z
move-result v0
return v0
:cond_0
const-string v0, "transmitter"
invoke-static {v0}, Lk0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
const/4 v0, 0x0
throw v0
.end method
.method public p()Lo0/a0;
.locals 1
iget-object v0, p0, Lo0/z;->g:Lo0/a0;
return-object v0
.end method