.class public final Lcom/google/android/gms/internal/ads/k6;
.super Ljava/util/AbstractMap;
.source ""

# interfaces
.implements Ljava/io/Serializable;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<K:",
        "Ljava/lang/Object;",
        "V:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/util/AbstractMap<",
        "TK;TV;>;",
        "Ljava/io/Serializable;"
    }
.end annotation


# static fields
.field public static final A:Ljava/lang/Object;


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

.field public transient s:[I
    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field

.field public transient t:[Ljava/lang/Object;
    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field

.field public transient u:[Ljava/lang/Object;
    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field

.field public transient v:I

.field public transient w:I

.field public transient x:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "TK;>;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field

.field public transient y:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/util/Map$Entry<",
            "TK;TV;>;>;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field

.field public transient z:Ljava/util/Collection;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Collection<",
            "TV;>;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field


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

    new-instance v0, Ljava/lang/Object;

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

    sput-object v0, Lcom/google/android/gms/internal/ads/k6;->A:Ljava/lang/Object;

    return-void
.end method

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

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

    const/4 v0, 0x3

    const/4 v1, 0x1

    .line 1
    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    const v1, 0x3fffffff    # 1.9999999f

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    .line 2
    iput v0, p0, Lcom/google/android/gms/internal/ads/k6;->v:I

    return-void
.end method

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

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

    const/16 p1, 0x8

    const/4 v0, 0x1

    .line 3
    invoke-static {p1, v0}, Ljava/lang/Math;->max(II)I

    move-result p1

    const v0, 0x3fffffff    # 1.9999999f

    invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I

    move-result p1

    .line 4
    iput p1, p0, Lcom/google/android/gms/internal/ads/k6;->v:I

    return-void
.end method

.method public static g(Lcom/google/android/gms/internal/ads/k6;I)Ljava/lang/Object;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)TK;"
        }
    .end annotation

    .line 1
    iget-object p0, p0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    .line 2
    aget-object p0, p0, p1

    return-object p0
.end method

.method public static k(Lcom/google/android/gms/internal/ads/k6;I)Ljava/lang/Object;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)TV;"
        }
    .end annotation

    .line 1
    iget-object p0, p0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 2
    aget-object p0, p0, p1

    return-object p0
.end method


# virtual methods
.method public final b()Z
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

    if-nez v0, :cond_6

    const/4 v0, 0x1

    return v0

    :cond_6
    const/4 v0, 0x0

    return v0
.end method

.method public final clear()V
    .registers 6

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->b()Z

    move-result v0

    if-eqz v0, :cond_7

    return-void

    :cond_7
    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->e()V

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->d()Ljava/util/Map;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    if-eqz v0, :cond_2a

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->size()I

    move-result v3

    const/4 v4, 0x3

    .line 1
    invoke-static {v3, v4}, Ljava/lang/Math;->max(II)I

    move-result v3

    const v4, 0x3fffffff    # 1.9999999f

    invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I

    move-result v3

    .line 2
    iput v3, p0, Lcom/google/android/gms/internal/ads/k6;->v:I

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

    goto :goto_66

    .line 3
    :cond_2a
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    .line 4
    iget v3, p0, Lcom/google/android/gms/internal/ads/k6;->w:I

    invoke-static {v0, v2, v3, v1}, Ljava/util/Arrays;->fill([Ljava/lang/Object;IILjava/lang/Object;)V

    .line 5
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 6
    iget v3, p0, Lcom/google/android/gms/internal/ads/k6;->w:I

    invoke-static {v0, v2, v3, v1}, Ljava/util/Arrays;->fill([Ljava/lang/Object;IILjava/lang/Object;)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

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

    instance-of v1, v0, [B

    if-eqz v1, :cond_4d

    check-cast v0, [B

    invoke-static {v0, v2}, Ljava/util/Arrays;->fill([BB)V

    goto :goto_5c

    :cond_4d
    instance-of v1, v0, [S

    if-eqz v1, :cond_57

    check-cast v0, [S

    invoke-static {v0, v2}, Ljava/util/Arrays;->fill([SS)V

    goto :goto_5c

    :cond_57
    check-cast v0, [I

    invoke-static {v0, v2}, Ljava/util/Arrays;->fill([II)V

    .line 7
    :goto_5c
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    .line 8
    iget v1, p0, Lcom/google/android/gms/internal/ads/k6;->w:I

    invoke-static {v0, v2, v1, v2}, Ljava/util/Arrays;->fill([IIII)V

    :goto_66
    iput v2, p0, Lcom/google/android/gms/internal/ads/k6;->w:I

    return-void
.end method

.method public final containsKey(Ljava/lang/Object;)Z
    .registers 3
    .param p1    # Ljava/lang/Object;
        .annotation runtime Ljavax/annotation/CheckForNull;
        .end annotation
    .end param

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->d()Ljava/util/Map;

    move-result-object v0

    if-eqz v0, :cond_b

    invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    goto :goto_13

    :cond_b
    invoke-virtual {p0, p1}, Lcom/google/android/gms/internal/ads/k6;->p(Ljava/lang/Object;)I

    move-result p1

    const/4 v0, -0x1

    if-ne p1, v0, :cond_14

    const/4 p1, 0x0

    :goto_13
    return p1

    :cond_14
    const/4 p1, 0x1

    return p1
.end method

.method public final containsValue(Ljava/lang/Object;)Z
    .registers 5
    .param p1    # Ljava/lang/Object;
        .annotation runtime Ljavax/annotation/CheckForNull;
        .end annotation
    .end param

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->d()Ljava/util/Map;

    move-result-object v0

    if-nez v0, :cond_1f

    const/4 v0, 0x0

    move v1, v0

    :goto_8
    iget v2, p0, Lcom/google/android/gms/internal/ads/k6;->w:I

    if-ge v1, v2, :cond_1e

    .line 1
    iget-object v2, p0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 2
    aget-object v2, v2, v1

    invoke-static {p1, v2}, Lcom/google/android/gms/internal/ads/p8;->c(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1b

    const/4 p1, 0x1

    return p1

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

    goto :goto_8

    :cond_1e
    return v0

    :cond_1f
    invoke-interface {v0, p1}, Ljava/util/Map;->containsValue(Ljava/lang/Object;)Z

    move-result p1

    return p1
.end method

.method public final d()Ljava/util/Map;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "TK;TV;>;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

    instance-of v1, v0, Ljava/util/Map;

    if-eqz v1, :cond_9

    check-cast v0, Ljava/util/Map;

    return-object v0

    :cond_9
    const/4 v0, 0x0

    return-object v0
.end method

.method public final e()V
    .registers 2

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

    add-int/lit8 v0, v0, 0x20

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

    return-void
.end method

.method public final entrySet()Ljava/util/Set;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Set<",
            "Ljava/util/Map$Entry<",
            "TK;TV;>;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->y:Ljava/util/Set;

    if-nez v0, :cond_b

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

    invoke-direct {v0, p0}, Lcom/google/android/gms/internal/ads/i6;-><init>(Lcom/google/android/gms/internal/ads/k6;)V

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->y:Ljava/util/Set;

    :cond_b
    return-object v0
.end method

.method public final f(II)V
    .registers 12

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

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

    .line 1
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    .line 2
    iget-object v2, p0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    .line 3
    iget-object v3, p0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 4
    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->size()I

    move-result v4

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

    const/4 v5, 0x0

    const/4 v6, 0x0

    if-ge p1, v4, :cond_56

    aget-object v7, v2, v4

    aput-object v7, v2, p1

    aget-object v8, v3, v4

    aput-object v8, v3, p1

    aput-object v6, v2, v4

    aput-object v6, v3, v4

    aget v2, v1, v4

    aput v2, v1, p1

    aput v5, v1, v4

    invoke-static {v7}, Lcom/google/android/gms/internal/ads/m6;->f(Ljava/lang/Object;)I

    move-result v2

    and-int/2addr v2, p2

    invoke-static {v0, v2}, Lcom/google/android/gms/internal/ads/x1;->c(Ljava/lang/Object;I)I

    move-result v3

    add-int/lit8 v4, v4, 0x1

    if-eq v3, v4, :cond_50

    :goto_3d
    add-int/lit8 v3, v3, -0x1

    aget v0, v1, v3

    and-int v2, v0, p2

    if-eq v2, v4, :cond_47

    move v3, v2

    goto :goto_3d

    :cond_47
    not-int v2, p2

    and-int/2addr v0, v2

    add-int/lit8 p1, p1, 0x1

    and-int/2addr p1, p2

    or-int/2addr p1, v0

    aput p1, v1, v3

    return-void

    :cond_50
    add-int/lit8 p1, p1, 0x1

    invoke-static {v0, v2, p1}, Lcom/google/android/gms/internal/ads/x1;->e(Ljava/lang/Object;II)V

    return-void

    :cond_56
    aput-object v6, v2, p1

    aput-object v6, v3, p1

    aput v5, v1, p1

    return-void
.end method

.method public final get(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 3
    .param p1    # Ljava/lang/Object;
        .annotation runtime Ljavax/annotation/CheckForNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Object;",
            ")TV;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->d()Ljava/util/Map;

    move-result-object v0

    if-eqz v0, :cond_b

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    return-object p1

    :cond_b
    invoke-virtual {p0, p1}, Lcom/google/android/gms/internal/ads/k6;->p(Ljava/lang/Object;)I

    move-result p1

    const/4 v0, -0x1

    if-ne p1, v0, :cond_14

    const/4 p1, 0x0

    return-object p1

    .line 1
    :cond_14
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 2
    aget-object p1, v0, p1

    return-object p1
.end method

.method public final isEmpty()Z
    .registers 2

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->size()I

    move-result v0

    if-nez v0, :cond_8

    const/4 v0, 0x1

    return v0

    :cond_8
    const/4 v0, 0x0

    return v0
.end method

.method public final keySet()Ljava/util/Set;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Set<",
            "TK;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->x:Ljava/util/Set;

    if-nez v0, :cond_b

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

    invoke-direct {v0, p0}, Lcom/google/android/gms/internal/ads/j6;-><init>(Lcom/google/android/gms/internal/ads/k6;)V

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->x:Ljava/util/Set;

    :cond_b
    return-object v0
.end method

.method public final m()I
    .registers 3

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

    and-int/lit8 v0, v0, 0x1f

    const/4 v1, 0x1

    shl-int v0, v1, v0

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

    return v0
.end method

.method public final o(IIII)I
    .registers 13

    invoke-static {p2}, Lcom/google/android/gms/internal/ads/x1;->a(I)Ljava/lang/Object;

    move-result-object v0

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

    if-eqz p4, :cond_e

    and-int/2addr p3, p2

    add-int/lit8 p4, p4, 0x1

    invoke-static {v0, p3, p4}, Lcom/google/android/gms/internal/ads/x1;->e(Ljava/lang/Object;II)V

    :cond_e
    iget-object p3, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

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

    .line 1
    iget-object p4, p0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    const/4 v1, 0x0

    :goto_19
    if-gt v1, p1, :cond_3e

    .line 2
    invoke-static {p3, v1}, Lcom/google/android/gms/internal/ads/x1;->c(Ljava/lang/Object;I)I

    move-result v2

    :goto_1f
    if-eqz v2, :cond_3b

    add-int/lit8 v3, v2, -0x1

    aget v4, p4, v3

    not-int v5, p1

    and-int/2addr v5, v4

    or-int/2addr v5, v1

    and-int v6, v5, p2

    invoke-static {v0, v6}, Lcom/google/android/gms/internal/ads/x1;->c(Ljava/lang/Object;I)I

    move-result v7

    invoke-static {v0, v6, v2}, Lcom/google/android/gms/internal/ads/x1;->e(Ljava/lang/Object;II)V

    not-int v2, p2

    and-int/2addr v2, v5

    and-int v5, v7, p2

    or-int/2addr v2, v5

    aput v2, p4, v3

    and-int v2, v4, p1

    goto :goto_1f

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

    goto :goto_19

    :cond_3e
    iput-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

    .line 3
    invoke-static {p2}, Ljava/lang/Integer;->numberOfLeadingZeros(I)I

    move-result p1

    iget p3, p0, Lcom/google/android/gms/internal/ads/k6;->v:I

    and-int/lit8 p3, p3, -0x20

    rsub-int/lit8 p1, p1, 0x20

    and-int/lit8 p1, p1, 0x1f

    or-int/2addr p1, p3

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

    return p2
.end method

.method public final p(Ljava/lang/Object;)I
    .registers 9
    .param p1    # Ljava/lang/Object;
        .annotation runtime Ljavax/annotation/CheckForNull;
        .end annotation
    .end param

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->b()Z

    move-result v0

    const/4 v1, -0x1

    if-eqz v0, :cond_8

    return v1

    :cond_8
    invoke-static {p1}, Lcom/google/android/gms/internal/ads/m6;->f(Ljava/lang/Object;)I

    move-result v0

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->m()I

    move-result v2

    iget-object v3, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

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

    and-int v4, v0, v2

    invoke-static {v3, v4}, Lcom/google/android/gms/internal/ads/x1;->c(Ljava/lang/Object;I)I

    move-result v3

    if-eqz v3, :cond_3e

    not-int v4, v2

    and-int/2addr v0, v4

    :cond_1f
    add-int/2addr v3, v1

    .line 1
    iget-object v5, p0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    .line 2
    aget v5, v5, v3

    and-int v6, v5, v4

    if-ne v6, v0, :cond_3a

    .line 3
    iget-object v6, p0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    .line 4
    aget-object v6, v6, v3

    invoke-static {p1, v6}, Lcom/google/android/gms/internal/ads/p8;->c(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_39

    goto :goto_3a

    :cond_39
    return v3

    :cond_3a
    :goto_3a
    and-int v3, v5, v2

    if-nez v3, :cond_1f

    :cond_3e
    return v1
.end method

.method public final put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    .registers 23
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TK;TV;)TV;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    invoke-virtual/range {p0 .. p0}, Lcom/google/android/gms/internal/ads/k6;->b()Z

    move-result v3

    const/4 v4, -0x1

    const/4 v5, 0x2

    const/4 v6, 0x4

    const/16 v7, 0x20

    if-eqz v3, :cond_55

    invoke-virtual/range {p0 .. p0}, Lcom/google/android/gms/internal/ads/k6;->b()Z

    move-result v3

    const-string v8, "Arrays already allocated"

    invoke-static {v3, v8}, Lcom/google/android/gms/internal/ads/o5;->d(ZLjava/lang/Object;)V

    iget v3, v0, Lcom/google/android/gms/internal/ads/k6;->v:I

    add-int/lit8 v8, v3, 0x1

    invoke-static {v8, v5}, Ljava/lang/Math;->max(II)I

    move-result v8

    invoke-static {v8}, Ljava/lang/Integer;->highestOneBit(I)I

    move-result v9

    int-to-double v10, v9

    double-to-int v10, v10

    if-le v8, v10, :cond_2f

    add-int/2addr v9, v9

    if-gtz v9, :cond_2f

    const/high16 v9, 0x40000000    # 2.0f

    :cond_2f
    invoke-static {v6, v9}, Ljava/lang/Math;->max(II)I

    move-result v8

    invoke-static {v8}, Lcom/google/android/gms/internal/ads/x1;->a(I)Ljava/lang/Object;

    move-result-object v9

    iput-object v9, v0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

    add-int/2addr v8, v4

    .line 1
    invoke-static {v8}, Ljava/lang/Integer;->numberOfLeadingZeros(I)I

    move-result v8

    iget v9, v0, Lcom/google/android/gms/internal/ads/k6;->v:I

    and-int/lit8 v9, v9, -0x20

    rsub-int/lit8 v8, v8, 0x20

    and-int/lit8 v8, v8, 0x1f

    or-int/2addr v8, v9

    iput v8, v0, Lcom/google/android/gms/internal/ads/k6;->v:I

    .line 2
    new-array v8, v3, [I

    iput-object v8, v0, Lcom/google/android/gms/internal/ads/k6;->s:[I

    new-array v8, v3, [Ljava/lang/Object;

    iput-object v8, v0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    iput-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

    :cond_55
    invoke-virtual/range {p0 .. p0}, Lcom/google/android/gms/internal/ads/k6;->d()Ljava/util/Map;

    move-result-object v3

    if-eqz v3, :cond_60

    invoke-interface {v3, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    return-object v1

    .line 3
    :cond_60
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    .line 4
    iget-object v8, v0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    .line 5
    iget-object v9, v0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 6
    iget v10, v0, Lcom/google/android/gms/internal/ads/k6;->w:I

    add-int/lit8 v11, v10, 0x1

    invoke-static/range {p1 .. p1}, Lcom/google/android/gms/internal/ads/m6;->f(Ljava/lang/Object;)I

    move-result v12

    invoke-virtual/range {p0 .. p0}, Lcom/google/android/gms/internal/ads/k6;->m()I

    move-result v13

    and-int v14, v12, v13

    iget-object v15, v0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

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

    invoke-static {v15, v14}, Lcom/google/android/gms/internal/ads/x1;->c(Ljava/lang/Object;I)I

    move-result v15

    const/4 v6, 0x1

    if-nez v15, :cond_a2

    if-le v11, v13, :cond_98

    if-ge v13, v7, :cond_90

    const/16 v16, 0x4

    goto :goto_92

    :cond_90
    const/16 v16, 0x2

    :goto_92
    add-int/lit8 v3, v13, 0x1

    mul-int v3, v3, v16

    goto/16 :goto_11d

    :cond_98
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

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

    invoke-static {v3, v14, v11}, Lcom/google/android/gms/internal/ads/x1;->e(Ljava/lang/Object;II)V

    goto/16 :goto_127

    :cond_a2
    not-int v14, v13

    and-int v7, v12, v14

    const/16 v17, 0x0

    move/from16 v18, v17

    :goto_a9
    add-int/2addr v15, v4

    aget v19, v3, v15

    and-int v4, v19, v14

    if-ne v4, v7, :cond_be

    aget-object v5, v8, v15

    invoke-static {v1, v5}, Lcom/google/android/gms/internal/ads/p8;->c(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_b9

    goto :goto_be

    :cond_b9
    aget-object v1, v9, v15

    aput-object v2, v9, v15

    return-object v1

    :cond_be
    :goto_be
    and-int v5, v19, v13

    move/from16 v19, v7

    add-int/lit8 v7, v18, 0x1

    if-nez v5, :cond_17f

    const/16 v5, 0x9

    if-lt v7, v5, :cond_111

    invoke-virtual/range {p0 .. p0}, Lcom/google/android/gms/internal/ads/k6;->m()I

    move-result v3

    new-instance v4, Ljava/util/LinkedHashMap;

    add-int/2addr v3, v6

    const/high16 v5, 0x3f800000    # 1.0f

    invoke-direct {v4, v3, v5}, Ljava/util/LinkedHashMap;-><init>(IF)V

    .line 7
    invoke-virtual/range {p0 .. p0}, Lcom/google/android/gms/internal/ads/k6;->isEmpty()Z

    move-result v3

    if-eqz v3, :cond_df

    move-object v3, v0

    move-object v5, v3

    goto :goto_fd

    :cond_df
    move-object v3, v0

    move-object v5, v3

    :goto_e1
    if-ltz v17, :cond_100

    .line 8
    iget-object v6, v3, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    .line 9
    aget-object v6, v6, v17

    .line 10
    iget-object v7, v3, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 11
    aget-object v7, v7, v17

    invoke-interface {v4, v6, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v6, v17, 0x1

    .line 12
    iget v7, v3, Lcom/google/android/gms/internal/ads/k6;->w:I

    if-ge v6, v7, :cond_fd

    move/from16 v17, v6

    goto :goto_e1

    :cond_fd
    :goto_fd
    const/16 v17, -0x1

    goto :goto_e1

    .line 13
    :cond_100
    iput-object v4, v3, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

    const/4 v6, 0x0

    iput-object v6, v3, Lcom/google/android/gms/internal/ads/k6;->s:[I

    iput-object v6, v3, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

    iput-object v6, v3, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

    invoke-virtual {v5}, Lcom/google/android/gms/internal/ads/k6;->e()V

    invoke-interface {v4, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    return-object v1

    :cond_111
    if-le v11, v13, :cond_122

    const/16 v5, 0x20

    if-ge v13, v5, :cond_119

    const/4 v5, 0x4

    goto :goto_11a

    :cond_119
    const/4 v5, 0x2

    :goto_11a
    add-int/lit8 v3, v13, 0x1

    mul-int/2addr v3, v5

    :goto_11d
    invoke-virtual {v0, v13, v3, v12, v10}, Lcom/google/android/gms/internal/ads/k6;->o(IIII)I

    move-result v13

    goto :goto_127

    :cond_122
    and-int v5, v11, v13

    or-int/2addr v4, v5

    aput v4, v3, v15

    .line 14
    :goto_127
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    .line 15
    array-length v3, v3

    if-le v11, v3, :cond_161

    const v4, 0x3fffffff    # 1.9999999f

    ushr-int/lit8 v5, v3, 0x1

    invoke-static {v6, v5}, Ljava/lang/Math;->max(II)I

    move-result v5

    add-int/2addr v5, v3

    or-int/2addr v5, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->min(II)I

    move-result v4

    if-eq v4, v3, :cond_161

    .line 16
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    .line 17
    invoke-static {v3, v4}, Ljava/util/Arrays;->copyOf([II)[I

    move-result-object v3

    iput-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->s:[I

    .line 18
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

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

    move-result-object v3

    iput-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

    .line 20
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

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

    move-result-object v3

    iput-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

    .line 22
    :cond_161
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    not-int v4, v13

    and-int/2addr v4, v12

    .line 23
    aput v4, v3, v10

    .line 24
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    .line 25
    aput-object v1, v3, v10

    .line 26
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 27
    aput-object v2, v1, v10

    iput v11, v0, Lcom/google/android/gms/internal/ads/k6;->w:I

    invoke-virtual/range {p0 .. p0}, Lcom/google/android/gms/internal/ads/k6;->e()V

    const/4 v4, 0x0

    return-object v4

    :cond_17f
    move v15, v5

    move/from16 v18, v7

    move/from16 v7, v19

    const/4 v4, -0x1

    goto/16 :goto_a9
.end method

.method public final q(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 10
    .param p1    # Ljava/lang/Object;
        .annotation runtime Ljavax/annotation/CheckForNull;
        .end annotation
    .end param

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->b()Z

    move-result v0

    if-eqz v0, :cond_9

    sget-object p1, Lcom/google/android/gms/internal/ads/k6;->A:Ljava/lang/Object;

    return-object p1

    :cond_9
    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->m()I

    move-result v7

    iget-object v3, p0, Lcom/google/android/gms/internal/ads/k6;->r:Ljava/lang/Object;

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

    const/4 v1, 0x0

    .line 1
    iget-object v4, p0, Lcom/google/android/gms/internal/ads/k6;->s:[I

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

    .line 2
    iget-object v5, p0, Lcom/google/android/gms/internal/ads/k6;->t:[Ljava/lang/Object;

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

    const/4 v6, 0x0

    move-object v0, p1

    move v2, v7

    .line 3
    invoke-static/range {v0 .. v6}, Lcom/google/android/gms/internal/ads/x1;->f(Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/Object;[I[Ljava/lang/Object;[Ljava/lang/Object;)I

    move-result p1

    const/4 v0, -0x1

    if-ne p1, v0, :cond_2a

    sget-object p1, Lcom/google/android/gms/internal/ads/k6;->A:Ljava/lang/Object;

    return-object p1

    .line 4
    :cond_2a
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/k6;->u:[Ljava/lang/Object;

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

    .line 5
    aget-object v1, v1, p1

    invoke-virtual {p0, p1, v7}, Lcom/google/android/gms/internal/ads/k6;->f(II)V

    iget p1, p0, Lcom/google/android/gms/internal/ads/k6;->w:I

    add-int/2addr p1, v0

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

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->e()V

    return-object v1
.end method

.method public final remove(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 3
    .param p1    # Ljava/lang/Object;
        .annotation runtime Ljavax/annotation/CheckForNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Object;",
            ")TV;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->d()Ljava/util/Map;

    move-result-object v0

    if-eqz v0, :cond_b

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    return-object p1

    :cond_b
    invoke-virtual {p0, p1}, Lcom/google/android/gms/internal/ads/k6;->q(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    sget-object v0, Lcom/google/android/gms/internal/ads/k6;->A:Ljava/lang/Object;

    if-ne p1, v0, :cond_14

    const/4 p1, 0x0

    :cond_14
    return-object p1
.end method

.method public final size()I
    .registers 2

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/k6;->d()Ljava/util/Map;

    move-result-object v0

    if-eqz v0, :cond_b

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

    move-result v0

    goto :goto_d

    :cond_b
    iget v0, p0, Lcom/google/android/gms/internal/ads/k6;->w:I

    :goto_d
    return v0
.end method

.method public final values()Ljava/util/Collection;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Collection<",
            "TV;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->z:Ljava/util/Collection;

    if-nez v0, :cond_b

    new-instance v0, Lz5/z91;

    invoke-direct {v0, p0}, Lz5/z91;-><init>(Lcom/google/android/gms/internal/ads/k6;)V

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/k6;->z:Ljava/util/Collection;

    :cond_b
    return-object v0
.end method
