apkfuckery/com.discord/smali/okhttp3/s$a.smali

1633 lines
32 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lokhttp3/s$a;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "HttpUrl.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/s;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
2019-05-08 22:54:48 +00:00
.field boG:Ljava/lang/String;
2019-03-08 06:19:26 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-03-02 23:27:57 +00:00
2019-05-08 22:54:48 +00:00
.field boH:Ljava/lang/String;
2019-03-08 06:19:26 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field boK:Ljava/lang/String;
2019-03-02 23:27:57 +00:00
2019-05-08 22:54:48 +00:00
.field boL:Ljava/lang/String;
2019-03-08 06:19:26 +00:00
2019-05-08 22:54:48 +00:00
.field final boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field boN:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field boO:Ljava/lang/String;
2019-02-27 21:13:14 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-02-04 20:08:30 +00:00
.field port:I
# direct methods
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, ""
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lokhttp3/s$a;->boK:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lokhttp3/s$a;->boL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v1, -0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput v1, p0, Lokhttp3/s$a;->port:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-instance v1, Ljava/util/ArrayList;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iput-object v1, p0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
return-void
.end method
.method private f(Ljava/lang/String;II)V
2019-05-03 18:53:54 +00:00
.locals 17
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-object/from16 v0, p0
move/from16 v1, p2
move/from16 v2, p3
if-ne v1, v2, :cond_0
2019-02-04 20:08:30 +00:00
return-void
:cond_0
2019-05-03 18:53:54 +00:00
invoke-virtual/range {p1 .. p2}, Ljava/lang/String;->charAt(I)C
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v3
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/16 v4, 0x2f
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v5, ""
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v6, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq v3, v4, :cond_2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/16 v4, 0x5c
if-ne v3, v4, :cond_1
2019-02-04 20:08:30 +00:00
goto :goto_0
:cond_1
2019-05-08 22:54:48 +00:00
iget-object v3, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v3}, Ljava/util/List;->size()I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sub-int/2addr v4, v6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v3, v4, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
goto :goto_1
:cond_2
:goto_0
2019-05-08 22:54:48 +00:00
iget-object v3, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v3}, Ljava/util/List;->clear()V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v3, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v3, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto/16 :goto_7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_3
2019-02-04 20:08:30 +00:00
:goto_1
2019-05-03 18:53:54 +00:00
move v8, v1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-ge v8, v2, :cond_d
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v1, "/\\"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-object/from16 v3, p1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v3, v8, v2, v1}, Lokhttp3/internal/c;->a(Ljava/lang/String;IILjava/lang/String;)I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v4, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-ge v1, v2, :cond_4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/16 v16, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_4
const/16 v16, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:goto_2
const/4 v11, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v12, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v13, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v14, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v15, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v10, " \"<>^`{}|/\\?#"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-object/from16 v7, p1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move v9, v1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static/range {v7 .. v15}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v8, "."
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-nez v8, :cond_6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v8, "%2e"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v7, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eqz v8, :cond_5
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:cond_5
2019-05-03 18:53:54 +00:00
const/4 v8, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_6
:goto_3
const/4 v8, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:goto_4
if-nez v8, :cond_c
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v8, ".."
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-nez v8, :cond_7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v8, "%2e."
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v7, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-nez v8, :cond_7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v8, ".%2e"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v7, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-nez v8, :cond_7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v8, "%2e%2e"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v7, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eqz v8, :cond_8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_7
const/4 v4, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_8
if-eqz v4, :cond_a
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4}, Ljava/util/List;->size()I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sub-int/2addr v7, v6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4, v7}, Ljava/util/List;->remove(I)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
check-cast v4, Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/lang/String;->isEmpty()Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eqz v4, :cond_9
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4}, Ljava/util/List;->isEmpty()Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-nez v4, :cond_9
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4}, Ljava/util/List;->size()I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sub-int/2addr v7, v6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4, v7, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_6
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:cond_9
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_a
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4}, Ljava/util/List;->size()I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sub-int/2addr v8, v6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
check-cast v4, Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/lang/String;->isEmpty()Z
2019-02-04 20:08:30 +00:00
move-result v4
2019-05-03 18:53:54 +00:00
if-eqz v4, :cond_b
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4}, Ljava/util/List;->size()I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sub-int/2addr v8, v6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4, v8, v7}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_5
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_b
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:29:01 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v4, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-02-04 20:29:01 +00:00
2019-05-03 18:53:54 +00:00
:goto_5
if-eqz v16, :cond_c
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-05-03 18:53:54 +00:00
invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:cond_c
2019-05-03 18:53:54 +00:00
:goto_6
if-eqz v16, :cond_3
2019-02-04 20:29:01 +00:00
2019-05-03 18:53:54 +00:00
:goto_7
add-int/lit8 v1, v1, 0x1
goto/16 :goto_1
2019-02-04 20:08:30 +00:00
:cond_d
return-void
.end method
.method private static g(Ljava/lang/String;II)I
.locals 7
sub-int v0, p2, p1
const/4 v1, -0x1
const/4 v2, 0x2
if-ge v0, v2, :cond_0
return v1
:cond_0
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v2, 0x5a
2019-02-04 20:29:01 +00:00
const/16 v3, 0x7a
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/16 v4, 0x41
2019-02-04 20:08:30 +00:00
const/16 v5, 0x61
if-lt v0, v5, :cond_1
2019-02-04 20:29:01 +00:00
if-le v0, v3, :cond_2
2019-02-04 20:08:30 +00:00
:cond_1
2019-05-03 18:53:54 +00:00
if-lt v0, v4, :cond_6
2019-02-04 20:08:30 +00:00
if-le v0, v2, :cond_2
goto :goto_0
:cond_2
add-int/lit8 p1, p1, 0x1
2019-05-03 18:53:54 +00:00
if-ge p1, p2, :cond_6
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v0
if-lt v0, v5, :cond_3
2019-02-04 20:29:01 +00:00
if-le v0, v3, :cond_2
2019-02-04 20:08:30 +00:00
:cond_3
2019-02-04 20:29:01 +00:00
if-lt v0, v4, :cond_4
2019-02-04 20:08:30 +00:00
if-le v0, v2, :cond_2
:cond_4
const/16 v6, 0x30
if-lt v0, v6, :cond_5
const/16 v6, 0x39
if-le v0, v6, :cond_2
:cond_5
const/16 v6, 0x2b
if-eq v0, v6, :cond_2
const/16 v6, 0x2d
if-eq v0, v6, :cond_2
const/16 v6, 0x2e
if-eq v0, v6, :cond_2
const/16 p0, 0x3a
if-ne v0, p0, :cond_6
return p1
:cond_6
:goto_0
return v1
.end method
.method private static h(Ljava/lang/String;II)I
.locals 3
const/4 v0, 0x0
:goto_0
if-ge p1, p2, :cond_1
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v1
const/16 v2, 0x5c
if-eq v1, v2, :cond_0
const/16 v2, 0x2f
if-ne v1, v2, :cond_1
:cond_0
add-int/lit8 v0, v0, 0x1
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_1
return v0
.end method
.method private static i(Ljava/lang/String;II)I
.locals 2
:goto_0
if-ge p1, p2, :cond_3
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v1, 0x3a
if-eq v0, v1, :cond_2
const/16 v1, 0x5b
if-eq v0, v1, :cond_0
goto :goto_1
:cond_0
add-int/lit8 p1, p1, 0x1
if-ge p1, p2, :cond_1
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v1, 0x5d
if-ne v0, v1, :cond_0
:cond_1
:goto_1
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_2
return p1
:cond_3
return p2
.end method
.method static j(Ljava/lang/String;II)Ljava/lang/String;
.locals 1
const/4 v0, 0x0
invoke-static {p0, p1, p2, v0}, Lokhttp3/s;->b(Ljava/lang/String;IIZ)Ljava/lang/String;
move-result-object p0
2019-05-04 02:59:52 +00:00
invoke-static {p0}, Lokhttp3/internal/c;->ea(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p0
return-object p0
.end method
.method private static k(Ljava/lang/String;II)I
.locals 10
const/4 v0, -0x1
:try_start_0
const-string v4, ""
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
move-object v1, p0
move v2, p1
move v3, p2
invoke-static/range {v1 .. v9}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result p0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
if-lez p0, :cond_0
const p1, 0xffff
if-gt p0, p1, :cond_0
return p0
2019-02-04 20:29:01 +00:00
:catch_0
2019-05-03 18:53:54 +00:00
:cond_0
2019-02-04 20:29:01 +00:00
return v0
2019-02-04 20:08:30 +00:00
.end method
# virtual methods
2019-05-04 02:59:52 +00:00
.method final Ca()I
2019-02-04 20:08:30 +00:00
.locals 2
2019-02-27 21:13:14 +00:00
iget v0, p0, Lokhttp3/s$a;->port:I
const/4 v1, -0x1
if-eq v0, v1, :cond_0
return v0
:cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-27 21:13:14 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {v0}, Lokhttp3/s;->dM(Ljava/lang/String;)I
2019-02-27 21:13:14 +00:00
move-result v0
return v0
.end method
2019-05-04 02:59:52 +00:00
.method public final Cb()Lokhttp3/s;
2019-02-27 21:13:14 +00:00
.locals 2
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokhttp3/s$a;->boH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
new-instance v0, Lokhttp3/s;
invoke-direct {v0, p0}, Lokhttp3/s;-><init>(Lokhttp3/s$a;)V
return-object v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "host == null"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "scheme == null"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
2019-05-04 02:59:52 +00:00
.method public final am(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/s$a;
2019-02-27 21:13:14 +00:00
.locals 7
.param p2 # Ljava/lang/String;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz p1, :cond_2
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v0, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-04 20:08:30 +00:00
:cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v3, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v4, 0x0
const/4 v5, 0x1
const/4 v6, 0x1
2019-05-03 18:53:54 +00:00
const-string v2, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~"
2019-02-27 21:13:14 +00:00
move-object v1, p1
invoke-static/range {v1 .. v6}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-05-08 22:54:48 +00:00
iget-object p1, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-27 21:13:14 +00:00
if-eqz p2, :cond_1
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x1
const/4 v5, 0x1
2019-05-03 18:53:54 +00:00
const-string v1, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~"
2019-02-27 21:13:14 +00:00
move-object v0, p2
invoke-static/range {v0 .. v5}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
move-result-object p2
goto :goto_0
:cond_1
const/4 p2, 0x0
:goto_0
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
:cond_2
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "name == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2019-05-04 02:59:52 +00:00
.method public final an(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/s$a;
2019-02-27 21:13:14 +00:00
.locals 7
.param p2 # Ljava/lang/String;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
if-eqz p1, :cond_2
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-27 21:13:14 +00:00
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-27 21:13:14 +00:00
:cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-27 21:13:14 +00:00
const/4 v3, 0x1
const/4 v4, 0x0
const/4 v5, 0x1
const/4 v6, 0x1
2019-05-03 18:53:54 +00:00
const-string v2, " \"\'<>#&="
2019-02-27 21:13:14 +00:00
move-object v1, p1
invoke-static/range {v1 .. v6}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-05-08 22:54:48 +00:00
iget-object p1, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-27 21:13:14 +00:00
if-eqz p2, :cond_1
const/4 v2, 0x1
const/4 v3, 0x0
const/4 v4, 0x1
const/4 v5, 0x1
2019-05-03 18:53:54 +00:00
const-string v1, " \"\'<>#&="
2019-02-27 21:13:14 +00:00
move-object v0, p2
invoke-static/range {v0 .. v5}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
move-result-object p2
goto :goto_0
:cond_1
const/4 p2, 0x0
:goto_0
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
:cond_2
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "encodedName == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-04 20:08:30 +00:00
.end method
2019-02-27 21:13:14 +00:00
.method final b(Lokhttp3/s;Ljava/lang/String;)Lokhttp3/s$a;
2019-05-03 18:53:54 +00:00
.locals 21
2019-02-04 20:08:30 +00:00
.param p1 # Lokhttp3/s;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v10, p2
invoke-virtual/range {p2 .. p2}, Ljava/lang/String;->length()I
move-result v2
const/4 v8, 0x0
invoke-static {v10, v8, v2}, Lokhttp3/internal/c;->l(Ljava/lang/String;II)I
move-result v9
invoke-virtual/range {p2 .. p2}, Ljava/lang/String;->length()I
move-result v2
invoke-static {v10, v9, v2}, Lokhttp3/internal/c;->m(Ljava/lang/String;II)I
move-result v11
invoke-static {v10, v9, v11}, Lokhttp3/s$a;->g(Ljava/lang/String;II)I
move-result v12
const/4 v13, -0x1
if-eq v12, v13, :cond_2
const/4 v3, 0x1
const/4 v6, 0x0
const/4 v7, 0x6
2019-05-03 18:53:54 +00:00
const-string v5, "https:"
2019-02-04 20:08:30 +00:00
move-object/from16 v2, p2
move v4, v9
invoke-virtual/range {v2 .. v7}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z
move-result v2
if-eqz v2, :cond_0
const-string v2, "https"
2019-05-08 22:54:48 +00:00
iput-object v2, v0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
add-int/lit8 v9, v9, 0x6
goto :goto_0
:cond_0
const/4 v3, 0x1
const/4 v6, 0x0
const/4 v7, 0x5
2019-05-03 18:53:54 +00:00
const-string v5, "http:"
2019-02-04 20:08:30 +00:00
move-object/from16 v2, p2
move v4, v9
invoke-virtual/range {v2 .. v7}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z
move-result v2
if-eqz v2, :cond_1
const-string v2, "http"
2019-05-08 22:54:48 +00:00
iput-object v2, v0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
add-int/lit8 v9, v9, 0x5
goto :goto_0
:cond_1
new-instance v1, Ljava/lang/IllegalArgumentException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Expected URL scheme \'http\' or \'https\' but was \'"
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v10, v8, v12}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "\'"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
:cond_2
2019-05-03 18:53:54 +00:00
if-eqz v1, :cond_12
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v2, v1, Lokhttp3/s;->boG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iput-object v2, v0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
:goto_0
invoke-static {v10, v9, v11}, Lokhttp3/s$a;->h(Ljava/lang/String;II)I
move-result v2
const/4 v3, 0x2
2019-05-03 18:53:54 +00:00
const/16 v12, 0x3f
const/16 v14, 0x23
2019-02-04 20:08:30 +00:00
if-ge v2, v3, :cond_5
if-eqz v1, :cond_5
2019-05-08 22:54:48 +00:00
iget-object v3, v1, Lokhttp3/s;->boG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v4, v0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_3
goto :goto_1
:cond_3
2019-05-04 02:59:52 +00:00
invoke-virtual/range {p1 .. p1}, Lokhttp3/s;->BU()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v2
2019-05-08 22:54:48 +00:00
iput-object v2, v0, Lokhttp3/s$a;->boK:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual/range {p1 .. p1}, Lokhttp3/s;->BV()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v2
2019-05-08 22:54:48 +00:00
iput-object v2, v0, Lokhttp3/s$a;->boL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v2, v1, Lokhttp3/s;->boH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iput-object v2, v0, Lokhttp3/s$a;->boH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
iget v2, v1, Lokhttp3/s;->port:I
iput v2, v0, Lokhttp3/s$a;->port:I
2019-05-08 22:54:48 +00:00
iget-object v2, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-interface {v2}, Ljava/util/List;->clear()V
2019-05-08 22:54:48 +00:00
iget-object v2, v0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual/range {p1 .. p1}, Lokhttp3/s;->BX()Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object v3
invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
if-eq v9, v11, :cond_4
invoke-virtual {v10, v9}, Ljava/lang/String;->charAt(I)C
move-result v2
2019-05-03 18:53:54 +00:00
if-ne v2, v14, :cond_e
2019-02-04 20:08:30 +00:00
:cond_4
2019-05-04 02:59:52 +00:00
invoke-virtual/range {p1 .. p1}, Lokhttp3/s;->BY()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-05-04 02:59:52 +00:00
invoke-virtual {v0, v1}, Lokhttp3/s$a;->dS(Ljava/lang/String;)Lokhttp3/s$a;
2019-02-04 20:08:30 +00:00
goto/16 :goto_6
:cond_5
:goto_1
add-int/2addr v9, v2
move v2, v9
const/16 v16, 0x0
2019-05-03 18:53:54 +00:00
const/16 v17, 0x0
2019-02-04 20:08:30 +00:00
:goto_2
const-string v1, "@/\\?#"
invoke-static {v10, v2, v11, v1}, Lokhttp3/internal/c;->a(Ljava/lang/String;IILjava/lang/String;)I
move-result v9
if-eq v9, v11, :cond_6
invoke-virtual {v10, v9}, Ljava/lang/String;->charAt(I)C
move-result v1
goto :goto_3
:cond_6
const/4 v1, -0x1
:goto_3
2019-05-03 18:53:54 +00:00
if-eq v1, v13, :cond_b
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq v1, v14, :cond_b
2019-02-04 20:08:30 +00:00
const/16 v3, 0x2f
2019-05-03 18:53:54 +00:00
if-eq v1, v3, :cond_b
2019-02-04 20:08:30 +00:00
const/16 v3, 0x5c
2019-05-03 18:53:54 +00:00
if-eq v1, v3, :cond_b
if-eq v1, v12, :cond_b
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/16 v3, 0x40
if-eq v1, v3, :cond_7
2019-02-04 20:08:30 +00:00
goto :goto_2
2019-05-03 18:53:54 +00:00
:cond_7
const-string v8, "%40"
if-nez v16, :cond_a
2019-02-04 20:08:30 +00:00
const/16 v1, 0x3a
invoke-static {v10, v2, v9, v1}, Lokhttp3/internal/c;->a(Ljava/lang/String;IIC)I
2019-05-03 18:53:54 +00:00
move-result v7
2019-02-04 20:08:30 +00:00
const/4 v5, 0x1
const/4 v6, 0x0
2019-05-03 18:53:54 +00:00
const/16 v18, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/16 v19, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/16 v20, 0x0
const-string v4, " \"\':;<=>@[]^`{}|/\\?#"
2019-02-04 20:08:30 +00:00
move-object/from16 v1, p2
2019-05-03 18:53:54 +00:00
move v3, v7
move v15, v7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move/from16 v7, v18
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-object v14, v8
move/from16 v8, v19
2019-02-04 20:08:30 +00:00
move v12, v9
2019-05-03 18:53:54 +00:00
move-object/from16 v9, v20
2019-02-04 20:08:30 +00:00
invoke-static/range {v1 .. v9}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v1
2019-05-03 18:53:54 +00:00
if-eqz v17, :cond_8
2019-02-04 20:08:30 +00:00
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
2019-05-08 22:54:48 +00:00
iget-object v3, v0, Lokhttp3/s$a;->boK:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-05-03 18:53:54 +00:00
invoke-virtual {v2, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
2019-05-03 18:53:54 +00:00
:cond_8
2019-05-08 22:54:48 +00:00
iput-object v1, v0, Lokhttp3/s$a;->boK:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq v15, v12, :cond_9
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
add-int/lit8 v2, v15, 0x1
2019-02-04 20:08:30 +00:00
const/4 v5, 0x1
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
2019-05-03 18:53:54 +00:00
const-string v4, " \"\':;<=>@[]^`{}|/\\?#"
2019-02-04 20:08:30 +00:00
move-object/from16 v1, p2
move v3, v12
invoke-static/range {v1 .. v9}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v1
2019-05-08 22:54:48 +00:00
iput-object v1, v0, Lokhttp3/s$a;->boL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
const/16 v16, 0x1
:cond_9
2019-05-03 18:53:54 +00:00
const/16 v17, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_a
move-object v14, v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move v12, v9
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-instance v15, Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, v0, Lokhttp3/s$a;->boL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v15, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v15, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
const/4 v5, 0x1
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
2019-05-03 18:53:54 +00:00
const-string v4, " \"\':;<=>@[]^`{}|/\\?#"
2019-02-04 20:08:30 +00:00
move-object/from16 v1, p2
move v3, v12
invoke-static/range {v1 .. v9}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v1
2019-05-03 18:53:54 +00:00
invoke-virtual {v15, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-05-08 22:54:48 +00:00
iput-object v1, v0, Lokhttp3/s$a;->boL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
:goto_4
add-int/lit8 v2, v12, 0x1
2019-05-03 18:53:54 +00:00
const/16 v12, 0x3f
const/16 v14, 0x23
2019-02-04 20:08:30 +00:00
goto/16 :goto_2
2019-05-03 18:53:54 +00:00
:cond_b
2019-02-04 20:08:30 +00:00
move v12, v9
invoke-static {v10, v2, v12}, Lokhttp3/s$a;->i(Ljava/lang/String;II)I
move-result v1
add-int/lit8 v3, v1, 0x1
const/16 v4, 0x22
2019-05-03 18:53:54 +00:00
if-ge v3, v12, :cond_d
2019-02-04 20:08:30 +00:00
invoke-static {v10, v2, v1}, Lokhttp3/s$a;->j(Ljava/lang/String;II)Ljava/lang/String;
move-result-object v5
2019-05-08 22:54:48 +00:00
iput-object v5, v0, Lokhttp3/s$a;->boH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-static {v10, v3, v12}, Lokhttp3/s$a;->k(Ljava/lang/String;II)I
move-result v5
iput v5, v0, Lokhttp3/s$a;->port:I
iget v5, v0, Lokhttp3/s$a;->port:I
2019-05-03 18:53:54 +00:00
if-eq v5, v13, :cond_c
2019-02-04 20:08:30 +00:00
goto :goto_5
2019-05-03 18:53:54 +00:00
:cond_c
2019-02-04 20:08:30 +00:00
new-instance v1, Ljava/lang/IllegalArgumentException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v5, "Invalid URL port: \""
invoke-direct {v2, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v10, v3, v12}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
2019-05-03 18:53:54 +00:00
:cond_d
2019-02-04 20:08:30 +00:00
invoke-static {v10, v2, v1}, Lokhttp3/s$a;->j(Ljava/lang/String;II)Ljava/lang/String;
move-result-object v3
2019-05-08 22:54:48 +00:00
iput-object v3, v0, Lokhttp3/s$a;->boH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v3, v0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {v3}, Lokhttp3/s;->dM(Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
move-result v3
iput v3, v0, Lokhttp3/s$a;->port:I
:goto_5
2019-05-08 22:54:48 +00:00
iget-object v3, v0, Lokhttp3/s$a;->boH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eqz v3, :cond_11
2019-02-04 20:08:30 +00:00
move v9, v12
2019-05-03 18:53:54 +00:00
:cond_e
2019-02-04 20:08:30 +00:00
:goto_6
const-string v1, "?#"
invoke-static {v10, v9, v11, v1}, Lokhttp3/internal/c;->a(Ljava/lang/String;IILjava/lang/String;)I
move-result v1
invoke-direct {v0, v10, v9, v1}, Lokhttp3/s$a;->f(Ljava/lang/String;II)V
2019-05-03 18:53:54 +00:00
if-ge v1, v11, :cond_f
2019-02-04 20:08:30 +00:00
invoke-virtual {v10, v1}, Ljava/lang/String;->charAt(I)C
move-result v2
const/16 v3, 0x3f
2019-05-03 18:53:54 +00:00
if-ne v2, v3, :cond_f
2019-02-04 20:08:30 +00:00
const/16 v2, 0x23
invoke-static {v10, v1, v11, v2}, Lokhttp3/internal/c;->a(Ljava/lang/String;IIC)I
move-result v12
add-int/lit8 v2, v1, 0x1
const/4 v5, 0x1
const/4 v6, 0x0
const/4 v7, 0x1
const/4 v8, 0x1
const/4 v9, 0x0
2019-05-03 18:53:54 +00:00
const-string v4, " \"\'<>#"
2019-02-04 20:08:30 +00:00
move-object/from16 v1, p2
move v3, v12
invoke-static/range {v1 .. v9}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v1
2019-05-04 02:59:52 +00:00
invoke-static {v1}, Lokhttp3/s;->dN(Ljava/lang/String;)Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-05-08 22:54:48 +00:00
iput-object v1, v0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-04 20:08:30 +00:00
move v1, v12
2019-05-03 18:53:54 +00:00
:cond_f
if-ge v1, v11, :cond_10
2019-02-04 20:08:30 +00:00
invoke-virtual {v10, v1}, Ljava/lang/String;->charAt(I)C
move-result v2
const/16 v3, 0x23
2019-05-03 18:53:54 +00:00
if-ne v2, v3, :cond_10
2019-02-04 20:08:30 +00:00
const/4 v2, 0x1
add-int/2addr v2, v1
const/4 v5, 0x1
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
2019-05-03 18:53:54 +00:00
const-string v4, ""
2019-02-04 20:08:30 +00:00
move-object/from16 v1, p2
move v3, v11
invoke-static/range {v1 .. v9}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v1
2019-05-08 22:54:48 +00:00
iput-object v1, v0, Lokhttp3/s$a;->boO:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:cond_10
2019-02-04 20:08:30 +00:00
return-object v0
2019-05-03 18:53:54 +00:00
:cond_11
2019-02-04 20:08:30 +00:00
new-instance v3, Ljava/lang/IllegalArgumentException;
new-instance v5, Ljava/lang/StringBuilder;
const-string v6, "Invalid URL host: \""
invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v10, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v1
invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v3, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v3
2019-05-03 18:53:54 +00:00
:cond_12
2019-02-04 20:08:30 +00:00
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "Expected URL scheme \'http\' or \'https\' but no colon was found"
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
2019-05-04 02:59:52 +00:00
.method public final dS(Ljava/lang/String;)Lokhttp3/s$a;
2019-02-04 20:08:30 +00:00
.locals 6
.param p1 # Ljava/lang/String;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
if-eqz p1, :cond_0
const/4 v2, 0x1
const/4 v3, 0x0
const/4 v4, 0x1
const/4 v5, 0x1
2019-05-03 18:53:54 +00:00
const-string v1, " \"\'<>#"
2019-02-04 20:08:30 +00:00
move-object v0, p1
invoke-static/range {v0 .. v5}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
move-result-object p1
2019-05-04 02:59:52 +00:00
invoke-static {p1}, Lokhttp3/s;->dN(Ljava/lang/String;)Ljava/util/List;
2019-02-04 20:08:30 +00:00
move-result-object p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
2019-05-08 22:54:48 +00:00
iput-object p1, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-04 20:08:30 +00:00
return-object p0
.end method
.method public final toString()Ljava/lang/String;
.locals 4
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
if-eqz v1, :cond_0
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "://"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
goto :goto_0
:cond_0
const-string v1, "//"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_0
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boK:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z
move-result v1
const/16 v2, 0x3a
2019-02-17 02:24:41 +00:00
if-eqz v1, :cond_1
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z
move-result v1
2019-02-17 02:24:41 +00:00
if-nez v1, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_1
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boK:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z
move-result v1
2019-02-17 02:24:41 +00:00
if-nez v1, :cond_2
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
:cond_2
2019-02-04 20:08:30 +00:00
const/16 v1, 0x40
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
:cond_3
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boH:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
const/4 v3, -0x1
if-eqz v1, :cond_5
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(I)I
move-result v1
2019-02-17 02:24:41 +00:00
if-eq v1, v3, :cond_4
2019-02-04 20:08:30 +00:00
const/16 v1, 0x5b
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x5d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_4
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
:cond_5
:goto_1
iget v1, p0, Lokhttp3/s$a;->port:I
if-ne v1, v3, :cond_6
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
if-eqz v1, :cond_8
:cond_6
2019-05-04 02:59:52 +00:00
invoke-virtual {p0}, Lokhttp3/s$a;->Ca()I
2019-02-04 20:08:30 +00:00
move-result v1
2019-05-08 22:54:48 +00:00
iget-object v3, p0, Lokhttp3/s$a;->boG:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
if-eqz v3, :cond_7
2019-02-06 20:30:57 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {v3}, Lokhttp3/s;->dM(Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
move-result v3
2019-02-17 02:24:41 +00:00
if-eq v1, v3, :cond_8
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_7
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
:cond_8
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boM:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-static {v0, v1}, Lokhttp3/s;->a(Ljava/lang/StringBuilder;Ljava/util/List;)V
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v1, :cond_9
2019-02-04 20:08:30 +00:00
const/16 v1, 0x3f
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boN:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-static {v0, v1}, Lokhttp3/s;->b(Ljava/lang/StringBuilder;Ljava/util/List;)V
2019-02-17 02:24:41 +00:00
:cond_9
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boO:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v1, :cond_a
2019-02-04 20:08:30 +00:00
const/16 v1, 0x23
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/s$a;->boO:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
:cond_a
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method