apkfuckery/com.discord/smali_classes2/g0/z.smali

671 lines
14 KiB
Smali
Raw Normal View History

2020-11-09 19:03:49 +00:00
.class public final Lg0/z;
2020-07-08 16:44:49 +00:00
.super Ljava/lang/Object;
2020-11-09 19:03:49 +00:00
.source "RequestBuilder.java"
2020-07-08 16:44:49 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-11-09 19:03:49 +00:00
Lg0/z$a;
2020-07-08 16:44:49 +00:00
}
.end annotation
2020-09-16 23:45:23 +00:00
# static fields
2020-11-09 19:03:49 +00:00
.field public static final l:[C
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public static final m:Ljava/util/regex/Pattern;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
# instance fields
.field public final a:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public final b:Lc0/y;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public c:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public d:Lc0/y$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public final e:Lc0/b0$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public final f:Lokhttp3/Headers$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public g:Lokhttp3/MediaType;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public final h:Z
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public i:Lokhttp3/MultipartBody$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public j:Lc0/v$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.field public k:Lokhttp3/RequestBody;
2020-09-16 23:45:23 +00:00
# direct methods
.method public static constructor <clinit>()V
2020-11-09 19:03:49 +00:00
.locals 1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v0, 0x10
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
new-array v0, v0, [C
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
fill-array-data v0, :array_0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
sput-object v0, Lg0/z;->l:[C
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v0, "(.*/)?(\\.|%2e|%2E){1,2}(/.*)?"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
2020-09-16 23:45:23 +00:00
move-result-object v0
2020-11-09 19:03:49 +00:00
sput-object v0, Lg0/z;->m:Ljava/util/regex/Pattern;
2020-09-16 23:45:23 +00:00
return-void
2020-11-09 19:03:49 +00:00
:array_0
.array-data 2
0x30s
0x31s
0x32s
0x33s
0x34s
0x35s
0x36s
0x37s
0x38s
0x39s
0x41s
0x42s
0x43s
0x44s
0x45s
0x46s
.end array-data
2020-09-16 23:45:23 +00:00
.end method
2020-11-09 19:03:49 +00:00
.method public constructor <init>(Ljava/lang/String;Lc0/y;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
.locals 0
2020-09-16 23:45:23 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-11-09 19:03:49 +00:00
iput-object p1, p0, Lg0/z;->a:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object p2, p0, Lg0/z;->b:Lc0/y;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object p3, p0, Lg0/z;->c:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
new-instance p1, Lc0/b0$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {p1}, Lc0/b0$a;-><init>()V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object p1, p0, Lg0/z;->e:Lc0/b0$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object p5, p0, Lg0/z;->g:Lokhttp3/MediaType;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-boolean p6, p0, Lg0/z;->h:Z
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
if-eqz p4, :cond_0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p4}, Lokhttp3/Headers;->e()Lokhttp3/Headers$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object p1, p0, Lg0/z;->f:Lokhttp3/Headers$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:cond_0
new-instance p1, Lokhttp3/Headers$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {p1}, Lokhttp3/Headers$a;-><init>()V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object p1, p0, Lg0/z;->f:Lokhttp3/Headers$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:goto_0
if-eqz p7, :cond_1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
new-instance p1, Lc0/v$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {p1}, Lc0/v$a;-><init>()V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object p1, p0, Lg0/z;->j:Lc0/v$a;
2020-09-16 23:45:23 +00:00
goto :goto_1
2020-11-09 19:03:49 +00:00
:cond_1
if-eqz p8, :cond_2
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
new-instance p1, Lokhttp3/MultipartBody$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {p1}, Lokhttp3/MultipartBody$a;-><init>()V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object p1, p0, Lg0/z;->i:Lokhttp3/MultipartBody$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
sget-object p2, Lokhttp3/MultipartBody;->g:Lokhttp3/MediaType;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p1, p2}, Lokhttp3/MultipartBody$a;->c(Lokhttp3/MediaType;)Lokhttp3/MultipartBody$a;
2020-09-16 23:45:23 +00:00
:cond_2
:goto_1
2020-11-09 19:03:49 +00:00
return-void
.end method
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
# virtual methods
.method public a(Ljava/lang/String;Ljava/lang/String;Z)V
.locals 22
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v0, p0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v2, p1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v12, p2
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v1, "value"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v3, "name"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v4, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
if-eqz p3, :cond_1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v13, v0, Lg0/z;->j:Lc0/v$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v13, :cond_0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v2, v3}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v12, v1}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v14, v13, Lc0/v$a;->a:Ljava/util/List;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
sget-object v1, Lc0/y;->l:Lc0/y$b;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v10, v13, Lc0/v$a;->c:Ljava/nio/charset/Charset;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v15, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v4, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v16, 0x1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v17, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v18, 0x1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v19, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v20, 0x53
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v21, 0x0
2020-09-16 23:45:23 +00:00
const/4 v3, 0x0
2020-11-09 19:03:49 +00:00
const/4 v6, 0x1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v7, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v8, 0x1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v9, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v11, 0x53
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v2, p1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/y$b;->a(Lc0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {v14, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v14, v13, Lc0/v$a;->b:Ljava/util/List;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
sget-object v1, Lc0/y;->l:Lc0/y$b;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v10, v13, Lc0/v$a;->c:Ljava/nio/charset/Charset;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v2, p2
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v3, v21
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move v4, v15
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v6, v16
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v7, v17
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v8, v18
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v9, v19
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v11, v20
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/y$b;->a(Lc0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {v14, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:cond_0
throw v4
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:cond_1
iget-object v13, v0, Lg0/z;->j:Lc0/v$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v13, :cond_2
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v2, v3}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v12, v1}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v14, v13, Lc0/v$a;->a:Ljava/util/List;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
sget-object v1, Lc0/y;->l:Lc0/y$b;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v10, v13, Lc0/v$a;->c:Ljava/nio/charset/Charset;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v15, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v4, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v16, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v7, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v17, 0x1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v18, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v19, 0x5b
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v20, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v21, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v3, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v6, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v8, 0x1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/4 v9, 0x0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const/16 v11, 0x5b
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v2, p1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/y$b;->a(Lc0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2020-09-16 23:45:23 +00:00
move-result-object v1
2020-11-09 19:03:49 +00:00
invoke-interface {v14, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v14, v13, Lc0/v$a;->b:Ljava/util/List;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
sget-object v1, Lc0/y;->l:Lc0/y$b;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v10, v13, Lc0/v$a;->c:Ljava/nio/charset/Charset;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v2, p2
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v3, v20
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move v4, v15
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v6, v21
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v7, v16
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v8, v17
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v9, v18
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move/from16 v11, v19
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/y$b;->a(Lc0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {v14, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:goto_0
return-void
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:cond_2
throw v4
.end method
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
.method public b(Ljava/lang/String;Ljava/lang/String;)V
.locals 2
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v0, "Content-Type"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
2020-09-16 23:45:23 +00:00
move-result v0
2020-11-09 19:03:49 +00:00
if-eqz v0, :cond_0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:try_start_0
invoke-static {p2}, Lokhttp3/MediaType;->c(Ljava/lang/String;)Lokhttp3/MediaType;
2020-09-16 23:45:23 +00:00
move-result-object p1
2020-11-09 19:03:49 +00:00
iput-object p1, p0, Lg0/z;->g:Lokhttp3/MediaType;
:try_end_0
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:catch_0
move-exception p1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
new-instance v0, Ljava/lang/IllegalArgumentException;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const-string v1, "Malformed content type: "
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v1, p2}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {v0, p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
throw v0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_0
iget-object v0, p0, Lg0/z;->f:Lokhttp3/Headers$a;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, p1, p2}, Lokhttp3/Headers$a;->a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:goto_0
return-void
.end method
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
.method public c(Lokhttp3/Headers;Lokhttp3/RequestBody;)V
.locals 5
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
iget-object v0, p0, Lg0/z;->i:Lokhttp3/MultipartBody$a;
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
const/4 v1, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v0, :cond_6
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const-string v2, "body"
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p2, v2}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p2, v2}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
if-eqz p1, :cond_0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const-string v2, "Content-Type"
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p1, v2}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_0
move-object v2, v1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:goto_0
const/4 v3, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v4, 0x1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
if-nez v2, :cond_1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v2, 0x1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_1
const/4 v2, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:goto_1
if-eqz v2, :cond_5
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
if-eqz p1, :cond_2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const-string v2, "Content-Length"
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p1, v2}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_2
move-object v2, v1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:goto_2
if-nez v2, :cond_3
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v3, 0x1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_3
if-eqz v3, :cond_4
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
new-instance v2, Lokhttp3/MultipartBody$Part;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {v2, p1, p2, v1}, Lokhttp3/MultipartBody$Part;-><init>(Lokhttp3/Headers;Lokhttp3/RequestBody;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, v2}, Lokhttp3/MultipartBody$a;->a(Lokhttp3/MultipartBody$Part;)Lokhttp3/MultipartBody$a;
2020-07-08 16:44:49 +00:00
2020-09-16 23:45:23 +00:00
return-void
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_4
new-instance p1, Ljava/lang/IllegalArgumentException;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const-string p2, "Unexpected header: Content-Length"
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-16 23:45:23 +00:00
throw p1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_5
new-instance p1, Ljava/lang/IllegalArgumentException;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const-string p2, "Unexpected header: Content-Type"
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-16 23:45:23 +00:00
throw p1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_6
throw v1
.end method
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
.method public d(Ljava/lang/String;Ljava/lang/String;Z)V
.locals 16
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v0, p0
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v2, p1
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v12, p2
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
iget-object v1, v0, Lg0/z;->c:Ljava/lang/String;
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
const/4 v13, 0x0
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v1, :cond_1
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
iget-object v3, v0, Lg0/z;->b:Lc0/y;
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v3, v1}, Lc0/y;->g(Ljava/lang/String;)Lc0/y$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object v1, v0, Lg0/z;->d:Lc0/y$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v1, :cond_0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iput-object v13, v0, Lg0/z;->c:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:cond_0
new-instance v1, Ljava/lang/IllegalArgumentException;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v2, "Malformed URL. Base: "
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v2}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v2
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
iget-object v3, v0, Lg0/z;->b:Lc0/y;
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
const-string v3, ", Relative: "
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v3, v0, Lg0/z;->c:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
throw v1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_1
:goto_0
if-eqz p3, :cond_2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
iget-object v1, v0, Lg0/z;->d:Lc0/y$a;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v1, v2, v12}, Lc0/y$a;->a(Ljava/lang/String;Ljava/lang/String;)Lc0/y$a;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_1
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
:cond_2
iget-object v14, v0, Lg0/z;->d:Lc0/y$a;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v14, :cond_7
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
const-string v1, "name"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v2, v1}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object v1, v14, Lc0/y$a;->g:Ljava/util/List;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
if-nez v1, :cond_3
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
new-instance v1, Ljava/util/ArrayList;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
iput-object v1, v14, Lc0/y$a;->g:Ljava/util/List;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_3
iget-object v15, v14, Lc0/y$a;->g:Ljava/util/List;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v15, :cond_6
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
sget-object v1, Lc0/y;->l:Lc0/y$b;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v3, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v4, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v6, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v7, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v8, 0x1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v9, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v10, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/16 v11, 0xdb
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const-string v5, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~"
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v2, p1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/y$b;->a(Lc0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {v15, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
iget-object v14, v14, Lc0/y$a;->g:Ljava/util/List;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v14, :cond_5
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v12, :cond_4
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
sget-object v1, Lc0/y;->l:Lc0/y$b;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v3, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v4, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v6, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v7, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v8, 0x1
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v9, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/4 v10, 0x0
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const/16 v11, 0xdb
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
const-string v5, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~"
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-object/from16 v2, p2
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/y$b;->a(Lc0/y$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v13
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_4
invoke-interface {v14, v13}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:goto_1
return-void
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_5
invoke-static {}, Ly/n/c/j;->throwNpe()V
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
throw v13
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
:cond_6
invoke-static {}, Ly/n/c/j;->throwNpe()V
2020-07-08 16:44:49 +00:00
2020-11-09 19:03:49 +00:00
throw v13
2020-09-16 23:45:23 +00:00
:cond_7
2020-11-09 19:03:49 +00:00
throw v13
2020-07-08 16:44:49 +00:00
.end method