c.smali

.class public final Ldq/c;
.super Ljava/lang/Object;
.source "OpenHashSet.java"


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


# instance fields
.field public final a:F

.field public b:I

.field public c:I

.field public d:I

.field public e:[Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "[TT;"
        }
    .end annotation
.end field


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

    return-void
.end method

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

    const/16 v0, 0x10

    const/high16 v1, 0x3f400000    # 0.75f

    invoke-direct {p0, v0, v1}, Ldq/c;-><init>(IF)V

    return-void
.end method

.method public constructor <init>(IF)V
    .registers 4

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

    iput p2, p0, Ldq/c;->a:F

    invoke-static {p1}, Ldq/d;->a(I)I

    move-result p1

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

    iput v0, p0, Ldq/c;->b:I

    int-to-float v0, p1

    mul-float p2, p2, v0

    float-to-int p2, p2

    iput p2, p0, Ldq/c;->d:I

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

    iput-object p1, p0, Ldq/c;->e:[Ljava/lang/Object;

    return-void
.end method

.method public static a(I)I
    .registers 2

    const v0, -0x61c88647

    mul-int p0, p0, v0

    ushr-int/lit8 v0, p0, 0x10

    xor-int/2addr p0, v0

    return p0
.end method


# virtual methods
.method public a(I[Ljava/lang/Object;I)Z
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I[TT;I)Z"
        }
    .end annotation

    iget v0, p0, Ldq/c;->c:I

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    iput v0, p0, Ldq/c;->c:I

    :goto_6
    add-int/lit8 v0, p1, 0x1

    :goto_8
    and-int/2addr v0, p3

    aget-object v2, p2, v0

    if-nez v2, :cond_11

    const/4 p3, 0x0

    aput-object p3, p2, p1

    return v1

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

    move-result v3

    invoke-static {v3}, Ldq/c;->a(I)I

    move-result v3

    and-int/2addr v3, p3

    if-gt p1, v0, :cond_21

    if-ge p1, v3, :cond_25

    if-le v3, v0, :cond_29

    goto :goto_25

    :cond_21
    if-lt p1, v3, :cond_29

    if-le v3, v0, :cond_29

    :cond_25
    :goto_25
    aput-object v2, p2, p1

    move p1, v0

    goto :goto_6

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

    goto :goto_8
.end method

.method public a(Ljava/lang/Object;)Z
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)Z"
        }
    .end annotation

    iget-object v0, p0, Ldq/c;->e:[Ljava/lang/Object;

    iget v1, p0, Ldq/c;->b:I

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

    move-result v2

    invoke-static {v2}, Ldq/c;->a(I)I

    move-result v2

    and-int/2addr v2, v1

    aget-object v3, v0, v2

    const/4 v4, 0x1

    if-eqz v3, :cond_28

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

    move-result v3

    const/4 v5, 0x0

    if-eqz v3, :cond_1a

    return v5

    :cond_1a
    add-int/2addr v2, v4

    and-int/2addr v2, v1

    aget-object v3, v0, v2

    if-nez v3, :cond_21

    goto :goto_28

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

    move-result v3

    if-eqz v3, :cond_1a

    return v5

    :cond_28
    :goto_28
    aput-object p1, v0, v2

    iget p1, p0, Ldq/c;->c:I

    add-int/2addr p1, v4

    iput p1, p0, Ldq/c;->c:I

    iget v0, p0, Ldq/c;->d:I

    if-lt p1, v0, :cond_36

    invoke-virtual {p0}, Ldq/c;->b()V

    :cond_36
    return v4
.end method

.method public a()[Ljava/lang/Object;
    .registers 2

    iget-object v0, p0, Ldq/c;->e:[Ljava/lang/Object;

    return-object v0
.end method

.method public b()V
    .registers 9

    iget-object v0, p0, Ldq/c;->e:[Ljava/lang/Object;

    array-length v1, v0

    shl-int/lit8 v2, v1, 0x1

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

    new-array v4, v2, [Ljava/lang/Object;

    iget v5, p0, Ldq/c;->c:I

    :goto_b
    add-int/lit8 v6, v5, -0x1

    if-eqz v5, :cond_32

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

    aget-object v5, v0, v1

    if-nez v5, :cond_16

    goto :goto_f

    :cond_16
    aget-object v5, v0, v1

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

    move-result v5

    invoke-static {v5}, Ldq/c;->a(I)I

    move-result v5

    and-int/2addr v5, v3

    aget-object v7, v4, v5

    if-eqz v7, :cond_2c

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

    and-int/2addr v5, v3

    aget-object v7, v4, v5

    if-nez v7, :cond_25

    :cond_2c
    aget-object v7, v0, v1

    aput-object v7, v4, v5

    move v5, v6

    goto :goto_b

    :cond_32
    iput v3, p0, Ldq/c;->b:I

    int-to-float v0, v2

    iget v1, p0, Ldq/c;->a:F

    mul-float v0, v0, v1

    float-to-int v0, v0

    iput v0, p0, Ldq/c;->d:I

    iput-object v4, p0, Ldq/c;->e:[Ljava/lang/Object;

    return-void
.end method

.method public b(Ljava/lang/Object;)Z
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)Z"
        }
    .end annotation

    iget-object v0, p0, Ldq/c;->e:[Ljava/lang/Object;

    iget v1, p0, Ldq/c;->b:I

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

    move-result v2

    invoke-static {v2}, Ldq/c;->a(I)I

    move-result v2

    and-int/2addr v2, v1

    aget-object v3, v0, v2

    const/4 v4, 0x0

    if-nez v3, :cond_13

    return v4

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

    move-result v3

    if-eqz v3, :cond_1e

    invoke-virtual {p0, v2, v0, v1}, Ldq/c;->a(I[Ljava/lang/Object;I)Z

    move-result p1

    return p1

    :cond_1e
    add-int/lit8 v2, v2, 0x1

    and-int/2addr v2, v1

    aget-object v3, v0, v2

    if-nez v3, :cond_26

    return v4

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

    move-result v3

    if-eqz v3, :cond_1e

    invoke-virtual {p0, v2, v0, v1}, Ldq/c;->a(I[Ljava/lang/Object;I)Z

    move-result p1

    return p1
.end method