apkfuckery/com.discord/smali_classes2/o0/g0/d/a.smali
2020-09-02 04:07:20 +00:00

265 lines
5.4 KiB
Smali

.class public final Lo0/g0/d/a;
.super Ljava/lang/Object;
.source "ConnectInterceptor.kt"
# interfaces
.implements Lokhttp3/Interceptor;
# static fields
.field public static final b:Lo0/g0/d/a;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lo0/g0/d/a;
invoke-direct {v0}, Lo0/g0/d/a;-><init>()V
sput-object v0, Lo0/g0/d/a;->b:Lo0/g0/d/a;
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
const-string v1, "chain"
invoke-static {v0, v1}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
move-object v1, v0
check-cast v1, Lo0/g0/e/g;
iget-object v2, v1, Lo0/g0/e/g;->f:Lo0/a0;
iget-object v9, v1, Lo0/g0/e/g;->c:Lo0/g0/d/m;
iget-object v3, v2, Lo0/a0;->c:Ljava/lang/String;
const-string v4, "GET"
invoke-static {v3, v4}, Lk0/o/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v3
const/4 v4, 0x1
xor-int/lit8 v16, v3, 0x1
const/4 v3, 0x0
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
:try_start_0
iget-boolean v6, v9, Lo0/g0/d/m;->m:Z
xor-int/2addr v6, v4
if-eqz v6, :cond_4
iget-object v6, v9, Lo0/g0/d/m;->h:Lo0/g0/d/c;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
const/4 v8, 0x0
if-nez v6, :cond_0
goto :goto_0
:cond_0
const/4 v4, 0x0
:goto_0
if-eqz v4, :cond_3
monitor-exit v5
iget-object v4, v9, Lo0/g0/d/m;->f:Lo0/g0/d/d;
if-eqz v4, :cond_2
iget-object v5, v9, Lo0/g0/d/m;->n:Lo0/x;
const-string v6, "client"
invoke-static {v5, v6}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v6, "chain"
invoke-static {v0, v6}, Lk0/o/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
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
iget v14, v5, Lo0/x;->E:I
iget-boolean v15, v5, Lo0/x;->i:Z
move-object v10, v4
:try_start_1
invoke-virtual/range {v10 .. v16}, Lo0/g0/d/d;->b(IIIIZZ)Lo0/g0/d/i;
move-result-object v6
invoke-virtual {v6, v5, v0}, Lo0/g0/d/i;->i(Lo0/x;Lokhttp3/Interceptor$Chain;)Lo0/g0/e/d;
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
new-instance v10, Lo0/g0/d/c;
iget-object v5, v9, Lo0/g0/d/m;->o:Lo0/f;
iget-object v6, v9, Lo0/g0/d/m;->b:Lo0/t;
iget-object v7, v9, Lo0/g0/d/m;->f:Lo0/g0/d/d;
if-eqz v7, :cond_1
move-object v3, v10
move-object v4, v9
const/4 v11, 0x0
move-object v8, v0
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
iget-object v3, v9, Lo0/g0/d/m;->a:Lo0/g0/d/j;
monitor-enter v3
:try_start_2
iput-object v10, v9, Lo0/g0/d/m;->h:Lo0/g0/d/c;
iput-boolean v11, v9, Lo0/g0/d/m;->i:Z
iput-boolean v11, v9, Lo0/g0/d/m;->j:Z
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
monitor-exit v3
invoke-virtual {v1, v2, v9, v10}, Lo0/g0/e/g;->f(Lo0/a0;Lo0/g0/d/m;Lo0/g0/d/c;)Lokhttp3/Response;
move-result-object v0
return-object v0
:catchall_0
move-exception v0
monitor-exit v3
throw v0
:cond_1
invoke-static {}, Lk0/o/c/i;->throwNpe()V
throw v3
:catch_0
move-exception v0
invoke-virtual {v4}, Lo0/g0/d/d;->e()V
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
invoke-virtual {v4}, Lo0/g0/d/d;->e()V
throw v0
:cond_2
invoke-static {}, Lk0/o/c/i;->throwNpe()V
throw v3
: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
:cond_4
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
monitor-exit v5
throw v0
:cond_5
throw v3
.end method