apkfuckery/com.discord/smali_classes2/c0/g0/c.smali
2020-11-16 22:05:17 +00:00

1849 lines
38 KiB
Smali

.class public final Lc0/g0/c;
.super Ljava/lang/Object;
.source "Util.kt"
# static fields
.field public static final a:[B
.field public static final b:Lokhttp3/Headers;
.field public static final c:Lokhttp3/ResponseBody;
.field public static final d:Ld0/o;
.field public static final e:Ljava/util/TimeZone;
.field public static final f:Lkotlin/text/Regex;
.field public static final g:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 8
const/4 v0, 0x0
new-array v2, v0, [B
sput-object v2, Lc0/g0/c;->a:[B
sget-object v1, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
new-array v3, v0, [Ljava/lang/String;
invoke-virtual {v1, v3}, Lokhttp3/Headers$b;->c([Ljava/lang/String;)Lokhttp3/Headers;
move-result-object v1
sput-object v1, Lc0/g0/c;->b:Lokhttp3/Headers;
const-string v1, "$this$toResponseBody"
invoke-static {v2, v1}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v1, Ld0/e;
invoke-direct {v1}, Ld0/e;-><init>()V
invoke-virtual {v1, v2}, Ld0/e;->J([B)Ld0/e;
int-to-long v3, v0
const-string v5, "$this$asResponseBody"
invoke-static {v1, v5}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v5, Lc0/d0;
const/4 v7, 0x0
invoke-direct {v5, v1, v7, v3, v4}, Lc0/d0;-><init>(Ld0/g;Lokhttp3/MediaType;J)V
sput-object v5, Lc0/g0/c;->c:Lokhttp3/ResponseBody;
sget-object v1, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x7
invoke-static/range {v1 .. v6}, Lokhttp3/RequestBody$Companion;->d(Lokhttp3/RequestBody$Companion;[BLokhttp3/MediaType;III)Lokhttp3/RequestBody;
sget-object v1, Ld0/o;->f:Ld0/o$a;
const/4 v2, 0x5
new-array v2, v2, [Lokio/ByteString;
sget-object v3, Lokio/ByteString;->g:Lokio/ByteString$a;
const-string v4, "efbbbf"
invoke-virtual {v3, v4}, Lokio/ByteString$a;->a(Ljava/lang/String;)Lokio/ByteString;
move-result-object v4
aput-object v4, v2, v0
const-string v0, "feff"
invoke-virtual {v3, v0}, Lokio/ByteString$a;->a(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
const/4 v4, 0x1
aput-object v0, v2, v4
const-string v0, "fffe"
invoke-virtual {v3, v0}, Lokio/ByteString$a;->a(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
const/4 v4, 0x2
aput-object v0, v2, v4
const-string v0, "0000ffff"
invoke-virtual {v3, v0}, Lokio/ByteString$a;->a(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
const/4 v4, 0x3
aput-object v0, v2, v4
const-string v0, "ffff0000"
invoke-virtual {v3, v0}, Lokio/ByteString$a;->a(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
const/4 v3, 0x4
aput-object v0, v2, v3
invoke-virtual {v1, v2}, Ld0/o$a;->c([Lokio/ByteString;)Ld0/o;
move-result-object v0
sput-object v0, Lc0/g0/c;->d:Ld0/o;
const-string v0, "GMT"
invoke-static {v0}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;
move-result-object v0
if-eqz v0, :cond_0
sput-object v0, Lc0/g0/c;->e:Ljava/util/TimeZone;
new-instance v0, Lkotlin/text/Regex;
const-string v1, "([0-9a-fA-F]*:[0-9a-fA-F:.]*)|([\\d.]+)"
invoke-direct {v0, v1}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;)V
sput-object v0, Lc0/g0/c;->f:Lkotlin/text/Regex;
const-class v0, Lc0/y;
const-class v0, Lc0/y;
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
const-string v1, "OkHttpClient::class.java.name"
invoke-static {v0, v1}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "okhttp3."
invoke-static {v0, v1}, Ly/s/p;->removePrefix(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object v0
const-string v1, "Client"
invoke-static {v0, v1}, Ly/s/p;->removeSuffix(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object v0
sput-object v0, Lc0/g0/c;->g:Ljava/lang/String;
return-void
:cond_0
invoke-static {}, Ly/m/c/j;->throwNpe()V
throw v7
.end method
.method public static final A(Ljava/lang/String;I)I
.locals 4
if-eqz p0, :cond_2
:try_start_0
invoke-static {p0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
move-result-wide p0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
const v0, 0x7fffffff
int-to-long v1, v0
cmp-long v3, p0, v1
if-lez v3, :cond_0
goto :goto_0
:cond_0
const-wide/16 v0, 0x0
cmp-long v2, p0, v0
if-gez v2, :cond_1
const/4 v0, 0x0
goto :goto_0
:cond_1
long-to-int v0, p0
:goto_0
return v0
:catch_0
:cond_2
return p1
.end method
.method public static final B(Ljava/lang/String;II)Ljava/lang/String;
.locals 1
const-string v0, "$this$trimSubstring"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p0, p1, p2}, Lc0/g0/c;->o(Ljava/lang/String;II)I
move-result p1
invoke-static {p0, p1, p2}, Lc0/g0/c;->p(Ljava/lang/String;II)I
move-result p2
invoke-virtual {p0, p1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p0
const-string p1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {p0, p1}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final C(Ljava/lang/Exception;Ljava/util/List;)Ljava/lang/Throwable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Exception;",
"Ljava/util/List<",
"+",
"Ljava/lang/Exception;",
">;)",
"Ljava/lang/Throwable;"
}
.end annotation
const-string v0, "$this$withSuppressed"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "suppressed"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
const/4 v1, 0x1
if-le v0, v1, :cond_0
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
invoke-virtual {v0, p1}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
:cond_0
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Exception;
invoke-virtual {p0, v0}, Ljava/lang/Exception;->addSuppressed(Ljava/lang/Throwable;)V
goto :goto_0
:cond_1
return-object p0
.end method
.method public static final a(Lc0/x;Lc0/x;)Z
.locals 2
const-string v0, "$this$canReuseConnectionFor"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lc0/x;->e:Ljava/lang/String;
iget-object v1, p1, Lc0/x;->e:Ljava/lang/String;
invoke-static {v0, v1}, Ly/m/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget v0, p0, Lc0/x;->f:I
iget v1, p1, Lc0/x;->f:I
if-ne v0, v1, :cond_0
iget-object p0, p0, Lc0/x;->b:Ljava/lang/String;
iget-object p1, p1, Lc0/x;->b:Ljava/lang/String;
invoke-static {p0, p1}, Ly/m/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public static final b(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
.locals 6
const-string v0, "name"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
const-wide/16 v1, 0x0
cmp-long v3, p1, v1
if-ltz v3, :cond_0
const/4 v4, 0x1
goto :goto_0
:cond_0
const/4 v4, 0x0
:goto_0
if-eqz v4, :cond_6
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide p1
const p3, 0x7fffffff
int-to-long v4, p3
cmp-long p3, p1, v4
if-gtz p3, :cond_1
const/4 p3, 0x1
goto :goto_1
:cond_1
const/4 p3, 0x0
:goto_1
if-eqz p3, :cond_5
cmp-long p3, p1, v1
if-nez p3, :cond_2
if-gtz v3, :cond_3
:cond_2
const/4 v0, 0x1
:cond_3
if-eqz v0, :cond_4
long-to-int p0, p1
return p0
:cond_4
const-string p1, " too small."
invoke-static {p0, p1}, Lf/e/c/a/a;->r(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_5
const-string p1, " too large."
invoke-static {p0, p1}, Lf/e/c/a/a;->r(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_6
const-string p1, " < 0"
invoke-static {p0, p1}, Lf/e/c/a/a;->r(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public static final c(JJJ)V
.locals 5
or-long v0, p2, p4
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-ltz v4, :cond_0
cmp-long v0, p2, p0
if-gtz v0, :cond_0
sub-long/2addr p0, p2
cmp-long p2, p0, p4
if-ltz p2, :cond_0
return-void
:cond_0
new-instance p0, Ljava/lang/ArrayIndexOutOfBoundsException;
invoke-direct {p0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
throw p0
.end method
.method public static final d(Ljava/io/Closeable;)V
.locals 1
const-string v0, "$this$closeQuietly"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-void
:catch_1
move-exception p0
throw p0
.end method
.method public static final e(Ljava/net/Socket;)V
.locals 1
const-string v0, "$this$closeQuietly"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
invoke-virtual {p0}, Ljava/net/Socket;->close()V
:try_end_0
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-void
:catch_1
move-exception p0
throw p0
:catch_2
move-exception p0
throw p0
.end method
.method public static final f(Ljava/lang/String;CII)I
.locals 1
const-string v0, "$this$delimiterOffset"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_0
if-ge p2, p3, :cond_1
invoke-virtual {p0, p2}, Ljava/lang/String;->charAt(I)C
move-result v0
if-ne v0, p1, :cond_0
return p2
:cond_0
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_1
return p3
.end method
.method public static final g(Ljava/lang/String;Ljava/lang/String;II)I
.locals 3
const-string v0, "$this$delimiterOffset"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "delimiters"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_0
if-ge p2, p3, :cond_1
invoke-virtual {p0, p2}, Ljava/lang/String;->charAt(I)C
move-result v0
const/4 v1, 0x0
const/4 v2, 0x2
invoke-static {p1, v0, v1, v2}, Ly/s/p;->contains$default(Ljava/lang/CharSequence;CZI)Z
move-result v0
if-eqz v0, :cond_0
return p2
:cond_0
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_1
return p3
.end method
.method public static synthetic h(Ljava/lang/String;CIII)I
.locals 1
and-int/lit8 v0, p4, 0x2
if-eqz v0, :cond_0
const/4 p2, 0x0
:cond_0
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_1
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p3
:cond_1
invoke-static {p0, p1, p2, p3}, Lc0/g0/c;->f(Ljava/lang/String;CII)I
move-result p0
return p0
.end method
.method public static final i(Ld0/x;ILjava/util/concurrent/TimeUnit;)Z
.locals 1
const-string v0, "$this$discard"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "timeUnit"
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
invoke-static {p0, p1, p2}, Lc0/g0/c;->v(Ld0/x;ILjava/util/concurrent/TimeUnit;)Z
move-result p0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public static final varargs j(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
.locals 2
const-string v0, "format"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "args"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
const-string v1, "Locale.US"
invoke-static {v0, v1}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
array-length v1, p1
invoke-static {p1, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
array-length v1, p1
invoke-static {p1, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
invoke-static {v0, p0, p1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
const-string p1, "java.lang.String.format(locale, format, *args)"
invoke-static {p0, p1}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final k([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)Z
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Ljava/lang/String;",
"[",
"Ljava/lang/String;",
"Ljava/util/Comparator<",
"-",
"Ljava/lang/String;",
">;)Z"
}
.end annotation
const-string v0, "$this$hasIntersection"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "comparator"
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
array-length v0, p0
const/4 v1, 0x0
const/4 v2, 0x1
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-nez v0, :cond_5
if-eqz p1, :cond_5
array-length v0, p1
if-nez v0, :cond_1
const/4 v0, 0x1
goto :goto_1
:cond_1
const/4 v0, 0x0
:goto_1
if-eqz v0, :cond_2
goto :goto_4
:cond_2
array-length v0, p0
const/4 v3, 0x0
:goto_2
if-ge v3, v0, :cond_5
aget-object v4, p0, v3
array-length v5, p1
const/4 v6, 0x0
:goto_3
if-ge v6, v5, :cond_4
aget-object v7, p1, v6
invoke-interface {p2, v4, v7}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
move-result v7
if-nez v7, :cond_3
return v2
:cond_3
add-int/lit8 v6, v6, 0x1
goto :goto_3
:cond_4
add-int/lit8 v3, v3, 0x1
goto :goto_2
:cond_5
:goto_4
return v1
.end method
.method public static final l(Lokhttp3/Response;)J
.locals 2
const-string v0, "$this$headersContentLength"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Lokhttp3/Response;->i:Lokhttp3/Headers;
const-string v0, "Content-Length"
invoke-virtual {p0, v0}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_0
const-string v0, "$this$toLongOrDefault"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
invoke-static {p0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
move-result-wide v0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
:cond_0
const-wide/16 v0, -0x1
:goto_0
return-wide v0
.end method
.method public static final varargs m([Ljava/lang/Object;)Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)",
"Ljava/util/List<",
"TT;>;"
}
.end annotation
.annotation runtime Ljava/lang/SafeVarargs;
.end annotation
const-string v0, "elements"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object p0
check-cast p0, [Ljava/lang/Object;
array-length v0, p0
invoke-static {p0, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p0
invoke-static {p0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p0
invoke-static {p0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object p0
const-string v0, "Collections.unmodifiable\u2026sList(*elements.clone()))"
invoke-static {p0, v0}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final n(Ljava/lang/String;)I
.locals 4
const-string v0, "$this$indexOfControlOrNonAscii"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_2
invoke-virtual {p0, v1}, Ljava/lang/String;->charAt(I)C
move-result v2
const/16 v3, 0x1f
if-le v2, v3, :cond_1
const/16 v3, 0x7f
if-lt v2, v3, :cond_0
goto :goto_1
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
:goto_1
return v1
:cond_2
const/4 p0, -0x1
return p0
.end method
.method public static final o(Ljava/lang/String;II)I
.locals 2
const-string v0, "$this$indexOfFirstNonAsciiWhitespace"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_0
if-ge p1, p2, :cond_1
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v1, 0x9
if-eq v0, v1, :cond_0
const/16 v1, 0xa
if-eq v0, v1, :cond_0
const/16 v1, 0xc
if-eq v0, v1, :cond_0
const/16 v1, 0xd
if-eq v0, v1, :cond_0
const/16 v1, 0x20
if-eq v0, v1, :cond_0
return p1
:cond_0
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_1
return p2
.end method
.method public static final p(Ljava/lang/String;II)I
.locals 2
const-string v0, "$this$indexOfLastNonAsciiWhitespace"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
add-int/lit8 p2, p2, -0x1
if-lt p2, p1, :cond_1
:goto_0
invoke-virtual {p0, p2}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v1, 0x9
if-eq v0, v1, :cond_0
const/16 v1, 0xa
if-eq v0, v1, :cond_0
const/16 v1, 0xc
if-eq v0, v1, :cond_0
const/16 v1, 0xd
if-eq v0, v1, :cond_0
const/16 v1, 0x20
if-eq v0, v1, :cond_0
add-int/lit8 p2, p2, 0x1
return p2
:cond_0
if-eq p2, p1, :cond_1
add-int/lit8 p2, p2, -0x1
goto :goto_0
:cond_1
return p1
.end method
.method public static final q([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)[Ljava/lang/String;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Ljava/lang/String;",
"[",
"Ljava/lang/String;",
"Ljava/util/Comparator<",
"-",
"Ljava/lang/String;",
">;)[",
"Ljava/lang/String;"
}
.end annotation
const-string v0, "$this$intersect"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "comparator"
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
array-length v1, p0
const/4 v2, 0x0
const/4 v3, 0x0
:goto_0
if-ge v3, v1, :cond_2
aget-object v4, p0, v3
array-length v5, p1
const/4 v6, 0x0
:goto_1
if-ge v6, v5, :cond_1
aget-object v7, p1, v6
invoke-interface {p2, v4, v7}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
move-result v7
if-nez v7, :cond_0
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_2
:cond_0
add-int/lit8 v6, v6, 0x1
goto :goto_1
:cond_1
:goto_2
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
new-array p0, v2, [Ljava/lang/String;
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p0
if-eqz p0, :cond_3
check-cast p0, [Ljava/lang/String;
return-object p0
:cond_3
new-instance p0, Lkotlin/TypeCastException;
const-string p1, "null cannot be cast to non-null type kotlin.Array<T>"
invoke-direct {p0, p1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final r(C)I
.locals 2
const/16 v0, 0x30
if-le v0, p0, :cond_0
goto :goto_0
:cond_0
const/16 v1, 0x39
if-lt v1, p0, :cond_1
sub-int/2addr p0, v0
goto :goto_4
:cond_1
:goto_0
const/16 v0, 0x66
const/16 v1, 0x61
if-le v1, p0, :cond_2
goto :goto_2
:cond_2
if-lt v0, p0, :cond_3
:goto_1
sub-int/2addr p0, v1
add-int/lit8 p0, p0, 0xa
goto :goto_4
:cond_3
:goto_2
const/16 v0, 0x46
const/16 v1, 0x41
if-le v1, p0, :cond_4
goto :goto_3
:cond_4
if-lt v0, p0, :cond_5
goto :goto_1
:cond_5
:goto_3
const/4 p0, -0x1
:goto_4
return p0
.end method
.method public static final s(Ld0/g;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "$this$readBomAsCharset"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "default"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lc0/g0/c;->d:Ld0/o;
invoke-interface {p0, v0}, Ld0/g;->L0(Ld0/o;)I
move-result p0
const/4 v0, -0x1
if-eq p0, v0, :cond_7
if-eqz p0, :cond_6
const/4 p1, 0x1
if-eq p0, p1, :cond_5
const/4 p1, 0x2
if-eq p0, p1, :cond_4
const/4 p1, 0x3
if-eq p0, p1, :cond_2
const/4 p1, 0x4
if-ne p0, p1, :cond_1
sget-object p0, Ly/s/a;->d:Ly/s/a;
sget-object p0, Ly/s/a;->b:Ljava/nio/charset/Charset;
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const-string p0, "UTF-32LE"
invoke-static {p0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object p0
const-string p1, "Charset.forName(\"UTF-32LE\")"
invoke-static {p0, p1}, Ly/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
sput-object p0, Ly/s/a;->b:Ljava/nio/charset/Charset;
goto :goto_1
:cond_1
new-instance p0, Ljava/lang/AssertionError;
invoke-direct {p0}, Ljava/lang/AssertionError;-><init>()V
throw p0
:cond_2
sget-object p0, Ly/s/a;->d:Ly/s/a;
sget-object p0, Ly/s/a;->c:Ljava/nio/charset/Charset;
if-eqz p0, :cond_3
:goto_0
goto :goto_1
:cond_3
const-string p0, "UTF-32BE"
invoke-static {p0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object p0
const-string p1, "Charset.forName(\"UTF-32BE\")"
invoke-static {p0, p1}, Ly/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
sput-object p0, Ly/s/a;->c:Ljava/nio/charset/Charset;
:goto_1
move-object p1, p0
goto :goto_2
:cond_4
sget-object p1, Ljava/nio/charset/StandardCharsets;->UTF_16LE:Ljava/nio/charset/Charset;
const-string p0, "UTF_16LE"
invoke-static {p1, p0}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
goto :goto_2
:cond_5
sget-object p1, Ljava/nio/charset/StandardCharsets;->UTF_16BE:Ljava/nio/charset/Charset;
const-string p0, "UTF_16BE"
invoke-static {p1, p0}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
goto :goto_2
:cond_6
sget-object p1, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
const-string p0, "UTF_8"
invoke-static {p1, p0}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:cond_7
:goto_2
return-object p1
.end method
.method public static final t(Ld0/g;)I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "$this$readMedium"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p0}, Ld0/g;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
shl-int/lit8 v0, v0, 0x10
invoke-interface {p0}, Ld0/g;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
shl-int/lit8 v1, v1, 0x8
or-int/2addr v0, v1
invoke-interface {p0}, Ld0/g;->readByte()B
move-result p0
and-int/lit16 p0, p0, 0xff
or-int/2addr p0, v0
return p0
.end method
.method public static final u(Ld0/e;B)I
.locals 3
const-string v0, "$this$skipAll"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
:goto_0
invoke-virtual {p0}, Ld0/e;->H()Z
move-result v1
if-nez v1, :cond_0
const-wide/16 v1, 0x0
invoke-virtual {p0, v1, v2}, Ld0/e;->g(J)B
move-result v1
if-ne v1, p1, :cond_0
add-int/lit8 v0, v0, 0x1
invoke-virtual {p0}, Ld0/e;->readByte()B
goto :goto_0
:cond_0
return v0
.end method
.method public static final v(Ld0/x;ILjava/util/concurrent/TimeUnit;)Z
.locals 11
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "$this$skipAll"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "timeUnit"
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
invoke-interface {p0}, Ld0/x;->timeout()Ld0/y;
move-result-object v2
invoke-virtual {v2}, Ld0/y;->e()Z
move-result v2
const-wide v3, 0x7fffffffffffffffL
if-eqz v2, :cond_0
invoke-interface {p0}, Ld0/x;->timeout()Ld0/y;
move-result-object v2
invoke-virtual {v2}, Ld0/y;->c()J
move-result-wide v5
sub-long/2addr v5, v0
goto :goto_0
:cond_0
move-wide v5, v3
:goto_0
invoke-interface {p0}, Ld0/x;->timeout()Ld0/y;
move-result-object v2
int-to-long v7, p1
invoke-virtual {p2, v7, v8}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
move-result-wide p1
invoke-static {v5, v6, p1, p2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
add-long/2addr p1, v0
invoke-virtual {v2, p1, p2}, Ld0/y;->d(J)Ld0/y;
:try_start_0
new-instance p1, Ld0/e;
invoke-direct {p1}, Ld0/e;-><init>()V
:goto_1
const-wide/16 v7, 0x2000
invoke-interface {p0, p1, v7, v8}, Ld0/x;->v0(Ld0/e;J)J
move-result-wide v7
const-wide/16 v9, -0x1
cmp-long p2, v7, v9
if-eqz p2, :cond_1
iget-wide v7, p1, Ld0/e;->e:J
invoke-virtual {p1, v7, v8}, Ld0/e;->skip(J)V
:try_end_0
.catch Ljava/io/InterruptedIOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_1
:cond_1
const/4 p1, 0x1
cmp-long p2, v5, v3
if-nez p2, :cond_3
goto :goto_3
:catchall_0
move-exception p1
cmp-long p2, v5, v3
if-nez p2, :cond_2
invoke-interface {p0}, Ld0/x;->timeout()Ld0/y;
move-result-object p0
invoke-virtual {p0}, Ld0/y;->a()Ld0/y;
goto :goto_2
:cond_2
invoke-interface {p0}, Ld0/x;->timeout()Ld0/y;
move-result-object p0
add-long/2addr v0, v5
invoke-virtual {p0, v0, v1}, Ld0/y;->d(J)Ld0/y;
:goto_2
throw p1
:catch_0
nop
const/4 p1, 0x0
cmp-long p2, v5, v3
if-nez p2, :cond_3
:goto_3
invoke-interface {p0}, Ld0/x;->timeout()Ld0/y;
move-result-object p0
invoke-virtual {p0}, Ld0/y;->a()Ld0/y;
goto :goto_4
:cond_3
invoke-interface {p0}, Ld0/x;->timeout()Ld0/y;
move-result-object p0
add-long/2addr v0, v5
invoke-virtual {p0, v0, v1}, Ld0/y;->d(J)Ld0/y;
:goto_4
return p1
.end method
.method public static final w(Ljava/util/List;)Lokhttp3/Headers;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lc0/g0/j/b;",
">;)",
"Lokhttp3/Headers;"
}
.end annotation
const-string v0, "$this$toHeaders"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/util/ArrayList;
const/16 v1, 0x14
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lc0/g0/j/b;
iget-object v2, v1, Lc0/g0/j/b;->b:Lokio/ByteString;
iget-object v1, v1, Lc0/g0/j/b;->c:Lokio/ByteString;
invoke-virtual {v2}, Lokio/ByteString;->q()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1}, Lokio/ByteString;->q()Ljava/lang/String;
move-result-object v1
const-string v3, "name"
invoke-static {v2, v3}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v3, "value"
invoke-static {v1, v3}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-static {v1}, Ly/s/p;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/String;
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p0
if-eqz p0, :cond_1
check-cast p0, [Ljava/lang/String;
const/4 v0, 0x0
new-instance v1, Lokhttp3/Headers;
invoke-direct {v1, p0, v0}, Lokhttp3/Headers;-><init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
return-object v1
:cond_1
new-instance p0, Lkotlin/TypeCastException;
const-string v0, "null cannot be cast to non-null type kotlin.Array<T>"
invoke-direct {p0, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final x(I)Ljava/lang/String;
.locals 1
invoke-static {p0}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object p0
const-string v0, "Integer.toHexString(this)"
invoke-static {p0, v0}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final y(Lc0/x;Z)Ljava/lang/String;
.locals 4
const-string v0, "$this$toHostHeader"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lc0/x;->e:Ljava/lang/String;
const/4 v1, 0x0
const/4 v2, 0x2
const-string v3, ":"
invoke-static {v0, v3, v1, v2}, Ly/s/p;->contains$default(Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZI)Z
move-result v0
if-eqz v0, :cond_0
const/16 v0, 0x5b
invoke-static {v0}, Lf/e/c/a/a;->E(C)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lc0/x;->e:Ljava/lang/String;
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;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
iget-object v0, p0, Lc0/x;->e:Ljava/lang/String;
:goto_0
if-nez p1, :cond_4
iget p1, p0, Lc0/x;->f:I
iget-object v1, p0, Lc0/x;->b:Ljava/lang/String;
const-string v2, "scheme"
invoke-static {v1, v2}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
move-result v2
const v3, 0x310888 # 4.503E-39f
if-eq v2, v3, :cond_2
const v3, 0x5f008eb
if-eq v2, v3, :cond_1
goto :goto_1
:cond_1
const-string v2, "https"
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3
const/16 v1, 0x1bb
goto :goto_2
:cond_2
const-string v2, "http"
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3
const/16 v1, 0x50
goto :goto_2
:cond_3
:goto_1
const/4 v1, -0x1
:goto_2
if-eq p1, v1, :cond_5
:cond_4
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v0, 0x3a
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget p0, p0, Lc0/x;->f:I
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
:cond_5
return-object v0
.end method
.method public static final z(Ljava/util/List;)Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/List<",
"+TT;>;)",
"Ljava/util/List<",
"TT;>;"
}
.end annotation
const-string v0, "$this$toImmutableList"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p0}, Ly/h/f;->toMutableList(Ljava/util/Collection;)Ljava/util/List;
move-result-object p0
invoke-static {p0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object p0
const-string v0, "Collections.unmodifiableList(toMutableList())"
invoke-static {p0, v0}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method