.class public final Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
    }
.end annotation


# static fields
.field public static final e:[B

.field public static final f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public static final g:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;

.field public static final h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;


# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicBoolean;

.field public final b:Ljava/util/concurrent/CountDownLatch;

.field public c:[B

.field public d:[B


# direct methods
.method public static constructor <clinit>()V
    .registers 3

    new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;-><init>(Li9/c;)V

    sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;

    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;->e:[B

    const-string v0, "*"

    invoke-static {v0}, Lo/b;->c(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->f:Ljava/util/List;

    new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;

    invoke-direct {v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;-><init>()V

    sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->g:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;

    return-void
.end method

.method public constructor <init>()V
    .registers 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    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;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    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;->b:Ljava/util/concurrent/CountDownLatch;

    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/String;)Ljava/lang/String;
    .registers 15

    invoke-static {p1}, Ljava/net/IDN;->toUnicode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "unicodeDomain"

    invoke-static {v0, v1}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    .line 1
    iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-nez v1, :cond_4c

    iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v1, v2, v3}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z

    move-result v1

    if-eqz v1, :cond_4c

    move v1, v2

    .line 2
    :goto_20
    :try_start_20
    invoke-virtual {p0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b()V
    :try_end_23
    .catch Ljava/io/InterruptedIOException; {:try_start_20 .. :try_end_23} :catch_3d
    .catch Ljava/io/IOException; {:try_start_20 .. :try_end_23} :catch_28
    .catchall {:try_start_20 .. :try_end_23} :catchall_26

    if-eqz v1, :cond_59

    goto :goto_35

    :catchall_26
    move-exception p1

    goto :goto_42

    :catch_28
    move-exception v4

    :try_start_29
    sget-object v5, Lda/e;->c:Lda/e$a;

    .line 3
    sget-object v5, Lda/e;->a:Lda/e;

    const-string v6, "Failed to read public suffix list"

    const/4 v7, 0x5

    .line 4
    invoke-virtual {v5, v6, v7, v4}, Lda/e;->i(Ljava/lang/String;ILjava/lang/Throwable;)V
    :try_end_33
    .catchall {:try_start_29 .. :try_end_33} :catchall_26

    if-eqz v1, :cond_59

    :goto_35
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V

    goto :goto_59

    :catch_3d
    :try_start_3d
    invoke-static {}, Ljava/lang/Thread;->interrupted()Z
    :try_end_40
    .catchall {:try_start_3d .. :try_end_40} :catchall_26

    move v1, v3

    goto :goto_20

    :goto_42
    if-eqz v1, :cond_4b

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V

    :cond_4b
    throw p1

    .line 5
    :cond_4c
    :try_start_4c
    iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_51
    .catch Ljava/lang/InterruptedException; {:try_start_4c .. :try_end_51} :catch_52

    goto :goto_59

    :catch_52
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V

    :cond_59
    :goto_59
    iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B

    if-eqz v1, :cond_5f

    move v1, v3

    goto :goto_60

    :cond_5f
    move v1, v2

    :goto_60
    if-eqz v1, :cond_1cf

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    new-array v4, v1, [[B

    move v5, v2

    :goto_69
    if-ge v5, v1, :cond_8b

    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    sget-object v7, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;

    const-string v8, "UTF_8"

    invoke-static {v7, v8}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v8, "null cannot be cast to non-null type java.lang.String"

    invoke-static {v6, v8}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    invoke-virtual {v6, v7}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B

    move-result-object v6

    const-string v7, "(this as java.lang.String).getBytes(charset)"

    invoke-static {v6, v7}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    aput-object v6, v4, v5

    add-int/lit8 v5, v5, 0x1

    goto :goto_69

    :cond_8b
    move v5, v2

    :goto_8c
    const-string v6, "publicSuffixListBytes"

    const/4 v7, 0x0

    if-ge v5, v1, :cond_a5

    sget-object v8, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;

    iget-object v9, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B

    if-eqz v9, :cond_a1

    invoke-static {v8, v9, v4, v5}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;

    move-result-object v8

    if-eqz v8, :cond_9e

    goto :goto_a6

    :cond_9e
    add-int/lit8 v5, v5, 0x1

    goto :goto_8c

    :cond_a1
    invoke-static {v6}, Lx/e;->m(Ljava/lang/String;)V

    throw v7

    :cond_a5
    move-object v8, v7

    :goto_a6
    if-le v1, v3, :cond_cb

    invoke-virtual {v4}, Ljava/lang/Object;->clone()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, [[B

    array-length v9, v5

    sub-int/2addr v9, v3

    move v10, v2

    :goto_b1
    if-ge v10, v9, :cond_cb

    sget-object v11, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->e:[B

    aput-object v11, v5, v10

    sget-object v11, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;

    iget-object v12, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B

    if-eqz v12, :cond_c7

    invoke-static {v11, v12, v5, v10}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;

    move-result-object v11

    if-eqz v11, :cond_c4

    goto :goto_cc

    :cond_c4
    add-int/lit8 v10, v10, 0x1

    goto :goto_b1

    :cond_c7
    invoke-static {v6}, Lx/e;->m(Ljava/lang/String;)V

    throw v7

    :cond_cb
    move-object v11, v7

    :goto_cc
    if-eqz v11, :cond_e8

    sub-int/2addr v1, v3

    move v5, v2

    :goto_d0
    if-ge v5, v1, :cond_e8

    sget-object v6, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;

    iget-object v9, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->d:[B

    if-eqz v9, :cond_e2

    invoke-static {v6, v9, v4, v5}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_df

    goto :goto_e9

    :cond_df
    add-int/lit8 v5, v5, 0x1

    goto :goto_d0

    :cond_e2
    const-string p1, "publicSuffixExceptionListBytes"

    invoke-static {p1}, Lx/e;->m(Ljava/lang/String;)V

    throw v7

    :cond_e8
    move-object v6, v7

    :goto_e9
    const/4 v1, 0x6

    const/16 v4, 0x2e

    const/16 v5, 0x21

    if-eqz v6, :cond_108

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    new-array v8, v3, [C

    aput-char v4, v8, v2

    invoke-static {v6, v8, v2, v2, v1}, Lp9/l;->O(Ljava/lang/CharSequence;[CZII)Ljava/util/List;

    move-result-object v1

    goto :goto_134

    :cond_108
    if-nez v8, :cond_10f

    if-nez v11, :cond_10f

    sget-object v1, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->f:Ljava/util/List;

    goto :goto_134

    :cond_10f
    if-eqz v8, :cond_11a

    new-array v6, v3, [C

    aput-char v4, v6, v2

    invoke-static {v8, v6, v2, v2, v1}, Lp9/l;->O(Ljava/lang/CharSequence;[CZII)Ljava/util/List;

    move-result-object v6

    goto :goto_11c

    :cond_11a
    sget-object v6, Lz8/k;->r:Lz8/k;

    :goto_11c
    if-eqz v11, :cond_127

    new-array v8, v3, [C

    aput-char v4, v8, v2

    invoke-static {v11, v8, v2, v2, v1}, Lp9/l;->O(Ljava/lang/CharSequence;[CZII)Ljava/util/List;

    move-result-object v1

    goto :goto_129

    :cond_127
    sget-object v1, Lz8/k;->r:Lz8/k;

    :goto_129
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v4

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v8

    if-le v4, v8, :cond_134

    move-object v1, v6

    .line 6
    :cond_134
    :goto_134
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v4

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v6

    if-ne v4, v6, :cond_14b

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v4, v2}, Ljava/lang/String;->charAt(I)C

    move-result v4

    if-eq v4, v5, :cond_14b

    return-object v7

    :cond_14b
    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v4, v2}, Ljava/lang/String;->charAt(I)C

    move-result v4

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ne v4, v5, :cond_160

    goto :goto_162

    :cond_160
    add-int/lit8 v1, v1, 0x1

    :goto_162
    sub-int/2addr v0, v1

    invoke-virtual {p0, p1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c(Ljava/lang/String;)Ljava/util/List;

    move-result-object p1

    .line 7
    new-instance v1, Lz8/h;

    invoke-direct {v1, p1}, Lz8/h;-><init>(Ljava/lang/Iterable;)V

    if-ltz v0, :cond_170

    move p1, v3

    goto :goto_171

    :cond_170
    move p1, v2

    :goto_171
    if-eqz p1, :cond_1bd

    if-nez v0, :cond_176

    goto :goto_187

    .line 8
    :cond_176
    instance-of p1, v1, Lo9/c;

    if-eqz p1, :cond_181

    check-cast v1, Lo9/c;

    invoke-interface {v1, v0}, Lo9/c;->a(I)Lo9/d;

    move-result-object v1

    goto :goto_187

    :cond_181
    new-instance p1, Lo9/b;

    invoke-direct {p1, v1, v0}, Lo9/b;-><init>(Lo9/d;I)V

    move-object v1, p1

    :goto_187
    const-string p1, ""

    const-string v0, "$this$joinToString"

    .line 9
    invoke-static {v1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 10
    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;

    invoke-interface {v1}, Lo9/d;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_19a
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_1b0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    add-int/2addr v2, v3

    if-le v2, v3, :cond_1ac

    const-string v5, "."

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;

    :cond_1ac
    invoke-static {v0, v4, v7}, Lp/f;->b(Ljava/lang/Appendable;Ljava/lang/Object;Lh9/b;)V

    goto :goto_19a

    :cond_1b0
    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;

    .line 11
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "joinTo(StringBuilder(), \u2026ed, transform).toString()"

    invoke-static {p1, v0}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    return-object p1

    :cond_1bd
    const-string p1, "Requested element count "

    const-string v1, " is less than zero."

    .line 12
    invoke-static {p1, v0, v1}, Lo/a;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 13
    :cond_1cf
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v0, "Unable to load publicsuffixes.gz resource from the classpath."

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final b()V
    .registers 6

    const-class v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;

    const-string v1, "publicsuffixes.gz"

    invoke-virtual {v0, v1}, Ljava/lang/Class;->getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    if-eqz v0, :cond_56

    new-instance v1, Lha/m;

    .line 1
    sget-object v2, Lha/p;->a:Ljava/util/logging/Logger;

    const-string v2, "$this$source"

    .line 2
    invoke-static {v0, v2}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v2, Lha/o;

    new-instance v3, Lha/a0;

    invoke-direct {v3}, Lha/a0;-><init>()V

    invoke-direct {v2, v0, v3}, Lha/o;-><init>(Ljava/io/InputStream;Lha/a0;)V

    .line 3
    invoke-direct {v1, v2}, Lha/m;-><init>(Lha/z;)V

    invoke-static {v1}, Le/h;->b(Lha/z;)Lha/h;

    move-result-object v0

    const/4 v1, 0x0

    :try_start_25
    invoke-interface {v0}, Lha/h;->readInt()I

    move-result v2

    int-to-long v2, v2

    invoke-interface {v0, v2, v3}, Lha/h;->y(J)[B

    move-result-object v2

    invoke-interface {v0}, Lha/h;->readInt()I

    move-result v3

    int-to-long v3, v3

    invoke-interface {v0, v3, v4}, Lha/h;->y(J)[B

    move-result-object v3
    :try_end_37
    .catchall {:try_start_25 .. :try_end_37} :catchall_4f

    invoke-static {v0, v1}, Le/c;->b(Ljava/io/Closeable;Ljava/lang/Throwable;)V

    monitor-enter p0

    :try_start_3b
    invoke-static {v2}, Lx/e;->d(Ljava/lang/Object;)V

    iput-object v2, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B

    invoke-static {v3}, Lx/e;->d(Ljava/lang/Object;)V

    iput-object v3, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->d:[B
    :try_end_45
    .catchall {:try_start_3b .. :try_end_45} :catchall_4c

    monitor-exit p0

    iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    return-void

    :catchall_4c
    move-exception v0

    monitor-exit p0

    throw v0

    :catchall_4f
    move-exception v1

    :try_start_50
    throw v1
    :try_end_51
    .catchall {:try_start_50 .. :try_end_51} :catchall_51

    :catchall_51
    move-exception v2

    invoke-static {v0, v1}, Le/c;->b(Ljava/io/Closeable;Ljava/lang/Throwable;)V

    throw v2

    :cond_56
    return-void
.end method

.method public final c(Ljava/lang/String;)Ljava/util/List;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x1

    new-array v1, v0, [C

    const/4 v2, 0x0

    const/16 v3, 0x2e

    aput-char v3, v1, v2

    const/4 v3, 0x6

    invoke-static {p1, v1, v2, v2, v3}, Lp9/l;->O(Ljava/lang/CharSequence;[CZII)Ljava/util/List;

    move-result-object p1

    .line 1
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_82

    .line 2
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    .line 3
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    .line 4
    check-cast v1, Ljava/lang/String;

    const-string v3, ""

    invoke-static {v1, v3}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_81

    .line 5
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    sub-int/2addr v1, v0

    if-gez v1, :cond_2f

    move v1, v2

    :cond_2f
    if-ltz v1, :cond_33

    move v3, v0

    goto :goto_34

    :cond_33
    move v3, v2

    :goto_34
    if-eqz v3, :cond_6f

    if-nez v1, :cond_3b

    .line 6
    sget-object p1, Lz8/k;->r:Lz8/k;

    goto :goto_6e

    :cond_3b
    invoke-interface {p1}, Ljava/util/Collection;->size()I

    move-result v3

    if-lt v1, v3, :cond_46

    invoke-static {p1}, Lz8/i;->m(Ljava/lang/Iterable;)Ljava/util/List;

    move-result-object p1

    goto :goto_6e

    :cond_46
    if-ne v1, v0, :cond_51

    .line 7
    invoke-static {p1}, Lz8/i;->i(Ljava/util/List;)Ljava/lang/Object;

    move-result-object p1

    .line 8
    invoke-static {p1}, Lo/b;->c(Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    goto :goto_6e

    :cond_51
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3, v1}, Ljava/util/ArrayList;-><init>(I)V

    invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_5a
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_6a

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/2addr v2, v0

    if-ne v2, v1, :cond_5a

    :cond_6a
    invoke-static {v3}, Lo/b;->e(Ljava/util/List;)Ljava/util/List;

    move-result-object p1

    :goto_6e
    return-object p1

    :cond_6f
    const-string p1, "Requested element count "

    const-string v0, " is less than zero."

    invoke-static {p1, v1, v0}, Lo/a;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;

    move-result-object p1

    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_81
    return-object p1

    .line 9
    :cond_82
    new-instance p1, Ljava/util/NoSuchElementException;

    const-string v0, "List is empty."

    invoke-direct {p1, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V

    throw p1
.end method
