h0.smali
.class public abstract Lcom/google/common/collect/h0;
.super Lcom/google/common/collect/d0;
.source "SourceFile"
# interfaces
.implements Ljava/util/Set;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/collect/h0$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Lcom/google/common/collect/d0<",
"TE;>;",
"Ljava/util/Set<",
"TE;>;"
}
.end annotation
# static fields
.field public static final synthetic c:I
# instance fields
.field public transient b:Lcom/google/common/collect/f0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/f0<",
"TE;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/google/common/collect/d0;-><init>()V
return-void
.end method
.method public static i(I)I
.registers 7
const/4 v0, 0x2
.line 1
invoke-static {p0, v0}, Ljava/lang/Math;->max(II)I
move-result p0
const/4 v0, 0x1
const v1, 0x2ccccccc
if-ge p0, v1, :cond_24
add-int/lit8 v1, p0, -0x1
.line 2
invoke-static {v1}, Ljava/lang/Integer;->highestOneBit(I)I
move-result v1
shl-int/lit8 v0, v1, 0x1
:goto_13
int-to-double v1, v0
const-wide v3, 0x3fe6666666666666L # 0.7
mul-double v1, v1, v3
int-to-double v3, p0
cmpg-double v5, v1, v3
if-gez v5, :cond_23
shl-int/lit8 v0, v0, 0x1
goto :goto_13
:cond_23
return v0
:cond_24
const/high16 v1, 0x40000000 # 2.0f
if-ge p0, v1, :cond_29
goto :goto_2a
:cond_29
const/4 v0, 0x0
:goto_2a
const-string p0, "collection too large"
.line 3
invoke-static {v0, p0}, Lcom/shopee/sz/mmsplayercommon/util/b;->r(ZLjava/lang/Object;)V
return v1
.end method
.method public static varargs j(I[Ljava/lang/Object;)Lcom/google/common/collect/h0;
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">(I[",
"Ljava/lang/Object;",
")",
"Lcom/google/common/collect/h0<",
"TE;>;"
}
.end annotation
if-eqz p0, :cond_7b
const/4 v0, 0x0
const/4 v1, 0x1
if-eq p0, v1, :cond_70
.line 1
invoke-static {p0}, Lcom/google/common/collect/h0;->i(I)I
move-result v2
.line 2
new-array v6, v2, [Ljava/lang/Object;
add-int/lit8 v7, v2, -0x1
const/4 v3, 0x0
const/4 v5, 0x0
const/4 v8, 0x0
:goto_11
if-ge v3, p0, :cond_3b
.line 3
aget-object v4, p1, v3
invoke-static {v4, v3}, Lcom/google/android/play/core/assetpacks/c1;->n(Ljava/lang/Object;I)Ljava/lang/Object;
.line 4
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
move-result v9
.line 5
invoke-static {v9}, Lcom/shopee/sz/mediasdk/kv/internal/d;->x(I)I
move-result v10
:goto_20
and-int v11, v10, v7
.line 6
aget-object v12, v6, v11
if-nez v12, :cond_2f
add-int/lit8 v10, v8, 0x1
.line 7
aput-object v4, p1, v8
.line 8
aput-object v4, v6, v11
add-int/2addr v5, v9
move v8, v10
goto :goto_35
.line 9
:cond_2f
invoke-virtual {v12, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v11
if-eqz v11, :cond_38
:goto_35
add-int/lit8 v3, v3, 0x1
goto :goto_11
:cond_38
add-int/lit8 v10, v10, 0x1
goto :goto_20
:cond_3b
const/4 v3, 0x0
.line 10
invoke-static {p1, v8, p0, v3}, Ljava/util/Arrays;->fill([Ljava/lang/Object;IILjava/lang/Object;)V
if-ne v8, v1, :cond_4c
.line 11
aget-object p0, p1, v0
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 12
new-instance p1, Lcom/google/common/collect/s1;
invoke-direct {p1, p0}, Lcom/google/common/collect/s1;-><init>(Ljava/lang/Object;)V
return-object p1
.line 13
:cond_4c
invoke-static {v8}, Lcom/google/common/collect/h0;->i(I)I
move-result p0
div-int/lit8 v2, v2, 0x2
if-ge p0, v2, :cond_59
.line 14
invoke-static {v8, p1}, Lcom/google/common/collect/h0;->j(I[Ljava/lang/Object;)Lcom/google/common/collect/h0;
move-result-object p0
return-object p0
.line 15
:cond_59
array-length p0, p1
shr-int/lit8 v2, p0, 0x1
shr-int/lit8 p0, p0, 0x2
add-int/2addr v2, p0
if-ge v8, v2, :cond_62
const/4 v0, 0x1
:cond_62
if-eqz v0, :cond_68
invoke-static {p1, v8}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
:cond_68
move-object v4, p1
.line 16
new-instance p0, Lcom/google/common/collect/l1;
move-object v3, p0
invoke-direct/range {v3 .. v8}, Lcom/google/common/collect/l1;-><init>([Ljava/lang/Object;I[Ljava/lang/Object;II)V
return-object p0
.line 17
:cond_70
aget-object p0, p1, v0
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 18
new-instance p1, Lcom/google/common/collect/s1;
invoke-direct {p1, p0}, Lcom/google/common/collect/s1;-><init>(Ljava/lang/Object;)V
return-object p1
.line 19
:cond_7b
sget-object p0, Lcom/google/common/collect/l1;->j:Lcom/google/common/collect/l1;
return-object p0
.end method
.method public static k(Ljava/util/Collection;)Lcom/google/common/collect/h0;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Collection<",
"+TE;>;)",
"Lcom/google/common/collect/h0<",
"TE;>;"
}
.end annotation
.line 1
instance-of v0, p0, Lcom/google/common/collect/h0;
if-eqz v0, :cond_12
instance-of v0, p0, Ljava/util/SortedSet;
if-nez v0, :cond_12
.line 2
move-object v0, p0
check-cast v0, Lcom/google/common/collect/h0;
.line 3
invoke-virtual {v0}, Lcom/google/common/collect/d0;->f()Z
move-result v1
if-nez v1, :cond_12
return-object v0
.line 4
:cond_12
invoke-interface {p0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;
move-result-object p0
.line 5
array-length v0, p0
invoke-static {v0, p0}, Lcom/google/common/collect/h0;->j(I[Ljava/lang/Object;)Lcom/google/common/collect/h0;
move-result-object p0
return-object p0
.end method
.method public static l([Ljava/lang/Object;)Lcom/google/common/collect/h0;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">([TE;)",
"Lcom/google/common/collect/h0<",
"TE;>;"
}
.end annotation
.line 1
array-length v0, p0
if-eqz v0, :cond_1b
const/4 v1, 0x1
if-eq v0, v1, :cond_12
.line 2
array-length v0, p0
invoke-virtual {p0}, [Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object p0
check-cast p0, [Ljava/lang/Object;
invoke-static {v0, p0}, Lcom/google/common/collect/h0;->j(I[Ljava/lang/Object;)Lcom/google/common/collect/h0;
move-result-object p0
return-object p0
:cond_12
const/4 v0, 0x0
.line 3
aget-object p0, p0, v0
.line 4
new-instance v0, Lcom/google/common/collect/s1;
invoke-direct {v0, p0}, Lcom/google/common/collect/s1;-><init>(Ljava/lang/Object;)V
return-object v0
.line 5
:cond_1b
sget-object p0, Lcom/google/common/collect/l1;->j:Lcom/google/common/collect/l1;
return-object p0
.end method
# virtual methods
.method public a()Lcom/google/common/collect/f0;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/f0<",
"TE;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/common/collect/h0;->b:Lcom/google/common/collect/f0;
if-nez v0, :cond_a
.line 2
invoke-virtual {p0}, Lcom/google/common/collect/h0;->m()Lcom/google/common/collect/f0;
move-result-object v0
iput-object v0, p0, Lcom/google/common/collect/h0;->b:Lcom/google/common/collect/f0;
:cond_a
return-object v0
.end method
.method public final equals(Ljava/lang/Object;)Z
.registers 4
if-ne p1, p0, :cond_4
const/4 p1, 0x1
return p1
.line 1
:cond_4
instance-of v0, p1, Lcom/google/common/collect/h0;
if-eqz v0, :cond_22
.line 2
instance-of v0, p0, Lcom/google/common/collect/l1;
if-eqz v0, :cond_22
.line 3
move-object v0, p1
check-cast v0, Lcom/google/common/collect/h0;
.line 4
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 5
instance-of v0, v0, Lcom/google/common/collect/l1;
if-eqz v0, :cond_22
.line 6
invoke-virtual {p0}, Lcom/google/common/collect/h0;->hashCode()I
move-result v0
invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I
move-result v1
if-eq v0, v1, :cond_22
const/4 p1, 0x0
return p1
.line 7
:cond_22
invoke-static {p0, p1}, Lcom/google/common/collect/r1;->a(Ljava/util/Set;Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public hashCode()I
.registers 2
invoke-static {p0}, Lcom/google/common/collect/r1;->c(Ljava/util/Set;)I
move-result v0
return v0
.end method
.method public bridge synthetic iterator()Ljava/util/Iterator;
.registers 2
invoke-virtual {p0}, Lcom/google/common/collect/d0;->g()Lcom/google/common/collect/w1;
move-result-object v0
return-object v0
.end method
.method public m()Lcom/google/common/collect/f0;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/f0<",
"TE;>;"
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/common/collect/d0;->toArray()[Ljava/lang/Object;
move-result-object v0
sget-object v1, Lcom/google/common/collect/f0;->b:Lcom/google/common/collect/f0$b;
.line 2
array-length v1, v0
invoke-static {v0, v1}, Lcom/google/common/collect/f0;->i([Ljava/lang/Object;I)Lcom/google/common/collect/f0;
move-result-object v0
return-object v0
.end method
.method public writeReplace()Ljava/lang/Object;
.registers 3
new-instance v0, Lcom/google/common/collect/h0$a;
invoke-virtual {p0}, Lcom/google/common/collect/d0;->toArray()[Ljava/lang/Object;
move-result-object v1
invoke-direct {v0, v1}, Lcom/google/common/collect/h0$a;-><init>([Ljava/lang/Object;)V
return-object v0
.end method