Rabbit-R1/switch port/smali/smali_classes3/okhttp3/internal/publicsuffix/PublicSuffixDatabase.smali
2024-05-21 17:08:36 -04:00

1083 lines
26 KiB
Smali

.class public final Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
.super Ljava/lang/Object;
.source "PublicSuffixDatabase.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\u0008\u0004\n\u0002\u0010\u0002\n\u0002\u0008\u0005\u0018\u0000 \u00152\u00020\u0001:\u0001\u0015B\u0005\u00a2\u0006\u0002\u0010\u0002J\u001c\u0010\n\u001a\u0008\u0012\u0004\u0012\u00020\u000c0\u000b2\u000c\u0010\r\u001a\u0008\u0012\u0004\u0012\u00020\u000c0\u000bH\u0002J\u0010\u0010\u000e\u001a\u0004\u0018\u00010\u000c2\u0006\u0010\u000f\u001a\u00020\u000cJ\u0008\u0010\u0010\u001a\u00020\u0011H\u0002J\u0008\u0010\u0012\u001a\u00020\u0011H\u0002J\u0016\u0010\u0013\u001a\u00020\u00112\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0006J\u0016\u0010\u0014\u001a\u0008\u0012\u0004\u0012\u00020\u000c0\u000b2\u0006\u0010\u000f\u001a\u00020\u000cH\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082.\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0006X\u0082.\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0008\u001a\u00020\tX\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0016"
}
d2 = {
"Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;",
"",
"()V",
"listRead",
"Ljava/util/concurrent/atomic/AtomicBoolean;",
"publicSuffixExceptionListBytes",
"",
"publicSuffixListBytes",
"readCompleteLatch",
"Ljava/util/concurrent/CountDownLatch;",
"findMatchingRule",
"",
"",
"domainLabels",
"getEffectiveTldPlusOne",
"domain",
"readTheList",
"",
"readTheListUninterruptibly",
"setListBytes",
"splitDomain",
"Companion",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# static fields
.field public static final Companion:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
.field private static final EXCEPTION_MARKER:C = '!'
.field private static final PREVAILING_RULE:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public static final PUBLIC_SUFFIX_RESOURCE:Ljava/lang/String; = "publicsuffixes.gz"
.field private static final WILDCARD_LABEL:[B
.field private static final instance:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
# instance fields
.field private final listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
.field private publicSuffixExceptionListBytes:[B
.field private publicSuffixListBytes:[B
.field private final readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
# direct methods
.method static constructor <clinit>()V
.locals 3
new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->Companion:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
const/4 v0, 0x1
new-array v0, v0, [B
const/16 v1, 0x2a
int-to-byte v1, v1
const/4 v2, 0x0
aput-byte v1, v0, v2
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->WILDCARD_LABEL:[B
const-string v0, "*"
.line 243
invoke-static {v0}, Lkotlin/collections/CollectionsKt;->listOf(Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->PREVAILING_RULE:Ljava/util/List;
.line 247
new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
invoke-direct {v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;-><init>()V
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->instance:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 35
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 38
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x0
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
iput-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 41
new-instance v0, Ljava/util/concurrent/CountDownLatch;
const/4 v1, 0x1
invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
iput-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
return-void
.end method
.method public static final synthetic access$getInstance$cp()Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
.locals 1
sget-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->instance:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
return-object v0
.end method
.method public static final synthetic access$getPublicSuffixListBytes$p(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;)[B
.locals 1
.line 35
iget-object p0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
if-nez p0, :cond_0
const-string v0, "publicSuffixListBytes"
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
:cond_0
return-object p0
.end method
.method public static final synthetic access$setPublicSuffixListBytes$p(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;[B)V
.locals 0
.line 35
iput-object p1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
return-void
.end method
.method private final findMatchingRule(Ljava/util/List;)Ljava/util/List;
.locals 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 100
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v0
const/4 v1, 0x0
const/4 v2, 0x1
if-nez v0, :cond_0
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
if-eqz v0, :cond_0
.line 101
invoke-direct {p0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readTheListUninterruptibly()V
goto :goto_0
:cond_0
:try_start_0
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
.line 104
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
.line 106
:catch_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
.line 110
:goto_0
move-object v0, p0
check-cast v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
if-eqz v0, :cond_1
move v0, v2
goto :goto_1
:cond_1
move v0, v1
:goto_1
if-eqz v0, :cond_12
.line 115
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
new-array v3, v0, [[B
move v4, v1
:goto_2
if-ge v4, v0, :cond_3
invoke-interface {p1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/String;
sget-object v6, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
const-string v7, "UTF_8"
invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz v5, :cond_2
invoke-virtual {v5, v6}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object v5
const-string v6, "(this as java.lang.String).getBytes(charset)"
invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
aput-object v5, v3, v4
add-int/lit8 v4, v4, 0x1
goto :goto_2
:cond_2
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
:cond_3
check-cast v3, [[B
const/4 p1, 0x0
.line 119
move-object v0, p1
check-cast v0, Ljava/lang/String;
array-length v0, v3
move v4, v1
:goto_3
const-string v5, "publicSuffixListBytes"
if-ge v4, v0, :cond_6
sget-object v6, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->Companion:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
iget-object v7, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
if-nez v7, :cond_4
.line 121
invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
:cond_4
invoke-static {v6, v7, v3, v4}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;->access$binarySearch(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;[B[[BI)Ljava/lang/String;
move-result-object v6
if-eqz v6, :cond_5
goto :goto_4
:cond_5
add-int/lit8 v4, v4, 0x1
goto :goto_3
:cond_6
move-object v6, p1
.line 134
:goto_4
move-object v0, v3
check-cast v0, [Ljava/lang/Object;
array-length v4, v0
if-le v4, v2, :cond_9
.line 135
invoke-virtual {v0}, Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object v4
check-cast v4, [[B
.line 136
move-object v7, v4
check-cast v7, [Ljava/lang/Object;
array-length v7, v7
sub-int/2addr v7, v2
move v8, v1
:goto_5
if-ge v8, v7, :cond_9
sget-object v9, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->WILDCARD_LABEL:[B
.line 137
aput-object v9, v4, v8
sget-object v9, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->Companion:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
iget-object v10, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
if-nez v10, :cond_7
.line 138
invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
:cond_7
invoke-static {v9, v10, v4, v8}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;->access$binarySearch(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;[B[[BI)Ljava/lang/String;
move-result-object v9
if-eqz v9, :cond_8
goto :goto_6
:cond_8
add-int/lit8 v8, v8, 0x1
goto :goto_5
:cond_9
move-object v9, p1
:goto_6
if-eqz v9, :cond_c
array-length v0, v0
sub-int/2addr v0, v2
move v4, v1
:goto_7
if-ge v4, v0, :cond_c
sget-object v5, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->Companion:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
iget-object v7, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixExceptionListBytes:[B
if-nez v7, :cond_a
const-string v8, "publicSuffixExceptionListBytes"
.line 150
invoke-static {v8}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
:cond_a
invoke-static {v5, v7, v3, v4}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;->access$binarySearch(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;[B[[BI)Ljava/lang/String;
move-result-object v5
if-eqz v5, :cond_b
move-object p1, v5
goto :goto_8
:cond_b
add-int/lit8 v4, v4, 0x1
goto :goto_7
:cond_c
:goto_8
const/16 p0, 0x2e
if-eqz p1, :cond_d
.line 161
new-instance v0, Ljava/lang/StringBuilder;
const-string v3, "!"
invoke-direct {v0, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 162
move-object v3, p1
check-cast v3, Ljava/lang/CharSequence;
new-array v4, v2, [C
aput-char p0, v4, v1
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x6
const/4 v8, 0x0
invoke-static/range {v3 .. v8}, Lkotlin/text/StringsKt;->split$default(Ljava/lang/CharSequence;[CZIILjava/lang/Object;)Ljava/util/List;
move-result-object p0
return-object p0
:cond_d
if-nez v6, :cond_e
if-nez v9, :cond_e
sget-object p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->PREVAILING_RULE:Ljava/util/List;
return-object p0
:cond_e
if-eqz v6, :cond_f
.line 167
move-object v3, v6
check-cast v3, Ljava/lang/CharSequence;
new-array v4, v2, [C
aput-char p0, v4, v1
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x6
const/4 v8, 0x0
invoke-static/range {v3 .. v8}, Lkotlin/text/StringsKt;->split$default(Ljava/lang/CharSequence;[CZIILjava/lang/Object;)Ljava/util/List;
move-result-object p1
if-eqz p1, :cond_f
goto :goto_9
:cond_f
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
move-result-object p1
:goto_9
if-eqz v9, :cond_10
.line 168
move-object v3, v9
check-cast v3, Ljava/lang/CharSequence;
new-array v4, v2, [C
aput-char p0, v4, v1
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x6
const/4 v8, 0x0
invoke-static/range {v3 .. v8}, Lkotlin/text/StringsKt;->split$default(Ljava/lang/CharSequence;[CZIILjava/lang/Object;)Ljava/util/List;
move-result-object p0
if-eqz p0, :cond_10
goto :goto_a
:cond_10
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
move-result-object p0
.line 170
:goto_a
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v1
if-le v0, v1, :cond_11
goto :goto_b
:cond_11
move-object p1, p0
:goto_b
return-object p1
.line 110
:cond_12
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "Unable to load publicsuffixes.gz resource from the classpath."
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method private final readTheList()V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-class v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
const-string v1, "publicsuffixes.gz"
.line 210
invoke-virtual {v0, v1}, Ljava/lang/Class;->getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;
move-result-object v0
if-eqz v0, :cond_0
.line 212
new-instance v1, Lokio/GzipSource;
invoke-static {v0}, Lokio/Okio;->source(Ljava/io/InputStream;)Lokio/Source;
move-result-object v0
invoke-direct {v1, v0}, Lokio/GzipSource;-><init>(Lokio/Source;)V
check-cast v1, Lokio/Source;
invoke-static {v1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
move-result-object v0
check-cast v0, Ljava/io/Closeable;
const/4 v1, 0x0
move-object v2, v1
check-cast v2, Ljava/lang/Throwable;
:try_start_0
move-object v2, v0
check-cast v2, Lokio/BufferedSource;
.line 213
invoke-interface {v2}, Lokio/BufferedSource;->readInt()I
move-result v3
int-to-long v3, v3
.line 214
invoke-interface {v2, v3, v4}, Lokio/BufferedSource;->readByteArray(J)[B
move-result-object v3
.line 216
invoke-interface {v2}, Lokio/BufferedSource;->readInt()I
move-result v4
int-to-long v4, v4
.line 217
invoke-interface {v2, v4, v5}, Lokio/BufferedSource;->readByteArray(J)[B
move-result-object v2
.line 218
sget-object v4, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 212
invoke-static {v0, v1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
.line 220
monitor-enter p0
.line 221
:try_start_1
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iput-object v3, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
.line 222
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iput-object v2, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixExceptionListBytes:[B
.line 223
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 220
monitor-exit p0
iget-object p0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
.line 225
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
return-void
:catchall_0
move-exception v0
.line 220
monitor-exit p0
throw v0
:catchall_1
move-exception p0
.line 212
:try_start_2
throw p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
:catchall_2
move-exception v1
invoke-static {v0, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
throw v1
:cond_0
return-void
.end method
.method private final readTheListUninterruptibly()V
.locals 4
const/4 v0, 0x0
.line 187
:goto_0
:try_start_0
invoke-direct {p0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readTheList()V
:try_end_0
.catch Ljava/io/InterruptedIOException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
.line 199
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/Thread;->interrupt()V
:cond_0
return-void
:catchall_0
move-exception p0
goto :goto_1
:catch_0
move-exception p0
.line 193
:try_start_1
sget-object v1, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion;
invoke-virtual {v1}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform;
move-result-object v1
const-string v2, "Failed to read public suffix list"
check-cast p0, Ljava/lang/Throwable;
const/4 v3, 0x5
invoke-virtual {v1, v2, v3, p0}, Lokhttp3/internal/platform/Platform;->log(Ljava/lang/String;ILjava/lang/Throwable;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz v0, :cond_1
.line 199
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/Thread;->interrupt()V
:cond_1
return-void
.line 190
:catch_1
:try_start_2
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
const/4 v0, 0x1
goto :goto_0
:goto_1
if-eqz v0, :cond_2
.line 199
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
:cond_2
throw p0
.end method
.method private final splitDomain(Ljava/lang/String;)Ljava/util/List;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 89
move-object v0, p1
check-cast v0, Ljava/lang/CharSequence;
const/4 p0, 0x1
new-array v1, p0, [C
const/4 p1, 0x0
const/16 v2, 0x2e
aput-char v2, v1, p1
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x6
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lkotlin/text/StringsKt;->split$default(Ljava/lang/CharSequence;[CZIILjava/lang/Object;)Ljava/util/List;
move-result-object p1
.line 91
invoke-static {p1}, Lkotlin/collections/CollectionsKt;->last(Ljava/util/List;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
const-string v1, ""
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
.line 93
invoke-static {p1, p0}, Lkotlin/collections/CollectionsKt;->dropLast(Ljava/util/List;I)Ljava/util/List;
move-result-object p0
return-object p0
:cond_0
return-object p1
.end method
# virtual methods
.method public final getEffectiveTldPlusOne(Ljava/lang/String;)Ljava/lang/String;
.locals 10
const-string v0, "domain"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 69
invoke-static {p1}, Ljava/net/IDN;->toUnicode(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "unicodeDomain"
.line 70
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->splitDomain(Ljava/lang/String;)Ljava/util/List;
move-result-object v0
.line 72
invoke-direct {p0, v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->findMatchingRule(Ljava/util/List;)Ljava/util/List;
move-result-object v1
.line 73
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v2
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v3
const/16 v4, 0x21
const/4 v5, 0x0
if-ne v2, v3, :cond_0
invoke-interface {v1, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-virtual {v2, v5}, Ljava/lang/String;->charAt(I)C
move-result v2
if-eq v2, v4, :cond_0
const/4 p0, 0x0
return-object p0
.line 77
:cond_0
invoke-interface {v1, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-virtual {v2, v5}, Ljava/lang/String;->charAt(I)C
move-result v2
if-ne v2, v4, :cond_1
.line 79
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
goto :goto_0
.line 82
:cond_1
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
add-int/lit8 v1, v1, 0x1
:goto_0
sub-int/2addr v0, v1
.line 85
invoke-direct {p0, p1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->splitDomain(Ljava/lang/String;)Ljava/util/List;
move-result-object p0
check-cast p0, Ljava/lang/Iterable;
invoke-static {p0}, Lkotlin/collections/CollectionsKt;->asSequence(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
move-result-object p0
invoke-static {p0, v0}, Lkotlin/sequences/SequencesKt;->drop(Lkotlin/sequences/Sequence;I)Lkotlin/sequences/Sequence;
move-result-object v1
const-string p0, "."
move-object v2, p0
check-cast v2, Ljava/lang/CharSequence;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/16 v8, 0x3e
const/4 v9, 0x0
invoke-static/range {v1 .. v9}, Lkotlin/sequences/SequencesKt;->joinToString$default(Lkotlin/sequences/Sequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public final setListBytes([B[B)V
.locals 1
const-string v0, "publicSuffixListBytes"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "publicSuffixExceptionListBytes"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
iput-object p2, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixExceptionListBytes:[B
iget-object p1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 p2, 0x1
.line 235
invoke-virtual {p1, p2}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
iget-object p0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
.line 236
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
return-void
.end method