.class public final Lcom/google/android/gms/internal/ads/t6;
.super Lcom/google/android/gms/internal/ads/n6;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<E:",
        "Ljava/lang/Object;",
        ">",
        "Lcom/google/android/gms/internal/ads/n6<",
        "TE;>;"
    }
.end annotation


# instance fields
.field public e:[Ljava/lang/Object;
    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field

.field public f:I


# direct methods
.method public constructor <init>(I)V
    .registers 2

    invoke-direct {p0, p1}, Lcom/google/android/gms/internal/ads/n6;-><init>(I)V

    invoke-static {p1}, Lcom/google/android/gms/internal/ads/u6;->K(I)I

    move-result p1

    new-array p1, p1, [Ljava/lang/Object;

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public final e(Ljava/lang/Object;)Lcom/google/android/gms/internal/ads/t6;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)",
            "Lcom/google/android/gms/internal/ads/t6<",
            "TE;>;"
        }
    .end annotation

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

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    if-eqz v0, :cond_38

    iget v0, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/u6;->K(I)I

    move-result v0

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    array-length v1, v1

    if-gt v0, v1, :cond_38

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

    invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I

    move-result v0

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/m6;->a(I)I

    move-result v2

    :goto_1c
    and-int/2addr v2, v1

    iget-object v3, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    aget-object v4, v3, v2

    if-nez v4, :cond_2e

    aput-object p1, v3, v2

    iget v1, p0, Lcom/google/android/gms/internal/ads/t6;->f:I

    add-int/2addr v1, v0

    iput v1, p0, Lcom/google/android/gms/internal/ads/t6;->f:I

    invoke-virtual {p0, p1}, Lcom/google/android/gms/internal/ads/n6;->c(Ljava/lang/Object;)Lcom/google/android/gms/internal/ads/n6;

    goto :goto_37

    :cond_2e
    invoke-virtual {v4, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_37

    add-int/lit8 v2, v2, 0x1

    goto :goto_1c

    :cond_37
    :goto_37
    return-object p0

    :cond_38
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    invoke-virtual {p0, p1}, Lcom/google/android/gms/internal/ads/n6;->c(Ljava/lang/Object;)Lcom/google/android/gms/internal/ads/n6;

    return-object p0
.end method

.method public final f(Ljava/lang/Iterable;)Lcom/google/android/gms/internal/ads/t6;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Iterable<",
            "+TE;>;)",
            "Lcom/google/android/gms/internal/ads/t6<",
            "TE;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    if-eqz v0, :cond_16

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

    move-result-object p1

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

    move-result v0

    if-eqz v0, :cond_42

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

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/google/android/gms/internal/ads/t6;->e(Ljava/lang/Object;)Lcom/google/android/gms/internal/ads/t6;

    goto :goto_8

    .line 1
    :cond_16
    iget v0, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

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

    move-result v1

    add-int/2addr v1, v0

    invoke-virtual {p0, v1}, Lcom/google/android/gms/internal/ads/n6;->d(I)V

    instance-of v0, p1, Lcom/google/android/gms/internal/ads/o6;

    if-nez v0, :cond_36

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

    move-result-object p1

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

    move-result v0

    if-eqz v0, :cond_42

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

    move-result-object v0

    .line 2
    invoke-virtual {p0, v0}, Lcom/google/android/gms/internal/ads/t6;->e(Ljava/lang/Object;)Lcom/google/android/gms/internal/ads/t6;

    goto :goto_28

    .line 3
    :cond_36
    check-cast p1, Lcom/google/android/gms/internal/ads/o6;

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/n6;->b:[Ljava/lang/Object;

    iget v1, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

    invoke-virtual {p1, v0, v1}, Lcom/google/android/gms/internal/ads/o6;->H([Ljava/lang/Object;I)I

    move-result p1

    iput p1, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

    :cond_42
    return-object p0
.end method

.method public final g()Lcom/google/android/gms/internal/ads/u6;
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/android/gms/internal/ads/u6<",
            "TE;>;"
        }
    .end annotation

    iget v0, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

    if-eqz v0, :cond_5a

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eq v0, v2, :cond_4d

    iget-object v3, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    if-eqz v3, :cond_39

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/u6;->K(I)I

    move-result v0

    iget-object v3, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    array-length v3, v3

    if-ne v0, v3, :cond_39

    iget v0, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

    iget-object v3, p0, Lcom/google/android/gms/internal/ads/n6;->b:[Ljava/lang/Object;

    array-length v4, v3

    shr-int/lit8 v5, v4, 0x1

    shr-int/lit8 v4, v4, 0x2

    add-int/2addr v5, v4

    if-ge v0, v5, :cond_22

    move v1, v2

    :cond_22
    if-eqz v1, :cond_28

    invoke-static {v3, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v3

    :cond_28
    move-object v5, v3

    new-instance v0, Lcom/google/android/gms/internal/ads/h7;

    iget v6, p0, Lcom/google/android/gms/internal/ads/t6;->f:I

    iget-object v7, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    array-length v1, v7

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

    iget v9, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

    move-object v4, v0

    invoke-direct/range {v4 .. v9}, Lcom/google/android/gms/internal/ads/h7;-><init>([Ljava/lang/Object;I[Ljava/lang/Object;II)V

    goto :goto_47

    :cond_39
    iget v0, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/n6;->b:[Ljava/lang/Object;

    .line 1
    invoke-static {v0, v1}, Lcom/google/android/gms/internal/ads/u6;->Q(I[Ljava/lang/Object;)Lcom/google/android/gms/internal/ads/u6;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Ljava/util/AbstractCollection;->size()I

    move-result v1

    iput v1, p0, Lcom/google/android/gms/internal/ads/n6;->c:I

    :goto_47
    iput-boolean v2, p0, Lcom/google/android/gms/internal/ads/n6;->d:Z

    const/4 v1, 0x0

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/t6;->e:[Ljava/lang/Object;

    return-object v0

    :cond_4d
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/n6;->b:[Ljava/lang/Object;

    aget-object v0, v0, v1

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

    new-instance v1, Lcom/google/android/gms/internal/ads/j7;

    invoke-direct {v1, v0}, Lcom/google/android/gms/internal/ads/j7;-><init>(Ljava/lang/Object;)V

    return-object v1

    :cond_5a
    sget-object v0, Lcom/google/android/gms/internal/ads/h7;->A:Lcom/google/android/gms/internal/ads/h7;

    return-object v0
.end method
