apkfuckery/com.discord/smali/b/l.smali
2019-10-11 23:55:41 +02:00

704 lines
15 KiB
Smali

.class final Lb/l;
.super Ljava/lang/Object;
.source "RequestBuilder.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lb/l$a;
}
.end annotation
# static fields
.field private static final bqU:[C
# instance fields
.field private final bEA:Lokhttp3/s;
.field bEB:Ljava/lang/String;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private bEC:Lokhttp3/s$a;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private final bED:Lokhttp3/w$a;
.field private final bEE:Z
.field bEF:Lokhttp3/MultipartBody$a;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private bEG:Lokhttp3/q$a;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private bru:Lokhttp3/MediaType;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field bry:Lokhttp3/RequestBody;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private final bsg:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 1
const/16 v0, 0x10
new-array v0, v0, [C
fill-array-data v0, :array_0
sput-object v0, Lb/l;->bqU:[C
return-void
:array_0
.array-data 2
0x30s
0x31s
0x32s
0x33s
0x34s
0x35s
0x36s
0x37s
0x38s
0x39s
0x41s
0x42s
0x43s
0x44s
0x45s
0x46s
.end array-data
.end method
.method constructor <init>(Ljava/lang/String;Lokhttp3/s;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
.locals 0
.param p3 # Ljava/lang/String;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p4 # Lokhttp3/Headers;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p5 # Lokhttp3/MediaType;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lb/l;->bsg:Ljava/lang/String;
iput-object p2, p0, Lb/l;->bEA:Lokhttp3/s;
iput-object p3, p0, Lb/l;->bEB:Ljava/lang/String;
new-instance p1, Lokhttp3/w$a;
invoke-direct {p1}, Lokhttp3/w$a;-><init>()V
iput-object p1, p0, Lb/l;->bED:Lokhttp3/w$a;
iput-object p5, p0, Lb/l;->bru:Lokhttp3/MediaType;
iput-boolean p6, p0, Lb/l;->bEE:Z
if-eqz p4, :cond_0
iget-object p1, p0, Lb/l;->bED:Lokhttp3/w$a;
invoke-virtual {p1, p4}, Lokhttp3/w$a;->b(Lokhttp3/Headers;)Lokhttp3/w$a;
:cond_0
if-eqz p7, :cond_1
new-instance p1, Lokhttp3/q$a;
invoke-direct {p1}, Lokhttp3/q$a;-><init>()V
iput-object p1, p0, Lb/l;->bEG:Lokhttp3/q$a;
return-void
:cond_1
if-eqz p8, :cond_4
new-instance p1, Lokhttp3/MultipartBody$a;
invoke-direct {p1}, Lokhttp3/MultipartBody$a;-><init>()V
iput-object p1, p0, Lb/l;->bEF:Lokhttp3/MultipartBody$a;
iget-object p1, p0, Lb/l;->bEF:Lokhttp3/MultipartBody$a;
sget-object p2, Lokhttp3/MultipartBody;->bro:Lokhttp3/MediaType;
if-eqz p2, :cond_3
iget-object p3, p2, Lokhttp3/MediaType;->type:Ljava/lang/String;
const-string p4, "multipart"
invoke-virtual {p3, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p3
if-eqz p3, :cond_2
iput-object p2, p1, Lokhttp3/MultipartBody$a;->brw:Lokhttp3/MediaType;
goto :goto_0
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
const-string p3, "multipart != "
invoke-virtual {p3, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "type == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
:goto_0
return-void
.end method
.method static k(Ljava/lang/String;Z)Ljava/lang/String;
.locals 14
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_8
invoke-virtual {p0, v2}, Ljava/lang/String;->codePointAt(I)I
move-result v3
const/16 v4, 0x2f
const/4 v5, -0x1
const-string v6, " \"<>^`{}|\\?#"
const/16 v7, 0x7f
const/16 v8, 0x20
const/16 v9, 0x25
if-lt v3, v8, :cond_1
if-ge v3, v7, :cond_1
invoke-virtual {v6, v3}, Ljava/lang/String;->indexOf(I)I
move-result v10
if-ne v10, v5, :cond_1
if-nez p1, :cond_0
if-eq v3, v4, :cond_1
if-ne v3, v9, :cond_0
goto :goto_1
:cond_0
invoke-static {v3}, Ljava/lang/Character;->charCount(I)I
move-result v3
add-int/2addr v2, v3
goto :goto_0
:cond_1
:goto_1
new-instance v3, Lokio/c;
invoke-direct {v3}, Lokio/c;-><init>()V
invoke-virtual {v3, p0, v1, v2}, Lokio/c;->o(Ljava/lang/String;II)Lokio/c;
const/4 v1, 0x0
:goto_2
if-ge v2, v0, :cond_7
invoke-virtual {p0, v2}, Ljava/lang/String;->codePointAt(I)I
move-result v10
if-eqz p1, :cond_2
const/16 v11, 0x9
if-eq v10, v11, :cond_6
const/16 v11, 0xa
if-eq v10, v11, :cond_6
const/16 v11, 0xc
if-eq v10, v11, :cond_6
const/16 v11, 0xd
if-eq v10, v11, :cond_6
:cond_2
if-lt v10, v8, :cond_4
if-ge v10, v7, :cond_4
invoke-virtual {v6, v10}, Ljava/lang/String;->indexOf(I)I
move-result v11
if-ne v11, v5, :cond_4
if-nez p1, :cond_3
if-eq v10, v4, :cond_4
if-ne v10, v9, :cond_3
goto :goto_3
:cond_3
invoke-virtual {v3, v10}, Lokio/c;->dt(I)Lokio/c;
goto :goto_5
:cond_4
:goto_3
if-nez v1, :cond_5
new-instance v1, Lokio/c;
invoke-direct {v1}, Lokio/c;-><init>()V
:cond_5
invoke-virtual {v1, v10}, Lokio/c;->dt(I)Lokio/c;
:goto_4
invoke-virtual {v1}, Lokio/c;->Hg()Z
move-result v11
if-nez v11, :cond_6
invoke-virtual {v1}, Lokio/c;->readByte()B
move-result v11
and-int/lit16 v11, v11, 0xff
invoke-virtual {v3, v9}, Lokio/c;->du(I)Lokio/c;
sget-object v12, Lb/l;->bqU:[C
shr-int/lit8 v13, v11, 0x4
and-int/lit8 v13, v13, 0xf
aget-char v12, v12, v13
invoke-virtual {v3, v12}, Lokio/c;->du(I)Lokio/c;
sget-object v12, Lb/l;->bqU:[C
and-int/lit8 v11, v11, 0xf
aget-char v11, v12, v11
invoke-virtual {v3, v11}, Lokio/c;->du(I)Lokio/c;
goto :goto_4
:cond_6
:goto_5
invoke-static {v10}, Ljava/lang/Character;->charCount(I)I
move-result v10
add-int/2addr v2, v10
goto :goto_2
:cond_7
invoke-virtual {v3}, Lokio/c;->Hm()Ljava/lang/String;
move-result-object p0
:cond_8
return-object p0
.end method
# virtual methods
.method final FL()Lokhttp3/w;
.locals 5
iget-object v0, p0, Lb/l;->bEC:Lokhttp3/s$a;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lokhttp3/s$a;->Fu()Lokhttp3/s;
move-result-object v0
goto :goto_0
:cond_0
iget-object v0, p0, Lb/l;->bEA:Lokhttp3/s;
iget-object v1, p0, Lb/l;->bEB:Ljava/lang/String;
invoke-virtual {v0, v1}, Lokhttp3/s;->dF(Ljava/lang/String;)Lokhttp3/s;
move-result-object v0
if-eqz v0, :cond_7
:goto_0
iget-object v1, p0, Lb/l;->bry:Lokhttp3/RequestBody;
if-nez v1, :cond_4
iget-object v2, p0, Lb/l;->bEG:Lokhttp3/q$a;
if-eqz v2, :cond_1
new-instance v1, Lokhttp3/q;
iget-object v3, v2, Lokhttp3/q$a;->names:Ljava/util/List;
iget-object v2, v2, Lokhttp3/q$a;->bqM:Ljava/util/List;
invoke-direct {v1, v3, v2}, Lokhttp3/q;-><init>(Ljava/util/List;Ljava/util/List;)V
goto :goto_1
:cond_1
iget-object v2, p0, Lb/l;->bEF:Lokhttp3/MultipartBody$a;
if-eqz v2, :cond_3
iget-object v1, v2, Lokhttp3/MultipartBody$a;->brv:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_2
new-instance v1, Lokhttp3/MultipartBody;
iget-object v3, v2, Lokhttp3/MultipartBody$a;->brs:Lokio/ByteString;
iget-object v4, v2, Lokhttp3/MultipartBody$a;->brw:Lokhttp3/MediaType;
iget-object v2, v2, Lokhttp3/MultipartBody$a;->brv:Ljava/util/List;
invoke-direct {v1, v3, v4, v2}, Lokhttp3/MultipartBody;-><init>(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V
goto :goto_1
:cond_2
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Multipart body must have at least one part."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_3
iget-boolean v2, p0, Lb/l;->bEE:Z
if-eqz v2, :cond_4
const/4 v1, 0x0
const/4 v2, 0x0
new-array v2, v2, [B
invoke-static {v1, v2}, Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;
move-result-object v1
:cond_4
:goto_1
iget-object v2, p0, Lb/l;->bru:Lokhttp3/MediaType;
if-eqz v2, :cond_6
if-eqz v1, :cond_5
new-instance v3, Lb/l$a;
invoke-direct {v3, v1, v2}, Lb/l$a;-><init>(Lokhttp3/RequestBody;Lokhttp3/MediaType;)V
move-object v1, v3
goto :goto_2
:cond_5
iget-object v3, p0, Lb/l;->bED:Lokhttp3/w$a;
invoke-virtual {v2}, Lokhttp3/MediaType;->toString()Ljava/lang/String;
move-result-object v2
const-string v4, "Content-Type"
invoke-virtual {v3, v4, v2}, Lokhttp3/w$a;->ap(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
:cond_6
:goto_2
iget-object v2, p0, Lb/l;->bED:Lokhttp3/w$a;
invoke-virtual {v2, v0}, Lokhttp3/w$a;->b(Lokhttp3/s;)Lokhttp3/w$a;
move-result-object v0
iget-object v2, p0, Lb/l;->bsg:Ljava/lang/String;
invoke-virtual {v0, v2, v1}, Lokhttp3/w$a;->a(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/w$a;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/w$a;->FL()Lokhttp3/w;
move-result-object v0
return-object v0
:cond_7
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Malformed URL. Base: "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v2, p0, Lb/l;->bEA:Lokhttp3/s;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, ", Relative: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lb/l;->bEB:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method final ax(Ljava/lang/String;Ljava/lang/String;)V
.locals 1
const-string v0, "Content-Type"
invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_1
invoke-static {p2}, Lokhttp3/MediaType;->dL(Ljava/lang/String;)Lokhttp3/MediaType;
move-result-object p1
if-eqz p1, :cond_0
iput-object p1, p0, Lb/l;->bru:Lokhttp3/MediaType;
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
const-string v0, "Malformed content type: "
invoke-virtual {v0, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
iget-object v0, p0, Lb/l;->bED:Lokhttp3/w$a;
invoke-virtual {v0, p1, p2}, Lokhttp3/w$a;->ap(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
return-void
.end method
.method final c(Ljava/lang/String;Ljava/lang/String;Z)V
.locals 2
.param p2 # Ljava/lang/String;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Lb/l;->bEB:Ljava/lang/String;
if-eqz v0, :cond_1
iget-object v1, p0, Lb/l;->bEA:Lokhttp3/s;
invoke-virtual {v1, v0}, Lokhttp3/s;->dG(Ljava/lang/String;)Lokhttp3/s$a;
move-result-object v0
iput-object v0, p0, Lb/l;->bEC:Lokhttp3/s$a;
iget-object v0, p0, Lb/l;->bEC:Lokhttp3/s$a;
if-eqz v0, :cond_0
const/4 v0, 0x0
iput-object v0, p0, Lb/l;->bEB:Ljava/lang/String;
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance p2, Ljava/lang/StringBuilder;
const-string p3, "Malformed URL. Base: "
invoke-direct {p2, p3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p3, p0, Lb/l;->bEA:Lokhttp3/s;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p3, ", Relative: "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object p3, p0, Lb/l;->bEB:Ljava/lang/String;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
:goto_0
if-eqz p3, :cond_2
iget-object p3, p0, Lb/l;->bEC:Lokhttp3/s$a;
invoke-virtual {p3, p1, p2}, Lokhttp3/s$a;->an(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/s$a;
return-void
:cond_2
iget-object p3, p0, Lb/l;->bEC:Lokhttp3/s$a;
invoke-virtual {p3, p1, p2}, Lokhttp3/s$a;->am(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/s$a;
return-void
.end method
.method final c(Lokhttp3/Headers;Lokhttp3/RequestBody;)V
.locals 1
iget-object v0, p0, Lb/l;->bEF:Lokhttp3/MultipartBody$a;
invoke-virtual {v0, p1, p2}, Lokhttp3/MultipartBody$a;->a(Lokhttp3/Headers;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$a;
return-void
.end method
.method final d(Ljava/lang/String;Ljava/lang/String;Z)V
.locals 0
if-eqz p3, :cond_0
iget-object p3, p0, Lb/l;->bEG:Lokhttp3/q$a;
invoke-virtual {p3, p1, p2}, Lokhttp3/q$a;->ah(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/q$a;
return-void
:cond_0
iget-object p3, p0, Lb/l;->bEG:Lokhttp3/q$a;
invoke-virtual {p3, p1, p2}, Lokhttp3/q$a;->ag(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/q$a;
return-void
.end method