apkfuckery/com.discord/smali_classes2/o0/g0/d/a.smali

266 lines
5.4 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lo0/g0/d/a;
2020-07-08 16:44:49 +00:00
.super Ljava/lang/Object;
.source "ConnectInterceptor.kt"
# interfaces
.implements Lokhttp3/Interceptor;
# static fields
2020-09-02 04:07:20 +00:00
.field public static final b:Lo0/g0/d/a;
2020-07-08 16:44:49 +00:00
# direct methods
.method public static constructor <clinit>()V
.locals 1
2020-09-02 04:07:20 +00:00
new-instance v0, Lo0/g0/d/a;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
invoke-direct {v0}, Lo0/g0/d/a;-><init>()V
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
sput-object v0, Lo0/g0/d/a;->b:Lo0/g0/d/a;
2020-07-08 16:44:49 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
.locals 17
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v0, p1
2020-09-02 04:07:20 +00:00
const-string v1, "chain"
invoke-static {v0, v1}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
move-object v1, v0
2020-09-02 04:07:20 +00:00
check-cast v1, Lo0/g0/e/g;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v2, v1, Lo0/g0/e/g;->f:Lo0/a0;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v9, v1, Lo0/g0/e/g;->c:Lo0/g0/d/m;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v3, v2, Lo0/a0;->c:Ljava/lang/String;
2020-07-08 16:44:49 +00:00
const-string v4, "GET"
2020-09-02 04:07:20 +00:00
invoke-static {v3, v4}, Lk0/o/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-07-08 16:44:49 +00:00
move-result v3
const/4 v4, 0x1
xor-int/lit8 v16, v3, 0x1
2020-09-02 04:07:20 +00:00
const/4 v3, 0x0
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
if-eqz v9, :cond_5
const-string v5, "chain"
invoke-static {v0, v5}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v5, v9, Lo0/g0/d/m;->a:Lo0/g0/d/j;
monitor-enter v5
2020-07-08 16:44:49 +00:00
:try_start_0
2020-09-02 04:07:20 +00:00
iget-boolean v6, v9, Lo0/g0/d/m;->m:Z
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
xor-int/2addr v6, v4
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
if-eqz v6, :cond_4
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v6, v9, Lo0/g0/d/m;->h:Lo0/g0/d/c;
2020-07-08 16:44:49 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
const/4 v8, 0x0
2020-09-02 04:07:20 +00:00
if-nez v6, :cond_0
2020-07-08 16:44:49 +00:00
goto :goto_0
:cond_0
const/4 v4, 0x0
:goto_0
2020-09-02 04:07:20 +00:00
if-eqz v4, :cond_3
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
monitor-exit v5
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v4, v9, Lo0/g0/d/m;->f:Lo0/g0/d/d;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
if-eqz v4, :cond_2
iget-object v5, v9, Lo0/g0/d/m;->n:Lo0/x;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
const-string v6, "client"
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
invoke-static {v5, v6}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
const-string v6, "chain"
invoke-static {v0, v6}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->e()I
move-result v11
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->b()I
move-result v12
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->c()I
move-result v13
2020-09-02 04:07:20 +00:00
iget v14, v5, Lo0/x;->E:I
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-boolean v15, v5, Lo0/x;->i:Z
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
move-object v10, v4
2020-07-08 16:44:49 +00:00
:try_start_1
2020-09-02 04:07:20 +00:00
invoke-virtual/range {v10 .. v16}, Lo0/g0/d/d;->b(IIIIZZ)Lo0/g0/d/i;
2020-07-08 16:44:49 +00:00
move-result-object v6
2020-09-02 04:07:20 +00:00
invoke-virtual {v6, v5, v0}, Lo0/g0/d/i;->i(Lo0/x;Lokhttp3/Interceptor$Chain;)Lo0/g0/e/d;
2020-07-08 16:44:49 +00:00
move-result-object v0
:try_end_1
.catch Lokhttp3/internal/connection/RouteException; {:try_start_1 .. :try_end_1} :catch_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
2020-09-02 04:07:20 +00:00
new-instance v10, Lo0/g0/d/c;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v5, v9, Lo0/g0/d/m;->o:Lo0/f;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v6, v9, Lo0/g0/d/m;->b:Lo0/t;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v7, v9, Lo0/g0/d/m;->f:Lo0/g0/d/d;
2020-07-08 16:44:49 +00:00
if-eqz v7, :cond_1
move-object v3, v10
move-object v4, v9
const/4 v11, 0x0
move-object v8, v0
2020-09-02 04:07:20 +00:00
invoke-direct/range {v3 .. v8}, Lo0/g0/d/c;-><init>(Lo0/g0/d/m;Lo0/f;Lo0/t;Lo0/g0/d/d;Lo0/g0/e/d;)V
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iget-object v3, v9, Lo0/g0/d/m;->a:Lo0/g0/d/j;
2020-07-08 16:44:49 +00:00
monitor-enter v3
:try_start_2
2020-09-02 04:07:20 +00:00
iput-object v10, v9, Lo0/g0/d/m;->h:Lo0/g0/d/c;
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iput-boolean v11, v9, Lo0/g0/d/m;->i:Z
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
iput-boolean v11, v9, Lo0/g0/d/m;->j:Z
2020-07-08 16:44:49 +00:00
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
monitor-exit v3
2020-09-02 04:07:20 +00:00
invoke-virtual {v1, v2, v9, v10}, Lo0/g0/e/g;->f(Lo0/a0;Lo0/g0/d/m;Lo0/g0/d/c;)Lokhttp3/Response;
2020-07-08 16:44:49 +00:00
move-result-object v0
return-object v0
:catchall_0
move-exception v0
monitor-exit v3
throw v0
:cond_1
2020-09-02 04:07:20 +00:00
invoke-static {}, Lk0/o/c/i;->throwNpe()V
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
throw v3
2020-07-08 16:44:49 +00:00
:catch_0
move-exception v0
2020-09-02 04:07:20 +00:00
invoke-virtual {v4}, Lo0/g0/d/d;->e()V
2020-07-08 16:44:49 +00:00
new-instance v1, Lokhttp3/internal/connection/RouteException;
invoke-direct {v1, v0}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
throw v1
:catch_1
move-exception v0
2020-09-02 04:07:20 +00:00
invoke-virtual {v4}, Lo0/g0/d/d;->e()V
2020-07-08 16:44:49 +00:00
throw v0
:cond_2
2020-09-02 04:07:20 +00:00
invoke-static {}, Lk0/o/c/i;->throwNpe()V
2020-07-08 16:44:49 +00:00
2020-09-02 04:07:20 +00:00
throw v3
2020-07-08 16:44:49 +00:00
:cond_3
:try_start_3
const-string v0, "cannot make a new request because the previous response is still open: please call response.close()"
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
2020-09-02 04:07:20 +00:00
:cond_4
2020-07-08 16:44:49 +00:00
const-string v0, "released"
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_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:catchall_1
move-exception v0
2020-09-02 04:07:20 +00:00
monitor-exit v5
2020-07-08 16:44:49 +00:00
throw v0
2020-09-02 04:07:20 +00:00
:cond_5
throw v3
2020-07-08 16:44:49 +00:00
.end method