apkfuckery/com.discord/smali_classes2/okhttp3/Headers$b.smali

496 lines
8.8 KiB
Smali
Raw Normal View History

2019-11-28 00:30:53 +00:00
.class public final Lokhttp3/Headers$b;
.super Ljava/lang/Object;
.source "Headers.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/Headers;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# direct methods
2019-12-06 03:29:40 +00:00
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-11-28 00:30:53 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-12-06 03:29:40 +00:00
# virtual methods
.method public final a([Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 5
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
array-length v0, p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sub-int/2addr v0, v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-11-28 00:30:53 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {v0, v2}, Lt/x/c;->downTo(II)Lkotlin/ranges/IntProgression;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-11-28 00:30:53 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {v0, v1}, Lt/x/c;->step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->getFirst()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->getLast()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->getStep()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-ltz v0, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-gt v1, v2, :cond_2
goto :goto_0
2019-11-28 00:30:53 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
if-lt v1, v2, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
aget-object v3, p1, v1
const/4 v4, 0x1
2019-12-18 09:41:56 +00:00
invoke-static {p2, v3, v4}, Lt/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2019-12-06 03:29:40 +00:00
move-result v3
if-eqz v3, :cond_1
add-int/2addr v1, v4
aget-object p1, p1, v1
return-object p1
2019-11-28 00:30:53 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
if-eq v1, v2, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
add-int/2addr v1, v0
goto :goto_0
2019-11-28 00:30:53 +00:00
:cond_2
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object p1
.end method
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.method public final varargs a([Ljava/lang/String;)Lokhttp3/Headers;
.locals 7
const/4 v0, 0x0
if-eqz p1, :cond_9
array-length v1, p1
const/4 v2, 0x2
rem-int/2addr v1, v2
const/4 v3, 0x1
const/4 v4, 0x0
if-nez v1, :cond_0
const/4 v1, 0x1
2019-11-28 00:30:53 +00:00
goto :goto_0
2019-12-06 03:29:40 +00:00
:cond_0
const/4 v1, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
if-eqz v1, :cond_8
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->clone()Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_7
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
check-cast p1, [Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
array-length v1, p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v5, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_1
if-ge v5, v1, :cond_4
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
aget-object v6, p1, v5
if-eqz v6, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v6, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_2
:cond_1
const/4 v6, 0x0
:goto_2
if-eqz v6, :cond_3
aget-object v6, p1, v5
if-eqz v6, :cond_2
2019-12-18 09:41:56 +00:00
invoke-static {v6}, Lt/a0/u;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
2019-12-06 03:29:40 +00:00
move-result-object v6
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v6
aput-object v6, p1, v5
add-int/lit8 v5, v5, 0x1
goto :goto_1
:cond_2
2019-12-18 09:41:56 +00:00
new-instance p1, Lt/l;
2019-12-06 03:29:40 +00:00
const-string v0, "null cannot be cast to non-null type kotlin.CharSequence"
2019-11-28 00:30:53 +00:00
2019-12-18 09:41:56 +00:00
invoke-direct {p1, v0}, Lt/l;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_3
2019-11-28 00:30:53 +00:00
new-instance p1, Ljava/lang/IllegalArgumentException;
2019-12-06 03:29:40 +00:00
const-string v0, "Headers cannot be null"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
throw p1
:cond_4
2019-12-06 03:29:40 +00:00
array-length v1, p1
2019-11-28 00:30:53 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {v4, v1}, Lt/x/c;->until(II)Lkotlin/ranges/IntRange;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {v1, v2}, Lt/x/c;->step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1}, Lkotlin/ranges/IntProgression;->getFirst()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1}, Lkotlin/ranges/IntProgression;->getLast()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1}, Lkotlin/ranges/IntProgression;->getStep()I
2019-11-28 00:30:53 +00:00
move-result v1
2019-12-06 03:29:40 +00:00
if-ltz v1, :cond_5
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-gt v2, v3, :cond_6
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_5
if-lt v2, v3, :cond_6
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_3
aget-object v4, p1, v2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
add-int/lit8 v5, v2, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
aget-object v5, p1, v5
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v4}, Lokhttp3/Headers$b;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v5, v4}, Lokhttp3/Headers$b;->a(Ljava/lang/String;Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eq v2, v3, :cond_6
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
add-int/2addr v2, v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_6
new-instance v1, Lokhttp3/Headers;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v1, p1, v0}, Lokhttp3/Headers;-><init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_7
2019-12-18 09:41:56 +00:00
new-instance p1, Lt/l;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v0, "null cannot be cast to non-null type kotlin.Array<kotlin.String>"
2019-11-28 00:30:53 +00:00
2019-12-18 09:41:56 +00:00
invoke-direct {p1, v0}, Lt/l;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_8
new-instance p1, Ljava/lang/IllegalArgumentException;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v0, "Expected alternating header names and values"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
:cond_9
const-string p1, "namesAndValues"
2019-12-18 09:41:56 +00:00
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
.end method
.method public final a(Ljava/lang/String;)V
.locals 7
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
2019-12-06 01:29:57 +00:00
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_5
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Ljava/lang/String;->length()I
2019-12-06 01:29:57 +00:00
move-result v0
const/4 v3, 0x0
:goto_1
if-ge v3, v0, :cond_4
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v3}, Ljava/lang/String;->charAt(I)C
2019-12-06 01:29:57 +00:00
move-result v4
const/16 v5, 0x7e
const/16 v6, 0x21
if-le v6, v4, :cond_1
goto :goto_2
:cond_1
if-lt v5, v4, :cond_2
const/4 v5, 0x1
goto :goto_3
:cond_2
:goto_2
const/4 v5, 0x0
:goto_3
if-eqz v5, :cond_3
add-int/lit8 v3, v3, 0x1
goto :goto_1
:cond_3
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/Object;
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
aput-object v4, v0, v2
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
const/4 v1, 0x2
2019-12-06 03:29:40 +00:00
aput-object p1, v0, v1
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
const-string p1, "Unexpected char %#04x at %d in header name: %s"
2019-12-06 01:29:57 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {p1, v0}, Lx/c0/a;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-12-06 01:29:57 +00:00
new-instance v0, Ljava/lang/IllegalArgumentException;
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-12-06 01:29:57 +00:00
throw v0
:cond_4
return-void
:cond_5
2019-12-06 03:29:40 +00:00
new-instance p1, Ljava/lang/IllegalArgumentException;
2019-12-06 01:29:57 +00:00
const-string v0, "name is empty"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-12-06 01:29:57 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final a(Ljava/lang/String;Ljava/lang/String;)V
.locals 7
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Ljava/lang/String;->length()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-11-28 00:30:53 +00:00
:goto_0
2019-12-06 03:29:40 +00:00
if-ge v2, v0, :cond_4
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v2}, Ljava/lang/String;->charAt(I)C
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/16 v4, 0x9
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v5, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eq v3, v4, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/16 v4, 0x7e
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/16 v6, 0x20
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-le v6, v3, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
if-lt v4, v3, :cond_1
2019-11-28 00:30:53 +00:00
goto :goto_2
:cond_1
2019-12-06 03:29:40 +00:00
:goto_1
const/4 v4, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_3
2019-11-28 00:30:53 +00:00
:cond_2
2019-12-06 03:29:40 +00:00
:goto_2
const/4 v4, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_3
if-eqz v4, :cond_3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
add-int/lit8 v2, v2, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-28 00:30:53 +00:00
:cond_3
2019-12-06 03:29:40 +00:00
const/4 v0, 0x4
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-array v0, v0, [Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
aput-object v3, v0, v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
aput-object v1, v0, v5
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
aput-object p2, v0, v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 p2, 0x3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
aput-object p1, v0, p2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string p1, "Unexpected char %#04x at %d in %s value: %s"
2019-11-28 00:30:53 +00:00
2019-12-18 09:41:56 +00:00
invoke-static {p1, v0}, Lx/c0/a;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-instance p2, Ljava/lang/IllegalArgumentException;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_4
return-void
2019-11-28 00:30:53 +00:00
.end method