.class public Lcom/google/android/gms/internal/ads/n6;
.super Lz5/ka1;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<E:",
        "Ljava/lang/Object;",
        ">",
        "Lz5/ka1<",
        "TE;>;"
    }
.end annotation


# instance fields
.field public b:[Ljava/lang/Object;

.field public c:I

.field public d:Z


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

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lz5/ka1;-><init>(I)V

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

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

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

    return-void
.end method


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

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

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

    add-int/lit8 v0, v0, 0x1

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

    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

    add-int/lit8 v2, v1, 0x1

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

    aput-object p1, v0, v1

    return-object p0
.end method

.method public final d(I)V
    .registers 5

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

    array-length v1, v0

    const/4 v2, 0x0

    if-ge v1, p1, :cond_13

    invoke-static {v1, p1}, Lz5/ka1;->b(II)I

    move-result p1

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

    move-result-object p1

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

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

    return-void

    :cond_13
    iget-boolean p1, p0, Lcom/google/android/gms/internal/ads/n6;->d:Z

    if-eqz p1, :cond_20

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

    move-result-object p1

    check-cast p1, [Ljava/lang/Object;

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

    goto :goto_10

    :cond_20
    return-void
.end method
